How to NTFS compress the system drive?
How to compress entire drive C in Windows including locked files?
How do I completely reset network settings? What is the proper usage of "not only... but also"? I'm trying to figure out how to use "not only... but also" properly. Basically, my goal is to combine two clauses by using "not only".  For negations, I've figured out two styles that both sound correct:   He knew that if he fractures his finger, not only would he not be able to compete in the water polo tournament, he would not be able to take the SAT on Monday, either. He knew that if he fractures his finger, neither would he be able to compete in the water polo tournament, nor would he be able to take the SAT on Monday.   However, I don't know how to form a sentence that does not include a negation while using "not only". Here are a few possibilities that I've considered:   Thanks to his remarkable performance on the SAT, not only was he accepted into Harvard, but he was also given a full scholarship. Thanks to his remarkable performance on the SAT, not only was he accepted into Harvard, but he was given a full scholarship. Thanks to his remarkable performance on the SAT, not only was he accepted into Harvard, he was given a full scholarship. Thanks to his remarkable performance on the SAT, not only was he accepted into Harvard, he was also given a full scholarship.   In those four possibilities, I'm varying the usage of "but" and "also" in the last clause.  What is the proper usage of "not only"? So we have something like:  \documentclass{article} \setcounter{secnumdepth}{2} \setcounter{tocdepth}{2} \usepackage{amsmath}  \begin{document}  \tableofcontents  \section{Brushless Motor Fundamentals} \subsection{Brushless Motor Operation} \subsubsection{DC Motor Operation} Torque is generated in DC motors from the magnetic force, also known as the Lorentz force, which is produced when an electric current is passed through a coil in a magnetic field. This force is given by $F=q[E+(v\times B)]$, where $F$ is the force perpendicular to the coil, $E$ is the electric field in the coil, $B$ is the magnetic field, and $v$ is the velocity of the charged particles in the coil. From mechanics, torque is $\tau=F\times r$.  \section{Brushless Motor Fundamentals 2} \subsection{Brushless Motor Operation} \subsubsection{DC Motor Operation 2} If the electrical force is ignored and the remaining magnetic force is used, with the assumption that $v$ is perpendicular to $B$, we find that $\tau=qvBrsin\theta$.  \end{document}   How to show subsubsections and paragraphs in TOC? Best way to run scheduled tasks Today we have built a console application for running the scheduled tasks for our ASP.NET website. But I think this approach is a bit error prone and difficult to maintain. How do you execute your scheduled task (in an windows/IIS/ASP.NET environment)  Update:   Examples of tasks:   Sending email from an email-queue in the database Removing outdated objects from the database Retrieving stats from Google AdWords and fill a table in the database. When is the vector space of continuous functions on a compact Hausdorff space finite dimensional? I know that the vector space of all real valued continuous functions on a compact Hausdorff space can be infinite dimensional.  When will it be finite dimensional?  And how will I identify that vector space with $\mathbb{R}^n$ for some $n$? Why do the less than symbol () appear wrong as upside down exclamation (¡) or question mark (¿)? When typing &lt; or &gt; in LaTeX and compiling with pdflatex, the less than and greater than symbols appear at upside down exclamation points. I'm not in math mode. Annoying flickering in 16.04 LTS - Chrome I've upgraded from 4.4.0 to 4.4.8 and then 4.5.2 on Ubuntu 16.04 LTS 64-bit, and it's still happening.   At 4.5.2 it's even more frequent, and mainly in Chrome (haven't tried firefox or opera just yet). Every time I open a new web page. Any way to fix that, or is it a bug?  00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09) 04:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Venus XTX [Radeon HD 8890M / R9 M275X/M375X] (rev 81)   Cheers. getting exception while putting list data into the map Prove that the expression is a perfect square Let $m$ be a natural number. Define $f(m) = m + \lfloor\sqrt{m}\rfloor$. Prove that at least one of the number among $m, f(m), f^2(m), \ldots$ is a perfect square. Here $f^k(m)$ denotes the composition of $f$ over itself $k$ times.  I tried the question, but the greatest integer along with square root is creating trouble. Why is gravity stronger than other forces at the macroscopic level, yet weaker than other forces at the quantum level? Is there an explanation? How to deal with factors with rare levels in cross-validation? Suppose in a regression analysis in R, I have a factor type independent variable with 3 levels in my train dataset. But in the test data set that same factor variable has 5 levels. Therefore I can not predict the response values for test dataset. What should be done in this case? What is a use case where one would use an SObject as a Map key? using underscore's “difference” method on arrays of objects I am new to blender. Pressing &#9096; Ctrl&#9095; AltQ opens the quad view. How to maximize any one of the four views of the quad view? Is there a way to get correctly aligned print export with OpenLayers plugin? I am a beginner using QGIS (1.8.0 Lisboa) on a Mac (OS X 10.6.8 Snow Leopard). I work on a file with two layers in the following sequence (top to bottom):    a vector polygon layer with a few outlines of various buildings in France and Italy (CRS: EPSG:4326 - WGS 84 - "on the fly" re projection is activated ) a Google satellite layer uploaded via open layer plugin.   Sometimes when changing the scale (scrolling in and out) the Google layer updates a little wrong in size or position compared to the polygon layer. But as soon as I "pan" the map everything reconstructs right. Now the problem I have concerns the print composer.  The result of any kind of export - pdf, or image or svg - of my map (vector layer + Google layer in the background) differs from what is shown in the preview of the print composer: the vector layer and the Google layer positions are mismatching and in a different scale. I can send some pictures showing screenshots of the print composer preview and the final results if required.  I tried almost everything:    new files with different CRS settings "cache" update preview "render" update preview different paper sizes,  different scales,   The problem appears only using an open layer map (Google, OpenStreetMap...). If I try the same using two vector layer (shapefile) - one with the buildings, another one with the city in background - everything works out great.  ...exasperating! Since it is a real important research project I would be very grateful for some help and tips. Zero-dimensional ideals and finite-dimensional algebras I encountered in the literature the term zero-dimensional ideal, however I can not find a relevant definition anywhere in Atiyah-MacDonald or Matsumura. In fact, I encounted the statement:      $I$ is a zero-dimensional ideal of $k[x_1,\dots,x_n]$ $\Leftrightarrow$ $k[x_1,\dots,x_n]/I$ is a finite-dimensional $k$-vector space, where we assume that $k$ is algebraically closed.   Question 1: What is the definition of the dimension of an ideal?  Question 2: How do we prove the above statement?  Question 3: Is $k$ being algebraically closed a necessary condition for the statement to be true? How can I obtain a Cauchy distribution from two standard normal distributions? I am interested in      Let $X\sim N(0,1), Y \sim N(0,1)$ independently. Show $\frac{X}{X+Y}$   is a Cauchy random variable.   My work:  $f_{X,Y}(x,y)=\frac{1}{2\pi} e^{\frac{-1}{2}(x^2+y^2)}, -\infty&lt;x,y&lt;\infty$ by independence  Let $U=\frac{X}{X+Y},V=X+Y$. (Is there a better $V$ to choose for this bivariate transformation?)  Then, $X=UV, Y=V - UV$. So, $|J|=V$.  $f_{U,V}(u,v)=f_{X,Y}(uv,v-uv)|J|=\frac{v}{2\pi}e^{\frac{-v^2}{2}(2u^2-2u+1)},-\infty&lt;u&lt;\infty$  $f_U(u)=\frac{1}{2\pi}\int_{-\infty}^{\infty}ve^{\frac{-v^2}{2}(2u^2-2u+1)}dv$. Let $y=\frac{v^2}{2}(2u^2-2u+1)$, so $dy=v(1+2u^2-2u)dv$. Then,  $f_U(u)=\frac{1}{2\pi(2u^2-2u+1)}\int_0^{\infty}e^{-y}dy=(\pi[(\frac{u-1/2}{2})^2+1])^{-1}, -\infty&lt;u&lt;\infty$,   which is not exactly a Cauchy distribution. Where did I mess up? More importantly, how would you proceed in solving this problem? How do I calculate the distance of an object in a photo? disable comments if array exists This is the code which is registering the function for rewrite_endpoints():   function wpa121567_rewrite_endpoints(){  add_rewrite_endpoint( 'comments', EP_PERMALINK );  add_rewrite_endpoint( 'stats', EP_PERMALINK );  }  add_action( 'init', 'wpa121567_rewrite_endpoints' );   NOTE  I don't know if this matters but I will write it.   I have single-CPT.php which is calling  /inc/post-format/single-CPT.php like this:      &lt;?php while ( have_posts() ) : the_post(); ?&gt;  &lt;?php   get_template_part( 'inc/post-format/single-debate');      ...   This is the code which is checking if array key exists, which is  inside my /inc/post-format/single-cpt.php:   ?php if( array_key_exists( 'comments', $wp_query-&gt;query_vars ) ){  the_field('comments_section');   } elseif( array_key_exists( 'stats', $wp_query-&gt;query_vars ) ) {   the_field('stats_section');   } else { // the request is for the main post  }   ?&gt;   This is my comments.php :       &lt;div id="comments" class="comments-area"&gt; &lt;?php // If CPT and not logged in, display a message: if ( 'debate' == get_post_type() &amp;&amp; ! is_user_logged_in() ) { echo '&lt;p class="must-log-in" style="padding-left:20px; font-size:20px;"&gt;You must be logged in to post a comment.' . '&lt;/p&gt;';  echo do_shortcode("[upme_login]");   } ?&gt;     &lt;?php if ( have_comments() ) : ?&gt;         &lt;h3 class="comments-title"&gt;              &lt;?php                 printf( _n('%d comment', '%d comments', get_comments_number(), 'outbox' ),                     number_format_i18n( get_comments_number() ) );             ?&gt;         &lt;/h3&gt;             &lt;ol class="commentlist"&gt;              &lt;?php                 wp_list_comments( array( 'callback' =&gt; 'outbox_comment' ) );             ?&gt;         &lt;/ol&gt;&lt;!-- .commentlist --&gt;          &lt;?php if ( get_comment_pages_count() &gt; 1 &amp;&amp; get_option( 'page_comments' ) ) : // are there comments to navigate through? If so, show navigation ?&gt;         &lt;nav role="navigation" id="comment-nav-below" class="site-navigation comment-navigation clearfix"&gt;             &lt;div class="nav-previous"&gt;&lt;i class="icon-left-open-1"&gt;&lt;/i&gt;&amp;nbsp;&lt;?php echo get_previous_comments_link( __( 'Older Comments', 'outbox' ) ); ?&gt;&lt;/div&gt;             &lt;div class="nav-next"&gt;&lt;?php echo get_next_comments_link( __( 'Newer Comments', 'outbox' ) ); ?&gt;&amp;nbsp;&lt;i class="icon-right-open-1"&gt;&lt;/i&gt;&lt;/div&gt;         &lt;/nav&gt;&lt;!-- #comment-nav-below .site-navigation .comment-navigation --&gt;         &lt;?php endif; ?&gt;      &lt;?php endif; // have_comments() ?&gt;      &lt;?php         // If comments are closed and there are comments, let's leave a little note, shall we?         if ( ! comments_open() &amp;&amp; '0' != get_comments_number() &amp;&amp; post_type_supports( get_post_type(), 'comments' ) ) :     ?&gt;         &lt;p class="nocomments"&gt;&lt;?php _e( 'Comments are closed.', 'outbox' ); ?&gt;&lt;/p&gt;     &lt;?php endif; ?&gt;     &lt;?php  // Don't output the comment form if CPT and user isn't logged in if ( 'debate' != get_post_type() || is_user_logged_in() ) {  comment_form(); }  ?&gt;  &lt;/div&gt;&lt;!-- #comments .comments-area --&gt; &lt;?php } ?&gt;    This is how the comments template is included  inside my single-CPT.php :  if ( comments_open()  )  comments_template( '', true );   I want to disable comments if if( array_key_exists( 'comments', $wp_query-&gt;query_vars ) ){  How can I do this? are more efficient than ordinary upright bicycles, and  are even more efficient. Then why do we see them so rarely on the road? Is it because they are expensive, or are there some non-financial, significant disadvantages?