Adding "st,nd,rd,th" to a date in Ruby
In Ruby on Rails, how do I format a date with the "th" suffix, as in, "Sun Oct 5th"?
How to delete directories with path/names too long for normal delete Windows seems to have a length limit on file names when trying to delete, though it won't prevent those files from being created.  Our build process creates a number of temporary files (many build off of a WSDL) that run afoul of this limit.  Our ant script is somehow able to delete them when doing a clean, but sometimes I need to delete the workarea directory (where all the temp files go) without actually doing a full clean from ant.  This is the same errors , but the answers there don't really work for me as I'm dealing with a directory, not a file, and I don't always know what specific files or subdirectories are causing the problem.  And I'm trying to avoid any manual process (other than triggering a single command) to actually delete them.  If I try deleting the directory from Explorer I get the error   Cannot delete [file name]: The file name you specified is not valid or too long.   Specify a different file name   Trying Remove-Item in powershell gives the following error:  Remove-Item : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. At line:1 char:12 + Remove-Item  &lt;&lt;&lt;&lt; -force -Recurse &lt;directory&gt;   Does anyone know of any tools or easy ways to get around this delete error without having to manually find the problem files and move/rename them? Is it possible that $a_n>0$ and $\sum a_n$ converges then $na_n \to 0$? (without assuming $a_n$ is decreasing) Is there any canon evidence that FN-2187 actually worked in sanitation? Finn tells Han that he worked in "Sanitation" on Starkiller.  FINN The flooding tunnels are over that ridge. We'll get in that way. HAN What was your job when you were based here? FINN Sanitation. HAN Sanitation? Then how do you know how to disable the shields? FINN I don't. I'm just here to get Rey   It just occurs to me - the "I was in sanitation" line given to Han seems to be the only actual canon evidence of "Sanitation" job.   But was it the truth"?!?!  Finn is always trying to create a positive impression of himself with the Resistance, from the get-go:   He tells Poe that he's rescuing him because that's the "Right thing to do" (with Poe quickly seeing through the fib: "You need a pilot!") He tells Rey that he's Resistance (she buys that because she's a romantic 19 year old still playing with X-Wing pilot helmet) He tells Han that he's Resistance (that one lasts about a minute - Han was not a romantic 19 year old even at 19 :)   In reality, we know that he was 1% of his class, model stormtrooper cadet, personally groomed for promotion by Captain Phasma (; ).  However, I am pretty sure telling Han "Hey, I was 1% of my class, model stormtrooper cadet, groomed for promotion by Captain Phasma"  isn't high on his list of brand management plans.  Far better to pretend to be a lowly "sanitation" worker than top-flight cadet that he really was.  So, my question is - do we have any direct canon evidence proving that the "sanitation" job was real and not a fib to make himself look better to Han/Resistance?  Knowing where trash compactor was isn't direct evidence, though it is circumstantial one. UTF-8 all the way through I have just got a new laptop, It is running Windows 7 Home Premium.  I have shrunk the windows partition to give me some empty space and now I want to install ubuntu.  From Windows my partitions look like:   So now in the ubuntu live cd If I hit install and go manual the partitioner looks like   So I thought I could just select the empty space and be away laughing, but when I hit it I get Bounty not awarded automatically — bug? Known proofs of Wirtinger's Inequality? In Harry Potter and the Philosopher's Stone, Hermione is in the toilets when Harry and Ron lock in the troll. She lies and says that she went looking for the troll. Why? She could have just said that she was in there because she needed the toilet (she was allowed to be, it's a girls' bathroom) and Harry and Ron came to save her.   Is there a reason she lied? Does anyone know how prove the following?   Suppose that $f,g$ are holomorphic functions on a non-empty open connected set $\Omega \subset \mathbb{C}$ and that $|f|^2+ |g|^2$ is constant on $\Omega$. Show that $f$ and $g$ are constant on $\Omega$. Compactness of  Multiplication Operator on $L^2$ Why would I want to install a snap if I can install via apt instead? This is not a duplicate of the following questions     because:  My question specifically states that I am interested in end-user experience, not ease or efficiency of development, which is what the other question largely refers to.  As has been noted, development/deployment affects end-user experience, but it is not all there is to it, and neither of the referenced questions address issues that directly impact an end-user's ability to use the application (e.g. trouble accessing data on other partitions, sluggishness, etc.) Maybe &quot;compelling&quot; wasn't the right word to use; my intent was to ask about real-world, experiential consequences, i.e., things that happen or  don't happen, as opposed to theoretical/architectural statements that, while presumably accurate, don't appear to be backed up with any real-world examples to support the statement. I should have stated more directly that my intention was to get answers that consider the balance of &quot;advantages&quot; to snaps against the real-world downsides experienced by end-users. The &quot;duplicate&quot; question is largely theoretical, and doesn't discuss end-user experience at all. The &quot;duplicate&quot; question makes no mention of anything remotely similar to the example I used here, i.e., that there is an end-user downside to snaps (in this case, lack of access to data on other partitions and snap app performance) that isn't discussed in any available documentation that I can find.   While I understand that snap has a big advantage in making apps more widely available, is there any compelling reason to choose snap over apt, if the app is available for my distro/version via an apt package? I am curious because I've been doing some reading about snaps, and all the excitement about the method seems to be about things that are advantageous for app developers, but I've seen virtually nothing on how this makes life easier for end users (aside from the obvious; that they may be able to install apps that aren't otherwise available on their distro/version). I installed snapd and installed a couple of snaps and was really frustrated and disappointed.  The snap apps are slow and it's difficult, if not impossible, to access files on other partitions from within the snap. While I've seen plenty of info that says snaps are &quot;faster,&quot; &quot;easier,&quot; &quot;safer,&quot; etc., I haven't been able to find anything that explains why or how this is actually the case. Being very new to Linux, I am wondering if maybe I'm just missing something obvious? To be clear, I understand why the technology might be useful overall, but I can't find anything that explains whether/why it is a better option even when the app in question is available for install via a more traditional method, and all dependencies are met. Slit screen and wave-particle duality number of edges induction proof Proof by induction that the complete graph $K_{n}$ has $n(n-1)/2$ edges.   I know how to do the induction step I'm just a little confused on what the left side of my equation should be. $E = n(n-1)/2$  It's been a while since I've done induction. I just need help determining both sides of the equation. Right-Click menu awareness on Web Application The web application I am building has a custom right-click menu. I'm concerned that the user might not find this menu as normally right-clicking will only display the default browser's menu. Is there a standard way to make the user aware of custom right-click menus? Is there another way to show this information? Let $\{a_n\}$ be defined as follows: $$a_1 = 2, a_{n+1}=\dfrac{1}{3-a_n}$$ $n \geq 1$.   Does $\{a_n\}$  converge?    Using the monotone convergence thereom, if the sequence is both bounded below and decreasing, $\forall n\in\mathbb{N}, n\geq 1$, then we can say the sequence converges.  I'm having trouble proving that the sequence is bounded below by induction.    Claim: The sequence is bounded below by $0$.  Base Case:  $n=1$  $a_1 = 2 \geq 0$, so this holds.  Induction Step  Suppose that $a_k \geq 0$, for some $k \in\mathbb{N}$. (IH)  Prove $a_k \geq 0\to a_{k+1} \geq 0$  I have some difficulty here.  $a_{k}=\dfrac{1}{3-a_{k-1}} \geq 0$  $a_{k+1}=\dfrac{1}{3-a_{k}}$, but we know $a_k \geq 0$, but we don't know how much bigger. It could be that $a_k = 4$, and then I have $a_{k+1}=\dfrac{1}{3-4}$, which is negative, and does not confirm with my claim of being bounded below by $0$. Have I gone somewhere wrong in my induction? Running junit tests in parallel in a Maven build? Where can I find other RPG players? I'd really like to learn how to play pen-and-paper RPGs.  I know that it takes a few players to actually sit down and play, but I'm not at all sure where to find more gamers.  How do I find existing groups to join? Or, are there any resources online that may help me find existing RPG groups or players? Deferring admission to a computer science graduate program Background: I have the opportunity to pursue a Computer Science graduate degree at a well respected program (around top 20). I spoke with the professors at the university and I feel like I am a good fit with their research program. My ultimate pursuits are to complete a PhD in CS. I've done research as an undergraduate and it has only confirmed my notion that I want to pursue a research track career.  More background: I applied to jobs (in case I was rejected to all the programs I applied for) prior to hearing back from my respective graduate programs. I accepted a position for an industry job (this was to secure I wouldn't be both unemployed &amp; not in school).  Dilemma: Turns out my top graduate school is very interested in me, and I'm very interested in them. I would rather go to graduate school than work in industry forever. The industry job pays very well. I am split between A) working for a maximum of 1 year(It would only be 1 year, seriously I do not care about the money enough to work past a year) and B) going straight to graduate school.   My concerns are as follows, if I choose A):    Could I potentially defer my admissions? If I am not allowed to defer my admissions, would I have a good chance of re-applying and being accepted a year later? Would my potential advisers look down on me for deciding to work a year?   I already made my mind up it would be a 1 year gig if I decide A). I know some people say once you make money, you may not be able to readjust to the graduate salary pay. But I don't think that will apply to because I'm going to live very frugally with or without industry pay. Why is my command throwing a 'data tag parsing failed' error? I am trying to lock some boxes in a map of mine, and I used this command:   /blockdata 10 4 9 {Lock:Elyiana's Mage Key}   At first it worked, but then when I logged back on the next day it gave me this error message:    Data tag parsing failed: Expected '}' but ''' at: {Lock:Elyiana'&lt;--[HERE]     I don't know why it doesn't like the apostrophe in the key's name. I would change it, but it already worked and locked some other items. My version is 1.12, does anyone have an answer to my problem? My non-native English speaking friend just asked me: "Data is..." or "Data are..."?  I said both but that's because I've been desensitized from reading/writing both (especially from writing code and adding quick comments).  My question: Is it acceptable to utilize either for a university paper? Or is one safer than the other (when confronted with stickler professors)?    Related questions: