<?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>Lucky Disasters &#187; Prism</title>
	<atom:link href="http://www.luckydisasters.com/tag/prism/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.luckydisasters.com</link>
	<description>How I stopped worrying and learned to love my karma.</description>
	<lastBuildDate>Sun, 08 Mar 2009 01:17:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>HowTo: Change Locations in Prism</title>
		<link>http://www.luckydisasters.com/2009/03/07/howto-change-locations-in-prism/</link>
		<comments>http://www.luckydisasters.com/2009/03/07/howto-change-locations-in-prism/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 01:09:26 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[Prism]]></category>
		<category><![CDATA[Accelerator]]></category>
		<category><![CDATA[Accelerator Key]]></category>
		<category><![CDATA[Alt]]></category>
		<category><![CDATA[Chrome Directory]]></category>
		<category><![CDATA[Complete List]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Error Code]]></category>
		<category><![CDATA[Home Key]]></category>
		<category><![CDATA[Javascript Code]]></category>
		<category><![CDATA[Javascript Window]]></category>
		<category><![CDATA[Keyboard]]></category>
		<category><![CDATA[Keyset]]></category>
		<category><![CDATA[Left Arrow]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[Navigation Keys]]></category>
		<category><![CDATA[Number Pad]]></category>
		<category><![CDATA[Print Key]]></category>
		<category><![CDATA[Redirect]]></category>
		<category><![CDATA[Right Arrow]]></category>
		<category><![CDATA[Text Box Type]]></category>
		<category><![CDATA[WebRunner]]></category>
		<category><![CDATA[Website Url]]></category>

		<guid isPermaLink="false">http://www.luckydisasters.com/?p=339</guid>
		<description><![CDATA[You may or may not know this, but you can use the Error Console in Prism to open new windows to any site you want. Just use the following javascript in the Code Evaluation box: window.open('http://website.url','',''); This will open a new window to the address &#8220;http://website.url&#8221;, pretty basic stuff. Now, what happens if you want [...]]]></description>
			<content:encoded><![CDATA[<p>You may or may not know this, but you can use the Error Console in Prism to open new windows to any site you want. Just use the following javascript in the Code Evaluation box:</p>
<p><code>window.open('http://website.url','','');</code></p>
<p>This will open a new window to the address &#8220;http://website.url&#8221;, pretty basic stuff. Now, what happens if you want to change the location of the Prism window from your default webapp&#8217;s location. Well, you can still use the Error Console, but there&#8217;s a couple of layers of javascript reference you need to go through. If you try using this:</p>
<p><code>parent.location='http://website.url'</code></p>
<p>You redirect the Error Console to &#8220;http://website.url&#8221;, interesting (very, actually :), but not what we&#8217;re after. If you haven&#8217;t already done so, open the error console:<br />
<a rel="lightbox" href="http://www.luckydisasters.com/wp-content/uploads/2009/03/menu.png"><img class="alignnone size-full wp-image-340" title="menu" src="http://www.luckydisasters.com/wp-content/uploads/2009/03/menu.png" alt="menu" width="274" height="137" /></a></p>
<p>Next, in the Code Evaluation text box, type the following:</p>
<p><code>parent.opener.content.location='about:config'</code></p>
<div style="height: 150px; width: 100%;"><a rel="lightbox" href="http://www.luckydisasters.com/wp-content/uploads/2009/03/shot1.png"><img class="size-thumbnail wp-image-341 alignleft" style="margin:4px;" title="shot1" src="http://www.luckydisasters.com/wp-content/uploads/2009/03/shot1-150x150.png" alt="shot1" width="150" height="150" /></a><a rel="lightbox" href="http://www.luckydisasters.com/wp-content/uploads/2009/03/shot2.png"><img class="alignleft size-thumbnail wp-image-342" style="margin:4px;" title="shot2" src="http://www.luckydisasters.com/wp-content/uploads/2009/03/shot2-150x150.png" alt="shot2" width="150" height="150" /></a><a rel="lightbox" href="http://www.luckydisasters.com/wp-content/uploads/2009/03/shot3.png"><img class="alignleft size-thumbnail wp-image-343" style="margin:4px;" title="shot3" src="http://www.luckydisasters.com/wp-content/uploads/2009/03/shot3-150x150.png" alt="shot3" width="150" height="150" /></a></div>
<p>That&#8217;s about it, hit return or press &#8220;Evaluate&#8221; and you&#8217;re done. By using <code>parent.opener.content.whatever</code> you should be able to access all of Prism&#8217;s components. What? You don&#8217;t know what the other compents are?? Well, check out the webrunner.xul located in Prism&#8217;s install directory, in the chrome directory inside the webrunner.jar (copy, rename to .zip from .jar and extract).</p>
<p>Another thing you&#8217;ll learn from this file is a complete list of the navigation keys (look for the keyset directives) currently used by Prism:</p>
<p>Back=Alt+Left Arrow<br />
Forward=Alt+Right Arrow<br />
Home=Alt+Home (that&#8217;s the Home Key on your keyboard&#8217;s number pad BTW)<br />
Reload Page=F5<br />
Close=Accelerator Key (Ctrl Key)+w<br />
Quit=Accelerator Key (Ctrl Key)+q<br />
Print=Accelerator Key (Ctrl Key)+p</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luckydisasters.com/2009/03/07/howto-change-locations-in-prism/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>I&#8217;ve Been HACKED! Well, LifeHacked Any Way&#8230;</title>
		<link>http://www.luckydisasters.com/2008/04/04/ive-been-hacked-well-lifehacked-any-way/</link>
		<comments>http://www.luckydisasters.com/2008/04/04/ive-been-hacked-well-lifehacked-any-way/#comments</comments>
		<pubDate>Sat, 05 Apr 2008 01:22:46 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[Prism]]></category>
		<category><![CDATA[WebRunner]]></category>
		<category><![CDATA[better gcal]]></category>
		<category><![CDATA[better gmail]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[Gmail]]></category>
		<category><![CDATA[lifehacker]]></category>

		<guid isPermaLink="false">http://www.luckydisasters.com/?p=274</guid>
		<description><![CDATA[Link to LifeHacker Post LifeHacker&#8217;s linked to my post on how to install extensions in Prism/Webrunner. For anyone having trouble with some extensions, have a look at my comment dated today (080404), I&#8217;ve addressed Better GCal specifically, but this should also work for Better Gmail and a few others as well. Prism/Webrunner extensions post]]></description>
			<content:encoded><![CDATA[<p><a href="http://lifehacker.com/375830/create-distraction+free-customized-webapps-with-prism">Link to LifeHacker Post</a></p>
<p>LifeHacker&#8217;s linked to my post on how to install extensions in Prism/Webrunner. For anyone having trouble with some extensions, have a look at my comment dated today (080404), I&#8217;ve addressed Better GCal specifically, but this should also work for Better Gmail and a few others as well.</p>
<p><a href="http://www.luckydisasters.com/2007/10/29/webrunner-now-prism-whatever-heres-how-to-make-an-extension-compatible-with-at-least-one">Prism/Webrunner extensions post</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luckydisasters.com/2008/04/04/ive-been-hacked-well-lifehacked-any-way/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HowTo &#8211; Make Your Own WebApp</title>
		<link>http://www.luckydisasters.com/2007/12/07/howto-make-your-own-webapp/</link>
		<comments>http://www.luckydisasters.com/2007/12/07/howto-make-your-own-webapp/#comments</comments>
		<pubDate>Sat, 08 Dec 2007 01:24:54 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Prism]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[WebRunner]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[webapp]]></category>

		<guid isPermaLink="false">http://www.luckydisasters.com/2007/12/07/howto-make-your-own-webapp/</guid>
		<description><![CDATA[This is just a quick howto on making your own WebRunner/Prism webapp file. This is a very simple process and shouldn&#8217;t take more than a few minutes of your time. There are a couple of tools you need however, to get started. a file archiver &#8211; my favorite is 7-zip, but you can just as [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a quick howto on making your own WebRunner/Prism webapp file. This is a very simple process and shouldn&#8217;t take more than a few minutes of your time. There are a couple of tools you need however, to get started.</p>
<ul>
<li>a file archiver &#8211; my favorite is <a href="http://www.7-zip.org/" target="_blank">7-zip</a>, but you can just as easily use any archiving program that is compatible with zip files</li>
<li>a text plain text editor</li>
</ul>
<p>For more advanced webapps, a more advanced context highlighting text editor can be helpful for coding custom style sheets or adding javascript customizations. And don&#8217;t forget icons! I use a combination of <a href="http://www.getpaint.net/" target="_blank">Paint.Net</a> and <a href="http://www.towofu.net/soft/e-aicon.php" target="_blank">@icon sushi</a> (which covers everything but MacOS, which is because I can&#8217;t seem to find software for Linux or Windows to accommodate icons for it &#8211; recommendations anyone?).</p>
<p><strong>The No &#8220;.webapp&#8221; WebApp</strong></p>
<p>There are several ways to open webpages with Prism or WebRunner. The first and easiest is to install Prism, then create a link to it on your desktop. Then change that link adding the option &#8220;-uri&#8221; and the url of the page you want to open. Here are two examples:</p>
<p>Windows:<br />
<code>c:\</code><code>your\path\to_prism\prism.exe -uri http://web_url_of_site
c:\your\path\to_prism\prism.exe -uri c:\location\of\local_file</code></p>
<p>GNU/Linux:<br />
<code>/your/path/to_prism/prism -uri http://web_url_of_site
/your/path/to_prism/prism -uri /location/of/local_file</code></p>
<p>This method does not require a webapp file, it just launches the website or file you specify. This means, no icons are required, but you also don&#8217;t get to add any custom themes or js files. This would be a really good method to use with applications like <a href="http://stickwiki.sourceforge.net/" target="_blank">Wiki on a Stick</a> (woas).</p>
<p><strong>WebApp Bundles</strong></p>
<p>The second method is also pretty straight forward (until you make it complex by adding more functionality). For the most basic webApp bundle you only need to create one file; the webapp.ini. Here&#8217;s the content from the example webapp.ini on the Prism wiki:</p>
<p><code>[Parameters]
id=unique-app-id@unique-author-id.whatever
uri=http://[the-url-what-you-want-to-connect-to]/
status=yes
location=no
sidebar=no
navigation=no</code></p>
<p>The &#8220;id&#8221; parameter is required to be unique. I&#8217;ve been using my website&#8217;s url (as most others have done as well) preceded by the name of the site, but any unique identifier will work. The &#8220;uri&#8221; parameter is required and will accept both url of the target website as well as local file paths. Everything after that appears to be optional and the values show are the defaults. These remaining parameters are options to tell Prism whether or not to show certain GUI elements (&#8220;status&#8221; = status bar;&#8221;location&#8221; = address bar;&#8221;sidebar&#8221; = sidebar;&#8221;navigation&#8221; = well, quite frankly, I have no idea &#8211; maybe navigation buttons that haven&#8217;t been implemented yet?).</p>
<p>The next step after saving your changes to this document, is to use your archiving program to zip up this file creating, as an example, &#8220;your_webapp.zip&#8221;. Replace the &#8220;zip&#8221; extension with &#8220;webapp&#8221; and you&#8217;re ready to roll! Now either double click the webapp file or you can launch the webapp from the command line thusly:</p>
<p>Windows:<br />
<code>c:\</code><code>your\path\to_prism\prism.exe -webapp your_webapp_bundle</code></p>
<p>GNU/Linux:<br />
<code>/your/path/to_prism/prism  -webapp your_webapp_bundle</code></p>
<p>For more advanced webapps you can add icons, scripting and style sheet support (see the Prism page for more details).</p>
<p>Happy coding!</p>
<p><a href="http://wiki.mozilla.org/Prism" target="_blank">Prism</a><br />
<a href="http://wiki.mozilla.org/Prism/bundle" target="_blank"> Prism/WebApp Bundle</a><br />
<a href="http://wiki.mozilla.org/Prism/scripting" target="_blank"> Prism/Scripting</a><br />
<a href="http://wiki.mozilla.org/Prism/styling" target="_blank"> Prism/Styling</a><br />
<a href="http://www.7-zip.org/" target="_blank"> 7-Zip</a><br />
<a href="http://www.getpaint.net/" target="_blank"> Paint.Net</a><br />
<a href="http://www.towofu.net/soft/e-aicon.php" target="_blank"> @icon sushi</a><br />
<a href="http://stickwiki.sourceforge.net/" target="_blank"> Wiki on a Stick</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luckydisasters.com/2007/12/07/howto-make-your-own-webapp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WebRunner now Prism, Whatever &#8211; Here&#8217;s How To Make An Extension Compatible With At Least One&#8230;</title>
		<link>http://www.luckydisasters.com/2007/10/29/webrunner-now-prism-whatever-heres-how-to-make-an-extension-compatible-with-at-least-one/</link>
		<comments>http://www.luckydisasters.com/2007/10/29/webrunner-now-prism-whatever-heres-how-to-make-an-extension-compatible-with-at-least-one/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 03:31:22 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Prism]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[WebRunner]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Archive Program]]></category>
		<category><![CDATA[Code Changes]]></category>
		<category><![CDATA[Compatibility]]></category>
		<category><![CDATA[Description Section]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Lancher]]></category>
		<category><![CDATA[Linux Version]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[Microsoft Silverlight]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Rdf]]></category>
		<category><![CDATA[Style Sheet Support]]></category>
		<category><![CDATA[Utility Computing]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[webapp]]></category>
		<category><![CDATA[Webapps]]></category>
		<category><![CDATA[Winzip]]></category>
		<category><![CDATA[Xulrunner]]></category>
		<category><![CDATA[Zip Files]]></category>

		<guid isPermaLink="false">http://www.luckydisasters.com/2007/10/29/webrunner-now-prism-whatever-heres-how-to-make-an-extension-compatible-with-at-least-one/</guid>
		<description><![CDATA[UPDATE AGAIN! 080611 I&#8217;ve made a new post on this subject cause it&#8217;s easier to update by adding new posts instead of updating this one. Enjoy! Update!! Had to add a comment to the replacement code below in order for this to work. 080404 Update!! Yet again, code changes for new versions and what not. [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;"><strong>UPDATE AGAIN! 080611</strong></span><br />
<a href="http://www.luckydisasters.com/2008/06/10/heres-how-to-make-an-extension-compatible-with-prism-two-ish/">I&#8217;ve made a new post on this subject cause it&#8217;s easier to update by adding new posts instead of updating this one. Enjoy!</a></p>
<p><ins style="color: red"><strong>Update!!</strong><br />
Had to add a comment to the replacement code below in order for this to work.</ins></p>
<p><ins style="color: red"><strong>080404 Update!!</strong><br />
Yet again, code changes for new versions and what not.</ins></p>
<p>Looks like Mozilla has added WebRunner to it&#8217;s Mozilla Labs line up and changed the name to <a href="http://labs.mozilla.com/2007/10/prism/" target="_blank">Prism</a>. From what they say, it&#8217;s going to be a cross between an open version of Adobe Air and Microsoft Silverlight and a localized lancher for web applications. Which, by my definition, is what utility computing is supposed to be like. Prism is currently for Windows only (they&#8217;d better hurry up with a Linux version), but it runs the same webapp files and also has added style sheet support &#8211; among other things &#8211; so you can style your webapps your way.</p>
<p>Anyway, I&#8217;ve been kind of discouraged by the lack of extension availability for WebRunner (and XulRunner for that matter). You&#8217;ll find in another of my posts a webapp for accessing the WebRunner extensions panel. Using this webapp, you can add new extensions (by installing or dropping them onto the panel), but at this point, adding extensions will fail because the version checking mechanism for WebRunner/XulRunner. To get around that, you need to change the extension&#8217;s compatibility information. These instructions will not work for every extension and your results will vary&#8230;</p>
<p>I recommend you find a smaller extension, download it and make the following changes:</p>
<ol>
<li>Open the extension package (you can open it with 7-zip, ALzip, Winzip or any other  archive program that works with zip files.</li>
<li>Extract and open the install.rdf with a text editor, I&#8217;d recommend Wordpad if your using windows.</li>
<li>Locate and change the following or something that looks like the following (this will vary by extension, but look for the Firefox description section &#8211; and you may find that you have to remove all references to all other Mozilla programs that the extension is compatible with for this to work):</li>
</ol>
<pre>
<code>&lt;!--Firefox--&gt;
&lt;RDF:Description RDF:about="rdf:#$djS7s"
  em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
  em:minVersion="0.8"
  em:maxVersion="2.0.0.*" /&gt;</code>
</pre>
<p>To:</p>
<pre>
<code>&lt;!--Webrunner--&gt;
  &lt;RDF:Description RDF:about="webrunner"
    em:id="webrunner@webapps.org"
    em:minVersion="0.1"
    em:maxVersion="10.0" /&gt;</code>
</pre>
<p>or (again it will depend on which way the developer implemented the Firefox description):</p>
<pre>
<code>&lt;em:targetApplication&gt;
  &lt;!--Webrunner--&gt;
  &lt;Description&gt;
    &lt;em:id&gt;webrunner@webapps.org&lt;/em:id&gt;
    &lt;em:minVersion&gt;0.1&lt;/em:minVersion&gt;
    &lt;em:maxVersion&gt;10.0&lt;/em:maxVersion&gt;
  &lt;/Description&gt;
&lt;/em:targetApplication&gt;</code>
</pre>
<p>If you&#8217;re using Prism, change to the following:</p>
<pre>
<code>&lt;RDF:Description RDF:about="prism"
  em:id="prism@developer.mozilla.org"
  em:minVersion="0.1"
  em:maxVersion="10.0" /&gt;</code>
</pre>
<p>or</p>
<pre>
<code>&lt;em:targetApplication&gt;
  &lt;Description&gt;
    &lt;!--Prism--&gt;
    &lt;em:id&gt;prism@developer.mozilla.org&lt;/em:id&gt;
    &lt;em:minVersion&gt;0.1&lt;/em:minVersion&gt;
    &lt;em:maxVersion&gt;10.0&lt;/em:maxVersion&gt;
  &lt;/Description&gt;
&lt;/em:targetApplication&gt;</code>
</pre>
<p>4. Then save the rdf file and add it back into the xpi archive.<br />
5. You should be ready to install the extension using the Extensions.webapp</p>
<p>I found this <a href="http://www.iosart.com/blog/2007/06/05/install-google-gears-in-a-xulrunner-app-in-3-quick-steps/" target="_blank">parts of this bit of magic</a> on <a href="http://www.iosart.com" target="_blank">Alex Sirota&#8217;s</a> website along with the tip to check in the applicaiton.ini file for any XulRunner application&#8217;s ID. If you run into errors, then something is probably malformed in the rdf file so check that first. I won&#8217;t be much help in trouble shooting, and I&#8217;m not about to offer support for other peoples extensions on an unsupported application, but if you have problems, post a comment and I&#8217;ll give editing the rdf a go myself.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luckydisasters.com/2007/10/29/webrunner-now-prism-whatever-heres-how-to-make-an-extension-compatible-with-at-least-one/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
	</channel>
</rss>
