retry failed kue in nodejs

Hello there, today I’m gonna write about how to clear kue and retry failed kue. Kue is a priority job queue backed by redis, built for node.js. Sometimes, our jobs will failed, that is when they are marked as a failure, and remain that way until you intervene. In this case you will want to

Beautify URL – Filter values before submitting Form

Case: Say you are using pjax and your site’s search page has a form with 3 inputs (A, B and C), when user only changes value of filter C, and submit the form, your site’s URL will transform into something like: Problem: Ugly URL Solution: Filter values before submitting form Predicted result: Code: $formSearch.submit(function(event) {

Kill a process running a particular port

Sometimes, when I vagrant up my dev environment, the below warning appears. Vagrant cannot forward the specified ports on this VM, since they would collide with some other application that is already listening on these ports. The forwarded port to 9200 is already in use on the host machine. So what we need to do is to list