Python, part of program run independent
What is the best way to repeatedly execute a function every x seconds?
How does the system determine which one close reason should be displayed on a closed question, given the close votes? When voting to close a question, it's possible for users to vote for any close reason, even if others have voted for different reasons. However, in the end, once the question reaches five close votes for any reason, only one of those reasons can be displayed.  How does the system determine which one close reason to display, given the votes made by users? Error System.CalloutException: Callout from scheduled Apex not supported i have created a schedulable class which has to trigger a batch job. The run method for the batch class will get list of data to process from a webservice callout. Now, i got the exception below. Any suggestions please.     System.CalloutException: Callout from scheduled Apex not supported.   global class scheduledDeltaBatchable implements Schedulable {    global void execute(SchedulableContext sc) {     ID batchprocessid = BatchUpsertSAPCustomerMasterBPSync.run(SAPServices.GetSAPCustomerMasterBPSync('Delta'));    } } How to see what's going on during Windows shutdown/logging off process? Windows 7 msconfig lets users select the options No GUI boot and OS boot information to have a list of drivers being loaded during boot. Is it possible to have similar detailed messages during shutting down/restarting/logging off? Here's the screen I want disable or give me more details: Overstaying on a US Visa Waiver Program A friend of mine came from Australia on the WVP and stayed 92 days. I made a mistake booking Her flight scheduling a Saturday arrival/departure at DFW. This amounted to a 92 day stay and with no funds to rebook a low cost flight through Qantas it was necessary to leave on the scheduled flight.   Question # 1) Was a automatic I-94W submitted by the airlines? She had no customs forms to fill out upon departure.   Question #2) How does this effect another WVP being issued if applied for? Why is propagation of uncertainties quadratic rather than linear? Let $A$ be a nonempty and bounded below, and define $B= \{b\in \mathbb{R}: b$ is a lower bound for $A\}$. Show sup$B$ = inf$A$.   So far I have: Let $A$ be nonempty and bounded below. This implies $\exists l \in A, \forall a \in A, l\leq a$ and $l =$ inf$A$. Let $B = \{b\in \mathbb{R}: b$ is a lower bound for $A\}$ and let $M=$ sup$B$. This implies $\exists b\in B, \forall b \in B, b\leq M$. By definition of $B$, we know inf$A \in B$. Since $b\leq$ sup$B$, with sup$B$ the largest element in $B$, we have inf$A \leq M =$ sup$B$, so inf$A \leq$ sup$B$.  I realize I have to prove that sup$B \leq$ inf$A$ to get that sup$B$=inf$A$. I am having trouble doing so.   Part B: Use (a) to explain why there is no need to assert that greatest lower bounds exist as part of the Axiom of Completeness. How do tag merge requests work? I had raised a  to merge pre-build-event, and pre-buildevent; and postbuild-event and post-build-event. That was about 11 months ago, and I still see these two tags even now.  How are tag merge requests handled? Is there a better way for tag merge requests other than posting on Meta? I am working on a media project that contains little clips from movies and I wonder if there any way to avoid downloading all of the data instead only the specified parts of the movies? Compute Taylor error of $10^{-5}$ for $\cos(\pi/20)$ Paucity of words for relationships Please refer the following questions asked elsewhere on this site:       I am a native Hindi speaker; Hindi has a plethora of terms referring to relationships. To take a trivial example, the term uncle may refer to father's elder brother, father's younger brother, mother's brothers, father's sister's husband, mother's sister's husband, all of which have specific addresses in Hindi.  I discussed the same with one of my teachers. She had the opinion that the development of language mirrors the cultural moorings of the society that uses the language. Now, since all of the above relationships have distinct status and reverence in the Hindi speaking society, that calls for different addresses. That may well not be the case in English speaking societies.  Is that correct? What other linguistic reasons may account for such a dearth of vocabulary in English in this area? Most efficient way to see if an ArrayList contains an object in Java I am trying to find the equation of characteristic curves and solution of the partial differential equation $$x\frac{\partial u}{\partial y}-y\frac{\partial u}{\partial x}=u$$ $u(x,0)=\sin(\frac{\pi}{4}x)$ .   What I did: $$\frac{dx}{-y}=\frac{dy}{x}=\frac{du}{u}$$ with  From first two equalities $$\frac{dx}{-y}=\frac{dy}{x}$$ by solving we get $x^2+y^2=c_1$ for some constant $c_1$. Now I am stuck with the third and rest of the equalities to come up with a suitable manipulation to solve the problem. How can I do this? Any help would be great. Thanks. I am trying to understand Maximum likelihood estimation but it looks like I am missing something rather elementary.          suppose we have an iid random sample $X_1, X_2,..., X_n$ for which the probability density function of each $X_i$ is $f(x_i; \theta)$ where $\theta$ is an unknown parameter. Then, the joint probability density function of $X_1, X_2,..., X_n$ is given by:          $f(X_1=x_1,X_2=x_2,\cdots,X_n=x_n)=\prod_{i=1}^{n} f(x_i, \theta)$      In Maximum Likelihood estimation, we try to maximize $f$ as a function of $\theta$.  Question: Why do we maximize probability density instead of probability? In what way does it make sense?  Edit: As explained in the answers, the probability of choosing a finite number of sample points from a continuous probability distribution is zero, so maximizing probability doesn't make sense, but how does maximizing probability density make sense? Cross-platform space remaining on volume using python I need a way to determine the space remaining on a disk volume using python on linux, Windows and OS X. I'm currently parsing the output of the various system calls (df, dir) to accomplish this - is there a better way? Update: Universal login is in place and considered &quot;done&quot;. If you see anything weird, please submit new bug reports.   As y'all know, our current flavor of &quot;global authentication&quot; leaves a few things to be desired. It's flaky, requires a page refresh, etc. etc. Wouldn't it be nice if you could just sign in once and be automatically logged in across the network?  We are ready to roll out Stage 1 of Project &quot;Make Authentication Suck Less&quot;. It is live as of a few minutes ago. What this means right now:  When you log into any Q&amp;A site on the stackexchange.com domain, you will be automatically logged into all other Q&amp;A sites on the stackexchange.com domain + stackexchange.com itself.   is excluded from this.   , , and other Q&amp;A sites with their own domains will still use the old flow.  We are going to recognize you in some ways on sites where you don't have a profile. This is still a work in progress, but most notably you will see &quot;join this community&quot; in the top bar instead of &quot;sign up&quot; and &quot;log in&quot;.   But I use multiple accounts! What do? We aren't intending to break the ability to run multiple accounts. The same guidelines as before still apply — we don't officially support that, you might end up with an accidental automatic merge if you're not careful with your credentials, any interaction between the accounts is right out, and so on. If you're already using different browsers or different browser profiles for your accounts, nothing will change for you. If you are somehow logged into multiple accounts in the same browser... I'm sorry to say, but that's a bug even for our current global auth setup. You will now only be able to log into one at a time, and you'll need to log out when you want to switch. (Or start using different browsers.) What's next:  Remember  we tested a few months ago? It's coming back. Stage 2: bring other domains into the fold (this is also live now) Stage 3: make cross-domain experience smoother and support browsers that reject third-party cookies in all conditions (looking at you, Safari) - this is not currently feasible. Safari users and users who reject third-party cookies will need to sign in separately to every second-level domain (e.g. stackexchange.com, stackoverflow.com, etc).  If you see any issues… Good luck, because you probably can't log in to report them here. =) But seriously, let us know via the contact form linked at the bottom of any page. If you are able to log in, report issues here on meta as normal. So, in conclusion… I know it is possible for a group $G$ to have normal subgroups $H, K$, such that $H\cong K$ but $G/H\not\cong G/K$, but I couldn't think of any examples with $G$ finite. What is an illustrative example? What are the current travel restrictions on individuals entering the United States from regions affected by Covid-19? I'm running an SSH server on my personal computer. The log had many people(or bots?) repeatedly trying to log in to my server (that is before I changed the default port), which made me a little freaked out. I was worried about their dictionary attacks or brute force password guessing.  But then if you type wrong password (or wrong username), the server waits for about 2 seconds before it asks for password again. So an attacker can try one password per 2 seconds. So I concluded that these attacks aren't that great a threat (as long as your password does not consist of dictionary words.) Am I correct? Do you ever center AND standardize variables in multiple regression? It seems as if standardization would automatically center variables...is this true? Omission of "the" in "elected him president" and "made captain"