In the documentation to DBCC SHRINKDATABASE, Microsoft is warning to run the command because it's i/o expensive. However, in the documentation to DBCC SHRINKFILE, there is no such warning. Now when we use simple recovery and basically have only one database file, is it better to run DBCC SHRINKFILE or DBCC SHRINKDATABASE?
DBCC ShrinkDatabase() DBCC ShrinkFile()    Do I need to run both DBCC commands in order to shrink the database? What is the difference between these two above?
I have a 2 year old son and another baby on the way. I just recently found out I'm pregnant but not sure how far just yet. My son rammed into my stomach like he is always doing but this time it made me start having small pains in my stomach. I rushed to the bathroom to make sure there wasn't any bleeding.  I'm concerned his rough play could hurt the fetus if it continues. How should I put a stop to it? Archive by Year How to use resistors? I have a power supply of 5 volts @ 1A. I want to reduce the current from 1A to 250mA. Which resistor should be use?   I tried this equation(Ohm's Law):  R = V / I  = 5/(0.75)  = 6.66 Ohms.  I tried the 6.66 Ohm resistor but it only reduce few mili Amps. Interpretation of ROC curve I have a ROC curve like the figure below:   What can be inferred given this kind of curve in general?  What are the differences of states 1, 2 and 3 in the figure?  What causes the diagram to jump straight from state 1 to state 3? Most of the ROC curves on the internet look like the figure below: I was working on a tower and painted my own texture for it. I saved halfway though and took a break. When I returned to my little project, I could paint on the image and it shows up in the material view but not the render. I did everything in my power but still couldn't understand why?  I have used:   Nodes, including mapping and insert UV coordinates. Unwrap UVs Used lights Deleted and replace nodes Deleted and replace Mat Removed image and replace it Reload image Painted on mesh   Even though use blender, I am not a programmer. So I find it really helpful if someone could give me an answer. Show that the set $\mathbb{Q}(\sqrt{p})=\{a+b\sqrt{p}; a,b,p\in\mathbb{Q},\sqrt{p}\notin \mathbb{Q}\}$ is a field  I am having a little trouble proving that for each non-zero $b\in\mathbb{Q}(\sqrt{p})$, there is $d\in\mathbb{Q}$ such that $b\cdot d=1$.  My attempt:  Let $b=a_1+b_1\sqrt{p}$  Let $d=a_2+b_2\sqrt{p}$  We want $$b\cdot d=(a_1+b_1\sqrt{p})(a_2+b_2\sqrt{p})$$ $$=a_1a_2+a_1b_2\sqrt{p}+a_2b_1\sqrt{p}+b_1b_2p$$  $$=(a_1a_2+b_1b_2p)+(a_1b_2+a_2b_1)\sqrt{p}$$ $$=1$$  Am I following the right approach? What should be my next step Unary operator expected #!/bin/bash  SUBJECT="WARNING CPU USAGE HIGH" TO=gmail id MESSAGE=/tmp/messages echo "#######################" &gt; $MESSAGE echo "CPU statistics as follows.." &gt;&gt; $MESSAGE mpstat &gt;&gt; $MESSAGE echo "#######################" &gt;&gt; $MESSAGE CPU_USAGE=$(top -b -n1 | awk '/^Cpu/ {print $2}' | cut -d. -f1) [ $CPU_USAGE -gt 85 ] &amp;&amp; mail -s "$SUBJECT" "$TO" &lt; $MESSAGE`   ./cpu.sh: line 11: [: -gt: unary operator expected What might be the reason I've read many years ago in books, that the brain has no nerves on it, and if someone was touching your brain, you couldn't feel a thing.  Just two days before now, I had a very bad migraine, due to a cold. It's become better now, but when I had it I felt my head was going to literally split in half, as the pain was literally coming from my brain.  So it lead me to the question: How come people can get headaches if the brain has no nerves? How can I reset all the bind keys in my Bash? I bound some keys by mistake, and they don't work any more, such as HOME, END, UP, DOWN, LEFT, RIGHT.  Is there a way to reset all the bound keys to their original state? Where can I find historical data on arrival and departure times of a particular flight? Where can I find historical data on flights, specifically Delta international flights?  I need to find out about cancellations, diversions and any other flight data pertaining on particular route at a given time.  This source has to be official and stand up to legal scrutiny. How to find limit as $x \to 0$ of $x\sin(1/x)$?    For $x^2\sin(1/x)$, I know it's $0$ since by the Squeeze theorem, $-x^2 \le x^2\sin(1/x) \le x^2$, but for $x\sin(1/x)$, I run into some problems when applying Squeeze theorem. Evaluating the indefinite integral $ \int \sqrt{\tan x} ~ \mathrm{d}{x}. $ I have been having extreme difficulties with this integral. I would appreciate any and all help. $$ \int \sqrt{\tan x} ~ \mathrm{d}{x}. $$ Why is there an emission of gamma rays? When a spontaneous radioactive reaction happens, there is an emission of gamma rays (in most cases) What causes this emission? Why does Li-Po battery voltage drop under load? I have very low background in electronics.  I have a Li-Po battery connected to an electric motor. The question is:   Why does battery voltage drop under load? Why is each cell of a Li-Po battery limited to 3.0 V (discharging)? Why is each cell of a Li-Po battery limited to 4.2 V (charging)? Why does the product topology allow proper subsets for only finitely many elements? Is the energy density of vacuum uniform in the whole universe? Is it possible to install an earlier version of Skype on Windows 8? Windows 8 skype is terrible.  They've removed many buttons, most of the preferences, and have in general made it impossibly oversimplified and difficult to use.  Old Skype was fine when I had windows 7.  Is there any way to get it back on Windows 8? This is a very simple question but I believe it's nontrivial.  I would like to know if the following is true:      If $R$ and $S$ are rings and $R[x]$ and $S[x]$ are isomorphic as rings, then $R$ and $S$ are isomorphic.    Thanks!  If there isn't a proof (or disproof) of the general result, I would be interested to know if there are particular cases when this claim is true. Proof that $ p $ | ${ p^n \choose k } $ for any prime $p$ and $ k < p^n$ I know how to prove the fact that $ p$ | ${ p \choose k } $ (when writing it as a fraction, $p$ cannot be divided by any of the $1\times2\times...\times k$ or $1\times2\times...\times(p-k)$ because $p$ is prime).  When I try to apply the same rationale for $ p$ | ${ p^n \choose k } $ I get stumped because $p^n$ is in fact divisible by one of the $k! = 1\times2\times...\times k$, where $0 &lt; k &lt; p^n$.  If we take the example of $2^3$ and $k = 7$, we can easily see that $k! = 1 \times 2 \times ... \times 6 \times 7$, and $2$ clearly divides $2^3$.  How else can I approach this? Akhil showed that the  is the same as the continuum, using as a step the observation that continuous functions that agree at rational points must agree everywhere, since the rationals are dense in the reals.  This isn't an obvious step, so why is it true?