php check if date entered is weekend
Checking if date is weekend PHP
Is there a quick way to set an HTML text input (&lt;input type=text /&gt;) to only allow numeric keystrokes (plus '.')? Home folders accessible to other users and should not be, how to fix? Why are my home folders accessible by other users on the same system by default?  I understand that I can change the permission of the home folders but want to know why this happened?  I have done nothing to make the folders "shareable" and yet I can easily navigate to any users home folder using Nemo 2.4.5 and see all their contents.  This is quite a privacy and security flaw and I'm not sure why it has defaulted this way on my system.  Under Users and Groups (items checked =) (both are administrator accounts)  User 1 = adm, cdrom, dip, lpadmin, plugdev, sudo  User 2 = User 2, sudo  Also of note is why User 2 has User 2 clicked but User 1 does not have User 1 clicked.  Both accounts appear to behave exactly the same.  Thank you for any tips in this matter. Sauron knew that the One Ring could be destroyed only in Mount Doom, where it was forged. From Sauron's perspective, no one would think about destroying the One Ring. But if someone did, then Mount Doom would be the only place to do so.  Why did he keep Mount Doom active? Wasn't the risk too high? I'd like to be able to find out which process is currently using a certain port in Linux. Is there any way to do this? How to successfully put a bibliography in a report on TexShop? I'm trying to put a bibliography in my LaTeX document, but I get various errors when I run it in BibTeX (saying no \citation found etc.), and no bibliography is printed in the PDF when I typeset it in LaTeX. My code reads as follows:  \documentclass[12pt]{report} ... \usepackage{biblatex} \addbibresource{SUSYBib.bib} ... \begin{document} ...\cite{1}... ...\cite{2}... \nocite{*} \printbibliography \end{document}   And my .bib file reads as  @book{1, title={The Schrödinger Equation}, author={F. A. Berezin, M. A. Shubin}, year={1983}, publisher={Moscow State University, Moscow}, pages={57-59} } @book{2, title={An Introduction to Measure Theory}, author={Terence Tao}, year={2011}, publisher={American Mathematical Society}, pages={91} } What is the correct way to edit a crontab file? How to move windows that open up offscreen? I have a dual monitor setup, and I recently played around with the positioning settings, and some of my single window applications do the favour of preserving where they were last closed, and opening in the same position later. Unfortunately, that now places them out of the viewable area of my screens!  Is there some way to force a particular window into the viewable area? Which site is more reasonable for questions about R, SO or stats.stackexchange.com? I've been using SO for a little over a year now, and recently I've noticed a shift of users between SO and stats.stackexchange.com.   I'm wondering if there has been any discussion on where questions about R, a statistical environment, best fits. Would you say it's better to ask R questions on SO or would it be better to ask over at stats.stackexchange.com? What, if any, determinants would you use to decide to post between the two? What about cross posting? I'm experiencing a strange problem with Outlook 2019. When viewing a message it only shows the first line. On an HTML message, it stops at the first close paragraph tag. On a plaintext message, it stops at the first newline character. This is true if viewing a message in the reading pane as well as if double-clicking the message to open in its own window. I have the preview pane set to show 3 lines and it does show more of the message so it seems like Outlook can see more of the message than it's rendering in the reading pane. If I use View Source, the underlying data seems fine and the whole message is there. I've tried the following:  Deleting and re-creating the user's mail profile Uninstalling &amp; re-installing Office Creating a new Windows account &amp; connecting Outlook to a different Exchange account than the one that originally exhibited the problem Checked for Windows updates Checked for Office updates  Any ideas what might be causing this? I feel like I've tried everything obvious &amp; I'm striking out on Google. Calculation of limit without stirling approximation $\lim n^n/(e^nn!)=0$ using Stirling approximation it is obvious. But can we do it without using Stirling approximation.  Now series with terms $x^n n^n/n!$ has ROC $1/e$. What we can say about behaviour of power series at endpoints? Why does the atmosphere rotate along with the earth? I was reading somewhere about a really cheap way of travelling: using balloons to get ourselves away from the surface of the earth. The idea held that because the earth rotates, we should be able to land in a different place after some time. As we all know, this doesn't happen.  Someone said that the reason why this doesn't happen is because the atmosphere (air, clouds etc.) also revolves around the earth (with the same angular velocity as the earth's rotation). Since we are also part of the atmosphere, our position doesn't change relatively.  Well, I'm not convinced with that answer. Why does the atmosphere rotate along with earth?  Gravitational force is towards the centre of the earth, but I don't see how it's making the atmosphere rotate. Why is causality preserved in special relativity? PART 1: I was reading the article  Wikipedia. I couldn't understand this line:       "if the two events are causally connected ("event A causes event B"), the causal order is preserved (i.e., "event A precedes event B") in all frames of reference."     Is this an assumption or a consequence of STR? Please explain.       Note: My question consists of 2 parts this is the 2nd part. Below is a genral version of my previous question question:.   PART 2: Let there be three events $A$,$B$ and $C$ s.t: $C$ is the result of Simultaneous occurrence of $A$ and $B$. In other words $C$ occurs iff $A$ and $B$ are simultaneous. Now as we know in STR any two events separated in space are not simultaneous in different frames. So In some frames $C$ will occur and in some $C$ will not occur which will cause paradox. I tried many thought experiments to make such a paradox but i failed. In all the experiments that i thought i could not break the causality even by breaking the simultaneity because everytime the fact: "all signals move slower than light" preserved the causality.    So why causlity remains preserved always? Is it due to the fact that nothing can move faster than light? I was wondering if $\mathbf{A}\times\mathbf{C}=\mathbf{B}$ and $\mathbf{A}\cdot{\mathbf{C}}= p$, is it possible to express C in terms of A, B, and p?  Note: A, B, C are vectors and p is a scalar.  Sorry if this question has been asked before. If so, can anyone give me a link to it? How to change the font color of a disabled TextBox? How to create a matrix with 20 columns in latex The code below works,  but when I add 10 more columns, it does not. So, how can I add ten more columns to the matrix below?  \documentclass{article} \usepackage{amsmath} \begin{document}  \begin{equation} \begin{bmatrix}  1 &amp; 0 &amp; 0 &amp; 0  &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; 1 &amp; 0  \end{bmatrix} \end{equation}  \end{document} unzip error "End-of-central-directory signature not found" I try to unzip a zip file, but got an error:  $ unzip COCR2_100.zip  Archive:  COCR2_100.zip   End-of-central-directory signature not found.  Either this file is not   a zipfile, or it constitutes one disk of a multi-part archive.  In the   latter case the central directory and zipfile comment will be found on   the last disk(s) of this archive. note:  COCR2_100.zip may be a plain executable, not an archive unzip:  cannot find zipfile directory in one of COCR2_100.zip or         COCR2_100.zip.zip, and cannot find COCR2_100.zip.ZIP, period.   I googled but didn't find a solution. I was wondering why it is and how I should fix it? Thanks!  The zip file can be downloaded from . It is an application, and here is its website .  My OS is 10.10. My computer boots to a black screen, what options do I have to fix it? I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents: jquery disable form submit on enter I have just bought a new bike and had it about a month now. I don't really know much about bikes but I do know how to repair an inner tube.  I have had one puncture and just bought a new inner tube. It worked for a few days and then went down again so this time I got a puncture repair kit. I took the inner tube out to check for any punctures and found nothing. I put it in water and pumped it up and there were no bubbles. I went around the entire tube pushing it next to my ear and heard nothing. I checked the tire to see if anything was wrong - there was nothing that I could see.   So I put it all back together and took it for a ride and got about half a mile and the tire was flat. I pumped it up and got about another half a mile and it was flat again.  Do you have any suggestions for me? .NET Attributes: Why does GetCustomAttributes() make a new attribute instance every time?