<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <atom:link href="http://www.codedawn.com/index/index.rss" rel="self" type="application/rss+xml" />
        <title>index</title>
        <description>index</description>
        <link>http://www.codedawn.com/index/index.php</link>
        <lastBuildDate>Fri, 18 May 2012 10:06:32 +0100</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>QuickMonth Calendar 2.2 released</title>
            <link>http://www.codedawn.com/index/index/quickmonth-calendar-2-2-released</link>
            <description>&lt;img class=&quot;yui-img&quot; src=&quot;http://www.codedawn.com/index/resources/qmc-48.jpg&quot; style=&quot;float: left; margin-right: 5px;&quot;&gt;&lt;br&gt;&lt;br&gt;This version of QuickMonth Calendar adds improved user language auto-detection and new context menu commands to quickly copy the selected date to the clipboard.&amp;nbsp; Chinese language support has also been added.&amp;nbsp; If you are interested in translating QuickMonth Calendar into another language, please &lt;a class=&quot;&quot; href=&quot;http://www.codedawn.com/index/contact.php&quot;&gt;contact me&lt;/a&gt;.&lt;br&gt;&lt;br&gt;&lt;a class=&quot;&quot; href=&quot;http://www.codedawn.com/index/quickmonth-calendar-2-2-released#disqus_thread&quot;&gt;Comments&lt;/a&gt;</description>
            <pubDate>Fri, 07 Jan 2011 03:41:35 +0100</pubDate>
        </item>
        <item>
            <title>New Excel add-in: RegEx Find/Replace</title>
            <link>http://www.codedawn.com/index/index/new-excel-add-in-regex-find-replace</link>
            <description>If you're needing advanced search and replace capabilities in Microsoft Excel, this add-in is for you.&amp;nbsp; RegEx Find/Replace is&amp;nbsp;a freeware add-in for Microsoft Excel which combines Excel's own&amp;nbsp;find and replace features with the power of regular expressions.&amp;nbsp; It also includes regular expression worksheet functions you can use to extract, replace or compare data via cell formulas.&amp;nbsp; To read more about it, visit the &lt;a class=&quot;&quot; href=&quot;http://www.codedawn.com/index/excel-add-ins.php&quot;&gt;RegEx Find/Replace main page&lt;/a&gt;, or skip to the &lt;a class=&quot;&quot; href=&quot;http://www.codedawn.com/index/regex-find-replace-download.php&quot;&gt;download page&lt;/a&gt;&amp;nbsp;to try it out.&lt;br&gt;&lt;br&gt;&lt;img class=&quot;yui-img&quot; title=&quot;RegEx Find/Replace screenshot&quot; alt=&quot;screenshot&quot; src=&quot;http://www.codedawn.com/index/resources/re_fr-screen1.jpg&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;a class=&quot;&quot; href=&quot;http://www.codedawn.com/index/new-excel-add-in-regex-find-replace#disqus_thread&quot;&gt;Comments&lt;/a&gt;</description>
            <pubDate>Sat, 11 Dec 2010 18:21:51 +0100</pubDate>
        </item>
        <item>
            <title>Find All featured on Download Squad and Lifehacker</title>
            <link>http://www.codedawn.com/index/index/find-all-featured-on-download-squad-and-lifehacker</link>
            <description>My Firefox add-on &lt;a href=&quot;http://www.codedawn.com/index/find-all.php&quot;&gt;Find All&lt;/a&gt; was recently featured on tech blog sites Download Squad and Lifehacker.&amp;nbsp; You can read what they have to say about it here:&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.downloadsquad.com/2010/07/14/find-all-for-firefox-somewhat-alleviates-crappy-default-find-fun/&quot; title=&quot;View post on Download Squad&quot;&gt;Find All for 
