<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Rob Robertson</title>
	<atom:link href="http://robrobertson.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://robrobertson.wordpress.com</link>
	<description>//todo: insert some clever tagline here</description>
	<lastBuildDate>Wed, 18 Jan 2012 19:15:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='robrobertson.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Rob Robertson</title>
		<link>http://robrobertson.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://robrobertson.wordpress.com/osd.xml" title="Rob Robertson" />
	<atom:link rel='hub' href='http://robrobertson.wordpress.com/?pushpress=hub'/>
		<item>
		<title>JavaScript === (Triple Equals)</title>
		<link>http://robrobertson.wordpress.com/2012/01/18/javascript-triple-equals/</link>
		<comments>http://robrobertson.wordpress.com/2012/01/18/javascript-triple-equals/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 19:15:17 +0000</pubDate>
		<dc:creator>robrobertson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://robrobertson.wordpress.com/?p=65</guid>
		<description><![CDATA[Coming across a &#8220;===&#8221; in some JavaScript today and wondered what the difference was between the normal equality operater (==) and this super version. JavaScript: The Definitive Guide differiantes the two as being Equality vs Identity. The ECMAScript Spec merely labels it as the &#8220;Strict Equals Operator&#8221;. An interesting example is (&#8220;1&#8243; == true ) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=65&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Coming across a &#8220;===&#8221; in some JavaScript today and wondered what the difference was between the normal equality operater (==) and this super version.  <em>JavaScript: The Definitive Guide</em> differiantes the two as being Equality vs Identity.  The <a href="http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf">ECMAScript Spec</a> merely labels it as the &#8220;Strict Equals Operator&#8221;.</p>
<p>An interesting example is (&#8220;1&#8243; == true )</p>
<p>Since the string &#8220;1&#8243; evaluates to the integer 1 and the boolean true evaluates to the integer 1, the values are treated as equals.</p>
<p>(&#8220;1&#8243; === true) is immediately evaluated to false since the string and boolean are different types.  </p>
<p>Just in case you&#8217;re curious, here&#8217;s the comparison algorithm from the ECMA Spec, Section 11.9.6:<br />
<code><br />
The comparison x === y, where x and y are values, produces true or false. Such a comparison is performed as follows:</p>
<p>1. If Type(x) is different from Type(y), return false.<br />
2. If Type(x) is Undefined, return true.<br />
3. If Type(x) is Null, return true.<br />
4. If Type(x) is Number, then<br />
a. If x is NaN, return false.<br />
b. If y is NaN, return false.<br />
c. If x is the same Number value as y, return true.<br />
d. If x is +0 and y is ?0, return true.<br />
e. If x is ?0 and y is +0, return true.<br />
f. Return false.<br />
5. If Type(x) is String, then return true if x and y are exactly the same sequence of characters (same length and<br />
same characters in corresponding positions); otherwise, return false.<br />
6. If Type(x) is Boolean, return true if x and y are both true or both false; otherwise, return false.<br />
7. Return true if x and y refer to the same object. Otherwise, return false.<br />
</code></p>
<p>It definitely seems like a safer bet to control the conversion of your datatypes.  </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/robrobertson.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/robrobertson.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/robrobertson.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/robrobertson.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/robrobertson.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/robrobertson.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/robrobertson.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/robrobertson.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/robrobertson.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/robrobertson.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/robrobertson.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/robrobertson.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/robrobertson.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/robrobertson.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=65&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://robrobertson.wordpress.com/2012/01/18/javascript-triple-equals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b09779b407581aa2ee681ec3a278cdd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robrobertson</media:title>
		</media:content>
	</item>
		<item>
		<title>BlackBerry Launcher Application</title>
		<link>http://robrobertson.wordpress.com/2012/01/17/blackberry-launcher-application/</link>
		<comments>http://robrobertson.wordpress.com/2012/01/17/blackberry-launcher-application/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 23:54:56 +0000</pubDate>
		<dc:creator>robrobertson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://robrobertson.wordpress.com/?p=86</guid>
		<description><![CDATA[Tasked with customizing a third party app with our branding and without access to the source code, a launcher app is in order. This launcher app enables us to have a custom icon and also perform setup tasks on the device before the &#8220;real&#8221; app is invoked. It&#8217;s important to check if the application is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=86&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Tasked with customizing a third party app with our branding and without access to the source code, a <em><strong>launcher</strong></em> app is in order.  This launcher app enables us to have a custom icon and also perform setup tasks on the device before the &#8220;real&#8221; app is invoked.  It&#8217;s important to check if the application is already running before trying to create a new process instance or you will have unpredictable results.  This is accomplished with the ApplicationManager by calling <em>getVisibileApplications()</em>.  If there are no running instances, then you are free to create one using <em>runApplication()</em>.  </p>
<p>Enjoy the source code below!</p>
<p><pre class="brush: css;">
private void launch(String applicationName) throws Exception
{
//Check if the application is already running.
ApplicationManager manager = ApplicationManager.getApplicationManager();
ApplicationDescriptor descriptors[] = manager.getVisibleApplications();

for(int i=0; i &lt; descriptors.length; i++)
{
    if(descriptors[i].getName().equals(applicationName))
    {
         manager.requestForeground( manager.getProcessId( descriptors[i] ));
    	System.exit(0);
    }
}

//Find the application on the device and try to start it.
int moduleHandle = CodeModuleManager.getModuleHandle(applicationName);
ApplicationDescriptor[] appDescriptors = CodeModuleManager.getApplicationDescriptors( moduleHandle ); 

for(int i=0; i &lt; appDescriptors.length; i++)
{
    ApplicationDescriptor descriptor = appDescriptors[i];
    try {
        int processId = ApplicationManager.getApplicationManager().runApplication( descriptor );
         if(processId &gt; 0)
    	    System.exit(0);
    }
    catch (ApplicationManagerException e) {
    	throw e;
    }
}
//Couldn't find the application
throw new Exception(applicationName + " is not detected.");
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/robrobertson.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/robrobertson.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/robrobertson.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/robrobertson.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/robrobertson.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/robrobertson.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/robrobertson.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/robrobertson.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/robrobertson.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/robrobertson.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/robrobertson.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/robrobertson.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/robrobertson.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/robrobertson.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=86&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://robrobertson.wordpress.com/2012/01/17/blackberry-launcher-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b09779b407581aa2ee681ec3a278cdd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robrobertson</media:title>
		</media:content>
	</item>
		<item>
		<title>Copy a File from a BlackBerry Java Project to the Local File System</title>
		<link>http://robrobertson.wordpress.com/2012/01/17/copy-a-file-from-a-blackberry-java-project-to-the-local-file-system/</link>
		<comments>http://robrobertson.wordpress.com/2012/01/17/copy-a-file-from-a-blackberry-java-project-to-the-local-file-system/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 23:05:37 +0000</pubDate>
		<dc:creator>robrobertson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://robrobertson.wordpress.com/?p=72</guid>
		<description><![CDATA[The key to storing a file in your COD for deployment to the BlackBerry file system:  store it in the src folder. Then use the basic input and output streams for reading and writing. /** * Write out a file stored in the COD. * @param filename - filename must start with / * @param [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=72&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The key to storing a file in your COD for deployment to the BlackBerry file system:  store it in the <em><strong>src</strong></em> folder.  Then use the basic input and output streams for reading and writing.</p>
<p>
<pre class="brush: css;">
/**
* Write out a file stored in the COD.
* @param filename - filename must start with /
* @param location - example: file:///store/home/user
* @throws Exception
*/
private void writeFile(String filename, String location) throws Exception
{
InputStream inputStream = null;
inputStream = getClass().getResourceAsStream(filename);

if(inputStream == null)
    throw new Exception("Unable to open input file: " + filename);

FileConnection fc = (FileConnection)Connector.open(location + filename);
if (!fc.exists()) {
    fc.create();
}
OutputStream outStream = fc.openOutputStream();
outStream.write(IOUtilities.streamToBytes(inputStream));
outStream.close();
fc.close();
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/robrobertson.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/robrobertson.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/robrobertson.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/robrobertson.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/robrobertson.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/robrobertson.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/robrobertson.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/robrobertson.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/robrobertson.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/robrobertson.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/robrobertson.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/robrobertson.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/robrobertson.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/robrobertson.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=72&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://robrobertson.wordpress.com/2012/01/17/copy-a-file-from-a-blackberry-java-project-to-the-local-file-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b09779b407581aa2ee681ec3a278cdd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robrobertson</media:title>
		</media:content>
	</item>
		<item>
		<title>HTTP method MERGE not supported</title>
		<link>http://robrobertson.wordpress.com/2011/12/16/http-method-merge-not-supported/</link>
		<comments>http://robrobertson.wordpress.com/2011/12/16/http-method-merge-not-supported/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 21:45:51 +0000</pubDate>
		<dc:creator>robrobertson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://robrobertson.wordpress.com/?p=59</guid>
		<description><![CDATA[Have an oData service that doesn&#8217;t support HTTP Merge for updates? In the SaveChanges method of the DataServicesContent, add the parameter of SaveChangesOptions.ReplaceOnUpdate.  This will replace all the values of the object until your service supports the friendlier merge option.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=59&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Have an oData service that doesn&#8217;t support HTTP Merge for updates?</p>
<p>In the SaveChanges method of the DataServicesContent, add the parameter of SaveChangesOptions.ReplaceOnUpdate.  This will replace all the values of the object until your service supports the friendlier merge option.</p>
<p><pre class="brush: css;">
service.SaveChanges(SaveChangesOptions.ReplaceOnUpdate);

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/robrobertson.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/robrobertson.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/robrobertson.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/robrobertson.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/robrobertson.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/robrobertson.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/robrobertson.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/robrobertson.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/robrobertson.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/robrobertson.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/robrobertson.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/robrobertson.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/robrobertson.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/robrobertson.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=59&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://robrobertson.wordpress.com/2011/12/16/http-method-merge-not-supported/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b09779b407581aa2ee681ec3a278cdd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robrobertson</media:title>
		</media:content>
	</item>
		<item>
		<title>Enable RESTClient Addon for Firefox 8+</title>
		<link>http://robrobertson.wordpress.com/2011/12/07/enable-restclient-addon-for-firefox-8/</link>
		<comments>http://robrobertson.wordpress.com/2011/12/07/enable-restclient-addon-for-firefox-8/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 18:37:20 +0000</pubDate>
		<dc:creator>robrobertson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://robrobertson.wordpress.com/?p=57</guid>
		<description><![CDATA[With Firefox&#8217;s rapid release cycle, add-on developers have a difficult time ensuring their code is up to date.  However, with a cool little tool  that only uses javascript, html, and css, we should be pretty safe to run under newer versions of Firefox. Since RESTClient is open source, we can head over to GitHub and download [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=57&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>With Firefox&#8217;s rapid release cycle, add-on developers have a difficult time ensuring their code is up to date.  However, with a cool little tool  that only uses javascript, html, and css, we should be pretty safe to run under newer versions of Firefox.</p>
<p>Since <a href="https://addons.mozilla.org/en-US/firefox/addon/restclient/">RESTClient</a> is open source, we can head over to <a href="https://github.com/chao/RESTClient">GitHub</a> and download a copy of the source.  GitHub has a great feature to download the source as a zip.  Take this zip file and edit the contained file:  <strong>install.rdf   </strong>Simply change the maxVersion to 10 or so.</p>
<blockquote><p>&lt;RDF:Description RDF:about=&#8221;rdf:#$ll2uD1&#8243;<br />
em:id=&#8221;{ec8030f7-c20a-464f-9b0e-13a3a9e97384}&#8221;<br />
em:minVersion=&#8221;3.6&#8243;<br />
em:<strong>maxVersion=&#8221;10.*</strong>&#8221; /&gt;</p></blockquote>
<p>Save the file back into your zip.  Open up Firefox&#8217;s Add-on Manager and drag the zip file onto the Add-on Manager.</p>
<p>Your newly upgraded plugin is now available for your version of Firefox!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/robrobertson.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/robrobertson.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/robrobertson.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/robrobertson.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/robrobertson.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/robrobertson.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/robrobertson.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/robrobertson.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/robrobertson.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/robrobertson.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/robrobertson.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/robrobertson.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/robrobertson.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/robrobertson.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=57&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://robrobertson.wordpress.com/2011/12/07/enable-restclient-addon-for-firefox-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b09779b407581aa2ee681ec3a278cdd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robrobertson</media:title>
		</media:content>
	</item>
		<item>
		<title>IIS 500 with isapi_redirect.dll (incorrect function)</title>
		<link>http://robrobertson.wordpress.com/2010/01/04/iis-500-isapi_redirect-dll/</link>
		<comments>http://robrobertson.wordpress.com/2010/01/04/iis-500-isapi_redirect-dll/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 00:25:20 +0000</pubDate>
		<dc:creator>robrobertson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://robrobertson.wordpress.com/?p=54</guid>
		<description><![CDATA[Having received a most un-useful HTTP Error 500 with an error code of 2147942401 and also Incorrect function (0&#215;80070001), we started digging around different versions and the setup of our redirect. The short story is to check and re-check your settings again. One missing configuration value that is stored in the registry was enough to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=54&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Having received a most un-useful HTTP Error 500 with an error code of 2147942401 and also Incorrect function (0&#215;80070001), we started digging around different versions and the setup of our redirect.</p>
<p>The short story is to check and re-check your settings again.</p>
<p>One missing configuration value that is stored in the registry was enough to generate this strange error. The <a href="http://tomcat.apache.org/connectors-doc/reference/iis.html">Apache Tomcat Connector &#8211; Reference Guide</a> contains all the necessary steps to properly setup the redirects. The basic registry values to create are: <strong>extension_uri, log_file, log_level, worker_file, and worker_mount_file</strong>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/robrobertson.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/robrobertson.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/robrobertson.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/robrobertson.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/robrobertson.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/robrobertson.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/robrobertson.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/robrobertson.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/robrobertson.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/robrobertson.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/robrobertson.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/robrobertson.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/robrobertson.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/robrobertson.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=54&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://robrobertson.wordpress.com/2010/01/04/iis-500-isapi_redirect-dll/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b09779b407581aa2ee681ec3a278cdd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robrobertson</media:title>
		</media:content>
	</item>
		<item>
		<title>Windows 2008 (IIS7):  The installer was interrupted</title>
		<link>http://robrobertson.wordpress.com/2009/11/04/windows-2008-installer-interrupted/</link>
		<comments>http://robrobertson.wordpress.com/2009/11/04/windows-2008-installer-interrupted/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 23:21:39 +0000</pubDate>
		<dc:creator>robrobertson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://robrobertson.net/?p=52</guid>
		<description><![CDATA[When installing an MSI from a Visual Studio Web Project, a dreaded &#8220;The installer was interrupted before the Application was installed&#8221; message may appear. The Server Role, &#8220;IIS 6 Management Capability&#8221; is required for the MSI to register with the IIS 6 Metabase.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=52&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When installing an MSI from a Visual Studio Web Project, a dreaded &#8220;The installer was interrupted before the Application was installed&#8221; message may appear.  The Server Role, &#8220;IIS 6 Management Capability&#8221; is required for the MSI to register with the IIS 6 Metabase.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/robrobertson.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/robrobertson.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/robrobertson.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/robrobertson.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/robrobertson.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/robrobertson.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/robrobertson.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/robrobertson.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/robrobertson.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/robrobertson.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/robrobertson.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/robrobertson.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/robrobertson.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/robrobertson.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=52&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://robrobertson.wordpress.com/2009/11/04/windows-2008-installer-interrupted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b09779b407581aa2ee681ec3a278cdd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robrobertson</media:title>
		</media:content>
	</item>
		<item>
		<title>Generate Dynamic iTextSharp PDF Documents from ASP.Net</title>
		<link>http://robrobertson.wordpress.com/2009/06/15/dynamic-itextsharp-pdf-documents/</link>
		<comments>http://robrobertson.wordpress.com/2009/06/15/dynamic-itextsharp-pdf-documents/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 21:02:24 +0000</pubDate>
		<dc:creator>robrobertson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://robrobertson.net/?p=35</guid>
		<description><![CDATA[Here&#8217;s two examples to dynamically create PDF&#8217;s using iTextSharps&#8217; HTML Parser: in the browser and also a method to write the pdf to disk.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=35&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s two examples to dynamically create PDF&#8217;s using iTextSharps&#8217; HTML Parser: in the browser and also a method to write the pdf to disk.</p>
<p><pre class="brush: css;">using System;
using System.Web;
using System.Web.UI;
using System.IO;
using System.Xml;
using iTextSharp.text;
using iTextSharp.text.html;
using iTextSharp.text.pdf;

namespace Web
{
    public partial class iTextSharpDemo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //Example HTML String
            string html = &quot;&lt;html&gt;&lt;p align='center'&gt;Hello World!&lt;/p&gt;&lt;newpage /&gt;Hello 2nd Page!&lt;/html&gt;&quot;;

            //Parse the HTML to PDF and Write PDF to disk
            WritePdf(html, @&quot;c:\temp\share\mypdf.pdf&quot;);

            //Parse the HTML to PDF and write PDF bytes to browser via the outputstream
            MemoryStream m = CreatePdf(html);
            Response.ContentType = &quot;application/pdf&quot;;
            Response.OutputStream.Write(m.GetBuffer(), 0, m.GetBuffer().Length);
            Response.OutputStream.Flush();
            Response.OutputStream.Close();
        }

        protected void WritePdf(string html, string destination)
        {
            MemoryStream ms = CreatePdf(html);

            FileStream fs = File.OpenWrite(destination);
            fs.Write(ms.GetBuffer(), 0, ms.GetBuffer().Length);
            fs.Close();
            ms.Close();
        }

        public static MemoryStream CreatePdf(string html)
        {
            MemoryStream m = new MemoryStream();

            try
            {
                Document document = new Document(PageSize.LETTER);
                PdfWriter.GetInstance(document, m);

                StringReader sr = new StringReader(html);
                XmlTextReader xtr = new XmlTextReader(sr);

                document.Open();

                HtmlParser.Parse(document, xtr);

                xtr.Close();
                document.Close();
            }
            catch (Exception ex)
            {
                System.Diagnostics.EventLog.WriteEntry(&quot;Application&quot;, ex.Message);
                throw ex;
            }

            return m;
        }

    }
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/robrobertson.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/robrobertson.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/robrobertson.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/robrobertson.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/robrobertson.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/robrobertson.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/robrobertson.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/robrobertson.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/robrobertson.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/robrobertson.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/robrobertson.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/robrobertson.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/robrobertson.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/robrobertson.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=35&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://robrobertson.wordpress.com/2009/06/15/dynamic-itextsharp-pdf-documents/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b09779b407581aa2ee681ec3a278cdd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robrobertson</media:title>
		</media:content>
	</item>
		<item>
		<title>Taking an ASP.Net Application Offline with an Outage Message</title>
		<link>http://robrobertson.wordpress.com/2009/03/30/taking-an-aspnet-offline-with-an-outage-message/</link>
		<comments>http://robrobertson.wordpress.com/2009/03/30/taking-an-aspnet-offline-with-an-outage-message/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 15:48:37 +0000</pubDate>
		<dc:creator>robrobertson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://robrobertson.net/?p=33</guid>
		<description><![CDATA[App_offline.htm is an easy, but not widely published, method to take your favorite ASP.Net Web Application offline and present a friendly outage message to your users. Simply create an outage message with your downtime info formatted in clear, readable html. Copy the file to the root of your website, and any requests will be redirected [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=33&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://msdn.microsoft.com/en-us/library/f735abw9(VS.85).aspx">App_offline.htm</a> is an easy, but not widely published, method to take your favorite ASP.Net Web Application offline and present a friendly outage message to your users.  Simply create an outage message with your downtime info formatted in clear, readable html.  Copy the file to the root of your website, and any requests will be redirected to this file.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/robrobertson.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/robrobertson.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/robrobertson.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/robrobertson.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/robrobertson.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/robrobertson.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/robrobertson.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/robrobertson.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/robrobertson.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/robrobertson.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/robrobertson.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/robrobertson.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/robrobertson.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/robrobertson.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=33&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://robrobertson.wordpress.com/2009/03/30/taking-an-aspnet-offline-with-an-outage-message/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b09779b407581aa2ee681ec3a278cdd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robrobertson</media:title>
		</media:content>
	</item>
		<item>
		<title>iTextSharp &#8211; 401 Error when parsing images!</title>
		<link>http://robrobertson.wordpress.com/2008/11/06/itextsharp-401/</link>
		<comments>http://robrobertson.wordpress.com/2008/11/06/itextsharp-401/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 22:35:17 +0000</pubDate>
		<dc:creator>robrobertson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://robrobertson.wordpress.com/?p=29</guid>
		<description><![CDATA[When using the html parser to convert a web page into PDF and also using an image tag to an IIS server that has Integrated Authentication enabled, you will receive: The remote server returned an error: (401) Unauthorized. The easy solution is to find the GetImage(Uri url) method and add the default credentials to the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=29&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When using the html parser to convert a web page into PDF and also using an image tag to an IIS server that has Integrated Authentication enabled, you will receive: <strong>The remote server returned an error: (401) Unauthorized</strong>.  </p>
<p>The easy solution is to find the GetImage(Uri url) method and add the default credentials to the WebRequest after it is created.  These can be found in the itextsharp.txt.pdf.codec namespace in the following classes: BmpImage, GifImage, and PngImage.</p>
<blockquote><p>
                WebRequest wr = WebRequest.Create(url);<br />
                wr.Credentials = CredentialCache.DefaultCredentials;<br />
                isp = wr.GetResponse().GetResponseStream();
</p></blockquote>
<p>Since iTextSharp is Open Source, it was easy to download the code, isolate the error, and quickly add a line of code for the authentication.  Now, it&#8217;s time to submit the change to the <a href="https://sourceforge.net/projects/itextsharp/">iTextSharp</a> project on <a href="https://sourceforge.net">SourceForge</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/robrobertson.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/robrobertson.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/robrobertson.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/robrobertson.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/robrobertson.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/robrobertson.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/robrobertson.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/robrobertson.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/robrobertson.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/robrobertson.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/robrobertson.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/robrobertson.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/robrobertson.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/robrobertson.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robrobertson.wordpress.com&amp;blog=2383525&amp;post=29&amp;subd=robrobertson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://robrobertson.wordpress.com/2008/11/06/itextsharp-401/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2b09779b407581aa2ee681ec3a278cdd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robrobertson</media:title>
		</media:content>
	</item>
	</channel>
</rss>
