JavaScript - Compare dates I have a question for you guys. I want to compare the date of today and an other self made date. The date of today is called a and the name of the self made date is b. If ais later then b I want to do something, but how. And the date format should be year,month,day,hour,minute,second e.g: 2015,03,20,09,58,44
Compare two dates with JavaScript Can someone suggest a way to compare the values of two dates greater than, less than, and not in the past using JavaScript? The values will be coming from text boxes.
How to export / dump a MySql table into a text file including the field names (aka headers or column names) Available space not changing when resizing a partition In my computer I have several partitions. I have one partition with Fedora that had just below 40 GB of space, and which I wanted to make bigger. Therefore, using GParted, I moved 10 GB from another partition to the Fedora partition. Now, according to GParted, I should have just below 50 GB (see sda12):  However, from Fedora itself the available space looks different:  This was the same space that was available before I resized the partition. How do I make that space actually available to Fedora? In FHS-2.3, we have /media that holds mount points for removable media such as CD-ROMs and we have /mnt that holds temporarily mounted filesystems.  On the other hand, we have /run/media and /run/mount. For me, the CDs and USBs are mounted on /run/media.  I don't see any clear distinction between them(/media, /mnt, /run/mount) . What are their differences?     I have seen similar trend (mount on /run/media) in fedora 20 - GNOME 3.10.4 and ubuntu 14.04.1 (installed on virtual box) with GNOME 3.10.4. But when I plugged in a USB flash (with auto-mounter script) on a system with Centos 6 and GNOME 2.28.2 it was mounted on /media I was so excited about the Spring '14  as a way to present data visualizations on a public site, and now it looks like that's not possible.  I created a page that looks basically like the release notes sample:  &lt;apex:page &gt;     &lt;analytics:reportChart reportId="00OW0000000Spru"&gt;&lt;/analytics:reportChart&gt; &lt;/apex:page&gt;   I tested it inside the authenticated environment, where it works fine, then added it to a Site. There, I get the error: To view the report chart, you need both the Run Reports permission and access to the report's folder. But, Run Reports is not a permission I can grant to the Site Guest User.  Anybody have any ideas for a workaround? Or is it not going to be possible to show report charts on a public site? Can one introduce magnetic monopoles without Dirac strings? To introduce magnetic monopoles in Maxwell equations, Dirac uses special strings, that are singularities in space, allowing potentials to be gauge potentials. A consequence of this is the quantization of charge.  Okay, it looks great. But is this the only way to introduce magnetic monopoles? My initial problem was that my computer wouldn't let me login to my account. It seems to shut down after I enter my password. I can login as a guest.  I found fixes but I can't remember / figure out my login for access after I hit Ctrl+Alt+F1 and most of the fixes for finding your login username depend on you having access to your account.  I thought the login was the name which appears on the screen when I start the computer normally, but this has not worked, is there another way to find out my username while being effectively locked out of my root-user profile?  I am also assuming that the password is the same one I always use.  Conversely, if the name which appears on the screen at startup and my normal password should have worked, is there another explanation for why I am not able to login on the black command screen. Mail vs. mail what is the difference Let $U$ be connected. A function $u \in H^1(U)$ is a weak solution   of Neumann's problem   \begin{equation} (*)\qquad\left\{ \begin{array}{rl} -\Delta = f &amp; \text{in } U \\ \frac{\partial u}{\partial \nu} = 0 &amp; \text{on } \partial U \end{array} \right. \end{equation}   if   $$ \int_U Du \cdot Dv \; dx = \int_Ufv \; dx $$   for all $v \in H^1(U)$. Let $f\in L^2(U)$. Prove $(*)$ has a weak solution   if and only if   $$ \int_U f \; dx =0. $$   For the only if part I set $v=1$. However I do not see where to start the if part. I was thinking of the Lax-Milgram theorem. That's where I'm now. Join table depending on value of column in main table Airplane ground speed and direction, given airspeed and wind An airplane heads northeast at an airspeed of 900 km/hr, but there is a wind blowing from the west at 60 km/hr. In what direction does the plane end up flying? (angle). What is its speed relative to the ground?   I drew a picture. I think I am having a hard time understanding how to solve the problem. I want to add the wind vector to the plane vector - is that as simple as 840 km/hr? After really adding the vectors together, do I do: (added vectors)cos(45)? Downloading files using wget I am trying to download files from .  The URL is:   When I use this command:  wget http://www.ncbi.nlm.nih.gov/geo/download/?acc=GSE48191&amp;format=file    I get only index.html?acc=GSE48191 which is some kind of binary format.  How can I download the files from this HTTP site? Suppose you have 2 circles that intersect each other in such a way that each circle passes through the other's center. What is the area between the circle(or common area) i.e. area between the centres of the circles? Does *first of all* always go with *second of all*? According to , first of all is twice as popular as firstly, but secondly is a hundred times more popular than second of all.  When I present two points, do I have to be consistent in the choice of these phrases (if I use firstly, should the other be secondly)?  Because If I choose the most popular, my sentence would be like "First of all he is rich, secondly he is also smart." Which exhibits kind of inconsistency. How does it sound? How to prove $(-3) \times (-4) = 12$? How to logically understand the multiplication of two integers ?  Eg:  3 x 4 = 12 (is understandable)  -3 x4 = -12 (is also somewhat understandable)  But , 3 x -4 = -12 (is NOT understandable)  -3 x -4 = 12 (is also NOT understandable)  Now , at this we must assume that commutative property may not be true .  What is the logical explanation for something being multiplied negative times ? Conditional distributions of the multivariate normal Samba authentication fails Proving $\sup B=\inf A$ Let $A$ be a nonempty and bounded below, and define $B= \{b\in \mathbb{R}: b$ is a lower bound for $A\}$. Show sup$B$ = inf$A$.   So far I have: Let $A$ be nonempty and bounded below. This implies $\exists l \in A, \forall a \in A, l\leq a$ and $l =$ inf$A$. Let $B = \{b\in \mathbb{R}: b$ is a lower bound for $A\}$ and let $M=$ sup$B$. This implies $\exists b\in B, \forall b \in B, b\leq M$. By definition of $B$, we know inf$A \in B$. Since $b\leq$ sup$B$, with sup$B$ the largest element in $B$, we have inf$A \leq M =$ sup$B$, so inf$A \leq$ sup$B$.  I realize I have to prove that sup$B \leq$ inf$A$ to get that sup$B$=inf$A$. I am having trouble doing so.   Part B: Use (a) to explain why there is no need to assert that greatest lower bounds exist as part of the Axiom of Completeness. Can I wield just a shield and use magic? I play a wizard and while I am rarely hit due to being in the back I'm still paranoid I will get hit. So I was wondering if, after getting a feat to wield a shield, I can use that with one hand and use magic with the other? Pressure at base of 3 different dam designs The question asks, For which design will the water pressure at the base of the dam wall be the greatest?  The answer is all are equal.    This doesn't make sense to me.  Using the formula: P (pressure) = p (atmospheric pressure) + rho (density) * g (gravity) * y (depth below water surface)    What is confusing me is the y value, the depth below the surface. Yes both red points are the same depth below the water surface. But doesn't the red point in dam III only "see" a smaller column of water above it and so shouldn't it have less pressure on it than the red point in dam II?    Also, I know the formula would give the points at the base of dam I and dam II equal. But why doesn't the extra water in dam II (shaded in black) cause it to have a higher pressure at the base? Alt-click for edge loop Hi I am a complete newcomer to blender and am following this tutorial, where he says to alt+click to select an entire row or "edge loop". I have followed all instructions exactly up to this point (3 times to make sure!). Alt-click does nothing. Thank you for your help. p.s. If possible, please keep answers in simple layman's language. I see some similar posts about alt click and loop select but had trouble following since the explanations were too advanced. Thank you! Video starts where he demonstrates alt+click: