Jamie Munro

16 Flips | 1 Magazine | @JamieMunro6nlj | I am the author of ASP.NET MVC using BootStrop and Knockout.js, Knockout.js - building dynamic web pages, 20 Recipes for Programming PhoneGap, and 20 Recipes for Programming MVC3.  These are all published via O'Reilly - the world's largest technical book publisher.

[SOLVED] Can one controller call another?- Angular.js Recipes

Problem<p>Is it possible to have one controller use another?<p>For example:<p>This HTML document simply prints a message delivered by the MessageCtrl …

JavaScript

[SOLVED] Get local IP address in node.js- Node.js Recipes

Problem<p>I have a simple <b>node.js</b> program running on my machine and I want to get local IP address of PC on which is my program running. How do I get it …

JavaScript

[SOLVED] Managing Sessions in Node.js?- Node.js Recipes

Problem<p>What is the best way to manage session variables in <b>Node.js</b>? Is there any library?<p>Problem courtesy of: Timmy<p>Solution<p>You can do that very easily …

JavaScript

[SOLVED] Long-running computations in node.js- Node.js Recipes

Problem<p>I'm writing a game server in <b>node.js</b>, and some operations involve heavy computation on part of the server. I don't want to stop accepting …

JavaScript

[SOLVED] Hiding textarea resize handle in Safari

Problem<p>I'm using textarea components in my application, and I control their height dynamically. As the user types, the height is increased whenever …

Stack Overflow

[SOLVED] Node.js as a background service- Node.js Recipes

Problem<p>Since this post has gotten a lot of attention over the years, I've listed the top solutions per platform at the bottom of this post.<p><b>Original</b> …

Linux

[SOLVED] Any advantage to using SVG font in @font-face instead of TTF/EOT?

Problem<p>I am investigating the usage of SVG fonts in @font-face declaration. So far, only Safari 4 and Opera 10 seem to support it. Firefox 3.5 does …

Typography

[SOLVED] Sending emails in Node.js?- Node.js Recipes

Problem<p>I recently started programming my first <b>node.js</b>. However, I discovered that I am unable to create a contact me form that sends straight to my …

JavaScript

[SOLVED] How do I combine a background-image and CSS3 gradient on the same element?

Problem<p>How do I use <b>CSS3</b> gradients for my background-color and then apply a background-image to apply some sort of light transparent texture?<p>Problem …

Tutorials

[SOLVED] Video streaming with HTML 5 via node.js- Node.js Recipes

Problem<p>I'm trying to set up a web server that will support streaming video to an HTML5 video tag using <b>node.js</b>. Here's my code so far:<p>Where "request" …

JavaScript

[SOLVED] Why is waterfall so slow?- Node.js Recipes

It's just another <b>Node.js</b> Bug.<p>Using process.nextTick inside another process.nextTick during a pending http.ServerResponse is broken.<p>This takes an …

JavaScript

[SOLVED] CSS3 Continuous Rotate Animation (Just like a loading sundial)

Problem<p>I am trying to replicate an Apple style activity indicator (sundial loading icon) by using a PNG and <b>CSS3</b> animation. I have the image rotating …

Papua New Guinea

[SOLVED] Socket.IO Authentication- Node.js Recipes

Problem<p>I am trying to use Socket.IO in <b>Node.js</b>, and am trying to allow the server to give an identity to each of the Socket.IO clients. As the socket …

JavaScript

[SOLVED] @font-face problem, Firefox adds padding, Chrome does not

FYI, this also happens in Firefox on Linux (and not in Chromium). I tried to load your font in FontForge and immediately got a warning:<p>The following …

Visual Design

[SOLVED] Streaming audio from a Node.js server to HTML5 <audio> tag- Node.js Recipes

Problem<p>I've been experimenting with binary streams in <b>Node.js</b>, and much to my amazement do actually have a working demo of taking a Shoutcast stream …

Web Development

[SOLVED] How to test angular controller with JsTestDriver?- Angular.js Recipes

Problem<p>I have the following code:<p>and the following test:<p>and the following config:<p>When I run the test, JsTestDriver outputs:<p>What do I need to do to …

JavaScript