How to check if date is today or yetsterday or return date?
Compare two dates with JavaScript
Background  My Lenovo X250 is arriving in two weeks, which according to  will work well only with "a special image of Ubuntu pre-installed by the manufacturer."   points out that the X250 has "Excellent" compatibility to the Linux OSes they install. On the other hand, a quick search on  or  shows that a standard image of Ubuntu on the X250 is rife with hardware problems.  Ubuntu Certified Hardware acknowledges this for the X250: "Standard images of Ubuntu may not work at all on the system or may not work well." This  clearly shows the difference between an Ubuntu standard image installation and the one that comes pre-installed by the manufacturer. Hardware seems to work fully on the OEM version.  Question  Any idea where we may access or download these "special images of Ubuntu"?  (Hopefully not only for the X250, but also for the other systems out there.) using nginx with SNI By now I've not used SNI with nginx yet. But as IP address pools are quite filled and commercial XP support is about to cease (finally) I'm thinking about converting a few sites to SNI.  I'm aware of the general limitations and pitfalls that might come along with SNI (XP issue, very old browsers). But beyond that is there anything I should be aware of?   Like - nginx related pitfalls when using SNI - issues/bugs with recent (notable!) browsers I am reading the book Darth Plagueis, and when an assassination attempt is made on him by use of a nuclear bomb, the book states that nuclear weapons are scarcely available.   I searched briefly but found nothing on this and wondered if an explanation is available. Why would nuclear weapons be rare in a universe with such advanced technology across the board? Often I have a question, in a specific area (say Math SE or English SE) that is appropriate for the child meta of that site.   Then I realize it is not particular to the meta for that site but for Meta for all sites (like this question itself; I wanted a link to Meta Stack Exchange from meta.english, but realized no meta sites had such a link).  Wouldn't it be nice to have a link in all meta sites to Meta? How can Zeno's dichotomy paradox be disproved using mathematics? A brief description of the paradox taken from :     Suppose Sam wants to catch a stationary bus. Before he can get there, he must get halfway there. Before he can get halfway there, he must get a quarter of the way there. Before traveling a quarter, he must travel one-eighth; before an eighth, one-sixteenth; and so on.      This description requires one to complete an infinite number of tasks, which Zeno maintains is an impossibility. This sequence also presents a second problem in that it contains no first distance to run, for any possible (finite) first distance could be divided in half, and hence would not be first after all. Hence, the trip cannot even begin.      The paradoxical conclusion then would be that travel over any finite   distance can neither be completed nor begun, and so all motion must be   an illusion.   How can this be disproved using math, as obviously we can all move a walk from one place to another? Are questions about (development) devices allowed on Stack Overflow? I've seen many questions on Stack Overflow asking which devices are best for developers. This made me wonder if questions asking for hardware device recommendations (best device for programming, best device within a certain budget, etc.) are on-topic for Stack Overflow, or if they should be asked somewhere else?  For Instance check these links:         etc. Story about an intelligent, walled city; people are reproduced by machines, protagonist rebels and tries to leave How can I get the source directory of a Bash script from within the script itself? How do I get the path of the directory in which a  script is located, inside that script? I want to use a Bash script as a launcher for another application. I want to change the working directory to the one where the Bash script is located, so I can operate on the files in that directory, like so: $ ./application How do you make corrections to a published paper? Losing permissions by adding capability? I observed the following phenomenon that I can not explain. After adding the CAP_SYS_ADMIN capability, unshare is no longer able to write to /proc/self/setgroups.   In fact, writing to this file requires the capability, but that is achieved by changing the user namespace. So why does adding the capability to the parent process prevents writing to this file?  me@myhost:~$ unshare -r root@myhost:~# exit logout  me@myhost:~$ sudo setcap cap_sys_admin=ep /usr/bin/unshare me@myhost:~$ unshare -r unshare: cannot open /proc/self/setgroups: Permission denied  me@myhost:~$ sudo setcap cap_sys_admin= /usr/bin/unshare me@myhost:~$ unshare -r root@myhost:~#   By the way: I am running Ubuntu 16.04.4 LTS with kernel version 4.4 and the version of util-linux (including unshare) is 2.27.1. How to combine bold and "code sample" in Markdown? Split Data Based on Year in a Visual force Page PDF Show $\lim_{h\to 0} \frac{(a^h-1)}{h}$ exists without l'Hôpital or even referencing $e$ or natural log How do I join two lists in Java? Can't preview smoke simulation on Blender 2.82 Whenever I add a Quick Smoke effect, I can't preview it on the viewport unless I bake it.   And Yes, I added the Smoke Domain on the object.   I've seen tutorials like this  and this  that clearly shows the possibility of previewing the smoke before baking it.   I'm using Blender on a Mac with AMD GPU. I would guess that this is something related to OpenGL, as thoroughly explained here -  but that's for Windows.   Does anyone have any idea how to fix this? What happens in electron-electron collisions? Just out of curiosity, I have developed a small app analysing and generating sitemaps for a given domain.   Can I tell search engines to look for the sitemap of a given domain on my app using a dynamic url i.e. can you use cross-domain sitemaps.xml without validating you are owner of the destination domain?  For example :   http://example.com/mydomain.com/sitemap.xml Cannot open adobe reader on Ubuntu 12.10 64bits How can I execute a function on pressing the enter key in an  field? Could new users be prompted to edit instead of commenting? It's very common to ask for additional information on a question.  This is perhaps most common with new users who are a little unfamiliar with the need to put all relevant information in their question to start with.  To be blunt, I'm a little tired of explaining to new users that an edit is better than a comment, particularly where we ask "please add the output of..." I note that some users have taken to explicitly asking OPs to edit their question and adding an edit link in their comment.  But still this is missed.  More recently, adding a comment to a new user's question displays a little note saying:     ... is a new contributor. Be nice, and check out our Code of Conduct.   Could there be a similarly formatted note to new contributors commenting on their own question or answer:     If you need to add more information please  your [question][answer] instead of adding a comment.