I have pagination on my site like this:     Pages 1 2  3 4   … and so on. I am doing this by adding &lt;--nextpage--&gt; where i want to split my long pages into multiple pages.  I want to add previous and next links to the page numbers that looks like this:     Prev 1 2 3 4 5 6 7 Next
I want wp_link_pages (mutli-page posts) to display the page numbers, the word "previous" before those numbers, and a "next" after those numbers.  It would look like this:  Prev 1, 2, 3, 4 Next  I'm attempting to do this without a plugin.  Here's what I've tried so far, but it isn't working, it is only displaying numbers.  &lt;?php wp_link_pages(array(     'before' =&gt; '&lt;span style="clear:both; display:block"&gt;Pages',      'after'  =&gt; '&lt;/span&gt;',     'next_or_number'=&gt;'number',     'previouspagelink' =&gt; 'previous',     'nextpagelink'=&gt; 'Next' )); ?&gt;
Why must a singularity form inside a black hole? Ways to obtain new portrait photography clients? I'd like to increase my portrait business. I've had good experiences with family, pet portraits and High School seniors.  My local newspaper is quite expensive. I've had okay luck with Craigslist, although Craiglist shoppers are far from my ideal client that is willing to pay for quality images, fast turn around and a great experience.  I have a flyer on my community message board, but not enough traffic walks by it. I was thinking about posting at my local churches. I get a few of referrals from friends and family of clients.   What are good ways to reach my local base and increase sales? How to decompose a unitary transform into two-level unitary matrices? What's the difference between "speak" and "talk", grammatically speaking? There are a number of questions e.g.  and  that deal with the slightly different connotations of the words "speak" and "talk". However, there also seem to be some grammatical differences between the two words. This question is about whether there's a way to formally pin down these differences, or whether they're just contingent features of the two words having different histories.  Some examples of grammatical differences are as follows:   be talkative ... be speakative speak French ... talk French give a talk ... give a speech (as opposed to a speak) speak up ... talk up (the meanings of the two phrases being completely different, with "up" being a preposition only in the latter case) speaking of which ... talking of which grammatically speaking ... grammatically talking   On the other hand, many other constructions work just as well with either (though they might have subtly different meanings), for example   speak to ... talk to speak with ... talk with speak about ... talk about   I'm interested in whether there's a way to pin down these differences (e.g. are the two words classified as different types of verb in some way?), or whether they're essentially just arbitrary. I'm also interested in why we have these two different words with subtly different meanings. Is the distinction between “speak” and “talk” a feature of many languages, or is it just a peculiarity of English?  Etymologically, both words are from Germanic origins. “Talk” seems to have been formed from the Middle English tale, even though “speak” already existed in the English language by then (as far as I can tell). This makes it even more mysterious: Why did we form a new word as a synonym of one that was already established? Or were the meanings different at that time? I'm trying to install a service using InstallUtil.exe but invoked through Process.Start. Here's the code:  ProcessStartInfo startInfo = new ProcessStartInfo (m_strInstallUtil, strExePath); System.Diagnostics.Process.Start (startInfo);   where m_strInstallUtil is the fully qualified path and exe to "InstallUtil.exe" and strExePath is the fully qualified path/name to my service.  Running the command line syntax from an elevated command prompt works; running from my app (using the above code) does not. I assume I'm dealing with some process elevation issue, so how would I run my process in an elevated state? Do I need to look at ShellExecute for this?  This is all on Windows Vista. I am running the process in the VS2008 debugger elevated to admin privilege.  I also tried setting startInfo.Verb = "runas"; but it didn't seem to solve the problem. I am trying to prove the following by Mathematical Induction:  $$\sum_{i=1}^n i\cdot i! = (n+1)!-1\quad\text{for all integers $n\ge 1$}$$   My proof by Induction follows: First prove $P(1)$ is true,  $$\sum_{i=1}^1 i\cdot i! = (1+1)! - 1$$  Then, for all integers $k &gt;= 1$, if $P(k)$ is true then $P(k+1)$ is also true,  $$ \sum_{i=1}^k i\cdot i! = (k+1)! - 1$$ Then, we must show that $P(k+1)$ is true   $$ \sum_{i=1}^{k+1} i\cdot i! = ((k+1)+1)! - 1\\ \sum_{i=1}^{k+1} i\cdot i! = (k+2)! - 1$$  I am currently struggling with the next step to show that $P(k)$ is equal to $P(k+1)$. How would I finish this prove by induction? What is the reasoning behind restricting the number of migration paths? On the religion and culture stackexchange sites, many, many users will initially ask a question in a place that's kind of off-topic there, but are fully on-board elsewhere.    Christianity.SE, for example, gets a lot of general philopsophical questions that would be better on Philosophy, historical questions that might be better on History.SE, and hermenutical questions that are better on BH.SE.  It is, however, unreasonable in my mind for a user with a question to be required to have domain expertise on which sub-site each has. Indeed, even amongst users with a high amount of knowledge, there can be disagreement.  Likewise, , but as just about every one of those is in beta, the user would have to be very saavy (or would have to find that post) in order to nail it every time.  That said, recommending that a question be moved is much harder than it needs to be.  I have seen business rule logic that says, for example,    migration paths only exist to graduated sites (ergo politics, money, history, and quantitative finance wouldn't qualify) migration paths seem to be limited to 5.   Anything not on a migration path requires a moderator (and not just a high rep user) to get involved.  So, what is the reasoning behind this?  Note, I'm not asking for a solution (although the obvious solution would be to allow migration paths to any established site, beta or not, i.e. a VTC as off topic b/c it belongs on another site should allow you to pick any other site) - I just want to understand the business purpose in restricting migration paths to a small, predefined number for everyone other than a mod. I am a new user of Ubuntu 12.04.   I installed Ubuntu and Windows XP, and I want to use both operating systems. When I restart or boot my PC the GRUB menu does not appear.  How can I solve this problem? I would like to treat a user as a non-gender noun and refer to it with the gender-neutral pronoun, it. E.g.,     The user defines two variables, x and y. It then multiplies each variable by a prime number.    However, on  I found this:      The word "it", however, has an extremely impersonal connotation, even offensive, in common usage and is rarely used in English to refer to an unspecified human being or person of unknown gender. This is because the word "it" connotes that the person being specified is inferior to a person or is an object.   Is to appropriate to refer to a person of unknown sex as it?  Should I rephrase my sentence as follows:     The user defines two variables, x and y. The user then multiplies each variable by a prime number. Is there any way to create a simple txt file without opening the terminal? Is there any way to create a text file without using the terminal at all? My understanding is that a question is historically locked because the information in it is too valuable for the question to be deleted.   But if the "valuable information" becomes obsolete, what happens then?  We cannot modify the question content, or the answers for a historically locked question, right? Find the image of (1,1,1) by T Question: Find the image of (1,1,1) by T  $$T(x,y,z) = (y,6y,x+y+z)$$   I found the standard matrix to be:   \begin{bmatrix}0&amp;1&amp;0\\0&amp;6&amp;0\\1&amp;1&amp;1\end{bmatrix}  I'm confused on how to approach this question.   In order to find the image is it possible to inverse the values of it's standard matrix?  Would I able to use the identity matrix of 3 and inverse the values of that to find the image?    Any help will be greatly appreciated. Where did the convention of using single dashes for letters and doubles dashes for words come from and why is continued to be used?  For example if I type in ls --help, you see:    -a, --all                  do not ignore entries starting with .   -A, --almost-all           do not list implied . and ..       --author               with -l, print the author of each file   -b, --escape               print octal escapes for nongraphic characters       --block-size=SIZE      use SIZE-byte blocks   -B, --ignore-backups       do not list implied entries ending with ~ ...   I tried googling - and -- convention even with quotes with little success. Avoid synchronized(this) in Java? Whenever a question pops up on SO about Java synchronization, some people are very eager to point out that synchronized(this) should be avoided. Instead, they claim, a lock on a private reference is to be preferred.  Some of the given reasons are:    (very popular this one, also has an "accidentally" variant)     Other people, including me, argue that synchronized(this) is an idiom that is used a lot (also in Java libraries), is safe and well understood. It should not be avoided because you have a bug and you don't have a clue of what is going on in your multithreaded program. In other words: if it is applicable, then use it.  I am interested in seeing some real-world examples (no foobar stuff) where avoiding a lock on this is preferable when synchronized(this) would also do the job.  Therefore: should you always avoid synchronized(this) and replace it with a lock on a private reference?      Some further info (updated as answers are given):   we are talking about instance synchronization both implicit (synchronized methods) and explicit form of synchronized(this) are considered if you quote Bloch or other authorities on the subject, don't leave out the parts you don't like (e.g. Effective Java, item on Thread Safety: Typically it is the lock on the instance itself, but there are exceptions.) if you need granularity in your locking other than synchronized(this) provides, then synchronized(this) is not applicable so that's not the issue Java rounding to nearest 0.05 What do you do in Dungeon World when someone wants to perform an action they don't have a move for? So in Dungeon World, everything breaks down to 'moves'.  What about situations where a move is not available, but a check of some sort is called for, such as in the case of a non-fighter who wants to kick down the door?  What mechanism do you use to resolve that situation? Is there the equivalent of a skill check? What really is an indeterminate form? We can apply l’Hôpital’s Rule to the indeterminate quotients $ \dfrac{0}{0} $ and $ \dfrac{\infty}{\infty} $, but why can’t we directly apply it to the indeterminate difference $ \infty - \infty $ or to the indeterminate product $ 0 \cdot \infty $?  Furthermore, why can’t we call $ \infty + \infty $ and $ \infty \cdot \infty $ indeterminate forms?  I’m new to calculus, so please clear up my concepts if you can. Thanks! Consider an isosceles triangle. Let r be the radius of the circumscribed circle and p be the radius of the inscribed circle. Prove that the distance d between the centers of these two circles is $$d = \sqrt{r(2p-r)}$$ How to add a Login / Logout link in Main navigation menu? How can I add a Login link to the "Main navigation" menu?  When a user clicks on the link, it should take them to the /user/login page. Once they login, the link should change to say "Logout" instead of "Login".  Is there any way to add such a link? STI vs STD vs Sexually Transmitted Virus