Mark%20coleman_large

Mark Coleman

Running script forever with foreverjs

Reboot! C_LOG_26

My next challenge is to figure out how to make sure our node script is running on boot of the raspberry pi.

Simplified Script
This is our simplified script we want to run at system boot.

var wpi = require('wiring-pi'); var express = require('express'); var app = express(); wpi.wiringPiSetup(); var relaySwitchOne = 0; wpi. . . .

Read More

December 27, 2015

Using gulp-inject

Replacing cassette bundle helpers

Previously on this series I showed how we could use gulp-preprocess to remove the server rendered tags from our aspx page. Next up on the list is how can we remove the cassette bundle helpers. First thing is we need to do is find the equivalent gulp-inject syntax.

Cassette

@Bundles.RenderScripts() 

gulp-inject

<!-- inject:js --> <!-- . . .

Read More

November 24, 2015

Programming Resources

Brain dump

Two weeks ago an associate requested to shadow myself and the development team to learn more about what we do as they are interested in development. I unfortunately only had two hours with them to dump tons of information into their brain which most likely resulted in overload. To help combat this I provided a list of random topics to help . . .

Read More

April 25, 2015

Alter scope via Console

angular.element() is your friend

Yesterday I was tasked with changing some verbiage inside of an AngularJs application that is only displayed under a certain condition via ngIf. How can I validate the changes to the application without mucking up the boolean logic to display the div?

Given the following

<div ng-if="isNewUser">
Welcome new user to the site.
. . .

Read More

April 11, 2015

Archive