As soon as I click the "2" on my pagination links I get a 404-error. The url correctly changes to http://mysite.com/?paged=2  &lt;?php /**  * The loop that displays the posts.  */ ?&gt;   &lt;ul class="post-items"&gt; &lt;?php      $args = array(         'post_type' =&gt; array('post', 'wr_raffle'),         'posts_per_page' =&gt; 4,         'order' =&gt; 'DESC',         'paged' =&gt; (get_query_var('page')) ? get_query_var('page') : 1,     );      $loop = new WP_Query( $args );     while ( $loop-&gt;have_posts() ) : $loop-&gt;the_post(); ?&gt;          &lt;li&gt;         &lt;article id="post-&lt;?php the_ID(); ?&gt;" &lt;?php post_class('wrapper'); ?&gt;&gt;              &lt;div class="post-title"&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/div&gt;             &lt;div class="post-excerpt text small"&gt;&lt;?php the_excerpt(); ?&gt;&lt;/div&gt;          &lt;/article&gt;         &lt;/li&gt;          &lt;?php endif; ?&gt;      &lt;?php      endwhile;     wp_reset_postdata();  ?&gt;       &lt;/ul&gt;  &lt;div class="pagination wrapper clear"&gt; &lt;?php     $endsize = $midsize = 1;     $type = 'plain';     $loop-&gt;query_vars['paged'] &gt; 1 ? $current = $loop-&gt;query_vars['paged'] : $current = 1;      // Sanitize input argument values     if ( ! in_array( $type, array( 'plain', 'list', 'array' ) ) ) $type = 'plain';     $endsize = (int) $endsize;     $midsize = (int) $midsize;      // Setup argument array for paginate_links()     $pagination = array(         //'base'          =&gt; @add_query_arg('paged','%#%'),         'total'         =&gt; $loop-&gt;max_num_pages,         'current'       =&gt; $current,         'show_all'      =&gt; false,         'end_size'      =&gt; $endsize,         'mid_size'      =&gt; $midsize,         'type'          =&gt; $type,         'prev_next'     =&gt; false,         //'paged'         =&gt; $loop-&gt;query_vars['paged']     );      echo paginate_links( $pagination ); ?&gt;  &lt;/div&gt;   What am I doing wrong here?  I already refreshed my permalinks. Didn't work.
I have added a custom/secondary query to a template file/custom page template; how can I make WordPress use my custom query for pagination, instead of using the main query loop's pagination?  Addendum  I have modified the main loop query via . Why isn't pagination working, and how do I fix it?
Omitting the Milliseconds in a Date Multicollinearity when individual regressions are significant, but VIFs are low I have 6 variables ($x_{1}...x_{6}$) that I am using to predict $y$. When performing my data analysis, I first tried a multiple linear regression. From this, only two variables were significant. However, when I ran a linear regression comparing each variable individually to $y$, all but one were significant ($p$ anywhere from less than 0.01 to less than 0.001). It was suggested that this was due to multicollinearity.  My initial research on this suggests checking for multicollinearity by using . I downloaded the appropriate package from R, and ended up with the resulting VIFs: 3.35, 3.59, 2.64, 2.24, and 5.56. According to various sources online, the point you should be worried about multicollinearity with your VIFs is either at 4 or 5.   I am now stumped about what this means for my data. Do I or do I not have a multicollinearity problem? If I do, then how should I proceed? (I cannot collect more data, and the variables are parts of a model that aren't obviously related) If I don't have this problem, then what should I be taking from my data, particularly the fact that these variables are highly significant individually, but not significant at all when combined.  Edit: Some questions have been asked regarding the dataset, and so I would like to expand...  In this particular case, we're looking to understand how specific social cues (gesture, gaze, etc) affect the likelihood of someone producing some other cue. We would like our model to include all significant attributes, so I am uncomfortable removing some that seem redundant.  There are not any hypotheses with this right now. Rather, the problem is unstudied, and we are looking to gain a better understanding of what attributes are important. As far as I can tell, these attributes should be relatively independent of one another (you can't just say gaze and gestures are the same, or one the subset of another). It would be nice to be able to report p values for everything, since we would like other researchers to understand what has been looked at.  Edit 2: Since it came up somewhere below, my $n$ is 24. Is there any way to automatically get notified of property changes in a class without having to write OnPropertyChanged in every setter?  (I have hundreds of properties that I want to know if they have changed).    Anton suggests .  I've actually used the "Castle" library for something similar in the past, and while it does reduce the amount of code I've had to write, it added around 30 seconds to my program startup time (ymmv) - because it's a runtime solution.  I'm wondering if there is a compile time solution, maybe using compile-time attributes...    Slashene and TcKs give suggestions which generates repetitive code - unfortunately, not all my properties are a simple case of m_Value = value - lots of them have custom code in the setters, so cookie-cutter code from snippets and xml aren't really feasible for my project either. There exists an injection from $X$ to $Y$ if and only if there exists a surjection from $Y$ to $X$. Enlarge a partition without losing data with Windows 7 diskmgmt? I have a 320GB hard drive currently partitioned as below:     A long time ago, a computer expert formatted my hard drive like this because I wanted to install Ubuntu. I'm now ready to do this, but I'll never need so much free space (103.09GB). I want to enlarge the D:\ volume because it already has lots of data on it.  I know that when I open diskmgmt.msc, I could possibly enlarge the D:\ volume using some free space from the unformatted 103.09GB volume, because the program offers me the option to enlarge. However I'm afraid that I might lose data doing this.  Is it possible to enlarge the partition with this Windows 7 tool or am I better using GParted via "Try Ubuntu" on my Live CD? Would either of them cause data loss in this scenario? What does pwd output? Does the command pwd in a shell script output the directory the shell script is in? Taylor series $\frac{z^2+z}{(z-1)^2}$ at $z=-1$ I came upon an interesting way to relatively quickly compute modular exponentiation with large numbers. However, I do not fully understand it and was hoping for a better explanation.  The method basically states if you have $x^y \bmod N$, it can be computed by repeatedly multiplying by $x$ modulo $N$:  $$x \bmod N \rightarrow x^2 \bmod N \rightarrow x^4 \bmod N \rightarrow x^8 \bmod N \rightarrow \ldots \rightarrow x^{2[\log y]} \bmod N$$  This is supposed to calculate in $\mathcal{O}(\log_2 N)$ time.  An example is given:  $$x^{25} = x^{11001_2} = x^{10000_2} * x^{1000_2} * x^{1_2} = x^{16} * x^8 * x^1$$  I don't really understand how this is faster. Aren't you just doing the same thing? You're just breaking down the exponents into representations of base $2$. Also where does $x^{2[\log y]}$ come from? If you're breaking it down into exponents of two where does a logarithm come from? (Aren't logs representations of numbers in exponents of $10$?)  I'm sorry if this appears to be a really stupid question - I have minimal knowledge in math.  Also, I wasn't sure if this belongs here or on stack exchange, so give me the word and I'll move it. Google Search Console domain property not in the list of properties I can add to Google Analytics Given   $$ f_{XY}(x,y) = \frac{1}{2\pi \sqrt{1-\rho^2}} \exp \left( -\frac{x^2 +y^2 - 2\rho xy}{2(1-\rho^2)} \right) $$  $Y = Z\sqrt{1-\rho^2} + \rho X$  And   $$ f_{XZ}(x,z) = \frac{1}{2\pi } \exp \left( -\frac{x^2 +z^2}{2} \right) $$  Show that $P(X&gt;0,Y&gt;0)= \frac{1}{4}+\frac{1}{2\pi}(\arcsin \rho) $  I'm supposed to use the fact that X and Z are independent standard normal random variables, but I don't quite understand how. Any help would be greatly appreciated. How to get a list of current open windows/process with Java? Does any one know how do I get the current open windows or process of a local machine using Java?    What I'm trying to do is: list the current open task, windows or process open, like in  Windows Taskmanager, but using a multi-platform approach - using only Java if it's possible. I'm a new blender user, but have used other modelling programs before.   I've downloaded a  and unzipped it.   When I import the obj into blender, it is my understanding (from here: ) that the mtl should just import itself with it. However, when I import the obj, I just get a grey model with no texture. Is it actually importing the mtl but I'm not seeing it? Also for the record, I have changed no settings in blender.  Picture for reference: Controlling colors of points in ListPlot Binary Search in Array How would I implement a binary search using just an array? For what values of $n > 1$ and a is $x^n - a$ irreducible in $\mathbb Q[x]$? $$x^n-a$$  So $n$ is any integer greater than 1, and $a$ is any integer.  $a$ being any integer is where I am running into trouble.  I have already shown and worked out a proof for this being irreducible when a is prime.  Now I am just working through examples, trying to figure out a pattern.  The exercise is asking for application of Eisenstein's Criterion only, so I am assuming that the value of n should have no effect on the irreducibility. Old phone cannot connect to computer, the "computer connection" icon appears on phone I would like to get some pictures and audio out of an AT&amp;T SGH-a687 phone onto my Mac computer. I first tried connecting it to a New PC Studio on a PC, but there was a problem after transfer 2 photos, so I tried again. But the PC could no longer detect the phone, even though the "connected to computer" icon appears on the phone. I tried a different cable, different USB ports. No use.  So I downloaded the Samsung Kies on my Mac. Same thing, it tries to search for the phone once I connect the phone, but the computer doesn't detect anything. The phone still shows the "connected to computer" icon.  There is also Bluetooth (no internet on the phone) on the phone, but it failed to send the picture each time I tried.  What can I do at this point? Please also suggest data extraction software for either Mac or PC, if that's the easier route. Does installing and using Wine open up your Linux platform to Windows viruses? Just wondering if installing Wine might open up a fairly solid Linux desktop to the world of Windows viruses.  Any confirmed reports about that?  Would you then install a Windows antivirus product under Wine? Which is correct: "one or more is" or "one or more are"? Should the phrase be "one or more is...", or "one or more are..."? Cancelling special & general relativistic effects We know that for a GPS we need to make a correction for both general and special relativity: general relativity predicts that clocks go slower in a higher gravitational field (the clock aboard a GPS satellite moves faster than a clock down on Earth), while special Relativity predicts that a moving clock is slower than the stationary one (slow the clock compared to the one down on Earth).  My question is this: is it possible, in theory, to set up an orbit so that these two effects cancel each other out, allowing a clock on board a GPS satellite to tick as if it were on Earth? Is there a distance at which the special and general effects cancel?  Sorry if this is a stupid question - I'm still not entirely confident with the theory of general relativity. Algorithms for Time Series Anomaly Detection I'm currently using Twitter's AnomalyDetection in R: .  This algorithm provides time series anomaly detection for data with seasonality.  Question: are there any other algorithms similar to this (controlling for seasonality doesn't matter)?  I'm trying to score as many time series algorithms as possible on my data so that I can pick the best one / ensemble.