setting time limit for Runnable thread in java?
Killing thread after some specified time limit in Java
In what cases does the gerund stemming from a transitive verb take the direct object of that verb and when is a prepositional complement used?  For example:    Brown's deft painting of his daughter is a delight to watch (it is a delight to watch while Brown deftly paints his daughter). Painting his daughter is an outlet for his energy. Securing safety for prisoners is the main problem for the penitentiary system. The widely discussed problem of the securing of prisoners' safety was given priority. Does a first generation iPod touch have the ability to download apps and use emojis? I am getting a 1st gen iPod touch for a friend and I was wondering if you can download like apps and games on it and if it has emojis? It would help to get an answer before I buy it! Apply SP3 on SQL Server 2012 AlwaysOn AAGs CreateService get error: ERROR_INVALID_ADDRESS (0x000001e7) When can a (finite) group be written as the quotient of some other group by its center? So if I'm given $H$, when I can conclude there is a group $G$ such that $H\cong G/Z(G)$? It's easy to show that non-trivial cyclic groups are not of this form. More generally, any group with the property that all finitely generated subgroups are cyclic (e.g. $\mathbb{Q},\mathbb{Q}/\mathbb{Z}$) cannot be of this form. Are there are any others? How can I show a leading + sign in siunitx S column? I'm using siunitx's S columntype to align numbers in a table. The numbers are percentage values which should all have a preceding sign (some - and some +).  The numbers with a "-" are shown with a sign, the "+" sign vanishes as siunitx processes the numbers.   How can I keep the sign of the numbers including the "+" sign? Detecting superfluous #includes in C/C++? I know that if the moment generating function of two distribution converges to the same function then the two distribution converges in CDF. But how can we prove this thing explicitly ? A non orientable closed surface cannot be embedded into $\mathbb{R}^3$ $\Bbb Z^\ast$ What is this notation? What does $\Bbb Z^\ast$ mean? I would think some subset of the integers but I cannot find a definition. Thank you. How to select all faces with the same material? Email Templates: Conditional Greeting Based on Time of Day I'm looking for one word which describes what a student who missed classes needs to do in order to complete his missing.   For example if he missed biology class he needs to seat with the teacher and study this missed class together with her and then he get the mark for this missed class. Someone -who isn't native English speaker- told me that it's called "rework". But I looked for it in some dictionaries (such as ) and I didn't find such definition.   : "SCHEDULE of reworks of missed classes" Questions like  dealing with Ancalagon in particular, and Middle-earth's dragons in general, clearly show that Ancalagon was ridiculously, absurdly, unimaginably enormous.      The non-canonical image above shows one person's impression of how the different dragons of Middle-earth stacked up, with Smaug looking absolutely tiny at the far left, and Ancalagon on the right, too big to even fit in the picture.    Below, a presumably canonical picture, painted by Tolkien himself, shows Smaug in relation to Bilbo.  The rough measurements I took from this image suggest that Smaug is about 11 times longer than Bilbo is tall.  Depending on how tall Bilbo is - almost certainly somewhere between 3'6" and 4' tall - Smaug is approximately 38-44 feet long.      If the first picture is even vaguely accurate, Ancalagon would appear to be a minimum of something like 720 feet long from the tip of his nose to the end of his tail:  the visible portions of his head and body are at least 6 times longer than Smaug is from end to end, and we have to assume that the portion of his body that is out of frame is at least 3 times longer still, perhaps even 4 times or more (so the upper range of his length might exceed 1,000 feet).  Does Tolkien give us any way to estimate how big Ancalagon was?  It isn't his normal practice to describe things in great detail, I realize, but he often gives a few hints that allow for some rough approximation to be made.  Does anything he says suggest that the first image is anything like what he had in mind?  Note:  I haven't read anything about Ancalagon from Tolkien's own pen, except a few quotes on this site;  the most important bit of information I've gleaned is that he smashed 3 volcanoes to pieces when he died (or something like that).  How accurate is this, and what else did Tolkien say?    This question is not a duplicate of "", because none of the answers to that question address Ancalagon's size in any detail - except my own, which is based on what little information I was able to glean from the two pictures I included in this question.  All the other answers address how Ancalagon was killed, not how big he was.  I have no interest in how he died, only how big he was, or rather, what hints we can find that might give some indication of how big he was.  I wouldn't ask this question, linking that question in my own, if it contained the information I am interested in.    Note 2:  Regarding the relative sizes and impressiveness of Smaug and Ancalagon:  Imagine a meeting between Smaug and Ancalagon in Dragon Heaven: Smaug: "How'd you die?" Ancalagon: "A flying boat full of fire made by the Angels and driven by a Magic Elf smashed into me, so I fell onto a mountain and broke it, and I died. The Magic Elf lives in outer space now, and the boat turned into a star. How'd you die?" Smaug: "Um... Some dude shot me with an arrow." Software was blocked from opening because it is not from an identified developer I went to run LibreOffice on my OS X 10.9 and it would not let me install it. It said it was from an unidentified developer. I'm aware of the security features of the Mac and went to System Preferences to allow the software to run.   When I opened this setting I saw a button that said, '"LibreOffice" was blocked from opening because it is not from an identified developer.' and there was a button next to it that said "Open Anyway". I clicked this button and nothing happened. I clicked it multiple times, like a hundred, out of frustration. Is there something else I need to do? Could someone verify this is not a bug?   UPDATE: I've included the photo below of what my System Preferences screen looked like and the button I pushed that didn't work.  UPDATE II: So I tried opening the application again and went into the system preferences and pressed the "Open Anyway" button again and nothing happened at first but a few minutes later while I was typing an email something flashed across my screen, possibly another dialog (or more likely a chewpacabra), but it quickly disappeared and the next thing I know LibreOffice launched! "Next tag badge" panel score and answers counter discrepancy On the "Next tag badge" panel of  for C# tag, I see:      92/100 score   88/20 answers     But, when I open the "Select your next badge" panel, there's:     97/100 score   90/20 answers       I'm not sure which one is correct. But I believe that both displays should show the same counts.  The discrepancy is not due to a caching, I've noticed it the first time many weeks ago.  For these particular current counts: I have a single C# answer with 3 votes only in the last 5 days, last upvoted 13 hours ago (2015-10-12 19:30:05Z). So it should not cause the 5 votes and 2 answers difference.  I believe that the counters on the "Select your next badge" are correct and the counters on the "Next tag badge" are wrong, as I have:     Asked 1 non-wiki question with a total score of 6. Gave 90 non-wiki answers with a total score of 97.       Today (2015-10-16), the "Next tag badge" got bumped to 97/100. But "Select your next badge" shows 98/100 already. Checking to see if a DateTime variable has had a value assigned Bash variable scope Please explain to me why the very last echo statement is blank? I expect that XCODE is incremented in the while loop to a value of 1:  #!/bin/bash OUTPUT="name1 ip ip status" # normally output of another command with multi line output  if [ -z "$OUTPUT" ] then         echo "Status WARN: No messages from SMcli"         exit $STATE_WARNING else         echo "$OUTPUT"|while read NAME IP1 IP2 STATUS         do                 if [ "$STATUS" != "Optimal" ]                 then                         echo "CRIT: $NAME - $STATUS"                         echo $((++XCODE))                 else                         echo "OK: $NAME - $STATUS"                 fi         done fi  echo $XCODE   I've tried using the following statement instead of the ++XCODE method  XCODE=`expr $XCODE + 1`   and it too won't print outside of the while statement. I think I'm missing something about variable scope here, but the ol' man page isn't showing it to me. I have an itemized list:  \begin{itemize}     \item Lorem     \item Ipsum     \item Sit     \item Dolor     \item Amet \end{itemize}   I want to create an accolade on the right side of 'Lorem' and 'Ipsum', and add a bit of text at the point of the accolade. The level of this text should be between the first and the second line. How can I get this done? Is there a consensus in the mathematical community, or some accepted authority, to determine whether zero should be classified as a natural number?  It seems as though formerly $0$ was considered in the set of natural numbers, but now it seems more common to see definitions saying that the natural numbers are precisely the positive integers.