<?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>Joachim Van den Bogaert's Weblog</title>
	<atom:link href="http://joachimvandenbogaert.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://joachimvandenbogaert.wordpress.com</link>
	<description>Development blog</description>
	<lastBuildDate>Tue, 31 May 2011 10:26:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='joachimvandenbogaert.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Joachim Van den Bogaert's Weblog</title>
		<link>http://joachimvandenbogaert.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://joachimvandenbogaert.wordpress.com/osd.xml" title="Joachim Van den Bogaert&#039;s Weblog" />
	<atom:link rel='hub' href='http://joachimvandenbogaert.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Deploying WCF on IIS 6.0 with Certificates, NHibernate and Membership</title>
		<link>http://joachimvandenbogaert.wordpress.com/2009/06/04/deploying-wcf-on-iis-with-nhibernate-and-membership/</link>
		<comments>http://joachimvandenbogaert.wordpress.com/2009/06/04/deploying-wcf-on-iis-with-nhibernate-and-membership/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 01:00:59 +0000</pubDate>
		<dc:creator>joachimvandenbogaert</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Windows Communication Foundation C#]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[NHibernate]]></category>
		<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://joachimvandenbogaert.wordpress.com/?p=82</guid>
		<description><![CDATA[Get a server that allows you to run .NET 3.5 In most cases you will get a Windows Server that is configured with .NET 3.0, so you will first have to install .NET 3.5 on it in order to use WCF. This is not so difficult, but you need to have the right configuration. From [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=82&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Get a server that allows you to run .NET 3.5</strong></p>
<p>In most cases you will get a Windows Server that is configured with .NET 3.0, so you will first have to install .NET 3.5 on it in order to use WCF. This is not so difficult, but you need to have the right configuration. From 3.0. .NET 3.5 does not install automatically. You have to make sure that you have Windows Installer 4.5 installed, which you can find here <a href="http://www.microsoft.com/DOWNLOADS/details.aspx?displaylang=en&amp;FamilyID=5a58b56f-60b6-4412-95b9-54d056d6f9f4">http://www.microsoft.com/DOWNLOADS/details.aspx?displaylang=en&amp;FamilyID=5a58b56f-60b6-4412-95b9-54d056d6f9f4</a></p>
<p>.NET 3.5 can (redistributable package) be found here <a href="http://download.microsoft.com/download/6/0/f/60fc5854-3cb8-4892-b6db-bd4f42510f28/dotnetfx35.exe">http://download.microsoft.com/download/6/0/f/60fc5854-3cb8-4892-b6db-bd4f42510f28/dotnetfx35.exe</a></p>
<p><strong>Configure ASP.NET and WCF for IIS 6.0</strong></p>
<p>Next, open a command line window and go to the Microsoft.NET directory (typically C:\Windows\Microsoft.Net\Framework or C:\Windows\Microsoft.Net\Framework64).</p>
<ul>
<li>Go to the v2.0.50727 dir and run aspnet_regiis -i</li>
<li>Go to the v3.0\Windows Communication Foundation dir and run ServiceModelReg -i</li>
<li>Make sure that ASP.NET 2 Web Service extensions are allowed, otherwise you will get a 404 error when opening an svc file.  In the IIS management console, click [Web Server Extensions] and make sure that ASP.NET v2.0.507272 is set to [Allowed]</li>
</ul>
<p> </p>
<p><img class="aligncenter size-full wp-image-88" title="2009_06_11_IIS6andWCF" src="http://joachimvandenbogaert.files.wordpress.com/2009/06/2009_06_11_iis6andwcf1.jpg?w=500&#038;h=180" alt="2009_06_11_IIS6andWCF" width="500" height="180" /></p>
<p> </p>
<p>Configure the host header in order to publish the correct host on the svc web page: open the IIS management console, right-click your website, select [Properties] and on the [Web Site] tab click the [Advanced ...] button.</p>
<div id="attachment_90" class="wp-caption aligncenter" style="width: 472px"><img class="size-full wp-image-90" title="2009_06_24_WebSiteProperties" src="http://joachimvandenbogaert.files.wordpress.com/2009/06/2009_06_24_websiteproperties.jpg?w=500" alt="Web Site Properties"   /><p class="wp-caption-text">Web Site Properties</p></div>
<p>This brings up a new dialog. Click the ip-address for wgich you want to change the identification from <em>localhost</em> to the web site&#8217;s ip-address and click the [Edit ...] button.</p>
<div id="attachment_91" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-91" title="2009_06_24_AdvancedWebSiteIdentification" src="http://joachimvandenbogaert.files.wordpress.com/2009/06/2009_06_24_advancedwebsiteidentification.jpg?w=500" alt="Advanced Web Site Identification"   /><p class="wp-caption-text">Advanced Web Site Identification</p></div>
<p>Now you can edit the [Host Header value] field. Click [OK] to accept the changes.</p>
<div id="attachment_92" class="wp-caption aligncenter" style="width: 343px"><img class="size-full wp-image-92" title="2009_06_24_EditWebSiteIdentification" src="http://joachimvandenbogaert.files.wordpress.com/2009/06/2009_06_24_editwebsiteidentification.jpg?w=500" alt="Edit Web Site Identification"   /><p class="wp-caption-text">Edit Web Site Identification</p></div>
<p><strong>Configuring Postgres to allow your website to access your databases</strong></p>
<p>If you followed the described procedure, you change your website&#8217;s id for some applications from &#8220;localhost&#8221; to whichever ip-address you are using. It took me some time to figure out what was going on, but apparently Postgres complains about access rights, not configured in pg_hba.conf. So if you want to do this, make sure you add an entry in pg_hba.conf, for example:</p>
<p>host all all 192.168.1.1/32 password</p>
<p>this will allow the host with the IP-address 192.168.1.1 to access postgres using password credentials.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/joachimvandenbogaert.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/joachimvandenbogaert.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/joachimvandenbogaert.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/joachimvandenbogaert.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/joachimvandenbogaert.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/joachimvandenbogaert.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/joachimvandenbogaert.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/joachimvandenbogaert.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/joachimvandenbogaert.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/joachimvandenbogaert.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/joachimvandenbogaert.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/joachimvandenbogaert.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/joachimvandenbogaert.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/joachimvandenbogaert.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=82&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://joachimvandenbogaert.wordpress.com/2009/06/04/deploying-wcf-on-iis-with-nhibernate-and-membership/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/daf5f9cd0872cf5e21562e9bff1fb557?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">joachimvandenbogaert</media:title>
		</media:content>

		<media:content url="http://joachimvandenbogaert.files.wordpress.com/2009/06/2009_06_11_iis6andwcf1.jpg" medium="image">
			<media:title type="html">2009_06_11_IIS6andWCF</media:title>
		</media:content>

		<media:content url="http://joachimvandenbogaert.files.wordpress.com/2009/06/2009_06_24_websiteproperties.jpg" medium="image">
			<media:title type="html">2009_06_24_WebSiteProperties</media:title>
		</media:content>

		<media:content url="http://joachimvandenbogaert.files.wordpress.com/2009/06/2009_06_24_advancedwebsiteidentification.jpg" medium="image">
			<media:title type="html">2009_06_24_AdvancedWebSiteIdentification</media:title>
		</media:content>

		<media:content url="http://joachimvandenbogaert.files.wordpress.com/2009/06/2009_06_24_editwebsiteidentification.jpg" medium="image">
			<media:title type="html">2009_06_24_EditWebSiteIdentification</media:title>
		</media:content>
	</item>
		<item>
		<title>Vista networking fails after connection to VPN</title>
		<link>http://joachimvandenbogaert.wordpress.com/2009/04/01/vista-networking-fails-after-connection-to-vpn/</link>
		<comments>http://joachimvandenbogaert.wordpress.com/2009/04/01/vista-networking-fails-after-connection-to-vpn/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 14:51:47 +0000</pubDate>
		<dc:creator>joachimvandenbogaert</dc:creator>
				<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[Connection]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Problems]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://joachimvandenbogaert.wordpress.com/?p=76</guid>
		<description><![CDATA[  The solution to this problem can be found here: http://www.velocityreviews.com/forums/t29443-cannot-access-internet-while-connected-thru-vpn.html Bring up the properties of your VPN connection and select the [Networking] tab. Select the Internet Protocol Version 4 or 6 Properties and click the [Advanced] button. Make sure that [Use default gateway on remote network] is not checked. Click the [OK] button to save [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=76&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> </p>
<p>The solution to this problem can be found here:</p>
<p><a href="http://www.velocityreviews.com/forums/t29443-cannot-access-internet-while-connected-thru-vpn.html">http://www.velocityreviews.com/forums/t29443-cannot-access-internet-while-connected-thru-vpn.html</a></p>
<ol>
<li>Bring up the properties of your VPN connection and select the [Networking] tab.</li>
<li>Select the Internet Protocol Version 4 or 6 Properties and click the [Advanced] button.</li>
<li>Make sure that [Use default gateway on remote network] is not checked.</li>
<li>Click the [OK] button to save your settings.
<a href='http://joachimvandenbogaert.wordpress.com/2009/04/01/vista-networking-fails-after-connection-to-vpn/2009_04_01_vpn_problem_00/' title='2009_04_01_vpn_problem_00'><img data-attachment-id='77' data-orig-size='377,454' data-liked='0'width="124" height="150" src="http://joachimvandenbogaert.files.wordpress.com/2009/04/2009_04_01_vpn_problem_00.jpg?w=124&#038;h=150" class="attachment-thumbnail" alt="2009_04_01_vpn_problem_00" title="2009_04_01_vpn_problem_00" /></a>
<a href='http://joachimvandenbogaert.wordpress.com/2009/04/01/vista-networking-fails-after-connection-to-vpn/2009_04_01_vpn_problem_01/' title='2009_04_01_vpn_problem_01'><img data-attachment-id='78' data-orig-size='555,459' data-liked='0'width="150" height="124" src="http://joachimvandenbogaert.files.wordpress.com/2009/04/2009_04_01_vpn_problem_01.jpg?w=150&#038;h=124" class="attachment-thumbnail" alt="2009_04_01_vpn_problem_01" title="2009_04_01_vpn_problem_01" /></a>
<a href='http://joachimvandenbogaert.wordpress.com/2009/04/01/vista-networking-fails-after-connection-to-vpn/2009_04_01_vpn_problem_02/' title='2009_04_01_vpn_problem_02'><img data-attachment-id='79' data-orig-size='414,492' data-liked='0'width="126" height="150" src="http://joachimvandenbogaert.files.wordpress.com/2009/04/2009_04_01_vpn_problem_02.jpg?w=126&#038;h=150" class="attachment-thumbnail" alt="2009_04_01_vpn_problem_02" title="2009_04_01_vpn_problem_02" /></a>
</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/joachimvandenbogaert.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/joachimvandenbogaert.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/joachimvandenbogaert.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/joachimvandenbogaert.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/joachimvandenbogaert.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/joachimvandenbogaert.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/joachimvandenbogaert.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/joachimvandenbogaert.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/joachimvandenbogaert.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/joachimvandenbogaert.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/joachimvandenbogaert.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/joachimvandenbogaert.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/joachimvandenbogaert.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/joachimvandenbogaert.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=76&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://joachimvandenbogaert.wordpress.com/2009/04/01/vista-networking-fails-after-connection-to-vpn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/daf5f9cd0872cf5e21562e9bff1fb557?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">joachimvandenbogaert</media:title>
		</media:content>

		<media:content url="http://joachimvandenbogaert.files.wordpress.com/2009/04/2009_04_01_vpn_problem_00.jpg?w=124" medium="image">
			<media:title type="html">2009_04_01_vpn_problem_00</media:title>
		</media:content>

		<media:content url="http://joachimvandenbogaert.files.wordpress.com/2009/04/2009_04_01_vpn_problem_01.jpg?w=150" medium="image">
			<media:title type="html">2009_04_01_vpn_problem_01</media:title>
		</media:content>

		<media:content url="http://joachimvandenbogaert.files.wordpress.com/2009/04/2009_04_01_vpn_problem_02.jpg?w=126" medium="image">
			<media:title type="html">2009_04_01_vpn_problem_02</media:title>
		</media:content>
	</item>
		<item>
		<title>R and C# on Windows</title>
		<link>http://joachimvandenbogaert.wordpress.com/2009/03/26/r-and-c-on-windows/</link>
		<comments>http://joachimvandenbogaert.wordpress.com/2009/03/26/r-and-c-on-windows/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 11:02:18 +0000</pubDate>
		<dc:creator>joachimvandenbogaert</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Development with R]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://joachimvandenbogaert.wordpress.com/?p=53</guid>
		<description><![CDATA[The following page offers a good introduction, but some information is missing. So I thought it would be useful to add some more instructions, especially for deployment on client systems on which R has not been installed yet. http://www.codeproject.com/KB/cs/RtoCSharp.aspx Here&#8217;s a list of issues: R requires Administrator rights when you install it (as described in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=53&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The following page offers a good introduction, but some information is missing. So I thought it would be useful to add some more instructions, especially for deployment on client systems on which R has not been installed yet.</p>
<p><a href="http://www.codeproject.com/KB/cs/RtoCSharp.aspx">http://www.codeproject.com/KB/cs/RtoCSharp.aspx</a></p>
<p>Here&#8217;s a list of issues:</p>
<ol>
<li>R requires Administrator rights when you install it (as described in the R Administration guide). This also applies when you want to install add-ons. R itself does not have these permissions, so if you install an add-on from within R, you will get an &#8220;access denied&#8221; error (to install an add-on, you can use the R gui,  Packages-&gt;Install package(s) &#8230;). A workaround is to make the R program directory writable to everyone. Maybe you can also try to run R itself as administrator when you need to install a package, but I haven&#8217;t tried this yet. This would probably be a better solution.</li>
<li>Anyway, on windows, the install procedure is not actually an install procedure. You only get a zip file in a temporary directory. So to really install an add-on, you need to copy the extracted add-on folder and copy it to the Rlibrary. Note that this also requires write access to the R installtion folder.</li>
</ol>
<p>Here&#8217;s a summary of what you need to do to get R working:</p>
<ol>
<li>Download the rscproxy package <a href="http://www.freestatistics.org/cran/bin/windows/contrib/r-release/rscproxy_1.2-0.zip">http://www.freestatistics.org/cran/bin/windows/contrib/r-release/rscproxy_1.2-0.zip</a>, unzip it and install the rscproxy directory in your Rlibrary directory.</li>
<li>Download R_Scilab_DCOM3.0-1B5.exe from <a href="http://www.freestatistics.org/cran/contrib/extra/dcom/R_Scilab_DCOM3.0-1B5.exe">http://www.freestatistics.org/cran/contrib/extra/dcom/R_Scilab_DCOM3.0-1B5.exe</a> (you coulds also use another mirror), and install it.</li>
<li>To use R, add a reference to your C# project to <span style="font-size:x-small;">STATCONNECTORCLNTLib, <span style="font-size:x-small;">StatConnectorCommonLib, and <span style="font-size:x-small;">STATCONNECTORSRVLib (this is to get full functionality, for the client to work, you only need STATCONNECTORSRVLib).</span></span></span></li>
<li><span style="font-size:x-small;">Use the STATCONNECTORSRVLib.<span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">StatConnectorClass <span style="color:#000000;">to interface with R.</span></span></span></span></li>
</ol>
<p>Here&#8217;s some example code:</p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">using </span></span></span></span><span style="font-size:x-small;">System;<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">using </span></span></span></span><span style="font-size:x-small;">System.Collections.Generic;<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">using </span></span></span></span><span style="font-size:x-small;">System.Linq;<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">using </span></span></span></span><span style="font-size:x-small;">System.Text;<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">using </span></span></span></span><span style="font-size:x-small;">NUnit.Framework;</span></p>
<p><span style="font-size:x-small;color:#008000;"><span style="font-size:x-small;color:#008000;">//COM references<br />
</span></span><span style="font-size:x-small;color:#008000;"><span style="font-size:x-small;color:#008000;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">using </span></span></span></span></span></span><span style="font-size:x-small;">STATCONNECTORCLNTLib;<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">using </span></span></span></span><span style="font-size:x-small;">StatConnectorCommonLib;<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">using </span></span></span></span><span style="font-size:x-small;">STATCONNECTORSRVLib;<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">using </span></span></span></span><span style="font-size:x-small;">System.IO;</span></p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">namespace </span></span></span></span><span style="font-size:x-small;">RConnector.Tests.Integration<br />
</span><span style="font-size:x-small;">{<br />
</span><span style="font-size:x-small;"><span style="font-size:x-small;">    [</span></span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">TestFixture</span></span><span style="font-size:x-small;">]<br />
    </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">public</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">class</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">TestConnectivityWithR<br />
    </span></span><span style="font-size:x-small;">{</span></p>
<p><span style="font-size:x-small;"><br />
</span> <span style="font-size:x-small;">       <span style="font-size:x-small;">[</span></span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">Test</span></span><span style="font-size:x-small;">]<br />
        </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">public</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">void </span></span><span style="font-size:x-small;">Open_Close()<br />
        </span><span style="font-size:x-small;">{<br />
            </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">StatConnectorClass</span></span><span style="font-size:x-small;"> RConnector = </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">StatConnectorClass</span></span><span style="font-size:x-small;">();<br />
            <span style="font-size:x-small;">RConnector.Init(</span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;R&#8221;</span></span><span style="font-size:x-small;">);</span><span style="font-size:x-small;"><br />
            RConnector.Close();<br />
        }</span></p>
<p>        [<span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">Test</span></span><span style="font-size:x-small;">]<br />
        </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">public</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">void </span></span><span style="font-size:x-small;">Send_Receive_Data_()<br />
        </span><span style="font-size:x-small;">{<br />
<span style="font-size:x-small;">            </span></span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">StatConnectorClass</span></span><span style="font-size:x-small;"> RConnector = </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">StatConnectorClass</span></span><span style="font-size:x-small;">();<br />
            <span style="font-size:x-small;">RConnector.Init(</span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;R&#8221;</span></span><span style="font-size:x-small;">);<span style="font-size:x-small;"> <br />
           </span></span><span style="font-size:x-small;color:#008000;"><span style="font-size:x-small;color:#008000;">// Data we are going to pass<br />
<span style="font-size:x-small;"><span style="color:#000000;">            </span></span></span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">int </span></span><span style="font-size:x-small;">n = 20;<br />
<span style="font-size:x-small;">            </span></span><span style="font-size:x-small;color:#008000;"><span style="font-size:x-small;color:#008000;">// Cast C# type to R type<br />
<span style="font-size:x-small;"><span style="color:#000000;">            </span></span></span></span><span style="font-size:x-small;"><span style="font-size:x-small;">RConnector.SetSymbol(</span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;n1&#8243;</span></span><span style="font-size:x-small;">, n);<span style="font-size:x-small;"> <br />
<span style="font-size:x-small;">            </span></span></span><span style="font-size:x-small;color:#008000;"><span style="font-size:x-small;color:#008000;">// The cast value n to n1 is now being used in R<br />
<span style="font-size:x-small;"><span style="color:#000000;">            </span></span></span></span><span style="font-size:x-small;"><span style="font-size:x-small;">RConnector.Evaluate(</span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;x1 &lt;- rnorm(n1)&#8221;</span></span><span style="font-size:x-small;">);<span style="font-size:x-small;"> <br />
<span style="font-size:x-small;">            </span></span></span><span style="font-size:x-small;color:#008000;"><span style="font-size:x-small;color:#008000;">// We get back the value of x1, but it needs to be cast<br />
<span style="font-size:x-small;"><span style="color:#000000;">            </span></span></span></span><span style="font-size:x-small;color:#008000;"><span style="font-size:x-small;color:#008000;">// to an array of doubles<br />
<span style="font-size:x-small;"><span style="color:#000000;">            </span></span></span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">object</span></span><span style="font-size:x-small;"> o = RConnector.GetSymbol(</span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;x1&#8243;</span></span><span style="font-size:x-small;">);<br />
<span style="font-size:x-small;">            </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">double</span></span><span style="font-size:x-small;">[] random = (</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">double</span></span><span style="font-size:x-small;">[])o;<br />
<span style="font-size:x-small;">            </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">foreach</span></span><span style="font-size:x-small;"> (</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">double</span></span><span style="font-size:x-small;"> d </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">in </span></span><span style="font-size:x-small;">random)<br />
<span style="font-size:x-small;">            </span>{<br />
<span style="font-size:x-small;">                </span></span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">Console</span></span><span style="font-size:x-small;">.WriteLine(d);<br />
<span style="font-size:x-small;">            </span>}<br />
        }</span></p>
<div><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span>[</span></span></span><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">Test</span></span><span style="font-size:x-small;">]<br />
<span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"> <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span>   </span></span></span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">public</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">void</span></span><span style="font-size:x-small;"> Plot_CSharpInput_Simple()<br />
<span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span>    </span></span></span>{<br />
<span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span>    <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span></span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">StatConnectorClass</span></span><span style="font-size:x-small;"> RConnector = </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">StatConnectorClass</span></span><span style="font-size:x-small;">();<br />
<span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span>    </span></span></span>    RConnector.Init(</span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;R&#8221;</span></span><span style="font-size:x-small;">);<br />
<span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span>    <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">double</span></span><span style="font-size:x-small;">[] input = </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">double</span></span><span style="font-size:x-small;">[] { 1.0, 2.0, 3.0, 2.0, 1.0};<br />
<span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span></span></span></span><span style="font-size:x-small;">RConnector.SetSymbol(</span></span></span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;input&#8221;</span></span><span style="font-size:x-small;">, input);<br />
<span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span></span></span></span></span></span></span>RConnector.EvaluateNoReturn(</span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;hist(input)&#8221;</span></span><span style="font-size:x-small;">);<br />
<span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span>    <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span></span></span></span>RConnector.EvaluateNoReturn(<br />
<span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span></span></span></span></span></span></span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;savePlot(filename = \&#8221;"</span></span><span style="font-size:x-small;"> +<br />
<span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span></span></span></span></span></span></span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">@&#8221;C:\\Users\\Joachim\\Documents\\Debug\\Plot_CSharpInput.eps&#8221;</span></span><span style="font-size:x-small;"> + </span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;\&#8221;, &#8221; </span></span><span style="font-size:x-small;">+<span style="font-size:x-small;"> <br />
<span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span>    <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span></span></span></span></span></span></span></span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;type = \&#8221;eps\&#8221;, device = dev.cur(), restoreConsole = TRUE )&#8221;<br />
<span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="color:#000000;">    <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span></span></span></span></span></span></span><span style="font-size:x-small;">);<span style="font-size:x-small;"> <br />
<span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;">    </span></span></span></span></span></span></span></span></span></span></span><span style="font-size:x-small;color:#008000;"><span style="font-size:x-small;color:#008000;">//RConnector.Close();<br />
<span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="color:#000000;">    </span></span></span></span>    </span></span><span style="font-size:x-small;">}</span></span></div>
<div><span style="font-size:x-small;"></span> </div>
<div><span style="font-size:x-small;">        [<span style="color:#2b91af;"><span style="color:#2b91af;">Test</span></span>] <span style="color:#0000ff;"><span style="color:#0000ff;">public</span></span> <span style="color:#0000ff;"><span style="color:#0000ff;">void</span></span> Plot_CSharpInput_Simple_WithColors_Rainbow()<br />
        {<br />
<span style="color:#2b91af;"><span style="color:#2b91af;"><span style="color:#000000;">            </span>StatConnectorClass</span></span> RConnector = <span style="color:#0000ff;"><span style="color:#0000ff;">new</span></span> <span style="color:#2b91af;"><span style="color:#2b91af;">StatConnectorClass</span></span>();<br />
            RConnector.Init(<span style="color:#a31515;"><span style="color:#a31515;">&#8220;R&#8221;</span></span>);<br />
<span style="color:#0000ff;"><span style="color:#0000ff;"><span style="color:#000000;">            </span>double</span></span>[] input = <span style="color:#0000ff;"><span style="color:#0000ff;">new</span></span> <span style="color:#0000ff;"><span style="color:#0000ff;">double</span></span>[] {1.0, 2.0, 3.0, 2.0, 1.0};<br />
            RConnector.SetSymbol(<span style="color:#a31515;"><span style="color:#a31515;">&#8220;input&#8221;</span></span>, input);<br />
            RConnector.EvaluateNoReturn(<span style="color:#a31515;"><span style="color:#a31515;">&#8220;barplot(input, main=\&#8221;Foobar\&#8221;, xlab=\&#8221;Value\&#8221;, ylab=\&#8221;Frequency\&#8221;, col=rainbow(7))&#8221;</span></span>);<br />
            RConnector.EvaluateNoReturn(<span style="color:#a31515;"><span style="color:#a31515;">&#8220;legend(\&#8221;topleft\&#8221;, c(\&#8221;Hello\&#8221;, \&#8221;World\&#8221;), cex=0.6, bty=\&#8221;n\&#8221;, fill=rainbow(5))&#8221;</span></span>);<br />
            RConnector.EvaluateNoReturn(<br />
<span style="color:#a31515;"><span style="color:#a31515;"><span style="color:#000000;">                </span>&#8220;savePlot(filename = \&#8221;"</span></span> +<br />
<span style="color:#a31515;"><span style="color:#a31515;"><span style="color:#000000;">                </span>@&#8221;C:\\Users\\Joachim\\Documents\\Debug\\Plot_CSharpInput.eps&#8221;</span></span> + <span style="color:#a31515;"><span style="color:#a31515;">&#8220;\&#8221;, &#8220;</span></span> +<br />
<span style="color:#a31515;"><span style="color:#a31515;"><span style="color:#000000;">                </span>&#8220;type = \&#8221;eps\&#8221;, device = dev.cur(), restoreConsole = TRUE )&#8221;</span></span>);<br />
</span><span style="font-size:x-small;"><span style="color:#008000;"><span style="color:#008000;"><span style="color:#000000;">            </span>//RConnector.Close();<br />
</span></span>        }</span></div>
<div><span style="font-size:x-small;">    }</span><br />
}</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/joachimvandenbogaert.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/joachimvandenbogaert.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/joachimvandenbogaert.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/joachimvandenbogaert.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/joachimvandenbogaert.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/joachimvandenbogaert.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/joachimvandenbogaert.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/joachimvandenbogaert.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/joachimvandenbogaert.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/joachimvandenbogaert.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/joachimvandenbogaert.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/joachimvandenbogaert.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/joachimvandenbogaert.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/joachimvandenbogaert.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=53&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://joachimvandenbogaert.wordpress.com/2009/03/26/r-and-c-on-windows/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/daf5f9cd0872cf5e21562e9bff1fb557?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">joachimvandenbogaert</media:title>
		</media:content>
	</item>
		<item>
		<title>RCOM and C#: SafeArrayTypeMismatchException</title>
		<link>http://joachimvandenbogaert.wordpress.com/2009/02/20/rcom-and-c-safearraytypemismatchexception/</link>
		<comments>http://joachimvandenbogaert.wordpress.com/2009/02/20/rcom-and-c-safearraytypemismatchexception/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 13:00:12 +0000</pubDate>
		<dc:creator>joachimvandenbogaert</dc:creator>
				<category><![CDATA[Development with R]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Interop]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://joachimvandenbogaert.wordpress.com/?p=42</guid>
		<description><![CDATA[R only only accepts safe arrays. In C#, for example the use of jagged arrays is not allowed when passing them to R: StatConnectorClass RConnector = new StatConnectorClass(); RConnector.Init(&#8220;R&#8221;); double[] input = new double[3][];filling the array and then doing:RConnector.SetSymbol(&#8220;input&#8221;, input); will throw an error, even if all the double[] arrays in input have the same [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=42&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>R only only accepts safe arrays. In C#, for example the use of jagged arrays is not allowed when passing them to R:</p>
<p><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">StatConnectorClass</span></span><span style="font-size:x-small;"> RConnector = </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">StatConnectorClass</span></span><span style="font-size:x-small;">();<br />
RConnector.Init(</span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;R&#8221;</span></span><span style="font-size:x-small;">);<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">double</span></span><span style="font-size:x-small;">[] input = </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">double</span></span><span style="font-size:x-small;">[<span style="font-size:x-small;">3</span>][];</span><span style="font-size:x-small;">filling the array and then doing:</span><span style="font-size:x-small;">RConnector.SetSymbol(</span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;input&#8221;</span></span><span style="font-size:x-small;">, input);</span></p>
<p>will throw an error, even if all the double[] arrays in input have the same length. Instead, you need to use the Array class.</p>
<p><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">StatConnectorClass</span></span><span style="font-size:x-small;"> RConnector = </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">StatConnectorClass</span></span><span style="font-size:x-small;">();<br />
RConnector.Init(</span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;R&#8221;</span></span><span style="font-size:x-small;">);<br />
</span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">Array</span></span><span style="font-size:x-small;"> mySafeArray = </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">Array</span></span><span style="font-size:x-small;">.CreateInstance(</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">typeof</span></span><span style="font-size:x-small;">(</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">double</span></span><span style="font-size:x-small;">), 5, 2);</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">for</span></span><span style="font-size:x-small;"> (</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">int</span></span><span style="font-size:x-small;"> i = 0; i &lt; 5; i ++)<br />
</span><span style="font-size:x-small;">{<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">     for</span></span><span style="font-size:x-small;"> (</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">int </span></span><span style="font-size:x-small;">j = 0; j &lt; 2; j++)<br />
    {<br />
        mySafeArray.SetValue(i * j, i, j);<br />
     }<br />
}<br />
RConnector.SetSymbol(</span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;input&#8221;</span></span><span style="font-size:x-small;">, mySafeArray);</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/joachimvandenbogaert.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/joachimvandenbogaert.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/joachimvandenbogaert.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/joachimvandenbogaert.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/joachimvandenbogaert.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/joachimvandenbogaert.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/joachimvandenbogaert.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/joachimvandenbogaert.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/joachimvandenbogaert.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/joachimvandenbogaert.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/joachimvandenbogaert.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/joachimvandenbogaert.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/joachimvandenbogaert.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/joachimvandenbogaert.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=42&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://joachimvandenbogaert.wordpress.com/2009/02/20/rcom-and-c-safearraytypemismatchexception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/daf5f9cd0872cf5e21562e9bff1fb557?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">joachimvandenbogaert</media:title>
		</media:content>
	</item>
		<item>
		<title>Aspnet_regsql problem</title>
		<link>http://joachimvandenbogaert.wordpress.com/2009/02/18/aspnet_regsql-problem/</link>
		<comments>http://joachimvandenbogaert.wordpress.com/2009/02/18/aspnet_regsql-problem/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 16:56:25 +0000</pubDate>
		<dc:creator>joachimvandenbogaert</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Microsoft Membership]]></category>

		<guid isPermaLink="false">http://joachimvandenbogaert.wordpress.com/?p=40</guid>
		<description><![CDATA[To deploy a Microsoft MembershipProvider, you can use the aspnet_regsql tool to create a membership database for ASP.Net. Somehow this causes a lot of problems.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=40&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To deploy a Microsoft MembershipProvider, you can use the aspnet_regsql tool to create a membership database for ASP.Net.</p>
<p>SQL Server (Express Edition) is not configured by default to accept remote connections, so you need some configuration changes.</p>
<p>Here&#8217;s how to do it:</p>
<p><a href="http://www.datamasker.com/SSE2005_NetworkCfg.htm">http://www.datamasker.com/SSE2005_NetworkCfg.htm</a></p>
<p>Unfortunately, aspnet_regsql kept complaining. The cause was something really trivial (the database instance name was missing in the GUI). Just fill out the database name + instance and all will work well, as described here:</p>
<p><a href="http://blog.krisvandermast.com/ProblemsWithAspnetregsqlASPNETSQLServerSetupWizard.aspx">http://blog.krisvandermast.com/ProblemsWithAspnetregsqlASPNETSQLServerSetupWizard.aspx</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/joachimvandenbogaert.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/joachimvandenbogaert.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/joachimvandenbogaert.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/joachimvandenbogaert.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/joachimvandenbogaert.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/joachimvandenbogaert.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/joachimvandenbogaert.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/joachimvandenbogaert.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/joachimvandenbogaert.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/joachimvandenbogaert.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/joachimvandenbogaert.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/joachimvandenbogaert.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/joachimvandenbogaert.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/joachimvandenbogaert.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=40&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://joachimvandenbogaert.wordpress.com/2009/02/18/aspnet_regsql-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/daf5f9cd0872cf5e21562e9bff1fb557?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">joachimvandenbogaert</media:title>
		</media:content>
	</item>
		<item>
		<title>Trados 6.5 Tmx importer bug &#8211; (35000): SSYacc0103e: Attempted read past eof</title>
		<link>http://joachimvandenbogaert.wordpress.com/2008/11/21/trados-65-tmx-importer-bug-35000-ssyacc0103e-attempted-read-past-eof/</link>
		<comments>http://joachimvandenbogaert.wordpress.com/2008/11/21/trados-65-tmx-importer-bug-35000-ssyacc0103e-attempted-read-past-eof/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 11:17:35 +0000</pubDate>
		<dc:creator>joachimvandenbogaert</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Localization]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[File Format]]></category>
		<category><![CDATA[Tmx]]></category>
		<category><![CDATA[Trados]]></category>

		<guid isPermaLink="false">http://joachimvandenbogaert.wordpress.com/?p=35</guid>
		<description><![CDATA[Trados complains if you want to import a Tmx file that you have created yourself programmatically (in my case C# with LINQ to xml). As it appears, the &#60;emptyelement/&#62; syntax is not recognised. so you need to add a dummy value to an element in order to get the &#60;emptyelement&#62;&#60;/emptyelement&#62; syntax. It took me quite [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=35&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Trados complains if you want to import a Tmx file that you have created yourself programmatically (in my case C# with LINQ to xml). As it appears, the &lt;emptyelement/&gt; syntax is not recognised. so you need to add a dummy value to an element in order to get the &lt;emptyelement&gt;&lt;/emptyelement&gt; syntax.</p>
<p>It took me quite some time to figure this out until I added an empty &lt;prop/&gt; element and Trados 6.5 complained about an illegal token.</p>
<p>So this is the code to create an empty Tmx file &#8211; note that I have all my element names and attribute names in separate classes in order to not make typo mistakes:</p>
<p><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">XDocument <span style="font-size:x-small;"><span style="font-size:x-small;"><span style="color:#000000;">m_XDocument;</span></span></span></span></span></span></span></p>
<p><span style="font-size:x-small;"><span style="font-size:x-small;">m_XDocument = </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">XDocument</span></span><span style="font-size:x-small;">();<br />
</span><span style="font-size:x-small;"><span style="font-size:x-small;">m_XDocument.Declaration =<br />
</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">XDeclaration</span></span><span style="font-size:x-small;">(</span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;1.0&#8243;</span></span><span style="font-size:x-small;">, </span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;utf-8&#8243;</span></span><span style="font-size:x-small;">, </span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;yes&#8221;</span></span><span style="font-size:x-small;">);<br />
m_XDocument.Add(<br />
     </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">XElement</span></span><span style="font-size:x-small;">(</span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">TmxElements</span></span><span style="font-size:x-small;">.Tmx,<span style="font-size:x-small;"> <br />
          </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">XAttribute</span></span><span style="font-size:x-small;">(</span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">TmxAttributes</span></span><span style="font-size:x-small;">.Version, </span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;1.4&#8243;</span></span><span style="font-size:x-small;">),<span style="font-size:x-small;"> <br />
               </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">XElement</span></span><span style="font-size:x-small;">(</span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">TmxElements</span></span><span style="font-size:x-small;">.Header,<span style="font-size:x-small;"> <br />
                    </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">XAttribute</span></span><span style="font-size:x-small;">(</span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">TmxAttributes</span></span><span style="font-size:x-small;">.CreationTool, </span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;Your.Tool.Name&#8221;</span></span><span style="font-size:x-small;">),<span style="font-size:x-small;"> <br />
                    </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">XAttribute</span></span><span style="font-size:x-small;">(</span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">TmxAttributes</span></span><span style="font-size:x-small;">.CreationToolVersion, </span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;1.0&#8243;</span></span><span style="font-size:x-small;">),<span style="font-size:x-small;"> <br />
                    </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">XAttribute</span></span><span style="font-size:x-small;">(</span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">TmxAttributes</span></span><span style="font-size:x-small;">.SegType, </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">TmxSegmentTypes</span></span><span style="font-size:x-small;">.Sentence),<span style="font-size:x-small;"> <br />
                    </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">XAttribute</span></span><span style="font-size:x-small;">(</span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">TmxAttributes</span></span><span style="font-size:x-small;">.O_Tmf, </span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;TW4Win 2.0 Format&#8221;</span></span><span style="font-size:x-small;">),<span style="font-size:x-small;"> <br />
                    </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">XAttribute</span></span><span style="font-size:x-small;">(</span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">TmxAttributes</span></span><span style="font-size:x-small;">.AdminLang, </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">CultureInfo</span></span><span style="font-size:x-small;">.GetCultureInfoByIetfLanguageTag(</span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;EN-US&#8221;</span></span><span style="font-size:x-small;">).IetfLanguageTag),<span style="font-size:x-small;"> <br />
                    </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">XAttribute</span></span><span style="font-size:x-small;">(</span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">TmxAttributes</span></span><span style="font-size:x-small;">.SrcLang, sourceCultureInfo.IetfLanguageTag),<span style="font-size:x-small;"> <br />
                    </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">XAttribute</span></span><span style="font-size:x-small;">(</span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">TmxAttributes</span></span><span style="font-size:x-small;">.DataType, </span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;rtf&#8221;</span></span><span style="font-size:x-small;">),<span style="font-size:x-small;"> <br />
                    </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">XAttribute</span></span><span style="font-size:x-small;">(</span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">TmxAttributes</span></span><span style="font-size:x-small;">.CreationDate, </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">DateTime</span></span><span style="font-size:x-small;">.Now.ToString(</span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;yyyyMMddTHHmmssZ&#8221;</span></span><span style="font-size:x-small;">)),<span style="font-size:x-small;"> <br />
                    </span></span><span style="font-size:x-small;color:#008000;"><span style="font-size:x-small;color:#008000;">// Here is the empty element!<br />
<span style="color:#000000;">                    </span></span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">XAttribute</span></span><span style="font-size:x-small;">(</span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">TmxAttributes</span></span><span style="font-size:x-small;">.CreationId, </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">Environment</span></span><span style="font-size:x-small;">.UserName), </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">string</span></span><span style="font-size:x-small;">.Empty),<span style="font-size:x-small;"> <br />
                    </span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">XElement</span></span><span style="font-size:x-small;">(</span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">TmxElements</span></span><span style="font-size:x-small;">.Body)));</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/joachimvandenbogaert.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/joachimvandenbogaert.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/joachimvandenbogaert.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/joachimvandenbogaert.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/joachimvandenbogaert.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/joachimvandenbogaert.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/joachimvandenbogaert.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/joachimvandenbogaert.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/joachimvandenbogaert.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/joachimvandenbogaert.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/joachimvandenbogaert.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/joachimvandenbogaert.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/joachimvandenbogaert.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/joachimvandenbogaert.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=35&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://joachimvandenbogaert.wordpress.com/2008/11/21/trados-65-tmx-importer-bug-35000-ssyacc0103e-attempted-read-past-eof/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/daf5f9cd0872cf5e21562e9bff1fb557?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">joachimvandenbogaert</media:title>
		</media:content>
	</item>
		<item>
		<title>NHibernate and Postgresql: ERROR 42P01</title>
		<link>http://joachimvandenbogaert.wordpress.com/2008/11/06/nhibernate-and-postgresql-error-42p01/</link>
		<comments>http://joachimvandenbogaert.wordpress.com/2008/11/06/nhibernate-and-postgresql-error-42p01/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 17:10:45 +0000</pubDate>
		<dc:creator>joachimvandenbogaert</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[error 42P01]]></category>
		<category><![CDATA[NHibernate]]></category>
		<category><![CDATA[postgresql]]></category>

		<guid isPermaLink="false">http://joachimvandenbogaert.wordpress.com/?p=33</guid>
		<description><![CDATA[I was setting up NHibernate 2.0.1 with Postgresql 8.3 and Npgsql1.0.1 for .NET 2.0. I followed the example from the documentation, set up a POCO class and wrote my mapping file correctly, but as it turned out. I kept receiving error 42P01 which states that relation &#8220;n&#8221; does not exist. The error had nothing to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=33&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was setting up NHibernate 2.0.1 with Postgresql 8.3 and Npgsql1.0.1 for .NET 2.0.</p>
<p>I followed the example from the documentation, set up a POCO class and wrote my mapping file correctly, but as it turned out. I kept receiving error 42P01 which states that relation &#8220;n&#8221; does not exist.</p>
<p>The error had nothing to do with a non-existent table, but with a configuration file example on:</p>
<p><a href="http://www.hibernate.org/361.html#A6">http://www.hibernate.org/361.html#A6</a></p>
<p>The solution to the problem is on the same page (if you look well enough, that is):</p>
<p><a href="http://www.hibernate.org/361.927.html">http://www.hibernate.org/361.927.html</a></p>
<p>The connection string should read &#8220;database=&#8221; instead of &#8220;initial catalog=&#8221;<br />
Unfortunately the example has not been updated at the time of writing.</p>
<p>So here is a corrected version</p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;hibernate-configuration  xmlns=&#8221;urn:<span style="color:#cc0000;">nhibernate</span>-configuration-2.2&#8243; &gt;<br />
    &lt;session-factory name=&#8221;<span style="color:#cc0000;">NHibernate</span>.Test&#8221;&gt;<br />
        &lt;property name=&#8221;connection.provider&#8221;&gt;<span style="color:#cc0000;">NHibernate</span>.Connection.DriverConnectionProvider&lt;/property&gt;<br />
        &lt;property name=&#8221;connection.driver_class&#8221;&gt;<span style="color:#cc0000;">NHibernate</span>.Driver.NpgsqlDriver&lt;/property&gt;<br />
        &lt;property name=&#8221;connection.connection_string&#8221;&gt;<br />
            Server=localhost;database=<span style="color:#cc0000;">nhibernate</span>;User ID=<span style="color:#cc0000;">nhibernate</span>;Password=********;<br />
        &lt;/property&gt;<br />
        &lt;property name=&#8221;dialect&#8221;&gt;<span style="color:#cc0000;">NHibernate</span>.Dialect.<span style="color:#cc0000;">PostgreSQL</span>Dialect&lt;/property&gt;<br />
    &lt;/session-factory&gt;<br />
&lt;/hibernate-configuration&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/joachimvandenbogaert.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/joachimvandenbogaert.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/joachimvandenbogaert.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/joachimvandenbogaert.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/joachimvandenbogaert.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/joachimvandenbogaert.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/joachimvandenbogaert.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/joachimvandenbogaert.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/joachimvandenbogaert.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/joachimvandenbogaert.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/joachimvandenbogaert.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/joachimvandenbogaert.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/joachimvandenbogaert.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/joachimvandenbogaert.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=33&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://joachimvandenbogaert.wordpress.com/2008/11/06/nhibernate-and-postgresql-error-42p01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/daf5f9cd0872cf5e21562e9bff1fb557?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">joachimvandenbogaert</media:title>
		</media:content>
	</item>
		<item>
		<title>InstallShield Scripting Engine Missing: Error 1607</title>
		<link>http://joachimvandenbogaert.wordpress.com/2008/10/30/installshield-scripting-engine-missing-error-1607/</link>
		<comments>http://joachimvandenbogaert.wordpress.com/2008/10/30/installshield-scripting-engine-missing-error-1607/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 14:47:49 +0000</pubDate>
		<dc:creator>joachimvandenbogaert</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Installing Applications]]></category>
		<category><![CDATA[Problems]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://joachimvandenbogaert.wordpress.com/?p=30</guid>
		<description><![CDATA[On newer OS&#8217;es, installing old software can give problems because of a certain error 1607. Here&#8217;s how to solve the issue.   http://consumerdocs.installshield.com/selfservice/viewContent.do?externalId=Q108158&#38;sliceId=1   and here you can find the engine version 7   http://support.installshield.com/kb/files/Q108158/IsScript7.zip<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=30&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoPlainText" style="margin:0;"><span style="font-size:small;font-family:Consolas;">On newer OS&#8217;es, installing old software can give problems because of a certain error 1607. Here&#8217;s how to solve the issue.</span></p>
<p class="MsoPlainText" style="margin:0;"> </p>
<p class="MsoPlainText" style="margin:0;"><a href="http://consumerdocs.installshield.com/selfservice/viewContent.do?externalId=Q108158&amp;sliceId=1"><span style="font-size:small;color:#0000ff;font-family:Consolas;">http://consumerdocs.installshield.com/selfservice/viewContent.do?externalId=Q108158&amp;sliceId=1</span></a></p>
<p class="MsoPlainText" style="margin:0;"><span style="font-size:small;font-family:Consolas;"> </span></p>
<p class="MsoPlainText" style="margin:0;"><span style="font-size:small;font-family:Consolas;">and here you can find the engine version 7</span></p>
<p class="MsoPlainText" style="margin:0;"><span style="font-size:small;font-family:Consolas;"> </span></p>
<p class="MsoPlainText" style="margin:0;"><a href="http://support.installshield.com/kb/files/Q108158/IsScript7.zip"><span style="font-size:small;font-family:Consolas;">http://support.installshield.com/kb/files/Q108158/IsScript7.zip</span></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/joachimvandenbogaert.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/joachimvandenbogaert.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/joachimvandenbogaert.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/joachimvandenbogaert.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/joachimvandenbogaert.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/joachimvandenbogaert.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/joachimvandenbogaert.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/joachimvandenbogaert.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/joachimvandenbogaert.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/joachimvandenbogaert.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/joachimvandenbogaert.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/joachimvandenbogaert.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/joachimvandenbogaert.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/joachimvandenbogaert.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=30&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://joachimvandenbogaert.wordpress.com/2008/10/30/installshield-scripting-engine-missing-error-1607/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/daf5f9cd0872cf5e21562e9bff1fb557?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">joachimvandenbogaert</media:title>
		</media:content>
	</item>
		<item>
		<title>Start Menu Shortcuts Stopped Working</title>
		<link>http://joachimvandenbogaert.wordpress.com/2008/10/27/start-menu-shortcuts-stopped-working/</link>
		<comments>http://joachimvandenbogaert.wordpress.com/2008/10/27/start-menu-shortcuts-stopped-working/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 10:55:42 +0000</pubDate>
		<dc:creator>joachimvandenbogaert</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://joachimvandenbogaert.wordpress.com/?p=28</guid>
		<description><![CDATA[There is this annoying little problem in some windows distributions. Suddenly shortcuts stop working and you can only start up a program by double-clicking the executable in the Windows Explorer. The following pages provide a solution: Here&#8217;s a description of the problem: http://www.vistax64.com/vista-performance-maintenance/142155-start-menu-office-2007-shortcuts-have-stopped-working.html and here&#8217;s how to get things working correctly again by using an Application, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=28&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There is this annoying little problem in some windows distributions. Suddenly shortcuts stop working and you can only start up a program by double-clicking the executable in the Windows Explorer.</p>
<p>The following pages provide a solution:</p>
<p>Here&#8217;s a description of the problem:</p>
<p><a href="http://www.vistax64.com/vista-performance-maintenance/142155-start-menu-office-2007-shortcuts-have-stopped-working.html">http://www.vistax64.com/vista-performance-maintenance/142155-start-menu-office-2007-shortcuts-have-stopped-working.html</a></p>
<p>and here&#8217;s how to get things working correctly again by using an Application, called ShellExView:</p>
<p><a href="http://windowsxp.mvps.org/slowrightclick.htm">http://windowsxp.mvps.org/slowrightclick.htm</a></p>
<p>In my case the KDiff3 shell extension seemed to cause the problem. By disabling the extension I got my shortcuts back. I notified the development team.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/joachimvandenbogaert.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/joachimvandenbogaert.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/joachimvandenbogaert.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/joachimvandenbogaert.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/joachimvandenbogaert.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/joachimvandenbogaert.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/joachimvandenbogaert.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/joachimvandenbogaert.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/joachimvandenbogaert.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/joachimvandenbogaert.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/joachimvandenbogaert.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/joachimvandenbogaert.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/joachimvandenbogaert.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/joachimvandenbogaert.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=28&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://joachimvandenbogaert.wordpress.com/2008/10/27/start-menu-shortcuts-stopped-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/daf5f9cd0872cf5e21562e9bff1fb557?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">joachimvandenbogaert</media:title>
		</media:content>
	</item>
		<item>
		<title>Non virtual methods as a default in C#</title>
		<link>http://joachimvandenbogaert.wordpress.com/2008/09/19/non-virtual-methods-as-a-default-in-c/</link>
		<comments>http://joachimvandenbogaert.wordpress.com/2008/09/19/non-virtual-methods-as-a-default-in-c/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 10:07:06 +0000</pubDate>
		<dc:creator>joachimvandenbogaert</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[final keyword]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[virtual method]]></category>

		<guid isPermaLink="false">http://joachimvandenbogaert.wordpress.com/?p=25</guid>
		<description><![CDATA[The following article provides a nice insight into why C# methods are by default non-virtual. http://www.artima.com/intv/nonvirtual.html I stumbled upon it by looking for a &#8220;final&#8221; keyword (as in Java). Having read the article it is clear why there is no such thing in C#.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=25&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The following article provides a nice insight into why C# methods are by default non-virtual.</p>
<p><a href="http://www.artima.com/intv/nonvirtual.html">http://www.artima.com/intv/nonvirtual.html</a></p>
<p>I stumbled upon it by looking for a &#8220;final&#8221; keyword (as in Java). Having read the article it is clear why there is no such thing in C#.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/joachimvandenbogaert.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/joachimvandenbogaert.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/joachimvandenbogaert.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/joachimvandenbogaert.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/joachimvandenbogaert.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/joachimvandenbogaert.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/joachimvandenbogaert.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/joachimvandenbogaert.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/joachimvandenbogaert.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/joachimvandenbogaert.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/joachimvandenbogaert.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/joachimvandenbogaert.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/joachimvandenbogaert.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/joachimvandenbogaert.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joachimvandenbogaert.wordpress.com&amp;blog=3597207&amp;post=25&amp;subd=joachimvandenbogaert&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://joachimvandenbogaert.wordpress.com/2008/09/19/non-virtual-methods-as-a-default-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/daf5f9cd0872cf5e21562e9bff1fb557?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">joachimvandenbogaert</media:title>
		</media:content>
	</item>
	</channel>
</rss>
