Skip to main content

5 Cool Hacks And Prototypes For .NET devs – Node.js in Azure, Kinect as Windows 7 controller, WCF web sockets, WPF over Web and more

imageWho won’t love adventurous, out of the box hacks and prototypes? The joy of being a developer is to experiment with hot new ideas, and to do things others haven't done yet. For a developer, a hack is a source of joy - just as a poet who finds his real joy in unleashing his creativity, than in selling the same to others.

In modern computing terminology, a "hack" is a solution to a problem, doing a task, or fixing a system (whether hardware or software) that is inefficient, inelegant, or even unfathomable, but which nevertheless (more or less) works.

Here are few super cool hacks I explored and found in the last couple of weeks.

Node.Js Running on top of Azure

Paul has experimented with Node.Js and Azure, and wrote a couple of posts on running Node.Js on Windows Azure. And I got interested because Node.js is among the new cool kids in the town, and looks pretty interesting Smile.

Node.Js is an Evented I/O for V8 JavaScript.

An example of a web server written in Node which responds with "Hello World" for every request.

var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
}).listen(8124, "127.0.0.1");
console.log('Server running at http://127.0.0.1:8124/');

Have a look at the post from Paul here. Also watch out for this Session from Steve Marx on running Node.Js, Python, PHP etc in Azure http://channel9.msdn.com/Events/MIX/MIX11/SVC04

Using Kinect to control Windows 7 Apps And More Kinect hacks

Evoluce has released a video that shows leveraging Kinect for controlling the Windows 7 UI using Kinect. The hack is pretty awesome, it simulates almost all mouse movements, and to some extent, multi touch and features like that.

Sounds interesting? You may also checkout http://kinecthacks.net/tools-and-resources/ to see a great list of tools and resources to start doing your own Kinect hacks. They’ve a cool list of various Kinect hacks. Also, recently there are few more interesting Kinect hacks in response to Gmail Motion Prank .

You may Watch the videos of those Kinect based hacks in response to Gmail Motion prank http://goo.gl/EtYcN by ICT and http://goo.gl/8JC2zy by Ramaprasanna here

Accessing WPF windows over a Web browser using Websockets and Canvas

Let me shamelessly plugin this hack here. Over the weekend, I just put together a hack for pumping WPF windows over Websockets and rendering it using HTML5 canvas – also with basic mouse input support. For each user connecting to the server, a new window instance is created, and screen will be pumped over web sockets to the browser as base64 encoded images. These images are painted on an HTML5 canvas. Have a look at the same here

You may see that the mouse input on top of the canvas is pumped back to the server, to simulate mouse events, and the results are refreshed in the browser. Have a look at the post and source code here.

Html5 Prototypes from Microsoft Web Labs And WCF Websockets

Microsoft Html5 Web Labs has a couple of interesting prototypes around HTML5 Draft Specifications.

IndexedDB

IndexedDB is a draft Web specification for the storage of large amounts of structured data in the browser.  View details.

The IndexedDB API is currently being standardized by the W3C Web Applications Working Group. IndexedDB can be used for browser implemented functions like bookmarks, and as a client-side cache for web applications such as email.

WebSockets

WebSockets simplifies bi-directional, full-duplex communications channels, over a single TCP socket. View details.

WebSockets is a technology designed to simplify much of the complexity around bi-directional, full-duplex communications channels, over a single Transmission Control Protocol (TCP) socket. It can be implemented in web browsers, web servers as well as used by any client or server application. The WebSockets API is currently being standardized by the W3C Web Applications Working Group and the protocol is being standardized by IETF Hypertext Bidirectional (HyBi) Working Group.

Saving Energy with .NET Micro Framework

This is a very interesting project using .NET Micro Framework and Netdunio to control water heater temperature based on weekly usage patterns. The article is there at Coding4Fun blog

The application is built on the open source 'netduino.helpers' library which provides a set of hardware drivers written in C# targeting the netduino family of .Net Micro Framework micro-controllers.

NetDunio is an open source electric platform using Microsoft .NET Micro Framework, and if you want to hack on that, go get the resources and tools here. http://www.netduino.com/downloads/ resources.

 

Happy Coding!!

Popular posts from this blog

Top 7 Coding Standards & Guideline Documents For C#/.NET Developers

Some time back, I collated a list of 7 Must Read, Free EBooks for .NET Developers, and a lot of people found it useful. So, I thought about putting together a list of Coding Standard guidelines/checklists for .NET /C# developers as well.As you may already know, it is easy to come up with a document - the key is in implementing these standards in your organization, through methods like internal trainings, Peer Reviews, Check in policies, Automated code review tools etc. You can have a look at FxCop and/or StyleCop for automating the review process to some extent, and can customize the rules based on your requirements.Anyway, here is a list of some good Coding Standard Documents. They are useful not just from a review perspective - going through these documents can definitely help you and me to iron out few hidden glitches we might have in the programming portion of our brain. So, here we go, the listing is not in any specific order.1 – IDesign C# Coding StandardsIDesign C# coding stand…

Hack Raspberry Pi – How To Build Apps In C#, WinForms and ASP.NET Using Mono In Pi

Recently I was doing a bit of R&D related to finding a viable, low cost platform for client nodes. Obviously, I came across Raspberry Pi, and found the same extremely interesting. Now, the missing piece of the puzzle was how to get going using C# and .NET in the Pi. C# is a great language, and there are a lot of C# developers out there in the wild who are interested in the Pi.In this article, I’ll just document my findings so far, and will explain how develop using C# leveraging Mono in a Raspberry Pi. Also, we’ll see how to write few minimal Windows Forms & ASP.NET applications in the Pie as well.Step 1: What is Raspberry Pi?Raspberry Pi is an ARM/Linux box for just ~ $30. It was introduced with a vision to teach basic computer science in schools. How ever, it got a lot of attention from hackers all around the world, as it is an awesome low cost platform to hack and experiment cool ideas as Pi is almost a full fledged computer.  More About R-Pi From Wikipedia.The Raspberry Pi

5 Awesome Learning Resources For Programmers (To help you and your kids to grow the geek neurons)

Happy New Year, this is my first post in 2012. I’ll be sharing few awesome learning resources I’ve bookmarked, and will be pointing out some specific computer/programming related courses I've found interesting from these resources.Also, thought about saving this blog post for my kids as well - instead of investing in these Child education schemes (though they are too small as of today, 2 years and 60 days respectively ). Anyway, personally my new year resolution is to see as much videos from this course collections (assuming I can find some free time in between my regular job && changing my babies diapers).1 – Khan AcademyAs I mentioned some time back, you and your kids are missing some thing huge if you havn’t heard about Khan Academy.  It is an awesome learning resource, especially if you want to re-visit your basics in Math, Science etc.With a library of over 2,600 videos covering everything from arithmetic to physics, finance, and history and 268 practice exercises, th…