29.2.12

Microsoft Word - Keep Words Together with a Non-breaking Space

Keep Words Together with a Non-breaking Space

Keep Words Together with a Non-breaking Space

Have you ever been typing a paragraph in Microsoft Word and had a multiword phrase, such as a person's name, get separated onto two lines? You can keep that phrase or name together by inserting a non-breaking space. To create a non-breaking space, select the space after each word in the phrase (except the last word), and press CTRL+SHIFT+SPACEBAR.

27.2.12

Introducing - www.dspace.org

Introducing - www.dspace.org

About DSpace
DSpace is the software of choice for academic, non-profit, and commercial organizations building open digital repositories. It is free and easy to install "out of the box" and completely customizable to fit the needs of any organization.
DSpace preserves and enables easy and open access to all types of digital content including text, images, moving images, mpegs and data sets. And with an ever-growing community of developers, committed to continuously expanding and improving the software, each DSpace installation benefits from the next.

26.2.12

Generate emails via mailto URLs on Node.js

Generate emails via mailto URLs on Node.js

2012-02-25


Generate emails via mailto URLs on Node.js

This post tells you how to generate emails on Node.js and open them in an email program. It uses mailto URLs to do so. The advantage of this approach is that you can manually check and edit such emails before sending them.

mailto URL syntax

"mailto:" recipients ( "?" key "=" value ("&" key "=" value)* )?
  • recipients: comma-separated email addresses (no spaces; Outlook needs semicolons instead of commas)
  • value: should be URL-encoded (e.g. space becomes %20)
  • key: subject, cc, bcc, body
Example: mailto:joe@example.com,jane@example.com?subject=hello&body=How%20are%20you%3F

Using mailto URLs on Node.js

The npm module openurl allows you to tell the operating system to open a URL. It also comes with a mailto() function that constructs well-formed mailto URLs. Example:
require("openurl").mailto(["john@example.com", "jane@example.com"],         { subject: "Hello!", body: "This is\na generated email!\n" }); 
Naturally, the same technique also works with other programming languages:

Related post

  1. Write your shell scripts in JavaScript, via Node.js