Showing Progressdialog in asyncTask
Activity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@44f72ff0 that was originally added here
Cortana Search is not finding applications on Windows 10 For the past several versions (since Windows Vista, I think), if you hit the Windows key and start typing, Windows will search for applications.  Since upgrading to Windows 10 with , she is only hit or miss at finding applications. And she doesn't do partial searches, either.  Some examples:   WinKey + type "Paint" does not find "mspaint". Instead it suggests some applications from the store. WinKey + type "Excel" does not find Excel. Nor does typing "Word" find Word. However, typing OneNote finds OneNote.   What is the reason for this behavior and how I can get Cortana to find the applications installed on my machine again? Is there a setting I am missing?    If I browse to "C:\ProgramData\Microsoft\Windows\Start Menu\Programs" I can see that the shortcuts for these applications all still exist. But Cortana is not finding them. Everything from the Microsoft Office applications to  to  to hundreds of other applications I have installed.  Where can I set which folders Cortana indexes?    As you can see in the screen shot below, this Start Menu folder is, indeed, indexed:    However, none of these applications are coming back as search results from the "start" menu.  It may be related to  as well.  I did a brand new install of Skype (for desktop), and it shows up nowhere in the start menu. And typing in "Skype" to search for the application does not find it. But the shortcut to Skype is definitely in this location:  C:\Users\Patrick\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Skype     EDIT  The latest Windows 10 update (Threshold 2) has solved this issue for me. Cortana now finds all my files with no issues. Previously my only solution was to use , I've been able to uninstall that now and use the standard Windows Start menu. Is it possible to get the ID of a Contact which is part of a Person Account?  I have a custom object which has a custom field referencing the Person Account, though it seems to be referencing the Contact directly. I have created a button which I am using to pass the ID into a Visualforce Page.  With the Insert Field drop-down on the create/edit button page I can put in {!Account.Id} or {!Contact.Id} but neither of these work. The Account ID is placed in the URL but is not the correct ID and the Contact ID is blank, which I assume is because the button is on a Person Account page and not a Contact Page. YA novel about dystopian future with non-human overlords and teenage heroes How do I survive in the Underworld? How do you survive the underworld with max health, an amethyst staff and a godly ice blade? I always die from the enemies and hellstone, but all the enemies are a bit stupid because they stay away from you (demons and fire imps do it). I always enter hell and land on hellstone (there is a  hellstone brick building under my hell-evator). I just die in the first 10 seconds. It's a bit annoying. Weapon damage bonuses and critical hits Proof of $\frac{(n-1)S^2}{\sigma^2} \sim \chi^2_{n-1}$ It's a standard result that given $X_1,\cdots ,X_n $ random sample from $N(\mu,\sigma^2)$, the random variable $$\frac{(n-1)S^2}{\sigma^2}$$ has a chi-square distribution with $(n-1)$ degrees of freedom, where $$S^2=\frac{1}{n-1}\sum^{n}_{i=1}(X_i-\bar{X})^2.$$ I would like help in proving the above result. Thanks. Let $A =$ {$(x,y,z) \in \mathbb{R}^3 |$  $x,y,z \geq 0$ and $x+y+z \leq 1$}.   Compute the integral $$\int_{A} x^m y^n z^p (1-x-y-z)^q dx dy dz$$  using new variables $u = x+y+z$, $v=\frac{y+z}{x+y+z}$, $w=\frac{z}{y+z}$.  Also, although it was not stated in the problem, I'm assuming that $m,n,p,q \in \mathbb{Z}$.   Since $f(x,y,z)=(x+y+z, \frac{y+z}{x+y+z}, \frac{z}{y+z}) = (u,v,w)$, $f^{-1}(u,v,w) = (u(1-v), uv(1-w), uvw)$  Thus J $= \begin{vmatrix} 1-v &amp; -u &amp; 0\\  v(1-w) &amp; u(1-w) &amp; -uv\\  vw &amp; uw &amp; uv\\ \end{vmatrix} = u^2v$  Skipping the part where I find the new limits of integration, and skipping some algebraic simplification we have:  $$\int_{A} x^m y^n z^p (1-x-y-z)^q dx dy dz$$   $$= \int_{0}^1 \int_{0}^1 \int_{0}^1 u^{m+n+p+2}(1-u)^q v^{n+p+1}(1-v)^mw^p(1-w)^n du dv dw$$  However, I have no  idea where to go from here. Any help would be much appreciated. How do you join on the same table, twice, in mysql? Run Script on Wakeup? How can I safely create a nested directory in Python? 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? Note: this is intended to be a canonical question about summoning sickness.  "Summoning sickness", broadly, is the rule that stops you from attacking or paying {T} costs with a creature that you just played. But how exactly does it work? How does it interact with other rules and effects?  For example, if I'm trying to figure out how a creature is affected:   Does the status matter (tapped/untapped, face down/face up, etc.)? What if it came into play, but I didn't cast it? What if it's a token? What if it was on the battlefield when my turn started, but it wasn't a creature? What if it stops being a creature? What if it's a creature and also another card type? What if it's a double-faced card that just transformed? What if it changes control? What if it's a copy of another creature? Which of the creature's activated abilities can I use? Are any of its other abilities affected? Can I tap the creature to pay a cost that is not a {T} cost?   (These examples are primarily taken from questions about summoning sickness that have already been asked on the site) Partitions of $n$ into distinct odd and even parts proof Can noindex tags on several pages affect the overall SEO or ranking on Google? Some SEO Gurus assured me that noindex attributes are good to devalue the unimportant pages.   When I asked in the moz Q and A, they're quite sure that having noindex on the bulk of the articles on the website can harm overall SEO ranking.   Which is true? Keyword for the outer class from an anonymous inner class In the following snippet:  public class a {     public void otherMethod(){}     public void doStuff(String str, InnerClass b){}     public void method(a){         doStuff("asd",             new InnerClass(){                 public void innerMethod(){                     otherMethod();                 }             }         );     } }   Is there a keyword to refer to the outer class from the inner class?  Basically what I want to do is outer.otherMethod(), or something of the like, but can't seem to find anything. If $2^n - 1$ is prime from some integer $n$, prove that n must also be prime. What is the Page Object Pattern in Selenium WebDriver? Howto wildcard SELECT * to query all fields of objects in APEX? I have created sObject and I need all the fields and I have many. Is there a way I can directly get all of them rather then typing each one of them. How to draw Venn diagrams (especially: complements) in LaTeX What I am up to is to write some exercises dealing with logical formulas for my students, like:     And the students should draw these formulas on . At the end of the lesson, I really would like to print the correct answer for them. I found a great resource on a forum thread at , which helped me a lot to make up some Venn diagrams with tikz, but have some problems with visualizing complements, like ~A.  A simple, modified version of the TeX file found on the forum linked above, can be seen below, which produces the following expression:    \documentclass{letter}   \usepackage{tikz}   \def\firstcircle{(90:1.75cm) circle (2.5cm)}   \def\secondcircle{(210:1.75cm) circle (2.5cm)}   \def\thirdcircle{(330:1.75cm) circle (2.5cm)}   \begin{document}     \begin{tikzpicture}       \begin{scope}     \clip \secondcircle;     \fill[cyan] \thirdcircle;       \end{scope}       \begin{scope}     \clip \firstcircle;     \fill[cyan] \thirdcircle;       \end{scope}       \draw \firstcircle node[text=black,above] {$A$};       \draw \secondcircle node [text=black,below left] {$B$};       \draw \thirdcircle node [text=black,below right] {$C$};     \end{tikzpicture}   \end{document}   Which looks like:    Could anyone please help me out plotting/defining some expressions dealing with complements? A nice example could be:    That should look like: (image from )    I do not insist on the red color :)  I would like to use the simplest possible solution, as I would like to mass generate the exercises with the help of . So any suggestion dealing with gnuplot, R or any other opensource packages is welcome. Thank you!    UPDATE (25/01/2011): added details based on answers.  Thank you @Leo Liu, you helped me a lot! I modified a bit the code you suggested to be able to color the area outside of the two circles also (in the H universe), but have no idea how to set a background to that polygon also. The code:  \begin{tikzpicture}[fill=gray] % left hand \scope \clip (-2,-2) rectangle (2,2)       (1,0) circle (1); \fill (0,0) circle (1); \endscope % right hand \scope \clip (-2,-2) rectangle (2,2)       (0,0) circle (1); \fill (1,0) circle (1); \endscope % outline \draw (0,0) circle (1) (0,1)  node [text=black,above] {$A$}       (1,0) circle (1) (1,1)  node [text=black,above] {$B$}       (-2,-2) rectangle (3,2) node [text=black,above] {$H$}; \end{tikzpicture}   And the image generated:    I will also look for even odd rule in the near future which does not make sense for me at the moment but looks really simple and promising! Shadows along edges of mesh in 3D View How do comment @replies work?