I wanted to style every second post inside of a query post and I found a solution which nearly works.   the thing is: it outputs just two posts (older ones will be igrnored) but i want to output ALL posts but with every second one with a sepcific class.  Here's what i did so far…  &lt;?php $paged = (get_query_var('paged')) ?   get_query_var('paged') : 1; $wp_query = new WP_Query(); $wp_query-&gt;query('posts_per_page='.get_option('posts_per_page').'&amp;paged=' . $paged);                  global $wp_query;                         query_posts(array_merge($wp_query-&gt;query, array(                             'paged'          =&gt; get_query_var('paged'),                             'posts_per_page' =&gt; 9999999                         )));                 ?&gt; &lt;?php if ($wp_query-&gt;have_posts()) : ?&gt; &lt;?php $count = 0; ?&gt; &lt;?php while ($wp_query-&gt;have_posts()) : $wp_query-&gt;the_post(); ?&gt; &lt;?php $count++; ?&gt;  &lt;?php if ($count == 1) : ?&gt;  &lt;div class="projektitem"&gt; &lt;/div&gt;&lt;!-- .projektitem --&gt;   &lt;?php elseif ($count == 2) : ?&gt;        &lt;div class="projektitem last"&gt; &lt;/div&gt;&lt;!-- .projektitem --&gt;   &lt;?php endif; ?&gt; &lt;?php endwhile; ?&gt; &lt;?php endif; ?&gt;
I'm working on a WordPress site for my band and I'd like to mark every 3rd post on our blog page to have a special class applied to it, anybody have any pointers on how to achieve this? Any help is very very appreciated, thanks! rock n roll.
$x^{x^{x^{\dots}}}=2$, what is the value of $x$? I came up with this little simple exercise, stating:  $x^{x^{x^{\dots}}}$ infinite times is equal to $2$, find $x$.   As we're dealing with infinity, we can just separate the first $x$ and get $x^2=2 \implies x=\sqrt2$  But then I thought what if we change $2$ to $4$? Now we get $x^4=4 \implies x=\sqrt[4]4=\sqrt2$  Something went wrong, can someone explain? Understanding QGIS buffer tool units I  have had no luck getting the buffer tool to accept anything but degrees as units of measure.  I have found lots of stuff saying the layer needs to be reprojected and saved but it hasn't worked at all for me.   Is there a way I could create a buffer without using ftools or at least force the units to meters somehow?  As a workaround I converted meters to degrees (lat) and used that but the final product needs to be as close to reality as possible.  Things I've tried:   setting every unit option I could find to meters (where possible). setting everything to NAD83/Maryland (data is for Washington, DC) and saving it as such (as layers in ESRI shape files). reimporting the reprojected layers setting relevant layers to Google Mercator   The was tried followed by creating a buffer. Many were tried in combination. QGIS 1.7.3 Slackware64 current (qgis from SBo-13.37 repo, tried on multilib and plain 64it with same results) Could we please be a bit nicer to new users? Inline elements shifting when made bold on hover I created a horizontal menu using a HTML lists and CSS. Everything works as it should except when you hover over the links. You see, I created a bold hover state for the links, and now the menu links shift because of the bold size difference.  I encounter the same problem as . However, the post does not have proper solution. I've searched everywhere for a solution and can't find one. Surely I can't be the only one trying to do this.  Does anyone have any ideas?  P.S: I don't know the width of the text in menu items so I cannot just set the width of the li items.    .nav { margin: 0; padding: 0; } .nav li {      list-style: none;      display: inline;      border-left: #ffffff 1px solid;  } .nav li a:link, .nav li a:visited {      text-decoration: none;      color: #000;      margin-left: 8px;      margin-right: 5px;  } .nav li a:hover{      text-decoration: none;      font-weight: bold;  } .nav li.first { border: none; } &lt;ul class="nav"&gt;     &lt;li class="first"&gt;&lt;a href="#"&gt;item 0&lt;/a&gt;&lt;/li&gt;     &lt;li&gt;&lt;a href="#"&gt;item 1&lt;/a&gt;&lt;/li&gt;     &lt;li&gt;&lt;a href="#"&gt;item 2&lt;/a&gt;&lt;/li&gt;     &lt;li&gt;&lt;a href="#"&gt;item 3&lt;/a&gt;&lt;/li&gt;     &lt;li&gt;&lt;a href="#"&gt;item 4&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; 'Good' review audits can be misleading IE9 HTML5 video support Why can in-class initializers only use = or {}? For any prime number $p$, let $A_p$ be the set of integers $d\in \{1,2,\dots, 999\}$ s. Then what is the cardinality of $A_p$? Given $a>b>2$ both positive integers, which of $a^b$ and $b^a$ is larger? Let $M,N$ be $n \times n$ square matrices over an algebraically closed field with the properties that the trace of both matrices coincides along with all powers of the matrix. More specifically, suppose that $\mathrm{Tr}(M^k) = \mathrm{Tr}(N^k)$ for all $1\leq k \leq n$. The following questions about eigenvalues is then natural and I was thinking it would be an application of Cayley-Hamilton but I am having trouble writing out a proof.  How do we show that $M$ and $N$ have the same eigenvalues?  Added (because this question is now target of many duplicates, it should state its hypotheses properly). Assume that all the mentioned values of $k$ are nonzero in the field considered; in other words either the field is of characteristic $0$, or else its prime characteristic $p$ satisfies $p&gt;n$. I need a DSLR camera with a barcode scanner for on-site tours photography, which means it needs to be untethered! The image would have to contain the barcode scanned information in the image metadata or in the name itself.  I've seen solutions like, Foolography and a $2600 Canon Studio Edition launched in 2010. But I'm not sure of either those products!  So I'm asking the gurus here how I can get this working, which camera would I need and any accessory necessary?  I'm trying to recreate something like I saw the on-site volume photographers do in Disney's parks. Difference between $\Delta$, $d$ and $\delta$ Can't run my hello world in C Set myself as owner of /etc with chown command now getting all kinds of errors Audio is working, but the speaker test doesn't work I've installed Ubuntu 12.04 LTS from a minimal cd on a netbook (Asus 1001 PXD). I've installed the ubuntu-desktop package using the --no-install-recommends option.  Everything works fine, except the "sound test" for headphones or analog speakers.  Clicking on the "test" buttons (front left and front right) I don't hear any sound. Despite this, the audio is working properly.  I've checked the audio levels with alsamixer; I have also checked that the test sounds actually exist in /usr/share/sounds/alsa.  I tried an installation of Ubuntu 12.04 LTS made with the desktop-cd, and in this case the speaker test works properly.  I suppose, therefore, that the problem could depend on the lack of a package, but I have not identified which one. For some special purpose, I want to prevent non-root users of the Linux Server from changing or renaming the filenames. However, they can modify and write to the contents of the file. How to do this from command line. How to move /usr to a new partition? Round double to 3 points decimal pgfplots and using axis cs to add points I am trying to mark two inflection points using a foreach loop in a pgfplot, but it isn't working.  \documentclass[tikz]{standalone} \usepackage{pgfplots} \pgfplotsset{compat = 1.10}  \begin{document} \begin{tikzpicture}   \pgfmathsetmacro{\infx}{1/sqrt(2)}   \pgfmathsetmacro{\infy}{exp(-.5)}   \begin{axis}[     xmin = -3,     xmax = 3,     ymin = -0.1,     ymax = 1.05,     domain = -4:4     ]     \addplot[blue, samples = 500, smooth] gnuplot {exp(-x^2)};      \foreach \x/\y in {\infx/\infy, -\infx/\infy}{       \draw[red] (axis cs: \x, \y) circle[radius = .025];     }   \end{axis} \end{tikzpicture} \end{document}   I am being told:  Undefined control sequence.^M &lt;argument&gt; axis cs: \x ^M                        , \y ^M l.34   \end{axis}^M What happens to options held during a reverse stock split? I held 1 put option for 100 shares of USO that expires on May 8. Yesterday, USO underwent an 8:1 reverse stock split. My options are now for USO1 instead of USO, but what does that mean?  The strike price hasn't changed, so does that mean that my option will expire worthless as it's unlikely the stock will drop (significantly) to back below the strike price?