I need my WP permalinks display months without using any zeros in the URL i.e. /1/ instead of /01/ for January.  I'm moving my blog from Squarespace to Wordpress and I obviously want to keep all my existing URLs intact. Wordpress does a perfect copy of the Squarespace permalinks, with one exception; it shows months as ‘01’ whereas Squarespace shows them as ‘1’.  Current Wordpress permalink: http://example.com/home/2014/01/30/welcome  Old Squarespace permalink: http://example.com/home/2014/1/30/welcome  i.e. /1/ instead of /01/  Without changing that, I'm guessing that when I point my DNS to my new WP blog, all the links will break.  I've spent the last 3 hours scouring the Wordpress.org support .docs, to no avail.  Help!
My WordPress website currently uses this custom permalink structure: %author%/%year%/%monthnum%/%day%/%postname%  In this case, %monthnum% instantiates numbered dates with a leading zero -- e.g., "09" for September. So, a sample URL might look like this: mywebsite.com/username/2012/09/12/post-name  Is there a function I can add or .htaccess change that I can make which will remove the leading zeros from my permalink stucture? So, using the example above, my URLs would ideally look like this: mywebsite.com/username/2012/9/12/post-name  Thank you! I've read up on WordPress' structure tags documentation (http://codex.wordpress.org/Using_Permalinks), but I can't find any solutions or plugins for the above-mentioned problem.
How does friction stop a car? Computing $ \int_0^\infty \frac{\log x}{\exp x} \ dx $ How to stop a script from running if it's not root (and echo "Not running as root! Exiting...") Can the Hubble constant be measured locally? Adding Basemaps from Google or Bing in QGIS Validate decimal numbers in JavaScript - IsNumeric() What's the cleanest, most effective way to validate decimal numbers in JavaScript?  Bonus points for:   Clarity. Solution should be clean and simple. Cross-platform.   Test cases:  01. IsNumeric('-1')      =&gt; true 02. IsNumeric('-1.5')    =&gt; true 03. IsNumeric('0')       =&gt; true 04. IsNumeric('0.42')    =&gt; true 05. IsNumeric('.42')     =&gt; true 06. IsNumeric('99,999')  =&gt; false 07. IsNumeric('0x89f')   =&gt; false 08. IsNumeric('#abcdef') =&gt; false 09. IsNumeric('1.2.3')   =&gt; false 10. IsNumeric('')        =&gt; false 11. IsNumeric('blah')    =&gt; false How do I remove 'Places' entries from the Nautilus sidebar? I want to remove Videos and Music from the left side panel. But, I can't seem to find the option to do so. How do you do that? PhD Student : Publish Paper with Wife? Computation of a limit involving factorial $\lim_{n \to \infty} \sqrt[n+1] {(n+1)!} - \sqrt[n] {(n)!} = \frac{1}{e}$ Grub not showing on startup for Windows 8.1 Ubuntu 13.10 Dual boot Ok, so I'm such a newbie to Ubuntu and I bought a Windows 8 pre-installed laptop last month.  I updated to Windows 8.1 and then I thought about installing Ubuntu as a dual boot so I could mess around and learn more about it.   So I followed a Youtube tutorial (  ) and I got my stuff working fine.   The first few times I booted I got the GRUB menu instead of my default HP Boot OS Manager, and I was able to select my OS.   So I went to sleep and the next day I turned on my computer and the GRUB menu did not show up. I tried several times and it didn't automatically show up.  In order for me to see the GRUB menu I had to turn on my PC and on start had to press ESC to pause startup and press F9 to get boot options. Then from there I had to pick from OS Boot, Ubuntu, Ubuntu (Yes there were two Ubuntus available) and a default EFI file thingy.   When I click the first Ubuntu I get the GRUB Menu (I was too scared to try the second in case I screwed my laptop up) and I can safely load Ubuntu from there and use it (although I do have to increase my brightness every time I load Ubuntu because it somehow reduces my brightness to complete darkness on boot)  So my problem here is why isn't my GRUB showing on boot, after it worked on the first day?   My laptop is a HP TouchSmart j-078CA.  EDIT 1: FYI I just switched to Ubuntu LiveCD to check my Installation and found out that one of my partition is flagged as msftres. Here is a screenshot of my GParted on a LiveCD: "Friendly" terminal color names in shell scripts? I'm aware of libraries in languages such as Ruby and Javascript to make colorizing your terminal scripts easier by using color names like "red".  But is there something like this for shell scripts in Bash, or Ksh, or whatever? Way to list "Contact Us" email address on web site, yet reduce likelihood of spam? Do not load Facebook-based avatars directly from the Facebook CDN Users who register for their account via Facebook get  as their default avatar. However, the avatar is not copied to SE servers or Imgur, and thus the original URL is kept. This URL compromises the privacy of the user as it contains their Facebook user ID which everyone can easily extract and then view the profile.  The image is also not visible at all to those who have Facebook blocked for their own privacy (by extensions such as Ghostery or browser features ), or due to network policy (e.g. some work and school networks block Facebook).  With the new avatar system, it would be much better if the Facebook photo was stored like a manually uploaded avatar to avoid this problem. It's not difficult to show that  $$(1-z^2)^{-1/2}=\sum_{n=0}^\infty \binom{2n}{n}2^{-2n}z^{2n}$$  On the other hand, we have $(1-z^2)^{-1}=\sum z^{2n}$.  Squaring the first power series and comparing terms gives us  $$\sum_{k=0}^n \binom{2k}{k}\binom{2(n-k)}{n-k}2^{-2n}=1$$  that is,  $$\sum_{k=0}^n \binom{2k}{k}\binom{2(n-k)}{n-k}=2^{2n}$$  My question: is there a more direct, combinatorial proof of this identity?  I've been racking my brains trying to come up with one but I'm not having much success. Elementary formula for permutations? Suppose I fix $n$ and let $\sigma_k$ represent the $k$th permutation of $S_n$ with respect to  some ordering (whatever ordering might serve my purpose). Is there an elementary formula for $\sigma_k(i)$ which requires only $i, k,$ and $n$?  Is one known for small $n$, perhaps even as small as 4? When should I use # and = in ASP.NET controls? Nesting HTML- anchor tags The range of $T^*$ is the orthogonal complement of $\ker(T)$ How can I prove that, if $V$ is a finite-dimensional vector space with inner product and $T$ a linear operator in $V$, then the range of $T^*$ is the orthogonal complement of the null space of $T$?  I know what I must do (for a $v$ in the range of $T^*$, I have to show that $v\perp w$ for every $w$ in $\ker(T)$ and then do the opposite), but I don't know how to show that this inner product is zero. Canned reasons for up/down vote (w/ example of how it would work) I'm annoyed by down voters that don't explain why they down voted a question or an answer. Although, at the same time, I understand that they . I think there is a middle ground, though, where the voter can remain anonymous, while the poster can get aggregated feedback on ways to improve the post.  Rather than having to imagine what it might be like, the current stackoverflow engine can emulate this rather effectively with the use of comments and the up-voting of those comments (essentially saying "I agree"). So I thought I would give it a try. The only difference is that in this testing post, you will always see the list of "canned responses" where as in the complete version, it will most likely be hidden in a popup (e.g. when you hover over the score of an answer/question). To try it out, simply up or down vote this question (or one of its answers), and press the up arrow next to the comment which best describes why are voting that way. For example, if you hate this idea, give this a down vote, and then press the up arrow near -1: I don't like this idea.  In addition to retaining anonymity, this will also save time for the voter so that they don't need to write out the comment. This wouldn't be required, obviously, and there could be a default option selected don't leave a reason. In addition, there could be a custom option which allows you type exactly why you are down-voting this way. Depending on the final implementation, this could either simply be converted to a comment automatically prefixed with -1:  or +1:; or, to retain anonymity, it would be added to this same list that shows the canned responses and how many users have voted that way.  Here are some ideas for the canned responses:  Question:   +1: Well formatted and thought out question. -1: It doesn't seem like enough time was spent trying to solve this issue on your own. -1: I don't like this idea. (Could be especially useful on meta.stackoverflow.com feature-request.) -1: No prior research/work. (Idea from .) -1: Poor question. Please see . -1: Doesn't contain code. (This would be useful on stackoverflow.com. Idea from )   Answer:   +1: Concise. +1: Insightful. +1: Worked for me. -1: It's wrong. -1: Confusing. -1: Encouraging bad behavior (e.g. answering a question that shouldn't have been asked; see ).   I made this a community-wiki since there will probably be testing of up/down votes. Several of these canned responses have been taken from . This same idea was also . Neatest proof that set of finite subsets is countable?