permalink structure postname and wp internal routing (301 vs 404) I don't understand the following behavior:  to verify, I have a fresh default/standard wp installation (no themes, no plugins)  I change in settings the permalink structure to "post name".  I create two pages and call them eg "sub1" and "sub2".  now I create a 3rd-page "test" with "sub1" as the parent.  so the link .../sub1/test works as expected but if I call .../sub2/test (which does not exist) I would expect a 404. instead, I can see a 301 and the page "test" under .../sub1 is displayed.  I tested this on many different WordPress installations (and versions) it seems to be the default behavior with permalink set to "post name"  but technically that's a wrong implementation.  is there a reason for this implementation and is there a way to "correct" this with some hooks ???
301 redirect instead of 404 when URL is a prefix of a post or page name? hey all! i have an odd problem with URL routing. when i request a URL that doesn't exist, e.g. , wordpress correctly returns a 404. however, if that URL is a prefix of a post or page name, it instead returns a 301 redirect to the post or page.  for example, if i have a post on 10/1/2010 named Food Post, it will return a 301 with Location:  (my permalink structure). likewise, if i have a page named Food Page, it will return a 301 with Location: .  you can see this in action on my live site,  . e.g.  redirects to  .  turning off permalinks (ie switching to "default") fixes it, for both posts and pages, but naturally i don't really want to do that.  i see this on three different installations, all wordpress 3.0.1 and apache 2.2, two ubuntu lucid/mysql 5.1 and one freebsd 7.3/mysql 5.0. i've deactivated all plugins and removed everything from my .htaccess except the lines for wordpress below, verbatim, but no luck.  RewriteEngine On RewriteBase / RewriteRule ^wordpress/index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/index.php [L]   thanks in advance...
Updating global js variable within function and sending updated to HTML document Is there any problem if the last name prints first than the first name on an air ticket? Is there any problem if the last name prints first then the first name in international air ticket? I am using different operating systems on different machines on different locations. I am using a USB flash disk to keep my files (source codes etc.).  I am new to Mac OS X and now I realize there are lots of files created with a dot underscore ._ prefix.  Questions  Why are ._ files created?   What are their purpose?   How can I avoid them? How can I install firmware-b43-installer driver if I can't connect to internet by wire? Detailed proof that no essential singularity at infinity implies polynomial Python dictionary: are keys() and values() always the same order? How do I get the current location of an iframe? Inverting Polygons using QGIS? I have a Shapefile with Polygon features  representing the world's land areas (continents, islands).   Is it possible to invert these, and get a geometry that represents the world's oceans and seas?   So the original land Polygons need to become rings in a single global Polygon that covers the planet.  Basically, I'm looking for something like Select > Inverse in Photoshop.   I am using QGIS. Why do you cast downvotes on answers? Why does no one notice the Joker's presence as a policeman during the mayor's speech? Why use "need not" instead of "do not need to"? The header of  states:     High-level languages need not be slower than low-level ones.     Why use need not instead of do not need? What does it mean? Also, why no to before be? Formula to this pattern? $1$, $11$, $21$, $1211$, $111221$, $\ldots$ I have this pattern:  1 11 21 1211 111221   I'm guessing it's a fibo pattern, been at it for hours now. Anyone know? As it was suggested  I am using cat command to concatenate several .mp3 files into one .mp3 file. Imagine, I have following .mp3 files in the current folder: 001001.mp3 001002.mp3 001003.mp3 001004.mp3 001005.mp3  or, like this: 096001.mp3 096002.mp3 096003.mp3 096004.mp3  I need to concatenate these .mp3 files in there ascending sequence, i.e.  001001.mp3+001002.mp3+001003.mp3+etc. In order to join these .mp3 files into one I am executing following command in the current folder: cat *.mp3 &gt; final.mp3  I tested the final .mp3 file and it is what I am expected, but I need to be sure that above command picks files in there ascending sequence. Can I be sure that above command always concatenates files in the ascending sequence? Thank you Sir! From : In calculus and other branches of mathematical analysis, an indeterminate form is an algebraic expression obtained in the context of limits. Limits involving algebraic operations are often performed by replacing subexpressions by their limits; if the expression obtained after this substitution does not give enough information to determine the original limit, it is known as an indeterminate form.    The indeterminate forms include $0^{0},\frac{0}{0},(\infty - \infty),1^{\infty}, \ \text{etc}\cdots$   My question is can anyone give me a nice explanation of why $1^{\infty}$ is considered to be an indeterminate form? Because, i don't see any justification of this fact. I am still perplexed. Is it necessary to explicitly remove event handlers in C# Feedback Request: New Timeline Question View There is an experimental timeline view for questions now available on meta ONLY! (Now working on SO, SF, and SU as well)  This is partially motivated by comments about how difficult it is to follow very active questions which have a lot of activity, and also the feedback on the API which was heavily dominated by "we need to know what happened in this time range" type responses.  It can only be accessed through URL hackery at the moment. To get to it, enter question URLs like so:  https://meta.stackexchange.com/posts/{id}/timeline  This is a chronological timeline of everything that happened on a question, including   initial question ask answers  revisions comments closure, deletion, reopen, undelete, etc votes   all based on when they happened in chronological order.  We are thinking about making this a fourth tab on the question, like so:  Timeline | Oldest | Newest | Votes  Please try it out and provide feedback. It is still a little rough, so we are not looking for highly detailed bug reports, just more general feedback.  Timeline view for this question: Wouldn't it be a good idea to be able to vote for questions to be moved to any Stack Exchange site? For example, I just voted  as off topic, but that was all I could do. I wish I could've voted it be moved to .  It's OK to have the predefined list of sites that is now when voting to move, but it would be nice to have a more link, where we could pick any Stack Exchange site.  Here's a quick mockup of how I see this implemented:    When the more link is clicked, a list of all the Stack Exchange sites should appear. Is spacetime absolute? As I understand it Newton's Laws imply that space is relative, as the laws of physics are the same in all inertial frames and as such there is no way, even in principle, to distinguish a frame that is truly at rest (absolute space). Hence the concept is physically meaningless, and the positions of (and distances between) physical objects, events, etc. are relative to the frame in which one is observing them from. Advancing on to Special Relativity, by postulating that the speed of light (in vacuum) is constant in all frames of reference, we are forced to conclude that time is relative also (as if it weren't then different observers would observe a different speed of light (in vacuum)). This leads to the result that the concepts of space and time are no longer completely separate and independent of one another and instead intertwined (as an event that occurs at rest over some time period in one frame, will occur over some spatial interval and a different time interval in another frame). Hence they should be considered as should be considered as a single entity, called spacetime.  Sorry for the waffling so far, just want to check that my understanding is correct up to this point?!  My main question is, given that space and time are (individually) relative quantities, is spacetime itself relative, or can it be considered absolute (as after all, it is the mathematical space of all possible events and exists independently of the physical events that occur within it)? Is there a robust command line tool for processing csv files? Is it possible to know from apt if the package was installed explicitly or as a dependency of another package?