App keep on crashing
What is a NullPointerException, and how do I fix it?
Direct link for PDF files in SkyDrive/OneDrive I want to make a direct link to a document at SkyDrive, so that I'll see only the PDF at the browser, not any of the SkyDrive chrome.  For example, if you click , you will go automatically to the PDF file.  Is there any way to do this? How can I manually install a package on MiKTeX (Windows) A person that professes discrimination based on race is a racist.  What is the word for defining a person that discriminates based on culture (pretty sure it is not culturist) or social habits?  E.g., Eric Cartman doesn't like hippies, he discriminates against them. But a hippie is not a race, an ethnic, a religion or a nationality. It is a life style not related to any of these. Parenthesis vs brackets for matrices When I first learned linear algebra, both the professor and the book used brackets like [ and ] to enclose matrices. However, in my current differential equations textbook, matrices are enclosed by parenthesis, and I suddenly realize everybody else are using them too.  So are brackets/parenthesis for enclosing matrices always totally interchangeable? Finder sidebar flashing text and high CPU load since El Capitan After update to OS X 10.11 I started having these bugs:   Finder sidebar text flashing  Very high CPU load:      I have Macbook Pro Retina 13" Mid 2014  I reset NVRAM.  I deleted com.apple.finder.plist, it didn't help.  Also I did this: , no longer flashes. Can this statistic be shown not to be sufficient for $\theta$? This problem comes from , who do not rigorously demonstrate (in their solution key) that the statistic is not sufficient.  Let $X_1,\dots,X_n$ be a random sample from a population with PDF $f(x|\theta)=\theta x^{\theta-1} \cdot 1_{\{x\in(0,1)\}}$ for $\theta&gt;0$. Show that $\sum_i X_i$ is not sufficient for $\theta$.  If you write out the PDF $p(\vec{x}|\theta)$ of the random sample, it is clear by the factorization theorem that $\prod_i X_i$ or $\sum_i \log(X_i)$ are sufficient for $\theta$; the PDF $p$ also suggests $\sum_i X_i$ is not sufficient for $\theta$. However, to rigorously demonstrate this, we need to analyze $p(\vec{x},\theta)/q(T(\vec{x},\theta)$, where $p$ is the distribution of sample $\vec{x}$, $q$ is the distribution of the statistic $T(\vec{X})=\sum_i X_i$. But finding the distribution of $T(X)=\sum_i X_i$ seems impractical. I have observed that $f$ is the PDF of a Beta($\theta$,1) distribution, but checking online, the distribution of the sum of Beta random variables doesn't appear to have a closed form. Are there any alternative routes (e.g., showing there is no factorization involving $T(\vec{X})$)? Did C&amp;B leave out a full explanation that $\sum_i X_i$ is not sufficient because none actually exist? Can somebody explain "leveraged debt investment positions" and "exposures" in this context for me, please? "The strong bond performance has led to a surge in leveraged debt investment positions that are ultimately funded by the banks' interbank exposures and WMPs. But nobody really knows how levered these positions are, who has financed them, and by how much," S&amp;P said. "The contagion risks for the financial sector could be high."  source: fitting a smaller range when we bought our house, it had a very used 40" gas range. now that range has died. replacing with a new 40" range is very pricey ($2k+), and our cooking needs don't justify the size anyhow.  i'm looking for ideas on how to fit a smaller range. i would imagine that extending the counter top and cabinets would be a pretty extensive change. we've found we can get a 36" range for around 1/2 the cost. would it be feasible to add some sort of storage along side the smaller range to fill in the space?  thanks. i know this is an open-ended question with no specific answer, i'm just looking for ideas. Default currency symbol I'm looking for a way to get the Default currency symbol (in a none-multi-currency org) of the salesforce org locale (to have it displayed on a visualforce page in a field that can't be &lt;apex:inputField&gt; or &lt;apex:outputField&gt;) preferably query-able from apex (via the database, a describe or whatever) and then again the actual symbol, meaning € for Euro, $ for dollar, and so on...  There must surely be some sort of mapping hidden in the code somewhere salesforce does this via the input/outputfields if bound to an sobject of type currency  Can anyone point me in the right direction? How to play MP3 files using Rhythmbox? Why is it possible to answer a question twice? This is the proof, which I mostly understand except for one bit:  You have $h_1 \in H_1$ and $h_2 \in H_2$.   We also have $h_1^{-1}(h_2^{-1}h_1h_2) \in H_1$, because $h_2^{-1}h_1h_2 \in h_2^{-1}H_1h_2 = H_1$. Similarly, we have $(h_1^{-1}h_2^{-1}h_1)h_2 \in H_2$. Therefore  $$ h_1^{-1}h_2^{-1}h_1h_2 \in H_1 \cap H_2 = \{1_G\} $$  and so $h_1^{-1}h_2^{-1}h_1h_2 = \{1_G\}$. Let's first multiply everything on the left by $h_1$  $$h_1^{-1}h_2^{-1}h_1h_2 = \{1_G\}$$ $$ h_1 h_1^{-1}h_2^{-1}h_1h_2 = h_1 \{1_G\}$$ $$ h_2^{-1}h_1h_2 = h_1 \{1_G\}$$   Multiply both sides on the left by $h_2$ giving us  $$ h_1h_2 = h_2 h_1 $$  The bit I don't get is right at the beginning. Why is this correct: "We also have $h_1^{-1}(h_2^{-1}h_1h_2) \in H_1$, because $h_2^{-1}h_1h_2 \in h_2^{-1}H_1h_2 = H_1$." How do I (or can I) SELECT DISTINCT on multiple columns? I need to retrieve all rows from a table where 2 columns combined are all different. So I want all the sales that do not have any other sales that happened on the same day for the same price. The sales that are unique based on day and price will get updated to an active status.  So I'm thinking:  UPDATE sales SET status = 'ACTIVE' WHERE id IN (SELECT DISTINCT (saleprice, saledate), id, count(id)              FROM sales              HAVING count = 1)   But my brain hurts going any farther than that. Where is the known_hosts file for OpenSSH for Windows? Simplify a combinatorial sum Why is $\sum_{k=0}^n (_k^n) 2^k$ simplified as $3^n$ and not just $2^n$ ? The answer uses the binomial theorem as a solution: let $a=1$ and let $b=2$. So $1+2 = 3$. But since $1+2 = 3$ why do we not use $1+1 = 2$? "Belongs on" comments Why would a partition be in use by the system if it isn't mounted? I've been migrating my system from btrfs to ext4 after running into performance issues with VMs. I have two hard drives in my laptop to work with. I've successfully moved my home partition, but the same steps I used aren't working for root.  Progress so far:  I've dd'd my root partition from /dev/sda3 into /dev/sdb3. I modified /etc/fstab to the following:  $ cat /etc/fstab #  # /etc/fstab: static file system information # # &lt;file system&gt; &lt;dir&gt;   &lt;type&gt;  &lt;options&gt;       &lt;dump&gt;  &lt;pass&gt; # UUID=95f13c34-96ca-49e3-bcb2-ff594df31506 /dev/sdb3               /               btrfs           rw,noatime,ssd,space_cache,discard      0 0  # UUID=0fe04f59-599f-41e2-ac30-2ad0f17a9727 /dev/sda2               /boot           ext2            rw,relatime     0 2  # UUID=44741e0f-924a-4841-80ef-2132bef84182 /dev/sda4               /home           ext4            rw,noatime,discard      0 0   and run sudo mkinitcpio -p linux. It seems to work. I'm able to boot by mounting the partition on the second disk. df shows:  $ df Filesystem      Size  Used Avail Use% Mounted on /dev/sdb3        28G   18G  9.8G  65% /   So, clearly, sdb3 is mounted, not sda3. Here's the problematic step: When I try to format sda3, which is supposedly unused, I get the following:  $ sudo mkfs.ext4 /dev/sda3 [sudo] password for stew:  mke2fs 1.42.11 (09-Jul-2014) /dev/sda3 contains a btrfs file system Proceed anyway? (y,n) y /dev/sda3 is apparently in use by the system; will not make a filesystem here!   sda3 is in use. How and why could it possibly be in use?  As per casey's comment, the output of mount:  mount | grep sd /dev/sdb3 on / type btrfs (rw,noatime,ssd,discard,space_cache) /dev/sda4 on /home type ext4 (rw,noatime,discard,data=ordered) /dev/sda2 on /boot type ext2 (rw,relatime)   As per Warwick's comment, unmounting:  $ sudo umount /dev/sda3 umount: /dev/sda3: not mounted   Mounting and umounting sda3 elsewhere works successfully, but changes nothing.  Update: More fishy behavior:  $ mount | grep sd /dev/sdb3 on / type btrfs (rw,noatime,ssd,discard,space_cache) /dev/sda4 on /home type ext4 (rw,noatime,discard,data=ordered) /dev/sda2 on /boot type ext2 (rw,relatime) $ sudo mount /dev/sda3 mnt [sudo] password for stew:  $ mount | grep sd /dev/sda3 on / type btrfs (rw,noatime,ssd,discard,space_cache) /dev/sda4 on /home type ext4 (rw,noatime,discard,data=ordered) /dev/sda2 on /boot type ext2 (rw,relatime) /dev/sda3 on /home/stew/mnt type btrfs (rw,relatime,ssd,discard,space_cache)   After mounting sda3, sdb3 is no longer mounter. Weird, huh?  As per mikeserv:  $ rmmod btrfs rmmod: ERROR: Module btrfs is in use   This is very much expected, since sdb3 is btrfs and supposed to be mounted to root. From my mkinitcpio.conf file:  MODULES="" HOOKS="base udev autodetect modconf block filesystems keyboard fsck" Is it possible for an American to get a Chinese visa in Hong Kong? Why are hexadecimal numbers prefixed with 0x? How to avoid getting shocked by static electricity? sometimes I get "charged" and the next thing I touch something that conducts electricity such as a person, a car, a motal door, etc I get shocked by .  I'm trying to avoid this so if I suspect being "charged" I try to touch something that does not conduct electricity (such as a wooden table) as soon as possible, in the belief that this will "uncharge me".   Is it true that touching wood will uncharge you? How and when do I get charged? I noticed that it happens only in parts of the years, and after I get out of the car...