I have dates in the format Y-M-D hour-minute-second 2013-09-03 12:10:28, but I need the unixtimestamp.  PHP has a slough of functions for transforming dates and times, but apprently none that can accept a date and its format and convert it into unixtime. The closest function I found was mktime(), but I would need to parse my current date into each of its components. Is there an easier way?
How do I get timestamp from e.g. 22-09-2008?
How do I change permissions on a FAT32 formatted drive? Let $\mathbb{F}_3$ be the field with three elements. Let $n\geq 1$. How many elements do the following groups have?   $\text{GL}_n(\mathbb{F}_3)$ $\text{SL}_n(\mathbb{F}_3)$   Here GL is the , the group of invertible n×n matrices, and SL is the , the group of n×n matrices with determinant 1. I'm training a neural network and the training loss decreases, but the validation loss doesn't, or it decreases much less than what I would expect, based on references or experiments with very similar architectures and data. How can I fix this?    As for question        to which this question is inspired, the question is intentionally left general so that other questions about how to reduce the generalization error of a neural network down to a level which has been proved to be attainable, can be closed as duplicates of this one.  See also dedicated thread on Meta: How to search questions with only one specific tag? I can search question with target using [target] but the result questions also include question tagged with other tags.   How to get the question with only one specific tag? Data   I want operator users on this machine to mount their own cifs shares The sudoers file already contains the /bin/mount -t cifs //*/* /media/* -o username=* command for all operators I want the users to mount a cifs share through a script typing the password only once, not twice. The sudo password and the cifs password are identical.   What I already have  This script works:  #!/bin/bash sudo 'mount -t cifs //192.168.1.1/home /media/$USER/home -o username=$USER'   ...but it requires the users to type the same password twice!     Once for sudo Once for the mount itself   This would also work:  #!/bin/bash echo -n Password:  read -s szPassword echo $szPassword | sudo -S sh -c 'echo $szPassword | mount -t cifs //192.168.1.1/home /media/$USER/home -o username=$USER'   ...but this would require me to allow all operator users to be able to sudo sh (major security problem)  Question  How to mount a cifs share in bash¹ without putting sh in the sudoers file nor creating a permanent/temporary file???  Note 1: no python, perl, C, Go, ... please? Note 2: I know I can just remove the password through the sudoers file, but I'm trying to tighten security, not loosen it, without giving up convenience... The pdf of $\frac{X_1-\bar{X}}{S}$ Suppose $X_1, X_2,...,X_n$ be i.i.d from $N(\mu,\sigma^2)$ with unknown $\mu \in \mathcal R$ and $\sigma^2&gt;0$  Let $Z=\frac{X_1-\bar{X}}{S},$ S is the standard deviation here.  It is can be shown that  $Z$ has the Lebesgue p.d.f.  $$f(z)=\frac{\sqrt{n} \Gamma\left(\frac{n-1}{2}\right)}{\sqrt{\pi}(n-1)\Gamma\left(\frac{n-2}{2}\right)}\left[1-\frac{nz^2}{(n-1)^2}\right]^{n/2-2}I_{(0,(n-1)/\sqrt{n})}(|Z|)$$  My question is then how to get this pdf?  The question is from  in example 3.3.4  to find the UMVUE of $P(X_1 \le c)$. I can understand the logic and procedures to find the UMVUE but don't know how to get the pdf.  I think this question also relate to this    Thank you very much for help or point to any related references will be also appropriated. We have noticed that when using nginx internal 301 and 302 handling, nginx will serve a small document body with the appropriate Location: ... header.  Something along the lines of (in html): 301 redirect - nginx.  As appropriate in the above behaviour, a content-type text/html and content-length header is also sent.  We do a lot of 302 and some 301 redirects, the above behaviour is wasted bandwidth in our opinion.  Any way to disable this behaviour?  One idea that crossed our mind was to set error_page 301 302 to an empty text file. We have not tested this yet, but I am assuming even with the above, the content-type and content-length (0) headers will be sent.  So, is there a clean way to send a "body-less" 301/302 redirect with nginx? Calculate time elapsed in php - spans over 24 hours How do you reset the sa password? In which countries are the visitor's first name and last name compulsory? My name consists of just a first name and no surname.  Will there be a problem regarding my name in the country I visit with a tourist or employment visa? Are there countries in the world where this might be a problem? How do I monitor the computer's CPU, memory, and disk usage in Java? I know that there is a precise solution of the equations:  \begin{align}     x + a &amp; = 0 \\     x^2 + a\cdot x + b &amp; = 0 \\     x^3 + a\cdot x^2 + b\cdot x + c &amp; = 0 \\     x^4 + a\cdot x^3 + b\cdot x^2 + c\cdot x + d &amp; = 0 \end{align}  Why there is no solutions for equation of degree $\ge 5$? Beamer: PDF presentation viewer to play embedded videos and show elapsed time I have been suffering from finding a PDF presentation viewer for beamer output on Windows that can play embedded videos (by media9 package) and show the elapsed presentation time. I have tried the following: Adobe Reader with tdclock package:  Pros: plays videos and loads tdclock properly Cons: sluggish and crashes frequently  Foxit Reader with tdclock package:  Pros: smooth viewer and plays videos  Cons: can't load tdclock clock/stopwatch despite enabling javascript   Impressive:  Pros: fast and has internal clock  Cons: can't play embedded videos   Dual-Screen PDF Viewer:  Pros: very fast, has internal clock and dual screen support  Cons: can't play embedded videos   Is there any other solution that can properly play embedded videos and show elapsed presentation time flawlessly and smoothly on Windows?  P.S. when I mean tdclock javascript is not loaded, those empty red boxes show up instead of the clock/stopwatch,  and when embedded video can't be loaded, a white page shows up. How to prove $x^a-1\mid x^b-1 \iff a \mid b$, where $x \ge 2$ and $a,b,x \in \Bbb Z$.  I've tried the following in attempting to solve this:  $$a\mid b \Rightarrow aq=b \Rightarrow x^{aq}=x^b \Rightarrow x^ax^q=x^b$$  Because $x^q \in \Bbb Z$, it follows that $x^a\mid x^b$.  This is as far as I have gotten; any help getting further is appreciated.  Note: It may be that this identity is not true at all? I tried to install OracleJDK 8 using   sudo add-apt-repository ppa:webupd8team/java   But it's not working.   I searched the problem and found that      "The Oracle JDK License has changed for releases starting April 16, 2019." And  "Oracle Java (JDK) 8 Installer PPA (DISCONTINUED)"   So I installed the OpenJDK8 .   But why oracle cancelled the license of oracle 8 installer? I need to find a bottleneck and need to accurately as possible measure time.  Is the following code snippet the best way to measure the performance?  DateTime startTime = DateTime.Now;  // Some execution process  DateTime endTime = DateTime.Now; TimeSpan totalTimeTaken = endTime.Subtract(startTime); What is a rocket engine thrusting against in space? Why should I use the keyword "final" on a method parameter in Java? Within 300 km of Tokyo: Where for flora, landscape, nature? I plan to visit Japan for 10 days and apportion 5 days to Tokyo. For the remainder, I want to escape the megalopolis and enjoy picturesque backwoods or countryside. Please recommend? Criteria:   No dangerous animals or untamed boondocks. No  or snakes. I won't drive, and must rely on public transport and walking less than 5 km in total.  No shrines, temples or any religious edifice. OPTIONAL: I fancy  , the more  the better.   This instantiates, doesn't duplicate, . pgfplots and using axis cs to add points I am trying to mark two inflection points using a foreach loop in a pgfplot, but it isn't working.  \documentclass[tikz]{standalone} \usepackage{pgfplots} \pgfplotsset{compat = 1.10}  \begin{document} \begin{tikzpicture}   \pgfmathsetmacro{\infx}{1/sqrt(2)}   \pgfmathsetmacro{\infy}{exp(-.5)}   \begin{axis}[     xmin = -3,     xmax = 3,     ymin = -0.1,     ymax = 1.05,     domain = -4:4     ]     \addplot[blue, samples = 500, smooth] gnuplot {exp(-x^2)};      \foreach \x/\y in {\infx/\infy, -\infx/\infy}{       \draw[red] (axis cs: \x, \y) circle[radius = .025];     }   \end{axis} \end{tikzpicture} \end{document}   I am being told:  Undefined control sequence.^M &lt;argument&gt; axis cs: \x ^M                        , \y ^M l.34   \end{axis}^M