How to Monitor Node.js Instances
How do you monitor node.js instances on your server? I used to use the Forever package, but it has since been deprecated. PM2 is a great replacement and seems to be more robust than Forever. I'd recommend it over…
Practical guides on AI automation, web development, WordPress, Laravel and the tools we use every day.
How do you monitor node.js instances on your server? I used to use the Forever package, but it has since been deprecated. PM2 is a great replacement and seems to be more robust than Forever. I'd recommend it over…
I was trying to figure out a query to count the IP addresses I had in a table, tell me how many are the same, then delete duplicates only leaving a single record for each. Data example: id, ip 1 72.135.77.1 2 …
When passing dates from a form to be saved in your database you sometimes need to change their format. For example a with a datetimepicker you want the format to look like 07-31-2017 12:30pm for the end user. But in…
To list all packages installed in CentOS you run: yum -qa Just had someone ask what's the equivalent to this command in Ubuntu, well here you go: apt list…
I've seen this question a lot so here's an example of how to replace a select drop down arrow with a fontawesome icon. <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"…
Had a request last week to create a shortcode that would output the current page URL within a post or page in WordPress. Here you go, edit your /wp-content/themes/themeName/functions.php file and add this to the…
Here is an example of how to reload a page on button click with JavaScript and removing the query string. I have a URL like this: domain.com/experts-exchange/29046174.php?id=1&query=nathan&orgID=2442 I want to be able…
Basic syntax for using case when statements in SQL. For this example we want the following: If Field1 = 2 and Field2 = 2 then use the date in Field3 else use '1/1/3000'. Here is our table and generic data…
I've tried quite a few different WordPress backup plugins on my client setups but this one is by far the simplest and easiest to use while providing a solid solution. BackUpWordPress Just install, configure and you're…
Simple SQL query to sum an alias column and group by ID. Initial query user needed help with: select dt.memberid, dt.NumberOfMonthsBetween FROM ( select memberid, DATEDIFF(month,datecredentialed,renewaldate) as…
We help Kansas City businesses automate the busywork and ship reliable software. Tell us what you're working on.