All posts by shadowcouncils

Basic Jasmine Runscript

describe(‘Test Jasmine Functionality…’, function () {
var jasmineUnitTest = ”;
// where you can do setup for test.
beforeEach(function () { jasminUnitTest = “hello” });
// where you can do cleanup for test
afterEach(function () { jasmineUnitTest = “”; });
it(‘Testing true..’, function () {
expect(true).toBeTruthy();
});
it(‘Testing proper addition..’, function () {
expect(1 + 1).toBe(2);
});
it(‘Testing not proper addition..’, function () {
expect(1 + 2).not.toBe(2);
});
it(‘Testing beforeEach set jasminUnitTest = hello’, function () {
expect(jasmineUnitTest).toBe(“hello”);
});
})

//Matchers
// use .not. for reverse
//toMatch(regex)

//toEqual = C# ==
//toBe = C# ===

//toBeLessThan = < //toBeGreaterThan = >

//toBeDefined()
//toBeUndefined()

//toBeNull()
//toBeTruthy() -> checks for true
//toBeFalsy() -> checks for false

//toContain() => contained within an array
//expect(funtion(){somemethod();}).toThrow(ex) uses callback to throw expection.

Share on Facebook

Ninject WebAPI Circular Reference

keywords, ninject, webapi 2, odata, circular reference.

If you installed Ninject MVC for 5 and 3 for some reason this doesn’t work, gives above error.  There are a ton of documented long drawn out fixes, but uninstalling both ninject for MVC5 and MVC3  then reinstalling Ninject  MVC3 fixed thew issue finally.

 

Hoping to save others time.

 

Mark

Share on Facebook

Cannot find angular.js

Keywords John Papa HotTowel can’t find angular.js

Been running down bugs on a few pluralsight tutorials.

WEBAPI with Jesse liberty, this leads into Hot Towel.  THe demo was great. I was just applying it towards a different set of data so sometimes I run into issues;

 

Fix: add src to angular.js

<script src=”scripts/angular.js”></script>

app.run([‘$route’, function ($route) {
breeze.core.extendQ($rootScope, $q);
routemediator.setRoutingHandlers();
// Include $route to kick start the router.
}]);

<link href=”content/breeze.directives.css” rel=”stylesheet” />

<script src=”scripts/breeze.debug.js”></script>
<script src=”scripts/breeze.angular.js”></script>
<script src=”scripts/angular.js”></script>
<script src=”scripts/breeze.saveErrorExtensions.js”></script>
<script src=”scripts/breeze.directives.js”></script>
<script src=”scripts/breeze.to$q.shim.js”></script> <!– Needed only if you are using to$q –>

Share on Facebook

WebRTC – Learning the ropes.

http://iswebrtcreadyyet.com/
webrtc

At this time the things I am really interested in are inj green and purple. Though not supported yet for Screen Sharing, the API and stream call are available with a plugin.

This will attempt to use STUN over TURN / ICE (TURN-STUN) but for free ;).

List of public stun servers

SIMPLEWEBRTC is a very nice API I found listening to Lisa Larson-Kelley on Pluralsight. Found that the code was in place here:
http://simplewebrtc.com/demo.html

Open chrome, copy out HTML and JS.  Copy JS into a scripts file and reference it.

Change the latest.js to simplewebrtc.com/latest.js

Copy out the HTML and JS, Move JS into another file and reference, then make latest reference site like so:
(in HTML)

<script type=“text/javascript” src=“http://simplewebrtc.com/latest.js”></script>

<script type=“text/javascript” src=“~/Scripts/aloc-simplewebrtc.js”></script>

After that you should be good to go.
Here is a set of 3 instances al connected.

webrtc-multiclient-simplertcf

Share on Facebook

A Line of Code Website Finally up!

My company website is finally up!

http://www.alineofcode.net

Share on Facebook

Speaking at Rebuild Atlanta May 24th!

 

Timeslot: 11: 05 – 11:40
Speaker: Mark Rowe
Session: Cortana: Speech and Natural Language Experience for Windows Phone
Session Abstract:
Welcome to Cortana. The Windows Phone Speech APIs help you integrate your app into Windows Phone’s system-wide speech and natural language user experience. In this session we’ll demonstrate how you can extend the phone’s experience allowing users to launch YOUR APP by voice or text using free-form natural language commands. We will also look at how to enable voice-based conversational dialog interactions with users after your app has been launched, summarizing what’s different in the Windows Phone speech APIs.

Share on Facebook

Call for help with Augmented Living

Watch Demo:

bot2_Painting

Share on Facebook

What is Augmented Living?

What is Augmented Living?

robotface_PaintingWIthLogosmall

Share on Facebook

Nice speech – Basics of Unity by Roger Peters

Joined the Windows 8 group tonight for a basic overview of Unity.
Very interesting stuff. Good speech. You can reach him @ www.AllMobileEverything.com Check out his speeches.

Share on Facebook

Voice Commands in Augmented Living

Voice commands for disabled application 😉

Share on Facebook