Terminate thread from thread module I use _thread.start_new_thread to start a thread, but I need to exit it completely on certain occasions. Thread runs a slow built-in function (thats why I cannot return from it), so, in a way, I need to stop that function. Thats why I think to use thread (with that slow function in it), because I know its possible to stop it somehow. But how would I do that with specifically thread, not threading, module? Or how could I exit, lets say, cv2's gaussianBlur function, before it ends?
Is there any way to kill a Thread? Is it possible to terminate a running thread without setting/checking any flags/semaphores/etc.?
How would I use Takeown to take ownership of all folders on one drive? Mobile web refresher, part 2 After a sizeable amount of work we are releasing a new version of the mobile web site, this time focusing on the question and answer page. We have also fixed or implemented a minimal large part of the issues and requests mentioned in the . Changes Question and answer page  SVG icons for upvote, downvote, favorite, comment upvote white background color for legibility general styling issues with notices (they actually exist now) bounty link is now in question menu (next to flag)   Ask question page  general styling and sizing of element use of placeholders where appropriate instead of page text styling of error messages   Pop-ups  Popups are now inlined in the page instead of being sometimes floating and draggable Many overdue styling issues Close button is SVG Flag indicators are readable Buttons   Misc pages  404 page did not exist. Now it does. Login, logout are formatted Pre-ask and pre-answer warnings are now formatted  Bugfixes  made search magnifying glass bigger fixed language in user timeline so it's consistent with the desktop site added login link on top bar made topbar icons ever so slightly smaller  Restating the obvious: send your &lt;3 to  and   for the most excellent design! Feedback , bugs and suggestions while we move to the next iteration? Please mark bugs with Sometimes when I am running a development version of Ubuntu, the Software Updater will tell me that a partial upgrade is needed when I check for updates.  What is a partial upgrade, and why are they necessary? Sometimes users run into problems when doing them, so when should I run a partial upgrade, if ever? Does a linear operator obeying Leibniz rule imply it is a differential operator? Hubble's constant $a(t)$ appears to be changing over time. The fine stucture constant $\alpha$, like many others in QFT, is a running constant that varies, proportional to energy being used to measure it. Therefore, it could be agued that all running constants have 'evolved' over time as the Universe has expanded and cooled. Both the local and global curvature of the Universe changes over time implying that so too does the numerical value of $\pi$. All these things are however constants (well, let's say parameters since they are not really 'constant'.)   In  with astronomer Sir Fred Hoyle, Feynman said "what today, do we not consider to be part of physics, that may ultimately become part of physics?" He then goes on to say "..it's interesting that in many other sciences there's a historical question, like in geology - the question how did the Earth evolve into the present condition? In biology - how did the various species evolve to get to be the way they are? But the one field that hasn't admitted any evolutionary question - is physics."  So have the laws of physics remained form-invariant over the liftetime of the Universe? Does the recent understanding of the aforementioned not-so-constant constants somehow filter into the actual form of the equations being used? Has advances in astronomical observations, enabling us to peer back in time as far back as the CMB, given us any evidence to suggest that the laws of nature have evolved? If Feynman thinks that "It might turn out that they're not the same all the time and that there is a historical, evolutionary question." then this is surely a question worth asking.  NB/ To be clear: this is a question concerning purely physics, whether the equations therein change as the Universe ages, and whether there is any observational evidence for this. It is not intended as an oportunity for a philosophical discussion. Can I disable full-disk encryption? I recently installed Ubuntu 12.10 and it requires a passphrase to boot up (I installed it with an encrypted file system).  Do I have to reinstall to change to a standard unencrypted file system? Does this double sum $\sum_{m=0}^\infty \sum_{n=0}^\infty \frac{m+n+mn}{2^m(2^m+2^n)}$ converge? Allow cancelling of stars from message Currently, the only way to cancel stars in a chat transcript is when the chat-message is visible in the chatroom's sidebar.    However, in a fast-moving, multi-star chatroom, the window of opportunity to cancel can be short, and rapid changes in starring can quickly make this impossible to do in a timely way.  We use stars as markers in moderator chat events (where the Community managers disseminate important information to the moderator teams) as well as for town halls during elections.  Feature request: Allow mods/room owners to cancel stars from the chat message menu box, including in the transcript. What home printer would allow for exact alignment of front and back? Note: I'm not a graphic designer, but this seemed like the most relevant place to post. Feel free to send me off somewhere else if I'm not in the right place.  I would like to make some notebooks with double-sided grid paper that I've already designed, but my printer seems like it doesn't allow for absolutely exact alignment. Even if one side prints nice and straight, the other side will be slightly skewed left to right by one to two millimeters, which I read from an earlier post is a pretty reasonable variance for a home printer. So I suspect it's not possible to get both sides completely aligned on this printer – but if I'm wrong, please let me know how.  What kind of printer would allow for absolutely exact alignment? Is there any difference between inkjet and laser in this regard, or a more expensive printer versus a cheaper one? mysqli or PDO - what are the pros and cons? the least possible value for :$ \lfloor \frac{a+b}{c}\rfloor +\lfloor \frac{b+c}{a} \rfloor+\lfloor \frac{c+a}{b} \rfloor $ I encountered an 'errorUnknown graphics extension: .eps.' I tried to load an .eps picture, but an error occured,      errorUnknown graphics extension: .eps. Why is ROC AUC equivalent to the probability that two randomly-selected samples are correctly ranked? I found there are two ways to understand what AUC stands for but I couldn't get why these two interpretations are equivalent mathematically.   In the first interpretation, AUC is the area under the ROC curve. Picking points from 0 to 1 as threshold and calculate sensitivity and specificity accordingly. When we plot them against each other, we get ROC curve.  The second one is that the AUC of a classifier is equal to the probability that the classifier will rank a randomly chosen positive example higher than a randomly chosen negative example, i.e. P(score(x+)>score(x−)).  (from ) Problem numbering environment Proving that $-a=(-1)\cdot a$ As the title reveals, I want to prove (based on the axioms of field) that $$-a=(-1)\cdot a$$ I've been trying for a while now, but couldn't think of a way to do it and it got me thinking that maybe its does not require a proof, but it doesn't feel right. Any ideas? Interface vs Abstract Class (general OO) Wrap text around wide figure in two column I need to insert a figure into a two column document such that the figure partially spans both columns, and the text wraps around it.  It seems wrapfig does not work for this in two column, pullquote does not seem to either be exactly what I need.  I've tried using minipage with no luck. I tried to post an example of what I need to accomplish but since I am new this forum I cannot.  I'd be happy to send an image if this helps.   Any suggestions would be fantastically helpful! Why is the sky dark at night? The question is the well-known      If there are so many/infinite stars, in every direction, why is it dark at night? Where goes all the light we don't see?    Discussing with a friend we found different answers.   The first (my friend's answer) is that given the fact that in a finite amount of time (in this case, the age of the universe), light can travel only a certain, finite, distance, we cannot see, if they actually exist, stars farther than such distance (about 13 billions of years, I guess). Then he states (or better, I got him notice he implicitly does this)  that within this radius there aren't enough stars to fill the night sky, and that's why we have darkness without sun's light.   The second answer (mine, or anyway the one I heard from a minutephysics YouTube video) is that despite of the big size of the observable universe, cosmological expansion red shifts most of the light out of the visible radiation range, so that the majority of light can't be seen by our eyes at night, while if we use, for example, an infrared camera, we should see a brighter sky, and lenghtening more and more the wavelength at which we observe the sky, we come to the uniform background radiation.  So my question is, what is the right answer? Is it one of the above-mentioned or even a third one?  EDIT: I've seen both answer may be acceptable, but what is the main contributing phenomenon? I don't know how to integrate $\displaystyle \int\frac{1}{x^{4}+1}\mathrm dx$. Do I have to use trigonometric substitution? How does the /proc//exe symlink differ from ordinary symlinks? If I start a process and then delete the binary of it, I can still recover it from /proc/&lt;pid&gt;/exe:  $ cp `which sleep` . $ ./sleep 10m &amp; [1] 13728 $ rm sleep $ readlink /proc/13728/exe                            /tmp/sleep (deleted) $ cp /proc/13728/exe ./sleep-copy $ diff sleep-copy `which sleep` &amp;&amp; echo not different not different $ stat /proc/13728/exe    File: ‘/proc/13728/exe’ -&gt; ‘/tmp/sleep (deleted)’   Size: 0           Blocks: 0          IO Block: 1024   symbolic link   On the other hand, if I make a symbolic link myself, delete the target and attempt to copy:  cp: cannot stat ‘sleep’: No such file or directory   /proc is an interface to the kernel. So does this symbolic link actually point to the copy loaded in memory, but with a more useful name? How does the exe link work, exactly?