I am making an AJAX call every 20th second of every minute and updating some data. Now sometimes when i make a call, by the time the next call happening, it still hasn't received the data from the last call thereby stacking both the calls. This keeps happening and the server is getting choked in some cases.  What i want is to cancel the AJAX call for that minute in case the response to the previous call hasn't been received yet.  This is my code:   setInterval(function(){ let now = new Date(); if(now.getSeconds() === 20){     $.ajax({         url: url,         headers: { 'x-cyclops-ajax': 'yes' },         method: 'POST',         dataType: 'json',         success: function(data) {             var chart = $('#container').highcharts();             var keys = Object.keys(data["histData"]);             $( "#main-div" ).empty();             for( var i=0; i&lt; keys.length; i++) {                 chart.series[i].setData(data["histData"][keys[i]]["histFailure"], true);                 $('#main-div').append( '&lt;div class="homepage-availability-inner-div"&gt;&lt;h1 class="homepage-availability-text"&gt; ' + keys[i] + ': &lt;span class="dashboard-success"&gt;' + data["availData"][keys[i]] + ' &lt;/span&gt; &lt;/h1&gt;&lt;/div&gt;');             }             chart.xAxis[0].setCategories(data["histKeys"]);             console.log("Data:" + JSON.stringify(data["availData"]));         },         error: function(jqXHR, textStatus, errorThrown) {             console.log("Did not hit the AJAX call");         }     }); } }, 1000);   Any help is appreciated.
Is it possible that using jQuery, I cancel/abort an Ajax request that I have not yet received the response from?
I'm curious to know how important the bias node is for the effectiveness of modern neural networks. I can easily understand that it can be important in a shallow network with only a few input variables. However, modern neural nets such as in deep learning often have a large number of input variables to decide whether a certain neuron is triggered. Would simply removing them from, e.g., LeNet5 or ImageNet have any real impact at all? What happens when you die? Diablo's first and second installments handled death differently, both in terms of exp\gold penalties and also in if you respawned or not or instead had to reload from an earlier point.  In Diablo III what happens when you die? Is it possible to make LaTeX mark overfull boxes in the output? Is it possible to make LaTeX mark overfull boxes in the output, for example by drawing red rectangles in the PDF where the boxes overflow? The purpose -- to more easily "see" where the problems are in the output. Let's consider two statements: Zorn's lemma and theorem about existence of maximal ideals in commutative ring with $1$.  It's easy to prove that Zorn's lemma implies existence of maximal ideals.  I wonder if the converse proposition is true, i. e., does existence of maximal ideals implies Zorn's lemma? My approach was to construct a ring structure on an ordered set which satisfies Zorn's lemma condition such that existence of maximal ideal implies existence of maximal element in the set, but I didn't succeed. Sorry to start a subjective question, but want to understand "own.sty" file.  Other than all \usepackage{} what sort of other commands can be added to the makeyourown.sty file.  Can you include \let command, and \newcommands in it.   What sort of precaution / structure newbies should follow. As seen at:           Update: I'm 101% sure the down votes were due to the lack of free hands.    Update 2: likes me, like me not, like me, likes me not... yeah ! I am using texlive 2013, and just ran the following command to update the packages.  sudo ./tlmgr update  -all   After it finished, I tried to compile tex documents that uses tikz package as the following MWE shows:   \documentclass{article}  \usepackage{tikz}  \begin{document}       aaaa  \end{document}   Then pdflatex complains; it said:   (/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty  (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex  ! I can't find file `pgfutil-common-lists.tex'.  l.556 \input pgfutil-common-lists.tex   The problem is that, pgfutil-common-lists.tex is indeed in the directory:   /usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/   Why is that? pdflatex should be able to find it, right? I even download the  again, and replace the pgf directory in   /usr/local/texlive/2013/texmf-dist/tex/generic/   Nothing changed at all........... Any idea? Thank you for your critics.  %=====================================================================  Then followed the comments, I type the following command in the terminal:    sudo mktexlsr gives me command not found;  mktexlsr gives me:  mktexlsr: /usr/local/texlive/2013/../texmf-local: directory not writable.     Skipping...  mktexlsr: /usr/local/texlive/2013/texmf-config: directory not writable. Skipping...  mktexlsr: /usr/local/texlive/2013/texmf-dist: directory not writable. Skipping...  mktexlsr: /usr/local/texlive/2013/texmf-var: directory not writable. Skipping... mktexlsr: Done; Forkpsewhich pgfutil-common-lists.tex, nothing pops up. The  doesn't give me much hope, but I'm hoping it's an undocumented (and/or GNU-specific) feature. I use to work at night and it is eye-hurting to watch at lightbulb-bright screens (I've got two - laptop's built-in panel and an external 18-inch CRT) in a dark environment. So I adjust my screens to be darker.  Can I do this a software way instead of pressing monitors' buttons that many times every time? What are underfull hboxes and vboxes and how can I get rid of them? If no spell can reawaken the dead, how did the resurrection stone work? Dumbledore himself said that no spell can reawaken the dead. Isn't that the main objective of the resurrection stone? If one can't reawaken the dead then what is the use of the stone? Surely then one of the Hallows is flawed? Can the weak force create a bound state? Username and Password not recognized when logging into Minecraft We just got a new laptop (ASUS) though we did have a mac.  We are trying to log onto Mojang to download Minecraft and it keeps saying, "The username and password are not recognized."   We have done all the usual procedures; we have reset the password, we are using the email, not the username to sign in, and it looks like the minecraft login servers are working etc. etc.  We quit Minecraft on the old computer and shut off that computer thinking that was the issue.   Still, we can't get onto Mojang.  We are accessing mincraft through firefox and trying to download it to the new computer but we can't get into the account to do that!  What in the world could be the issue? Logistic regression cost surface not convex I am building a simple logistic regression model on 2D data. Here is the input I use.    I built a logistic regression model using this data and it successfully is able to find the discriminating line between these two classes. Here is the separating line found by my program:    Also, just for debugging, I plotted number of iterations vs J(theta), which also looks fine:    Now, confusing part comes into play. I am investigating the cost surface of this model that the logistic regressions is doing the gradient descent on. I am considering three different loss functions. Sum-of-squared loss, hinge-loss, log-loss.  Hinge loss:    Log-loss:    Sum-of-squared loss:    As far as I know, both hinge loss, sum-of-squared loss and log-loss should produce a convex surface. When I look at my surfaces, however, sum-of-squared surface does not look convex to me. Why is that the case?  For convenience, here is the two critical functions from my code:  function retval = J(X, y, theta)     M = size(y, 1);     % sum of squared error     retval = (1/(2*M)) * sum((h(X, theta) - y).^2);  endfunction  function retval = h (X, theta)     % logistic     retval =  1 ./ (1+ exp(-1 * (X * theta))); endfunction Normal text is invisible when using beamer with notes and XeLaTeX Maven plugin executing another plugin I'm trying to create a new plugin to package my latest project.  I'm trying to have this plugin depend on the maven-dependency-plugin to copy all my projects dependencies.  I've added this dependency to my plugin's pom, but I can't get it to execute.  I have this annotation in my plugins main Mojo:  @execute goal="org.apache.maven.plugins:maven-dependency-plugin:copy"   I've tried a few other names for the goal, like dependency:copy and just copy but they all end with a message saying that the required goal was not found in my plugin.  What am I doing wrong?  Secondary to this is where to I provide configuration info for the dependency plugin? Who is the eponymous Jedi in Return of the Jedi? Why is df -h size, util and dispo not corresponding to each other When I'm using the command "df -h" I'm having the following output :   Filesystem                 Size   Used  Avail Use% Mounted on /dev/mapper/fedora-root    20G    9,4G  8,8G  52% / devtmpfs                  1,9G       0  1,9G   0% /dev tmpfs                     1,9G    1,2M  1,9G   1% /dev/shm tmpfs                     1,9G    1,0M  1,9G   1% /run tmpfs                     1,9G       0  1,9G   0% /sys/fs/cgroup tmpfs                     1,9G    108K  1,9G   1% /tmp /dev/sda1                 477M    129M  319M  29% /boot /dev/mapper/fedora-home   916G    279G  591G  33% /home   Or it says my root is of 20G with 9.4 used and 8.8 still available it's 2G that disappeared. I know a very similar question as been answered here  and I'm just wondering if the reason could be the same here since I'm using LVM.  If not is there any way to reclaim that space that disappeared because for home there is an amazing 46G that disappeared. How can I make a single event handler handle ALL Button.Click events? Is the following statement provable?