Create a separate frame for JProgressBar
JProgressBar in new thread JDialog
Sum of items in a collection What does "...from nonmagical attacks not made with silvered weapons" mean? I'm sure your first thought is, that's perfectly clear.  Unfortunately my group who aren't normally rules lawyers disagree.  Party encounters a  (MM p.211).  It has:     Damage Immunities: bludgeoning, piercing, and slashing from nonmagical   attacks not made with silvered weapons.   My reading of that is if the weapon has to be magical and silvered to hurt it.  So a +1 silver dagger will hurt it, but a +1 regular dagger or a +0 silver dagger won't.  The group's interpretation was that all three of those weapons would hurt and only a +0 regular dagger would be ineffective.    I would also note my interpretation would mean something like blade barrier would also not harm it since you could argue they're magical blades but nothing indicates that they're silvered.    This also appears to be the same wording for some undead so I'm not looking for a lycanthrope specific interpretation but something general for every time that wording is used.    Thanks in advance. I've always wondered what the deal was with Darth Vader's "crotch door". Does he use a catheter (due to all his injuries) or does he simply flip the door up and whip it out? I've never really seen the the back of his suit under his cape to see if there a corresponding "back door".   It doesn't look like he carries a catheter bag nor a colostomy bag in his suit or anything.     Is this addressed anywhere either in canon or legends sources? Differences between the introduction of a sandwich thesis and a paper I would like to know what are the main differences between the introductory part of a paper and of a thesis. My thesis would be a sandwich type, so I would have to wrap everything there.  Some of the differences are:   Longer in thesis. Deeper in thesis. Extended definition of key terms, concepts and methodology in thesis. Clear definition of the whole goal in thesis, whereas paper smaller goal.   To narrow the possible answers, I do research on the molecular aspects of the infection steps of a pathogenic swine bacteria. Also develop strategies to block infection by using vaccines. Which one is correct?   Neither my friend nor I feel my best in the morning. Neither my friend nor I feel her best in the morning. Neither my friend nor I feel our best in the morning.    I already know that the verb agrees with the subject closer to the verb:   Neither my friends nor my brother understands me. (correct) Neither my friends nor my brother understand me. (wrong)   AND   Neither my brother nor my friends understand me. (correct) Neither my brother nor my friends understands me. (wrong) When polynomials f(x) and f'(x) are relatively prime, f(x) has no repeated roots. Why? The problem is to show that a polynomial $f(x) \in F[x]$ (F is a field) has no repeated roots if and only if f(x) and f'(x) (the derivative of f(x)) are relatively prime. I've managed to prove one direction of this equivalence (if there are no repeated roots, f(x) and f'(x) are relatively prime), but the other one gives me headaches... can anyone help out? SFDX Pull fails because of AppMenu/AppSwitcher Let $R$ be a commutative ring with unit, $I$ an ideal of $R$ and consider the following three constructions.   The  $R_I$ of $R$ at $I$ (i.e. the localization of $R$ at the multiplicative system $R\setminus I$) gives a morphism $$ f_1:\operatorname{Spec}(R_I)\to \operatorname{Spec}(R)=:X $$ The  $\widehat{R}_I$ of $R$ at $I$ gives a morphism $$ f_2:\operatorname{Spec}(\widehat{R}_I)\to X $$ For the special case $I=(a)$, the localization $R_a$ (i.e. the localization of $R$ at the multiplicative system $\{1,a,a^2,\ldots\}$) gives a morphism $$ f_3:\operatorname{Spec}(R_a)\to X $$   My question is:     What is the geometric meaning of all three constructions and how are they related?   This is what I ''know'' already or describes at least the style of answer I would appreciate. As remarked in the comments, $I$ has to be a prime ideal.   $R\to R_I$ is injective iff $R\setminus I$ contains no zero divisors which is the case if $I$ is a prime ideal. The scheme $\operatorname{Spec}(R_I)$ is the intersection of all the neightbourhoods of $I$ in $X$. This is a little contra-intuitive for me since the last statement sounds like ''$f_1$ is injective'' but the $\operatorname{Spec}$-operator should turn 'injective'' and ''surjective'' around somehow (I know this is literally not true but I only want to get a feeling like ''is contained'', ''is bigger'', ''is smaller'', etc.). $\operatorname{Spec}(R_a)$ is somehow the opposite of $\operatorname{Spec}(R_{(a)})$ (= the intersection of all the neightbourhoods of $(a)$ in $X$) because $\operatorname{Spec}(R_a)$ seems to be something like the union of all the open sets of $X$ not containing the point $(a)$. $R\to\widehat{R}_I$ is injective iff $\cap I^n=(0)$ and this holds very often (e.g. for $R$ noetherian and either an integral domain or a local ring). Hence (this is probably false intuition as remarked before), $f_2$ should be something like a ''projection'' (from something ''big'' into something ''small''). But what is geometrically the difference between localization and completion. I don't have a geometric idea of completion at all.   As remarked by Qiaochu Yuan in the comments below, one should not think of $\operatorname{Spec}$ as injective-surjective switching. TikZ or cryptocode package for cryptographic protocol diagrams Use fixed keyboard for a given app Can a dual national visit USA under VWP after visa refusal for other nationality? Recently I was refused an E-2 visa under Section 214b. To be honest I don't really know why because I have strong ties with my home country (house, bank account, family) so my lawyer sent an appeal to the legalnet and I'm  waiting for an answer.  I have a second nationality that I used to travel in USA within the last 15 months under ESTA. A few days after my E-2 refusal I checked my ESTA status  and it is still authorized.  Can I travel to the States right now or not?  I have a purchased business over there and have to take care of my assets. What is the most elegant way to check if the directory a file is going to be written to exists, and if not, create the directory using Python? Here is what I tried:  import os  file_path = "/my/directory/filename.txt" directory = os.path.dirname(file_path)  try:     os.stat(directory) except:     os.mkdir(directory)         f = file(filename)   Somehow, I missed os.path.exists (thanks kanja, Blair, and Douglas). This is what I have now:  def ensure_dir(file_path):     directory = os.path.dirname(file_path)     if not os.path.exists(directory):         os.makedirs(directory)   Is there a flag for "open", that makes this happen automatically? Can we get an indication comments are hidden between the comments? RegEx: Grabbing values between quotation marks Is there ever a point you aren't following Harry's perspective? In the Harry Potter books, is there ever a point that is not from the perspective of Harry? There are a few times you are inside Voldemort's mind, but that is really just a an extension of Harry's mind.  Is there ever a point where you are in the perspective or the mind of someone other than Harry (as in hearing their thoughts)? Can we omit a duplicated preposition? Is on needed a second time in this sentence?        There is a bad effect either on human health or environment.    There is a bad effect either on human health or on environment. Complex integration with a $\mathcal{C}^1$ function $f$ I am trying to classify using randomForest classification in GEE . However, I always get the error User memory limit exceeded, so I assume the number  of the feature are too large. Nevertheless, I saw many developers can classify even bigger dataset, so I am wondering if there is a better option there? The code can be accessed via  var fire= ee.FeatureCollection('users/spatola/recovery_rf_1712').map(function(feature){     var num = ee.Number.parse(feature.get('CLC_311'));     return feature.set('CLC_311', num);   }) var indices= ['EVI_mean','Dnbr','NBR2_mean','NBR2_min','NBR2_max','EVI_min','EVI_max']; var fire1=  fire.filter(ee.Filter.notNull(indices)); var fire2= fire1.select('Class_R','Dnbr','EVI_max','NBR2_max','imageId') var bands= ['NBR2_max', 'EVI_max']; var classProperty= 'Class_R'; var random= fire2.randomColumn('random'); var split_train= 0.8; var split_test= 0.2; var trainPartition= random.filter(ee.Filter.lt('random',split_train)); var testPartition= random.filter(ee.Filter.gte('random',split_test));  var RFtrained_c= ee.Classifier.smileRandomForest({  numberOfTrees: 100,  minLeafPopulation:2,  seed: 123,  }) .setOutputMode('CLASSIFICATION') .train({     features: trainPartition,     inputProperties: bands,     classProperty: classProperty,     }) print(RFtrained_c); var dict =  RFtrained_c.explain(); var test = testPartition.classify(RFtrained_c) print(test.first()) I am looking for a injective cochain map $\psi: C^*\rightarrow D^*$ such that the map $\Psi^i$ from $C^i$ to $D^i$ is injective, but the map $\psi^*$ from  $H^i(C^*)$ to $H^i(D^*)$ is not injective for any $i\geq0$. Apostrophes for possession: nouns My best friend of the moment - 'Essential Grammar in Use' for elementary students by Raymond Murphy - says that 'we normally use -'s for people.'     I stayed at my sister's house. (not the house of my sister).   Then, bellow in the same unit (64) says that 'we use of... for things, places, etc.'     Look at the roof of that building. (not that building's roof)   After that I thought:  Finally!!! I understand the rules for apostrophes!!!  But soon I lost all that naif excitement when I saw other written examples on the internet that were not following those 'rules'.     I've learnt that we can apply apostrophes to ...     one year's pay   and, finally, amazingly enough ... to , which means ANY kind of nouns (I deduce uncountable nouns are also part of the possibilities). This demolishes what is said in the grammar. So, it seems that eventually:     That building's roof -> is valid   So, now I need your help.    1) Can you tell me the rules concerning the apostrophe to show possession in respect to its usage with nouns? Can we really apply to all kind of nouns? e.g. teeth's, vehicle's, Paula's, forest's, manager's, Ireland's, etc     Scotland's worst drivers   Metadata improves information's accessibility       2) Is there a sense that justifies what is written in the grammar: 'we normally use -'s for people'? or it does not make sense at all?