Firefox somewhat alleviates crappy default Find functionality&lt;/a&gt; [downloadsquad.com]&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://lifehacker.com/5587822/find-all-enhances-text-search-in-firefox&quot;&gt;Find All Enhances Text Search in Firefox&lt;/a&gt; [lifehacker.com]&lt;br&gt;&lt;br&gt;I would like to thank Ken Saunders for his support of Find All. It was his comment on Download Squad which lead to the writing of the articles. Thanks Ken!&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.codedawn.com/index/find-all-featured-on-download-squad-and-lifehacker#disqus_thread&quot;&gt;Comments&lt;/a&gt;</description>
            <pubDate>Sat, 17 Jul 2010 15:49:48 +0100</pubDate>
        </item>
        <item>
            <title>A New QuickMonth Calendar</title>
            <link>http://www.codedawn.com/index/index/a-new-quickmonth-calendar</link>
            <description>&lt;img class=&quot;yui-img&quot; src=&quot;http://www.codedawn.com/index/resources/qmc-48.jpg&quot; style=&quot;float: left; margin-right: 5px;&quot;&gt;&lt;br&gt;&lt;br&gt;QuickMonth Calendar 2.1 is now available. This release offers a few noteworthy features:
&lt;ul style=&quot;clear: both;&quot;&gt;&lt;li&gt;The options dialog and context menu are now localizable. This means that QuickMonth Calendar can be easily translated into more languages.&lt;/li&gt; &lt;li&gt;Screen resolution change detection. This was requested many times by those who often switch between monitors and display settings.&lt;/li&gt; &lt;li&gt;A new option to start QuickMonth Calendar with the calendar visible.&lt;/li&gt; &lt;li&gt;Improved compatibility with Windows 7.&lt;/li&gt; &lt;li&gt;User configuration is now stored in an INI file, making QMC more portable-friendly than ever.&lt;/li&gt;&lt;/ul&gt;&lt;a class=&quot;&quot; href=&quot;http://www.codedawn.com/index/a-new-quickmonth-calendar#disqus_thread&quot;&gt;Comments&lt;/a&gt;</description>
            <pubDate>Sat, 10 Jul 2010 00:54:41 +0100</pubDate>
        </item>
        <item>
            <title>Find All 3.0 released</title>
            <link>http://www.codedawn.com/index/index/find-all-3-0-released</link>
            <description>This new release of Firefox add-on Find All brings a significant new feature.&amp;nbsp; Not only can you find all occurrences of a particular word or phrase in one tab, you can switch to another tab and perform a separate Find All search.&amp;nbsp; Find All keeps track of the search results for each tab until you close the find bar on that particular tab.&amp;nbsp; Get more information about this add-on and download it &lt;a class=&quot;&quot; title=&quot;&quot; href=&quot;http://www.codedawn.com/index/find-all.php&quot;&gt;here&lt;/a&gt; or on &lt;a class=&quot;&quot; title=&quot;&quot; href=&quot;https://addons.mozilla.org/firefox/addon/7299&quot;&gt;addons.mozilla.org&lt;/a&gt;.&lt;br&gt;</description>
            <pubDate>Fri, 06 Nov 2009 20:41:46 +0100</pubDate>
        </item>
        <item>
            <title>7-Zip Icon Pack for Windows XP</title>
            <link>http://www.codedawn.com/index/index/7-zip-icon-pack-for-windows-xp</link>
            <description>&lt;a class=&quot;&quot; href=&quot;http://www.7-zip.org/&quot;&gt;7-Zip&lt;/a&gt; is an excellent file compression program, however if you use it, one of the first things you notice is that the toolbar icons look quite outdated.&amp;nbsp; To help alleviate the problem, I'm making an icon pack available for you to freely download and install.&amp;nbsp; It replaces 7-Zip's ugly toolbar icons with more tolerable black icons.&amp;nbsp; It also updates the 7-Zip file type and program icons.&lt;br&gt;&lt;img class=&quot;yui-img&quot; src=&quot;http://www.codedawn.com/index/resources/icon_pack_preview.gif&quot;&gt;&lt;br&gt;My wife and I have spent the last couple of months volunteering at an orphanage in Mexico.&amp;nbsp; I assembled this icon pack to raise funds so we can return to the United States.&amp;nbsp; If you would like to help us make the trip back home and get re-established, or if you want to just say 'thanks' for putting together this icon pack, please consider making a donation of $1 or more.&amp;nbsp; You will have a chance to donate at the end of the installation, or visit &lt;a class=&quot;&quot; href=&quot;https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;amp;hosted_button_id=9035834&quot;&gt;PayPal.com&lt;/a&gt;.&lt;br&gt;&lt;br&gt;The icon pack was designed for and tested on Windows XP (yes, I know it's an old OS, but many of us still use it--maybe I can make a version for Vista or Windows 7 in the future).&amp;nbsp; It may be downloaded from the following locations:&lt;br&gt;&lt;br&gt;&lt;div style=&quot;line-height: 180%; margin-left: 50px;&quot;&gt;&lt;a class=&quot;&quot; href=&quot;http://file2.ws/icons4/download&quot; style=&quot;text-decoration: none ! important;&quot;&gt;&lt;img class=&quot;yui-img&quot; style=&quot;font-family: yui-tmp;&quot; src=&quot;http://www.codedawn.com/index/resources/down16.jpg&quot;&gt; File2.ws [Mirror 1]&lt;/a&gt;&lt;br&gt;&lt;a class=&quot;&quot; href=&quot;http://drop.io/uwunq75/asset/7zip-icons-zip&quot; style=&quot;text-decoration: none ! important;&quot;&gt;&lt;img class=&quot;yui-img&quot; style=&quot;font-family: yui-tmp;&quot; src=&quot;http://www.codedawn.com/index/resources/down16.jpg&quot;&gt; Drop.io [Mirror 2]&lt;/a&gt;&lt;br&gt;&lt;a class=&quot;&quot; href=&quot;http://www.mediafire.com/file/iytmyyxjimj/7zip_icons.zip&quot; style=&quot;text-decoration: none ! important;&quot;&gt;&lt;img class=&quot;yui-img&quot; style=&quot;font-family: yui-tmp;&quot; src=&quot;http://www.codedawn.com/index/resources/down16.jpg&quot;&gt; MediaFire [Mirror 3]&lt;/a&gt;&lt;br&gt;&lt;a class=&quot;&quot; href=&quot;http://www.codedawn.com/index/resources/download/7zip_icons.zip&quot; style=&quot;text-decoration: none ! important;&quot;&gt;&lt;img class=&quot;yui-img&quot; style=&quot;font-family: yui-tmp;&quot; src=&quot;http://www.codedawn.com/index/resources/down16.jpg&quot;&gt; CodeDawn.com&lt;/a&gt;&lt;/div&gt;</description>
            <pubDate>Wed, 21 Oct 2009 02:08:35 +0100</pubDate>
        </item>
        <item>
            <title>Add-on updates for Firefox 3.5</title>
            <link>http://www.codedawn.com/index/index/add-on-updates-for-firefox-3-5</link>
            <description>CookieMan Context, Find All and Menu Icons Plus have all been updated for Firefox 3.5 and are available for download.&amp;nbsp; Please try them out and let me know if you find any bugs (or if you have any positive feedback, too!).&amp;nbsp; I am very busy right now, but I plan on updating my CrystalFox Modern and Office themes for Firefox 3.5 when time permits.&lt;br&gt;</description>
            <pubDate>Sun, 12 Jul 2009 00:47:01 +0100</pubDate>
        </item>
        <item>
            <title>What's new – brief update</title>
            <link>http://www.codedawn.com/index/index/what-s-new-brief-update</link>
            <description>I have been busy with a new project lately.&amp;nbsp; It's going to take a while to polish and test, but I'll post an announcement when it's ready for the public.&amp;nbsp; You may notice a few changes to codedawn.com—this is due to a change in hosting and I won't bore you with all the details.&amp;nbsp; Also, I plan on updating my Firefox add-ons soon for the release of Firefox 3.1.</description>
            <pubDate>Wed, 21 Oct 2009 02:16:14 +0100</pubDate>
        </item>
        <item>
            <title>The anatomy of an XPCOM exception in Javascript</title>
            <link>http://www.codedawn.com/index/index/the-anatomy-of-an-xpcom-exception-in-javascript</link>
            <description>&lt;div style=&quot;font-family: 'Trebuchet MS',sans-serif; font-size: 10pt; line-height: 1.7em;&quot;&gt;
