Skip to content

Instantly share code, notes, and snippets.

View vanto's full-sized avatar

Tammo van Lessen vanto

View GitHub Profile
@vanto
vanto / README.md
Last active December 23, 2021 21:28
OEmbed Liquid Tag for Jekyll

OEmbed Liquid Tag for Jekyll

This is a simple liquid tag that helps to easily embed images, videos or slides from OEmbed enabled providers. It uses Magnus Holm's great oembed gem which connects to the OEmbed endpoint of the link's provider and retrieves the HTML code to embed the content properly (i.e. an in-place YouTube player, Image tag for Flickr, in-place slideshare viewer etc.). By default it supports the following OEmbed providers (but can fallback to Embed.ly or OoEmbed for other providers):

  • Youtube
  • Flickr
  • Viddler
  • Qik
  • Revision3
  • Hulu
  • Vimeo
# update apt's package list
sudo apt-get update
# install git
sudo apt-get install g++ curl libssl-dev apache2-utils
sudo apt-get install git-core
# install node
sudo apt-get install nodejs
# install the Node package manager (npm) for later use
sudo apt-get install npm
sudo npm install express
Index: src/java/com/sun/xml/messaging/saaj/soap/SOAPPartImpl.java
===================================================================
--- src/java/com/sun/xml/messaging/saaj/soap/SOAPPartImpl.java (revision 450)
+++ src/java/com/sun/xml/messaging/saaj/soap/SOAPPartImpl.java (working copy)
@@ -285,7 +285,7 @@
log.severe("SAAJ0545.soap.cannot.set.src.for.part");
throw new SOAPExceptionImpl(
- "Error setting the source for SOAPPart: " + ex.getMessage());
+ "Error setting the source for SOAPPart: " + ex.getLocalizedMessage(), ex);