Draw UML Sequence Diagrams with new Javascript library


A simple javascript library to turn text into vector UML sequence diagrams.
Heavily inspired by websequencediagrams.com, who offer a serverside solution. We use Jison to parse the text, and Raphaël to draw the image.



The following diagram shows the syntax for the diagrams. The exact grammar can be found here in bison format.


js-sequence-diagrams depends on Raphaël and Underscore.js (we are lodash compatible). To use include the following:

<script src="raphael-min.js"></script>
<script src="underscore-min.js"></script>
<script src="sequence-diagram-min.js"></script>

and now you have two options. You can manually parse the text:

<div id="diagram"></div>
  var diagram = Diagram.parse("A->B: Message");
  diagram.drawSVG("diagram", {theme: 'hand'});

or use jQuery to do all the work:

<div class="diagram">A->B: Message</div>
$(".diagram").sequenceDiagram({theme: 'hand'});

Fab stops sending you emails you don’t read, even when you don’t ask them to

Inbox overload can be a very real problem — especially when your job requires you to send emails professionally.

There are plenty of tips and tricks that’ll help you manage email more efficiently, but in our opinion, perhaps the companies clogging up our inboxes with their mailing lists just need to be a bit more courteous.

When I first joined Fab last year, I actually enjoyed the emails they sent. But seeing as I’m a writer residing in Manhattan, I don’t often have the spare cash to spend on Exquisite Italian Glassware.

I’ve ignored these Fab emails recently (I’m not annoyed enough by them to unsubscribe yet) but then I received a highly unusual one today with the subject: “Stop. Getting. So. Much. Email. Smile, you’re designed to.”

Screen Shot 2013 03 04 at 11.28.30 AM 520x347 Fab stops sending you emails you dont read, even when you dont ask them to

Because Fab cared enough to consider my inbox overload, they’ve made me like them more. This should be email marketing 101, and we’re hoping other startups take note.

Leave it to Fab to bring class to my inbox.

Image credit: FILIPPO MONTEFORTE/Staff/Getty Images

Brands seek social goals – brand-e.biz


Brands seek social goals
technorati–logo Spending on social media, including influencer outreach, makes up only 10% of brands’ digital marketing expenditure, according to Technorati’s Media Digital Influence report. Of that social budget, more than half goes to Facebook
Three reasons why advertising should not be part of your social media strategySkiddMark
Google Glass, Pealk, Vimeo’s Looks, LinkedIn Stats, GIFs… The Week in Social MarketingProfs.com (subscription)
How to Amp Up Your Social Media and Email MarketingBusiness 2 Community

all 40 news articles »