This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img style="width: 50%;" class="mcnImage" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
[UserName] = CASE princ.[type] | |
WHEN 'S' THEN princ.[name] | |
WHEN 'U' THEN ulogin.[name] COLLATE Latin1_General_CI_AI | |
END, | |
[UserType] = CASE princ.[type] | |
WHEN 'S' THEN 'SQL User' | |
WHEN 'U' THEN 'Windows User' | |
END, | |
[DatabaseUserName] = princ.[name], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// dependencies | |
var async = require('async'); | |
var AWS = require('aws-sdk'); | |
//var util = require('util'); | |
// constants | |
var srcBucket = "staging.s3bucket.com"; | |
var destBucket = "s3bucket.com"; | |
// get reference to S3 client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module("ITApp").directive('diskspacevisulization', function () { | |
return { | |
restrict: 'E', | |
//template: '<canvas height=\"200\" width=\"200\" id=\"{{dsName}}\"></canvas>', | |
replace: true, | |
scope: { | |
dsdata: '=', | |
dsName: '@name' | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Built a log function to turn off/on via web.config | |
<add key="logRequeststoDB" value="true" /> | |
then add logger to the contoller functions as needed | |
example: | |
if (Convert.ToBoolean(ConfigurationManager.AppSettings["logRequeststoDB"].ToString())) | |
{ | |
new ITEventLog("WebAPI", "Campus/Get?filtertype=" + filtertype + "&filter=" + filter + "&distance=" + distance.ToString()).Save(); |