<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Dumping Ground &#187; bundle</title>
	<atom:link href="http://ardvaark.net/tag/bundle/feed" rel="self" type="application/rss+xml" />
	<link>http://ardvaark.net</link>
	<description>And who cares?</description>
	<lastBuildDate>Thu, 19 Jan 2012 16:29:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How To Load Bundled Images In A Prism Webapp</title>
		<link>http://ardvaark.net/how-to-load-bundled-images-in-a-prism-webapp</link>
		<comments>http://ardvaark.net/how-to-load-bundled-images-in-a-prism-webapp#comments</comments>
		<pubDate>Tue, 27 Oct 2009 14:58:51 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[bundle]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[prism]]></category>
		<category><![CDATA[webapp]]></category>

		<guid isPermaLink="false">http://ardvaark.net/?p=822</guid>
		<description><![CDATA[One of the features in the Prism Webapp Bundle for Google Wave is a toaster pop-up notification of unread waves using the window.platform.showNotification() method.  The third parameter is named aImageURI, and is described by the nsIPlatformGlue IDL as, “The URI of an image to use in alert. Can be null for no image.” Which is great, [...]]]></description>
			<content:encoded><![CDATA[<p>One of the features in the <a title="The Dumping Ground:  A Prism Webapp Bundle For Google Wave" href="http://ardvaark.net/a-prism-webapp-bundle-for-google-wave">Prism Webapp Bundle for Google Wave</a> is a toaster pop-up notification of unread waves using the <span class="code">window.platform.showNotification()</span> method.  The third parameter is named <span class="code">aImageURI</span>, and is described by the <a title="Mozilla Cross-Reference: nsIPlatformGlue.idl" href="http://mxr.mozilla.org/mozillasvn/source/projects/webrunner/components/public/nsIPlatformGlue.idl">nsIPlatformGlue IDL</a> as, “The URI of an image to use in alert. Can be null for no image.”</p>
<p>Which is great, except … what URI scheme and path does one use?  Every example I could find always passed <span class="code">null</span> for the image, so after giving up on the web I joined the <a title="Google Groups: mozilla-labs-prism" href="http://groups.google.com/group/mozilla-labs-prism">Prism mailing list</a> and <a title="Google Groups: mozilla-labs-prism:   How Do You Show A Bundled Image With showNotification()?" href="http://groups.google.com/group/mozilla-labs-prism/browse_thread/thread/e84ccd8a42077aeb/baa59a30cbce3712">posted a question</a>.  The first response was to use the inline data scheme, with a base64-encoded image.  It was ugly, but it worked.</p>
<p>A later response, however, yielded the proper way:</p>
<p><span class="code">resource://webapp/path/to/image.png</span></p>
]]></content:encoded>
			<wfw:commentRss>http://ardvaark.net/how-to-load-bundled-images-in-a-prism-webapp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Prism Webapp Bundle For Google Wave</title>
		<link>http://ardvaark.net/a-prism-webapp-bundle-for-google-wave</link>
		<comments>http://ardvaark.net/a-prism-webapp-bundle-for-google-wave#comments</comments>
		<pubDate>Mon, 26 Oct 2009 14:10:15 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[bundle]]></category>
		<category><![CDATA[prism]]></category>
		<category><![CDATA[wave]]></category>
		<category><![CDATA[webapps]]></category>

		<guid isPermaLink="false">http://ardvaark.net/?p=813</guid>
		<description><![CDATA[Though Prism and Google Wave go great together simply creating a web app from the Prism Firefox add-on, Prism supports some script extensions that allow for more desktop-like integration of apps running inside it.  For example, you can call the window.platform.showNotification() method to cause a little toaster pop-up with the number of unread Waves. I’ve [...]]]></description>
			<content:encoded><![CDATA[<p>Though <a title="The Dumping Ground: Google Wave and Prism: A Match Made In Heaven" href="http://ardvaark.net/google-wave-and-prism-a-match-made-in-heaven">Prism and Google Wave go great together</a> simply creating a web app from the <a title="Add-ons for Firefox: Mozilla Labs - Prism" href="https://addons.mozilla.org/en-US/firefox/addon/6665">Prism Firefox add-on</a>, Prism supports some <a title="Mozilla Developer Center: Prism Scripting" href="https://developer.mozilla.org/en/Prism/Scripting">script extensions</a> that allow for more desktop-like integration of apps running inside it.  For example, you can call the <span class="code">window.platform.showNotification()</span> method to cause a little toaster pop-up with the number of unread Waves.</p>
<p>I’ve created a webapp bundle that does just that.  Unfortunately, such bundles at present only work with the stand-alone version of Prism.  The Firefox add-on is really a better way to run Prism, but if you’re using it you’ll need to do a little manual mucking in your webapp profile to use this bundle.</p>
<h3>Stand-Alone Bundle</h3>
<p>So, if you just want the bundle, <a href="http://ardvaark.net/assets/google-wave.webapp/google-wave.webapp">here you go</a>.  Note that I haven’t really tested it on the stand-alone version, so please let me know if something is broken.</p>
<h3>Hack Your Webapp</h3>
<p>As I said, if you’re using the add-on version, you’ll need to do a little manual hacking.  After you create the webapp, <a title="The Dumping Ground: Google Wave and Prism: A Match Made In Heaven" href="http://ardvaark.net/google-wave-and-prism-a-match-made-in-heaven">as described in my earlier post</a>, open up Explorer and navigate to your Prism webapp bundle cache.  On Windows, this is in <span class="code">%APPDATA%\WebApps</span> (something like <span class="code">C:\Users\Brian\AppData\Roaming\WebApps</span>); on Linux, it is <span class="code">~/.webapps</span>.  You should see your Google Wave webapp in that directory.  Add the <a href="http://ardvaark.net/assets/google-wave.webapp/webapp.js">webapp.js</a> script to that directory, and also add in <a href="http://ardvaark.net/assets/google-wave.webapp/images/google-wave-52x32.png" class="floatbox" rev="group:813">images/google-wave-52&#215;32.png</a>.  Now you should get a toaster pop-up and task bar notification when there are new waves.</p>
<p>It would be nice if Google were to add a <span class="code">&lt;link rel=&#8221;webapp&#8221;&gt;</span> to Wave, referencing an appropriate bundle.  If anybody there sees this and cares to use my code as a crude starting point, I am releasing this code under an <a href="http://opensource.org/licenses/mit-license.php">MIT license</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ardvaark.net/a-prism-webapp-bundle-for-google-wave/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

