Returning dates, between two dates (Gregorian Calender)
Java: how do I check if a Date is within a certain range?
Why am I getting black photos when I use the Manual feature on my DSLR? Get last insert id after a prepared insert with PDO What is so special about $\alpha=-1$ in the integral of $x^\alpha$? Of course, it is easy to see, that the integral (or the antiderivative) of $f(x) = 1/x$ is $\log(|x|)$ and of course for $\alpha\neq - 1$ the antiderivative of $f(x) = x^\alpha$ is $x^{\alpha+1}/(\alpha+1)$.  I was wondering if there is an intuitive (probably geometric) explanation why the case $\alpha=-1$ is so different and why the logarithm appears?  Some answers which I thought of but which are not convincing:   Taking the limit $\alpha=-1$ either from above or below lead to diverging functions. Some speciality of the case $\alpha=-1$ are that both asymptotes are non-integrable. However, the antidrivative is a local thing, and hence, shouldn't care about the behavior at infinity. Let $A,B,C$ be sets, and $B \cap C=\emptyset$. Show $|A^{B \cup C}|=|A^B \times A^C|$ Let $A,B,C$ be sets, and $B \cap C=\emptyset$. Show $|A^{B \cup C}|=|A^B \times A^C|$ by defining a bijection $f:A^{B \cup C} \rightarrow A^B \times A^C$.  Any hints on this one?  Thank you! What was Dumbledore's original wand made of? I'd like to do the equivalent of the following in LINQ, but I can't figure out how:  IEnumerable&lt;Item&gt; items = GetItems(); items.ForEach(i =&gt; i.DoStuff());   What is the real syntax? Code coverage for wrapper class is 0% How to update kernel to the latest mainline version without any Distro-upgrade? Currently I'm running Linux-3.0 and I want to update it to Linux-3.3.1 the latest stable kernel release as mentioned at . Can I update to 3.3.1 in Ubuntu without any risk of crashes? I'm updating my kernel regularly as provided by the Update Manager..Currently I have Linux-3.0.0.17..Can I update?  NOTE:  The latest kernel version any user is supposed to use in Ubuntu is updated automatically via the Update Manager, so no action is normally required by user regarding kernel upgrades. What the question author is referring to is mainline kernel, see: What amp rating of 24vac transformer for LM317T? I want to know what size transformer for LM317 at full 30 VDC. I know its a 24 VAC center tapped transformer but is 1 A or 5 A transformer best suited for a linear power supply of 1.5-30 VDC?  I will be using a standard LM317 variable power supply circuit with the 2200 uF 50 V smoothing and the 240 ohm drain resistor and potentiometer. I have a homemade oversized aluminum heat-sink that is quite large. Which resources are available to self-study GAP? Background: This year I'll do another Group Theory course ( Open University M336 ). In the past I have used Mathematica's AbstractAlgebra package but (although visually appealing ) this is no longer sufficient (i.e. listing subgroups of $S_4$ takes ages). So, I want to learn more about GAP. I worked through beginner tutorials that I found via the . Currently, I am not making much progress with GAP. The  does not help me much at this stage.  Question: Which resources are available to self-study GAP? How does one become proficient in GAP? What ( books, tutorials ) should you study? Why didn't Spock die in The Search for Spock? Reading list in topological QFT Can I replace my road bike's front wheel quick release with any quick release? I lost my road bike's quick release. Pictured are what I lost. Do I need to find a specific quick release that fits, or does one size fit all/most? Similar to my old question about  are there any limits to the animal forms an Animagus can be?     We know that the animal form can be much smaller than human (cat, rat, beetle) so I don't think size is a factor.   I'm not aware of any Animagus who transforms into a magical creature (e.g. unicorn or phoenix) so maybe those aren't possible.   Ultimately, what I'd like to know is whether there could be a T-Rex Animagus... (prompted by ) Is it correct to sometimes capitalize words mid-sentence in computer user interfaces? Necessary and sufficient condition for the matrix $A = I - 2 x x^t$ to be orthogonal Computing $\sum_{k=1}^{\infty}\frac{1}{k}\int_{\pi k}^{\infty}\frac{\sin(x)}{x}dx$ I was asked to evaluate the following sum: $$\sum_{k=1}^{\infty}\frac{1}{k}\int_{\pi k}^{\infty}\frac{\sin(x)}{x}dx$$  I'm trying to use $$\int_{0}^{\infty} \frac{\sin(x)}{x}dx=\frac{\pi}{2}$$ However, it doesn't seem to work. Any help is greatly appreciated. How do i make my ubuntu server public? I want to know how to make my ubuntu server ip public. I'm not asking for a domain, if people would be able to access my website by ip, it would be great! (just for now) Does someone have an idea how to do this? What is the difference between buy and purchase (How) Can SE sites change their reputation payout? A recent question on  reminded me that there is a  about awarding 10 rep per question upvote. This is mainly due to the relative difficulty and usefulness of asking/answering being different on the site (or appearing to be, at least).  The highly voted answer on PPCG is "Yes, we should do that," but it's been well over three years since it was posted. The answer there said that (at least at that time) meta.so had this implemented already, so it wouldn't/shouldn't be hard to do.  Given that it's been quite some time, I don't know if that's (still) true. I know that meat has undergone changes since then, but as long as I've been actively participating, meta.se (and meta.so before the split) has given 5 points per question upvote, not 10.  My question is: What would the process to change it look like? It's been discussed on meta.ppcg and agreed upon, so what's the next step? Or is it not feasible at all?