<?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; C Program</title>
	<atom:link href="http://www.luckydisasters.com/tag/c-program/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>Registry Seach and Destroy Missions Just Got Easier</title>
		<link>http://www.luckydisasters.com/2009/02/19/registry-seach-and-destroy-missions-just-got-easier/</link>
		<comments>http://www.luckydisasters.com/2009/02/19/registry-seach-and-destroy-missions-just-got-easier/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 04:33:11 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Absolute]]></category>
		<category><![CDATA[C Program]]></category>
		<category><![CDATA[Default Folder]]></category>
		<category><![CDATA[Impulse]]></category>
		<category><![CDATA[Missions]]></category>
		<category><![CDATA[Moving]]></category>
		<category><![CDATA[Program Folder]]></category>
		<category><![CDATA[Registry Keys]]></category>
		<category><![CDATA[Replacements]]></category>
		<category><![CDATA[Root Directory]]></category>
		<category><![CDATA[Root Folder]]></category>
		<category><![CDATA[Seach]]></category>
		<category><![CDATA[Text Strings]]></category>

		<guid isPermaLink="false">http://www.luckydisasters.com/?p=324</guid>
		<description><![CDATA[Ever have to move a program folder after an install then try to update the registry so that everything still worked correctly?  Or how about simply having to make the same changes to a whole bunch of text strings in the registry manually? I recently had to do the former, a program installer wanted to [...]]]></description>
			<content:encoded><![CDATA[<p>Ever have to move a program folder after an install then try to update the registry so that everything still worked correctly?  Or how about simply having to make the same changes to a whole bunch of text strings in the registry manually? I recently had to do the former, a program installer wanted to put the program folder into <code>C:\</code>, but I prefer to have my programs in <code>C:\Program Files</code> &#8211; thanks. Some programs require a path without spaces (therefore, it helps to put them in the root folder), but others are just so old that they install to <code>C:\</code> by default. Moving the program folder from <code>C:\</code> to <code>C:\Program Files</code> works to move the files, but the registry keys will continue to point to a folder in the root directory (and of course will prevent your programs from completely working).</p>
<p><a href="http://bladesdev.com/regreplace.htm"><img class="alignleft size-medium wp-image-325" style="margin:3px;" title="regrepl2" src="http://www.luckydisasters.com/wp-content/uploads/2009/02/regrepl2-300x180.jpg" alt="regrepl2" width="240" height="144" /></a>To fix this you have to get adventurous and make edits to the registry. I found a solution to the slow process that is normally a standard part of finding and editing these entries. The program is called <a href="http://bladesdev.com/regreplace.htm">Registry Replace</a> by <a href="http://bladesdev.com">Absolute Impulse</a>. It allows you to do search and destroy string replacements similar to those you can perform with a standard text editor.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luckydisasters.com/2009/02/19/registry-seach-and-destroy-missions-just-got-easier/feed/</wfw:commentRss>
		<slash:comments>1</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>Running Multiple Instances/Versions of Mozilla Firefox</title>
		<link>http://www.luckydisasters.com/2007/06/25/running-multiple-instancesversions-of-mozilla-firefox/</link>
		<comments>http://www.luckydisasters.com/2007/06/25/running-multiple-instancesversions-of-mozilla-firefox/#comments</comments>
		<pubDate>Mon, 25 Jun 2007 16:23:13 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Browser Side]]></category>
		<category><![CDATA[C Program]]></category>
		<category><![CDATA[Case 2]]></category>
		<category><![CDATA[Case Case]]></category>
		<category><![CDATA[Click This Icon]]></category>
		<category><![CDATA[Current Version]]></category>
		<category><![CDATA[Double Click]]></category>
		<category><![CDATA[Liking]]></category>
		<category><![CDATA[Mozilla Browser]]></category>
		<category><![CDATA[New Browser]]></category>
		<category><![CDATA[New Profile]]></category>
		<category><![CDATA[Overwrite]]></category>
		<category><![CDATA[Profile Name]]></category>
		<category><![CDATA[Select Properties]]></category>
		<category><![CDATA[Shortcut Tab]]></category>
		<category><![CDATA[Target Field]]></category>
		<category><![CDATA[Target Text]]></category>
		<category><![CDATA[Test Test]]></category>
		<category><![CDATA[Type Path]]></category>

		<guid isPermaLink="false">http://www.luckydisasters.com/2007/06/25/running-multiple-instancesversions-of-mozilla-firefox/</guid>
		<description><![CDATA[I wanted to check out the latest nightly build of Mozilla&#8217;s Firefox browser (currently version 3 alpha), but I didn&#8217;t want to uninstall my current version or overwrite, or screw up my profile and all those extensions I have installed. So how do you run two builds of Firefox at once? Pretty easily actually (while [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to check out the latest nightly build of Mozilla&#8217;s Firefox browser (currently version 3 alpha), but I didn&#8217;t want to uninstall my current version or overwrite, or screw up my profile and all those extensions I have installed. So how do you run two builds of Firefox at once? Pretty easily actually (while the following instructions are for Windows, similar actions can be used with Linux or Mac)!</p>
<p><strong>First create a new profile</strong></p>
<p>This is actually really simple, you just need to do one of two things:</p>
<p>Select Case</p>
<p>Case 1</p>
<blockquote><p>From a command prompt or Start menu &gt; Run  type:</p></blockquote>
<blockquote><p>&#8220;[path_to_firefox]\firefox.exe&#8221; -CreateProfile [profile_name]</p></blockquote>
<blockquote><p>For most of us running Windows this will look like:</p></blockquote>
<blockquote><p>&#8220;C:\Program Files\Mozilla Firefox\firefox.exe&#8221; -CreateProfile test</p></blockquote>
<blockquote><p>(&#8220;test&#8221; would be the profile name in this case)</p></blockquote>
<p>Case 2<a rel="lightbox" title="properties_01" href="http://www.luckydisasters.com/wp-content/uploads/2007/06/prop01.png"><img style="float: right; margin-left: 3px" src="http://www.luckydisasters.com/wp-content/uploads/2007/06/prop01.thumbnail.png" border="0" alt="properties_01" /></a></p>
<blockquote><p>You can create a copy your Mozilla Firefox shortcut on your desktop, right click and select properties, then add the <em>-CreateProfile   [profile_name]</em> in the &#8220;Target&#8221; field on the &#8220;Shortcut&#8221; tab of the properties dialog. Then click OK and double click the shortcut.</p></blockquote>
<p>End Select</p>
<p>In either case, Firefox will create the new profile and not open any windows.</p>
<p>Now that you have a new profile you need to be able to open your new browser with the new profile (I&#8217;m assuming that you&#8217;ve downloaded a new browser and have extracted or installed it to your liking).</p>
<p><strong>Create a new shortcut to you&#8217;re new browser</strong><a rel="lightbox" title="properties_02" href="http://www.luckydisasters.com/wp-content/uploads/2007/06/prop02.png"><img style="float: right; margin-left: 3px" src="http://www.luckydisasters.com/wp-content/uploads/2007/06/prop02.thumbnail.png" border="0" alt="properties_02" /></a></p>
<p>You can either copy your shortcut (if you&#8217;ve installed it) or create a new shortcut to the new version of firefox.exe, then (just like in Case 2 above) right click on the shortcut and in the &#8220;Target&#8221; text box, add <em>-P test</em> (or whatever you&#8217;ve used as your new profile&#8217;s name) to the end of the quoted firefox.exe path. The click OK.</p>
<p>Now, if you simply double click this icon  you&#8217;ll open a new instance of your new browser build and you can start to play.</p>
<p><strong>Just in case you want to use both your old browser and your new browser side-by-side</strong></p>
<p><a rel="lightbox" title="properties_03" href="http://www.luckydisasters.com/wp-content/uploads/2007/06/prop03.png"><img style="float: left; margin-right: 3px" src="http://www.luckydisasters.com/wp-content/uploads/2007/06/prop03.thumbnail.png" border="0" alt="properties_03" /></a>So, you say you&#8217;re curious if that website looks the same in your old browser as it does in your new browser, and you need them both open to tell? Well that&#8217;s no problem either. Open up the shortcut properties to your new browser just like you did above and after the &#8220;-P test&#8221; add in &#8220;-no-remote&#8221;. Now you can open multiple profiles, which should allow you to open your old browser and new browser side-by-side.</p>
<p>Have fun!</p>
<p>Reference Links from <a href="http://mozillazine.org/" target="_blank">mozillaZine</a> knowledge base:<a href="http://kb.mozillazine.org/Profile_Manager" target="_blank"><br />
Profile Manager</a><br />
<a href="http://kb.mozillazine.org/Command_line_arguments" target="_blank"> Command line arguments</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luckydisasters.com/2007/06/25/running-multiple-instancesversions-of-mozilla-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two Unrelated Things I Can&#8217;t Seem To Remember</title>
		<link>http://www.luckydisasters.com/2007/05/10/two-unrelated-things-i-cant-seem-to-remember/</link>
		<comments>http://www.luckydisasters.com/2007/05/10/two-unrelated-things-i-cant-seem-to-remember/#comments</comments>
		<pubDate>Thu, 10 May 2007 15:32:08 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Alcoholic Beverages]]></category>
		<category><![CDATA[Amp]]></category>
		<category><![CDATA[Annoying Error Messages]]></category>
		<category><![CDATA[Brain Cells]]></category>
		<category><![CDATA[C Program]]></category>
		<category><![CDATA[Command Options]]></category>
		<category><![CDATA[Command String]]></category>
		<category><![CDATA[Computer Command]]></category>
		<category><![CDATA[Excuse]]></category>
		<category><![CDATA[Interface]]></category>
		<category><![CDATA[Launch]]></category>
		<category><![CDATA[Mozilla Firefox]]></category>
		<category><![CDATA[Nifty]]></category>
		<category><![CDATA[Nux]]></category>
		<category><![CDATA[Program C]]></category>
		<category><![CDATA[Program Exe]]></category>
		<category><![CDATA[Standalone Program]]></category>
		<category><![CDATA[Those Annoying Error Messages]]></category>
		<category><![CDATA[Unrelated Things]]></category>

		<guid isPermaLink="false">http://www.luckydisasters.com/2007/05/10/two-unrelated-things-i-cant-seem-to-remember/</guid>
		<description><![CDATA[Ok, I&#8217;ll admit it. Alcoholic beverages have killed a fair number of my brain cells. As a result I&#8217;m continually forgetting things (that&#8217;s my story and I&#8217;m sticking to it!). Any way, here are two completely unrelated things I&#8217;ve forgotten and have had to look up today. So I don&#8217;t forget them again, and so [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, I&#8217;ll admit it. Alcoholic beverages have killed a fair number of my brain cells. As a result I&#8217;m continually forgetting things (that&#8217;s my story and I&#8217;m sticking to it!). Any way, here are two completely unrelated things I&#8217;ve forgotten and have had to look up today. So I don&#8217;t forget them again, and so you, dear reader, don&#8217;t have to go looking too far for them, I&#8217;m putting them here:</p>
<p><strong>How To: Redirect Errors From Standard Out to Nowhere (*nux)</strong></p>
<p>Here&#8217;s how to get rid of those annoying error messages you really don&#8217;t care about when running a script (everybody&#8217;s got their own excuse for not wanting to see this type of thing, even though it can be handy now and again):</p>
<p align="left"><code>user@computer:~$ [command] [options] 2&amp;gt;&amp;amp;1</code></p>
<p>Stick “<strong>2&gt;&amp;1</strong>” at the end of your command string, that about covers it!!</p>
<p><strong>How To: Launch Firefox With a Specific Chrome Interface (Windows)</strong></p>
<p>Ever install a nifty little Mozilla Firefox extension and want to run it as a standalone program? Here’s how:</p>
<p align="left"><code>C:\Program Files\Mozilla Firefox&amp;gt;firefox.exe -chrome [chrome path]</code></p>
<p>Add the “-chrome” option to the firefox command, then add the chrome path after that. Here’s an example of how to launch the bookmarks manager as a standalone program:</p>
<p align="left"><code>C:\Program Files\Mozilla Firefox&amp;gt;firefox.exe &lt;strong&gt;-chrome chrome://browser/content/bookmarks/bookmarksManager.xul&lt;/strong&gt;</code></p>
<p>Enjoy!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luckydisasters.com/2007/05/10/two-unrelated-things-i-cant-seem-to-remember/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
