<?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; Lt</title>
	<atom:link href="http://www.luckydisasters.com/tag/lt/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>Here&#8217;s How To Make An Extension Compatible With Prism (Two-ish)</title>
		<link>http://www.luckydisasters.com/2008/06/10/heres-how-to-make-an-extension-compatible-with-prism-two-ish/</link>
		<comments>http://www.luckydisasters.com/2008/06/10/heres-how-to-make-an-extension-compatible-with-prism-two-ish/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 03:57:07 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Prism]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[7zip]]></category>
		<category><![CDATA[C Program]]></category>
		<category><![CDATA[Correct Target]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[Dom Inspector]]></category>
		<category><![CDATA[Editors]]></category>
		<category><![CDATA[Extension Folder]]></category>
		<category><![CDATA[Folder C]]></category>
		<category><![CDATA[Insta]]></category>
		<category><![CDATA[Installation Directory]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[Mozilla Org]]></category>
		<category><![CDATA[Mud]]></category>
		<category><![CDATA[Notepad]]></category>
		<category><![CDATA[Prism Gt]]></category>
		<category><![CDATA[Rdf File]]></category>
		<category><![CDATA[String Changes]]></category>
		<category><![CDATA[Targetapplication]]></category>
		<category><![CDATA[Targets]]></category>
		<category><![CDATA[Version String]]></category>

		<guid isPermaLink="false">http://www.luckydisasters.com/?p=281</guid>
		<description><![CDATA[I know it&#8217;s been a while since I&#8217;ve posted. There&#8217;s been a lot going on &#8211; school, work, home, you get the point. Anyway, I&#8217;ve been trying to keep my last post on how to make extensions compatible with Prism up-to-date, but this is turning out to be a difficult task. So I&#8217;m just going [...]]]></description>
			<content:encoded><![CDATA[<p>I know it&#8217;s been a while since I&#8217;ve posted. There&#8217;s been a lot going on &#8211; school, work, home, you get the point. Anyway, I&#8217;ve been trying to keep <a href="http://www.luckydisasters.com/2007/10/29/webrunner-now-prism-whatever-heres-how-to-make-an-extension-compatible-with-at-least-one/">my last post</a> on how to make extensions compatible with Prism up-to-date, but this is turning out to be a difficult task. So I&#8217;m just going to post new instructions as needed. Basically, everything remains the same but the version string changes. The DOM inspector is the key to figuring out the correct target to put into your extension&#8217;s install.rdf. Clear as mud yet? Well, let me lay out the steps for you again here.</p>
<p><strong>Step 1</strong><br />
Navigate to the Prism installation directory, in Windows this is:<br />
<span style="font-family: Courier New;">C:\Program Files\Prism\</span><a rel="lightbox" href="http://www.luckydisasters.com/wp-content/uploads/2008/06/firstrdf.png"><img class="alignright alignnone size-medium wp-image-286" style="float: right;" title="firstrdf" src="http://www.luckydisasters.com/wp-content/uploads/2008/06/firstrdf-300x208.png" alt="" width="300" height="208" /></a></p>
<p>Open up the extensions folder, then the DOM inspector extension folder:<br />
<span style="font-family: Courier New;">C:\Program Files\Prism\extensions\inspector@mozilla.org<br />
</span></p>
<p>Now open the &#8220;install.rdf&#8221; file and find this section of code which can be used (usually) as-is in most extensions pasted in the right place (just use the extension&#8217;s preconfigured targets as your guide on where to place it):</p>
<p><span style="font-family: Courier New;"><br />
&lt;em:targetApplication&gt;<br />
&lt;!&#8211; Prism &#8211;&gt;<br />
&lt;Description&gt;<br />
&lt;em:id&gt;prism@developer.mozilla.org&lt;/em:id&gt;<br />
&lt;em:minVersion&gt;0.4&lt;/em:minVersion&gt;<br />
&lt;em:maxVersion&gt;1.0.0.*&lt;/em:maxVersion&gt;<br />
&lt;/Description&gt;<br />
&lt;/em:targetApplication&gt;</span></p>
<p><strong>Step 2</strong><br />
Open up your extension&#8217;s xpi file using 7zip or your favorite archiving tool and extract the install.rdf file.<br />
<a rel="lightbox" href="http://www.luckydisasters.com/wp-content/uploads/2008/06/extractinstallrdf.png"><img class="alignnone size-medium wp-image-285" title="extractinstallrdf" src="http://www.luckydisasters.com/wp-content/uploads/2008/06/extractinstallrdf-300x135.png" alt="" width="300" height="135" /></a></p>
<p>Open that install.rdf file with a text editor (other than notepad which doesn&#8217;t understand the line breaks used by other editors) and find the area where it lists the installation targets and insert your copied text into that or modify one of the install targets with the appropriate information from the DOM inspector extension install.rdf file.</p>
<p><a rel="lightbox" href="http://www.luckydisasters.com/wp-content/uploads/2008/06/secondinstallrdf.png"><img class="alignnone size-medium wp-image-282" title="secondinstallrdf" src="http://www.luckydisasters.com/wp-content/uploads/2008/06/secondinstallrdf-300x170.png" alt="" width="300" height="170" /></a></p>
<p><strong>Step 3</strong><img class="alignright alignnone size-full wp-image-283" style="float: right; margin: 2px;" title="addonsmenu" src="http://www.luckydisasters.com/wp-content/uploads/2008/06/addonsmenu.png" alt="" width="232" height="120" /><br />
Install the extension. This will get tricky due to the way Prism&#8217;s developers have modified the profiles and what not. Well, I say that, but it really only gets that tricky if you&#8217;re manually installing the extension. Prism developers have seen fit to include the Addons menu item from the Prism menu in the lower right of Prism&#8217;s window to help things go more smoothly.</p>
<p>One of the ways to use this new install feature for an extension is globally, which means all webapps will be able to use the extension. This is the least preferred manner due to the fact that you won&#8217;t want all extensions available for all webapps in most cases. An example would be having the Better Gmail extension available for <a href="http://www.luckydisasters.com/wp-content/uploads/2007/10/bloglines.webapp">Bloglines</a> &#8211; don&#8217;t think that&#8217;s real necessary, do you? So plan accordingly.</p>
<p>Using the second, and more preferred method, you just open your webapp. Open your webapp&#8217;s Addons panel, then install by either dragging and dropping the extension onto it, or by clicking the &#8220;Install&#8230;&#8221; button and navigating to the extension and selecting it for installation.</p>
<p><a rel="lightbox" href="http://www.luckydisasters.com/wp-content/uploads/2008/06/browseforextension.png"><img class="alignnone size-medium wp-image-284" title="browseforextension" src="http://www.luckydisasters.com/wp-content/uploads/2008/06/browseforextension-300x168.png" alt="" width="300" height="168" /></a></p>
<p><strong>Conclusion</strong><br />
That should be about it. My next Prism post will be about how to make one of two stand alone Firefox/Prism exention webapps &#8211; POW local server or Scribefire standalone webapp. Stay tuned, we get to play with chrome!!</p>
<p>Links:</p>
<p><a href="http://wiki.mozilla.org/Prism">Prism</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luckydisasters.com/2008/06/10/heres-how-to-make-an-extension-compatible-with-prism-two-ish/feed/</wfw:commentRss>
		<slash:comments>18</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>
