I am using jQuery validator and everything works fine. But now I have a requirement of using min and max value. But here is a problem.  Requirement  The user can input values from 60-600 or 0.  Code  &lt;input type="number" value="0" max="600" min="60" class="form-control" id="interval" placeholder="Enter interval in seconds 0 or min. 60 - max 600" name="interval"&gt;   Problem  The issue in this is user can't input 0 value.
How do you create a simple, custom rule using the jQuery Validate plugin (using ) that doesn't use a regex?  For example, what function would create a rule that validates only if at least one of a group of checkboxes is checked?
I am trying to proof the following algorithm to see if a there exists a path from u to v in a graph G = (V,E).   Reach := {u} LastCardinality := 0 while LastCardinality &lt; |Reach| do   LastCardinality := |Reach|   Next := null   foreach i &lt;- Reach do     foreach j &lt;- V do       if(i,j) exists in E then         Next := Next + {j}   Reach := Reach + Next return Reach   So far I have got that the output needs to be Reach = Goal where Goal = {r | r exists V, there is a path from u to r}. I also have three invariants that I am pretty sure will help prove this.   Reach is always a subset of Goal and Next is always a subset of Goal. After an arbitrary K times through the while loop, for every t that exsits in V, if t has a path of length k+1 from u, then t exists in Reach If Reach is a subset of Goal before the while loop then LastCardinality &lt; |Reach|   I know that to finish up the proof, I need to prove termination, the invariants, and correctness but I have no idea how. I think I need to use induction on the while loop but I am not exactly sure how.   How do I proof those three characteristics about an algorithm? Chrome: remove URL from autocomplete which doesn't show up in history? I accidentally visited gist.gihub.com (note the missing t), and now that URL auto completes each time I start typing gist.…. How can I remove this URL?  I've tried removing it from my history, but that doesn't help:     (note the empty search results) Why is the sum of the digits in a multiple of 9 also a multiple of 9? The sum of the digits in $9 k$ (where $k$ is an integer) is a multiple of $9$: for example   $$9\cdot 1=9$$ $$9\cdot 7=63 \qquad  \text{and } 6+3=9\cdot 1$$ $$9\cdot 11=99 \qquad \text{and }  9+9=9\cdot 2$$  But why? In my project, I use a lot of geodata from different directories. Now I want to give the QGIS project to a colleague (eg on a CD).  Is it possible to copy the shapes from different directories automatically to one directory? $$\lim_{x\to 0} \frac{\ln(1+x)}x$$  The process I  want to take to solving this is by using the definition of the limit, but I am getting confused. ( without l'hopitals rule)   $$\lim_{h \to 0} \frac{f(x+h) - f(x)}h$$  $$\lim_{h \to 0} \frac{\frac{\ln (1+x+h)}{x+h} - \frac{\ln(1+x)}x}h$$  $$\lim_{h \to 0} \frac{x\ln(1+x+h) - (x+h)\ln (1+x)}{hx(x+h))}$$  At this point I get confused because I know the answer is $1$, but I am not getting this answer through simplification of my formula. I need to draw a tree, and constantly using dotty and including the PNGs is starting to be a pain. Is there a way to get LaTeX to draw it's own trees that doesn't involve learning an entirely new language like TikZ? Can you make a non-polar electrolytic capacitor out of two regular electrolytic capacitors? There was some discussion on this question        which I don't see as being conclusively resolved:   "turns out that what might LOOK like two ordinary electrolytics are not, in fact, two ordinary electrolytics." "No, do not do this. It will act as a capacitor also, but once you pass a few volts it will blow out the insulator." 'Kind of like "you can't make a BJT from two diodes"' "it is a process that a tinkerer cannot do"   So is a non-polar (NP) electrolytic cap electrically identical to two electrolytic caps in reverse series, or not?  Does it not survive the same voltages?  What happens to the reverse-biased cap when a large voltage is placed across the combination?  Are there practical limitations other than physical size?  Does it matter which polarity is on the outside?  I don't see what the difference is, but a lot of people seem to think there is one.  Summary:   As posted in one of the comments, there's a sort of electrochemical diode going on:     The film is permeable to free electrons but substantially impermeable to ions, provided the temperature of the cell is not high. When the metal underlying the film is at a negative potential, free electrons are available in this electrode and the current flows through the film of the cell. With the polarity reversed, the electrolyte is subjected to the negative potential, but as there are only ions and no free electrons in the electrolyte the current is blocked. —    Normally a capacitor cannot be reverse-biased for long, or large currents will flow and "destroy the center layer of dielectric material via electrochemical reduction":     An electrolytic can withstand a reverse bias for a short period, but will conduct significant current and not act as a very good capacitor. —    However, when you have two back-to-back, the forward-biased capacitor prevents a prolonged DC current from flowing.  :     For circuit positions when reverse voltage excursions are unavoidable,   two similar capacitors in series connected “back to back” ... will create a   non-polar capacitor function ... This works because almost all the circuit voltage   is dropped across the forward biased capacitor, so that the reverse   biased device sees only a negligible voltage.   :     The oxide dielectric construction that is used in tantalum capacitors   has a basic rectified property which blocks current flow in one   direction and at the same time offers a low resistance path in the   opposite direction. I'm trying to install wifi drivers for a particular mini wifi card i bought. The output of lsusb is:  0bda:f179 Realtek Semiconductor Corp   I've searched everywhere for drivers, but could not find anything. Any help?  Thanks How can you tell when a participle is being used as an adjective?  I feel completely lost trying to guess. Just as a completely arbitrary example   For every dedicated scientist patiently recording atmospheric pressure and wind speed while shivering at high altitudes, there is a carnival barker with a bevy of pretty girls willing to dangle from a basket or parachute down to earth. How to disable Spotify indicator in the top panel? The Spotify indicator icon clashes with the native Unity theme, and is redundant, since it is already listed in the Sound indicator menu. Is there a way to remove or disable the Spotify indicator? Or at least to change the icon (couldn't grep it on my filesystem). I am using the Spotify "preview" with 12.04. Thanks! Is it okay to ask a professor from another university for class lecture notes of a course that he offered on that university? I find two very interesting courses that were offered in the Spring 2019 semester at ETH Zürich. Unfortunately, their class lecture notes are not shared publically. I wonder if it is appropriate to email the professors and ask them for class notes. Mount cifs Network Drive: write permissions and chown I have access to a cifs network drive. When I mount it under my OSX machine, I can read and write from and to it.   When I mount the drive in ubuntu, using:  sudo mount -t cifs -o username=${USER},password=${PASSWORD} //server-address/folder /mount/path/on/ubuntu   I am not able to write to the network drive, but I can read from it. I have checked the permissions and owner of the mount folder, they look like:  4.0K drwxr-xr-x  4 root root    0 Nov 12  2010 Mounted_folder   I cannot change the owner, because I get the error:  chown: changing ownership of `/Volumes/Mounted_folder': Not a directory   When I descend deeper into the network drive, and change the ownership there, I get the error that I have no permission to change the folder´s owner.  What should I do to activate my write permission? To make a JavaScript class with a public method I'd do something like:  function Restaurant() {}  Restaurant.prototype.buy_food = function(){    // something here }  Restaurant.prototype.use_restroom = function(){    // something here }   That way users of my class can:  var restaurant = new Restaurant(); restaurant.buy_food(); restaurant.use_restroom();   How do I create a private method that can be called by the buy_food and use_restroom methods but not externally by users of the class?  In other words, I want my method implementation to be able to do:  Restaurant.prototype.use_restroom = function() {    this.private_stuff(); }   But this shouldn't work:  var r = new Restaurant(); r.private_stuff();   How do I define private_stuff as a private method so both of these hold true?  I've read  a few times but it doesn't seem like "private" methods can be called by public methods and "privileged" methods can be called externally. List user's folder access permissions What I get:  host:~ user$ cat example.txt some texthost:~ stas$   What I want to get:  host:~ user$ cat example.txt some text host:~ stas$   Is there a way I can make cat behave like this?  I'm using bash on Mac OS X. Do I need to use The Loop on pages? I'm writing my first WordPress theme and have a question about the use of The Loop in page templates. The page templates I've looked at all follow basically the same pattern (example from Twenty Twelve):  &lt;?php while ( have_posts() ) : the_post(); ?&gt; &lt;?php get_template_part( 'content', 'page' ); ?&gt; &lt;?php comments_template( '', true ); ?&gt; &lt;?php endwhile; // end of the loop. ?&gt;   But a page will only have one post associated with it so iterating through the posts seems unnecessary. My page template is more readable and seems to work fine:  &lt;?php the_post(); the_title('&lt;h1&gt;', '&lt;/h1&gt;'); the_content(); ?&gt;   Is this a good practice? Are there any downsides? Under what conditions does loot despawn? What's usually the effective visual resolution of typical Hollywood Movies? I'm really surprised by the quality of the visuals in some new movies this year (2018). I'm curious to know in what resolution these cameras typically record to experience this quality on a cinema screen? Why do video cables (DVI, VGA) still screw in? I guess I could imagine that there was a time when accidentally disconnecting the monitor would have been catastrophic, though I don't see that being the case today.  Is it just a legacy holdover that they are still secured with screws?  Also, why is it that the video connection is really the only one that is still secured this way?  It seems like the power cable would be a better candidate to be secured with screws.  That really could be catastrophic.  In the end, the reason this question occurred to me is that I've never had a video cable come out when not screwed in, so why the significant security? In a certain case, the user will be asked to confirm if he/she wishes to leave the page, due to editing a post, even when he/she has stopped editing.  To reproduce:   Start editing a post (I've only experienced this with a question) Another user finishes editing the post before you and the message "This post has been edited" appears Clicking on the message bar will take you out of editing mode and will show you the updated post from the other user's edits Trying to navigate away from the page will then ask for your confirmation