How to run a python program in one folder and import and run a python program from another folder
How to import a module given the full path?
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? This is a canonical question and answer developed by the community to help address common questions. If you've been directed here, or your question has been closed as a duplicate, please look through the resources here and use them to shape more specific questions. To browse all canonical questions and answers, including more unit test resources, navigate to the  tag.  This canonical question is intended to address several classes of common questions by providing a quick summary and links to comprehensive resources:   How do I start writing my first unit test?  How do I unit test this code?  I need help writing this unit test.   Salesforce Stack Exchange looks for detailed, specific questions that the community can help you with, and can't write tests on your behalf. We feel that working with the resources below can help you get started, and we encourage you to make an attempt to write your test and return to SFSE with your specific questions when you encounter challenges you can't resolve. I have been facing hard time understanding meaning of "random sample" as well as "iid random variable". I tried to find out the meaning from several sources, but just got more and more confused. I am posting here what I tried and got to know:  Degroot's Probability &amp; Statistics says:     Random Samples / i.i.d. / Sample Size : Consider a given probability distribution on the real line that can be represented by either a p.f. or a p.d.f. $f$. It is said that $n$ random variables $X_1 , . . . , X_n$ form a random sample from this distribution if these random variables are independent and the marginal p.f. or p.d.f. of each of them is $f$. Such random variables are also said to be independent and identically distributed, abbreviated i.i.d. We refer to the number n of random variables as the sample size.   But one of the other statistics book I have says:       In a Random Sampling, we guarantee that every individual unit in the population gets an equal chance(probability) of being selected.   So, I have a feeling that i.i.d.s are elements that construct random sample, and the procedure to have random sample is random sampling. Am I right?   P.S.: I am very confused about this topic, so I will appreciate elaborate reply. Thanks. How do you make a deep copy of an object? proving logical equivalence $(P \leftrightarrow Q) \equiv (P \wedge Q) \vee (\neg P \wedge \neg Q)$ Can Yahoo! Messenger be used with Ubuntu? Duplicate application icons in Ubuntu dock upon launch I'm using Ubuntu 17.10 with GNOME shell and Numix-Circle icon theme.   When I hover over the Numix icon for Nightly Web Browser, which is pinned to the dock I get the title "Nightly Web Browser".      But when I launch the program, another icon pops up at the bottom, with the name "Nightly". Why are eigenfunctions which correspond to discrete/continuous eigenvalue spectra guaranteed to be normalizable/non-normalizable? These facts are taken for granted in a QM text I read. The purportedly guaranteed non-normalizability of eigenfunctions which correspond to a continuous eigenvalue spectrum is only partly justified by the author, who merely states that the non-normalizability is linked to the fact that such eigenfunctions do not tend to zero at infinity.  Not a very satisfying answer. What I'm really after is an explanation based in functional analysis. I believe there is a generalized result about inner products being finite for discrete spectra but infinite for continuous spectra.  Can anyone shed some light on this? After my lie down, I posted  on SO. As I suspected would happen, it got moved to programmers. Unfortunately, the kind of people I'm interested in getting answers from (litb,skeet et al - the top SO programmers in their respective disciplines) don't frequent Programmers much. So my question is, where to ask somewhat non-specific questions of high-powered users? Case assignment rule is always executed in the test class I used to be able to go to Accounts and Import → Add another email address you own and add an email account that's only a forwarding address. That is, it's not a mailbox and I don't have SMTP access to it.  Gmail would send me a confirmation email to that address, I'd confirm it's mine, and done. Now it only gives me the option to add SMTP credentials.  Did they stop supporting the previous method? Is there any other way I can get that option back? Find conditional expectation from a 3-dimensional random vector? Reputation and inbox notification shows up again after refresh Is the reason why the time evolution operator is unitary based on purely physical arguments, i.e. that the physical processes that an isolated system undergoes shouldn't depend on any particular instant in time (homogeneity of time); thus two experimenters who conduct the same experiment starting from the same initial state, but at different times, should have the same probability amplitude for that state?! Or is there some mathematical argument as well?  Also, is the reason why the time evolution operator is linear implied by the superposition principle (as an arbitrary state can be expressed as a linear combination of basis states the operator should act linearly as otherwise the state as a whole would evolve differently to the superposition of states that it was initially represented by)?! JavaScript YAML Parser Is it possible to exclude questions I've already answered from the search criteria? Recently I asked if it were possible to find questions with just one answer and as a result we got an .  That's great, but ...     Is there a way to restrict the search to questions where that one answer isn't mine? That would help. :-)   It's certainly possible to search for , but it's not possible to exclude your own posts as far as I can tell:   -user:me searches for posts that . user:1-67 doesn't search for posts from user #1 to user #67, but searches for .  (And I'm not sure that will help anyway since I don't think it would be possible to simultaneously exclude 69-max(userID).) -Ericson searches for posts that , but since my last name is in the the metadata and not the searchable portion of posts: no joy.   And of course none of this will actually work to eliminate the questions that that I've answered already and want to ignore.  In general, If I'm involved in a Q&amp;A (or ) the notification procedures do a good job of keeping me up-to-date with developments.  But when I search, it's often to find questions I've not noticed before.  So being able to eliminate questions I have already answered would be a generally useful feature for me. Cursor hitting "border" between differently sized monitors Is Bran able to have children after his fall? The thing that made me ask this question was that most of Stark family are dead and Bran is now the "heir" to Winterfell. So I guess he should have children to succeed him, otherwise the Stark line will end. (I'm assuming Arya will not come back to Westeros and Rickon's fate is sealed, though I could be wrong.) I don't remember reading anything about it. We are currently developing a site that currently has 8 million unique pages that will grow to about 20 million right away, and eventually to about 50 million or more.  Before you criticize... Yes, it provides unique, useful content. We continually process raw data from public records and by doing some data scrubbing, entity rollups, and relationship mapping, we've been able to generate quality content, developing a site that's quite useful and also unique, in part due to the breadth of the data.  It's PR is 0 (new domain, no links), and we're getting spidered at a rate of about 500 pages per day, putting us at about 30,000 pages indexed thus far. At this rate, it would take over 400 years to index all of our data.  I have two questions:   Is the rate of the indexing directly correlated to PR, and by that I mean is it correlated enough that by purchasing an old domain with good PR will get us to a workable indexing rate (in the neighborhood of 100,000 pages per day). Are there any SEO consultants who specialize in aiding the indexing process itself. We're otherwise doing very well with SEO, on-page especially, besides, the competition for our "long-tail" keyword phrases is pretty low, so our success hinges mostly on the number of pages indexed.   Our main competitor has achieved approx 20MM pages indexed in just over one year's time, along with an Alexa 2000-ish ranking.  Noteworthy qualities we have in place:   page download speed is pretty good (250-500 ms) no errors (no 404 or 500 errors when getting spidered) we use Google webmaster tools and login daily friendly URLs in place I'm afraid to submit sitemaps. Some SEO community postings suggest a new site with millions of pages and no PR is suspicious. There is a , too, in order to avoid increased scrutiny (at approx 2:30 in the video).      Clickable site links deliver all pages, no more than four pages deep and typically no more than 250(-ish) internal links on a page. Anchor text for internal links is logical and adds relevance hierarchically to the data on the detail pages. We had previously set the crawl rate to the highest on webmaster tools (only about a page every two seconds, max). I recently turned it back to "let Google decide" which is what is advised. Preparing CSV files for use in ArcGIS Desktop?