Tomek on Software
Software - shaken, not stirred
Application initialization of Node.js apps running in IIS 8 using iisnode
Tired of seeing the “first request” to a Node.js app hosted in IIS taking long? This post describes how to configure your Node.js application running in IIS 8 such that the node.exe process is always up and ready to serve the HTTP requests. This is in contrast with the default...
Access SQL Azure from a Node.js app deployed to Windows Azure Web Sites
In this post I will show how you can access SQL Azure data from an Express.js Node.js application deployed to Windows Azure Web Sites, and expose that data over HTTP in 31 lines of Node.js and T-SQL code. This post demonstrates collaboration between several technologies: in-process interop between Node.js and...
How to save $5 million running a Node.js application
Prerequisites Before you can save $5 million, you must be spending more than that. One way to spend over $5 million is to run a large Node.js web application. For example, an application that requires 10,000 CPU cores to handle its traffic. For the purpose of this napkin math, let’s...
Multi-line strings in JavaScript and Node.js
When writing Node.js or JavaScript applications, you sometimes need to embed multi-line strings in your code. It may be a snippet of HTML, a fragment of textual template, a piece of XML (remember XML?), or code in another programming language. JavaScript has no built-in way of representing multi-line strings. If...
Run C# and node.js code in-process with no compilation
The edge.js project allows running .NET and node.js code in-process. With the [email protected] release, you can now embed C# code in directly in the node.js application, without the hassle of projects, compilation, and DLLs. Edge.js will compile the C# code automatically in-memory before running it. Note: the edge.js project was...
Run node.js and .NET code in-process
The owin project allows running node.js and .NET code in-process. It provides an asynchronous mechanism for calling .NET code from node.js and node.js code from .NET. The owin module takes care of marshaling the data between V8 and CLR and reconciling the threading models. With owin you can: Use 24,000+...
Access MS SQL from a node.js application using OWIN, in-process CLR hosting, .NET, and ADO.NET
Note: this post is related to the 0.4.0 version of the owin project. The project has since been renamed to edge.js and has seen major improvements. Visit edge.js for the latest. The owin project allows hosting .NET 4.5 code in node.js applications running on Windows. In my previous posts I...
CPU bound workers for node.js applications using in-process .NET and OWIN
Note: this post is related to the 0.4.0 version of the owin project. The project has since been renamed to edge.js and has seen major improvements. Visit edge.js for the latest. The owin project allows hosting .NET 4.5 code in node.js applications running on Windows. In my other posts I...
Hosting .NET code in node.js applications using OWIN
Note: this post is related to the 0.4.0 version of the owin project. The project has since been renamed to edge.js and has seen major improvements. Visit edge.js for the latest. The owin project allows hosting .NET 4.5 code in node.js applications running on Windows. The goal of the project...
Paste photos from your phone directly into Windows Live Writer
You are writing a blog post using Windows Live Writer. You want to include a picture you took with your phone. The options you have are many but none of them is simple. You can use USB cable, WiFi synchronization, Bluetooth, DropBox, SkyDrive, or Picasa. Or, if you are like...