&lt;p&gt;While I was in the midst of developing a new add-on for Firefox, I ran across the need to do some error handling while using an XPCOM interface.&amp;nbsp; By using a &lt;code&gt;try...catch&lt;/code&gt; block in my Javascript code, I was able to capture the exceptions thrown by the XPCOM component.&amp;nbsp; If you have used Firefox's Error Console, you probably have already seen what one of these exceptions look like:&lt;/p&gt;
&lt;img class=&quot;yui-img&quot; src=&quot;http://www.codedawn.com/index/resources/error_console.gif&quot; alt=&quot;Error Console screenshot&quot;&gt;&lt;br&gt;
&lt;p&gt;The exception produces a result code that begins with the letters NS, which is called an nsresult.&amp;nbsp; I was able to find ample information on nsresults at &lt;a href=&quot;http://developer.mozilla.org/&quot; title=&quot;developer.mozilla.org&quot;&gt;MDC&lt;/a&gt; and elsewhere, but I couldn't find documentation anywhere about how to determine the result code from Javascript in order to effectively handle the error.&amp;nbsp; By iterating over the properties and methods of the error object produced in Javascript, I was able to come up with the following information:&lt;/p&gt;
&lt;h4&gt;Methods&lt;/h4&gt;
&lt;p&gt;&lt;code&gt;QueryInterface()&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;initialize()&lt;/code&gt;&lt;/p&gt;
&lt;h4&gt;Properties&lt;/h4&gt;
&lt;p&gt;&lt;code&gt;message&lt;/code&gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[string] Full description of the error.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;result&lt;/code&gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[integer] A number (always 10-digits?).&lt;/p&gt;
&lt;p&gt;&lt;code&gt;name&lt;/code&gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[string] The nsresult code (ex. NS_ERROR_FAILURE).&lt;/p&gt;
&lt;p&gt;&lt;code&gt;filename&lt;/code&gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[string] URI of the Javascript file in which the error occurred (chrome://...).&lt;/p&gt;
&lt;p&gt;&lt;code&gt;lineNumber&lt;/code&gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[integer] Line number of the Javascript file on which the error occurred.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;columnNumber&lt;/code&gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[integer] Column number of the Javascript file on which the error occurred (usually 0?).&lt;/p&gt;
&lt;p&gt;&lt;code&gt;location&lt;/code&gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[string] Summary of where in chrome the error occurred (ex. JS frame :: chrome://... :: anonymous :: line 77).&lt;/p&gt;
&lt;p&gt;&lt;code&gt;inner&lt;/code&gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[null] ? Came up as null in my test; no idea what it might be used for.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;data&lt;/code&gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[null] ? If it's not null, my guess is that it would contain extra information produced by the exception or passed to/from it.&lt;/p&gt;
&lt;p&gt;Knowing this, we can now handle the exception in Javascript like so:
&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;pre style=&quot;font-size: 9pt;&quot;&gt;/* supposing that the variable &quot;file&quot; is an nsIFile object,&lt;br&gt; this example uses the &quot;remove&quot; method of nsIFile */&lt;br&gt;try {&lt;br&gt; file.remove(false);&lt;br&gt;} catch (e) {&lt;br&gt; switch (e.name) { // use the &quot;name&quot; property to get the nsresult&lt;br&gt; case 'NS_ERROR_FILE_TARGET_DOES_NOT_EXIST':&lt;br&gt; // error handling code goes here&lt;br&gt; break;&lt;br&gt; case 'NS_ERROR_FILE_DIR_NOT_EMPTY':&lt;br&gt; // error handling code goes here&lt;br&gt; break;&lt;br&gt; case 'NS_ERROR_FILE_ACCESS_DENIED':&lt;br&gt; // error handling code goes here&lt;br&gt; break;&lt;br&gt; default:&lt;br&gt; // if necessary, include handling of all other errors here&lt;br&gt; }&lt;br&gt;}&lt;/pre&gt;
&lt;p&gt;I hope this information helps other add-on developers who are working with XPCOM.&lt;/p&gt;
&lt;p&gt;Further information and reference:
&lt;/p&gt;&lt;ul&gt;



&lt;li&gt;&lt;a href=&quot;http://www.mozilla.org/projects/xpcom/book/cxc/html/quicktour2.html&quot; title=&quot;www.mozilla.org&quot;&gt;What is XPCOM?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://developer.mozilla.org/en/docs/XPCOM&quot; title=&quot;developer.mozilla.org&quot;&gt;Main XPCOM page at MDC&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description>
            <pubDate>Sun, 01 Feb 2009 03:24:59 +0100</pubDate>
        </item>
    </channel>
</rss>

