styofa doing anything

Origami Around
Alisa U Zemlji Chuda

I'd rather be in outer space 🛸
TVSTRANGERTHINGS

PR's Tumblrdome
almost home
Not today Justin

titsay
"I'm Dorothy Gale from Kansas"
Three Goblin Art
Lint Roller? I Barely Know Her

oozey mess
art blog(derogatory)

❣ Chile in a Photography ❣
sheepfilms
Stranger Things

@theartofmadeline
RMH

seen from United States
seen from Germany

seen from United Kingdom
seen from Brazil
seen from United States

seen from Belgium
seen from Brazil

seen from Brazil

seen from United States
seen from Israel
seen from United States
seen from United Kingdom
seen from Canada

seen from United States

seen from United Kingdom

seen from Spain

seen from United Kingdom

seen from Malaysia

seen from Sweden
seen from Germany
@universalruntime-blog

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Running CoffeeScript on Microsoft Azure
It is quite easy to run CoffeeScript applications on Azure now that they support Node.js. You can mostly follow the steps of their Node.js and Express tutorial, with couple of modifications.
Add a package.json into your application root and depend on CoffeeScript and Express:
{ "name": "myapp", "version": "0.0.1", "dependencies": { "coffee-script": "*", "express": "*" } }
Then just have NPM install CoffeeScript by running in the Windows Azure PowerShell for Node.js:
npm install
Once this is done, you can decouple your actual application from the server.js that Azure uses to start your app. The app (in this case, app.coffee) itself could look like this:
http = require 'express' exports.application = app = http.createServer() app.get '/', (req, res) -> res.send "Hello, CoffeeScript on Azure!"
Note that the application doesn't start a server, it just exposes it through exports. Starting can happen in server.js:
// Include the CoffeeScript interpreter so that .coffee files will work var coffee = require('coffee-script'); // Include our application file var app = require('./app.coffee'); // Start the server app.application.listen(process.env.port);
And that is it! Now you can work with CoffeeScript just like you would work with any Node.js code on Azure. The only limitation is that if you want to include CoffeeScript files, you need to add the .coffee suffix to the module require call.
Here is how the deployed application looks (note that deployment can take a long time. My first deployment was about 30 minutes):
For data storage and queue handling, the Azure storage services are exposed through the azure module which is available via NPM or GitHub.
Using Azure workers
With cloud services one important part is to split your application into different functional modules. The web server front-ends should only handle HTTP requests and display data, and any heavier computing should be offloaded to separate workers.
Azure's Queue feature provides a handy way of offloading tasks to be handled by worker nodes. For example, we could use a queue to send information on every request received on the web front-end so that workers can process it. For this, we need to install the azure module. Add this to the dependencies section of your application:
"dependencies": { ... "azure": "*" }
Then let NPM install the module:
npm install
Now we can easily work with the Queue service. First initialize a 'request' queue in your app.coffee:
# Get the queue service cloud = require 'azure' queue = cloud.createQueueService() # Ensure the queue exists queue.createQueueIfNotExists 'request', (error) -> return unless error console.log "Failed to create queue", error
Then start sending information on new requests to the queue by creating a new Express middleware:
# Send URL of each request to queue app.use (req, res, next) -> queue.createMessage 'request', req.url, (error) -> return unless error console.log "Error sending", error do next
Creating a worker
Then we just need to create a worker. It can be initialized using the a PowerShell command:
C:\node\testapp> Add-AzureNodeWorkerRole queue
Now go to the created queue directory, and add a package.json:
{ "name": "test-queue", "version": "0.0.1", "dependencies": { "coffee-script": "*", "azure": "*" } }
Again we're going to make the actual heavy lifting in CoffeeScript, so change your worker's server.js to say:
var coffee = require('coffee-script'); var worker = require('./worker.coffee');
Then edit worker.coffee and add the following:
cloud = require 'azure' queue = cloud.createQueueService() # Function that receives new requests from queue and outputs them checkQueue = -> queue.getMessages 'request', (error, messages) -> return if error for message in messages console.log message # Destroy the message after we've caught it queue.deleteMessage 'request', message.messageid, message.popreceipt, (error) -> return if error console.log "Message #{message.messageid} deleted from queue" # Poll queue every 0.2 secs console.log "Setting up queue polling" setInterval checkQueue, 200
If you deploy now, you should have both a worker and a web server available. In the Azure Emulator you can see all web requests getting logged by the worker.
About pricing
Azure has an interesting pricing model: every running instance costs, and then for storage you have to pay for both the amount of data used, and per transaction.
The polling worker alone, without any requests to the server, would cost 148.50$ per month. Add to that two web front-ends, and say 400 requests per day and you'd be at 208.63$ per month.
Most popular language on GitHub is the one powering the Universal Runtime
NoFlo - Managing workflows with JavaScript. My presentation from the Boston JS.Everywhere conference.
The slides are also available.

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Node.js showed up at the right time. PHP, currently the most popular server-side language, has been mired in community squabbling amidst a large effort to refactor its character encoding support, while also losing developer mindshare to the many excellent Ruby web frameworks that have appeared in the last few years. But Ruby web frameworks, and the language itself, have become notorious for having performance issues and sometimes being hard to scale (although some of this perception is based on misinformation), so the appearance of a new highly performant, highly scalable evented IO framework built on top of the world's most popular programming language couldn't have been better timed.
Ryan Grove, on the What is the appeal of server-side JavaScript? Quora question
CoffeeScript is to producing JavaScript what Markdown is for producing HTML. Elegance matters.
Qt 5 is bringing JS at the same level of support as C++
Quim Gil, Nokia
Great news for mobile developers, as with this you can combine declarative user interfaces with the universal runtime

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Create is a JavaScript library that can make any website editable through simple RDFa annotations and Backbone.js. MIT licensed, in GitHub.
Mozilla’s mission is to “build user sovereignty into the fabric of the Internet.”
Mitchell Baker, in ExtremeTech article
ShareJS: library for Google Wave -style collaboration
ShareJS is a CoffeeScript library for building Google Wave -style live collaboration features for web applications. MIT license, in GitHub.
ShareJS launch talk
View more presentations from Joseph Gentle

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
A series of Hook.io tutorials
Hook.io is very interesting, a framework that provides an Erlang-like actor model for Node.js. As the framework is quite new, documentation is a bit lacking. Here are some good links:
A set of video tutorials from Marak Squires
Per Ejeklint's Hook.io for dummies:
Introduction
Getting Started
A Deeper Look
CoffeeScript is a little language that compiles down to JavaScript. The syntax is inspired by Ruby and Python, and implements many features from those two languages. This book is designed to help you learn CoffeeScript, understand best practices and start building awesome client side applications. The book is little, only five chapters, but that’s rather apt as CoffeeScript is a little language too.
This book is completely open source, and was written by Alex MacCaw (or @maccman) with great contributions from David Griffiths, Satoshi Murakami, and Jeremy Ashkenas.