Monthly Archive: July 2017

0

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...

0

Changing Date Format Before Insert

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...

0

How to Replace Select Drop Down Arrow with FontAwesome

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” rel=”stylesheet”/> <label class=”wrap”> <select name=”property_type” id=”property_type” class=”dropdown”> <option value=””...

0

Worpdress Shortcode of Current URL

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...

0

Javascript Reload Page on Click Without Query String

Here is an example of how to reload a page on button click with Javacript and removing the query string. I have a page like this: http://gallitin.com/experts-exchange/29046174.php?id=1&query=nathan&orgID=2442 I want to be able to click...

0

SQL Case Statement Example

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...