Updates from February, 2013 Toggle Comment Threads | Keyboard Shortcuts

  • Richard 3:40 pm on February 26, 2013 Permalink |  

    Super Simple EventEmitter 

    Most examples I see of EventEmitter are quite complicated, so here’s a really simple one:

    var events = require("events");
    var util = require("util");
    
    var Client = function(){
    
    	events.EventEmitter.call(this);
    
    	this.foo = function(){
    		this.emit("bar", "HELLO WORLD");
    	}
    
    }
    
    util.inherits(Client, events.EventEmitter);
    
    var client = new Client();
    client.on("bar", function(data){ console.log(data);});
    client.foo();
    Advertisement
     
  • Richard 9:34 pm on February 15, 2013 Permalink |  

    Welcome to Muon 

    Untitled

    There has been a gap in the market for a while now for a simple, open source wiki based on Windows Azure Storage (I think).

    I decided to create a Wiki using Azure Websites, and Blob Storage. My aim was to build something that gives you good scalability and maximum value for money on the Azure platform (i.e. you can run it for next to no cost).

    Compute is usually the more expensive part of a cloud bill, so Muon is designed to work using the minimum amount of website resource. Instead of serving pages from the web server, content is delivered directly out of blob storage. The website is only used to authenticate the user, and create a shared access signature, giving the user permission to read and write data to storage. The server-side code is node.js, so a free website should handle quite a few users.

    2Untitled

    You can allow public read/write access to Muon if you want, or choose to restrict access down to individuals. Twitter is used for authentication.

    Untitled

    Muon uses Markdown as the text syntax, and the Ace editor. It’s nice and quick to use, without too much complexity.

    1Untitled

    All revisions are kept (as blob snapshots) so you get a complete version history.

    You can install Muon in an Azure Website using git:

    https://github.com/richorama/muon

    You can try out a read only wiki here:

    http://muon.azurewebsites.net

     
    • Marcel 9:41 pm on February 15, 2013 Permalink | Log in to Reply

      Nice job Richard ! For documentation purposes we are looking for a wiki and because screwturn wiki stopped developing and has some annoying issues, I’ll throw this one into the group.

      • Richard 9:43 pm on February 15, 2013 Permalink | Log in to Reply

        Cool! Let me know what you think. This is a very early version, so I have plenty of features planned i.e. (offline access, image upload etc…)

    • Mark 4:34 pm on February 26, 2013 Permalink | Log in to Reply

      Why is the title of this article on the Azure website, “Welcom to Muon: The wiki build on Windows Azure” when that isn’t the title of the article on this page? Welcome is misspelled and build is substituted for built. Not a big deal but I do QA so stuff like that bothers me. 😉

      • Richard 5:11 pm on February 26, 2013 Permalink | Log in to Reply

        Good question. Unfortunately I don’t control the content of the Windows Azure website!

    • Types of auto insurance companies 10:34 pm on May 27, 2013 Permalink | Log in to Reply

      Hi there, its fastidious paragraph on the topic of media print, we
      all be aware of media is a great source of information.

    • http://occupedia.nl/index.php/Gebruiker:CodyAguir 3:31 am on May 28, 2013 Permalink | Log in to Reply

      Please let me know if you’re looking for a article author for your site. You have some really great posts and I think I would be a good asset. If you ever want to take some of the load off, I’d
      really like to write some material for your blog in exchange for a link back to mine.
      Please send me an email if interested. Kudos!

c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel