Mikael's blog

A developers seventh time trying to maintain a blog

Tag #presenting

SplitCode v0.1 - A success story | November 15, 2011 at 20:33

Socket.io almost makes it to easy. Here's my early early alpha code. Works like a charm. Server code (for node.js): ````js var io = require("socket.io").listen(1338); io.sockets.on('connection', function (client) { client.on('codeChanged', function(code) { client.broadcast.emit('changeCode', code); }); client.on('scrolled', function(position) { client.broadcast.emit('scroll', position); }); }); ```` Master.html: ````html <!doctype html> <html> <head> <meta charset="utf-8" /> <title>SplitCode Master</title> <script src="socket.io.min.js"></script> </head> <body> <textarea id="mastertext" onKeyUp="maybesend();" wrap="off"></textarea> <script> var master = document.getElementById("mastertext"); var socket = io.connect(''); var th =

Coding on stage | November 15, 2011 at 17:38

I held a tutorial on HTML5 today at work and my preparations led me to think about coding while doing a presentation. This was done a lot at &Oslash;redev, but everyone did it in the same two ways. Either you duplicate your screen and let your attendees see everything that goes on on your desktop, or you extend your desktop, keeping your notes on the computer screen and your code on the projector. The problem with the first option is that you need to have your notes on paper. The problem with the second option is the strain it puts on your neck when you have to look at the projector while coding and at the same time facing the attendees. What I wanted was a window on my desktop that I could write code in and another window on the extended projector screen that would show the code in real

Sorry, sharing is not available as a feature in your browser.

You can share the link to the page if you want!