<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Željko Filipin&#039;s Blog on Software and Testing &#187; .NET</title>
	<atom:link href="http://zeljkofilipin.com/category/software/dot-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://zeljkofilipin.com</link>
	<description>Test like you do not need the money.</description>
	<lastBuildDate>Tue, 09 Feb 2010 16:14:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ruby Mail and benchmark.rb on CRuby, JRuby, IronRuby and RubyInstaller</title>
		<link>http://zeljkofilipin.com/2010/01/05/ruby-mail-and-benchmark-rb-on-cruby-jruby-ironruby-and-rubyinstaller/</link>
		<comments>http://zeljkofilipin.com/2010/01/05/ruby-mail-and-benchmark-rb-on-cruby-jruby-ironruby-and-rubyinstaller/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 17:15:42 +0000</pubDate>
		<dc:creator>Željko Filipin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://zeljkofilipin.com/?p=981</guid>
		<description><![CDATA[Update: Steve suggested I should try the script also with RubyInstaller, and I did it.
This blog post is update of my recent Ruby Mail on CRuby, JRuby and IronRuby post. Mikel and Jimmy have commented on the post saying I did a poor job, and I would agree. I decided to do a better job [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update: Steve suggested I should try the script also with <a href="http://rubyinstaller.org/">RubyInstaller</a>, and I did it.</strong></p>
<p>This blog post is update of my recent <a href="http://zeljkofilipin.com/2009/12/24/ruby-mail-on-cruby-jruby-and-ironruby/">Ruby Mail on CRuby, JRuby and IronRuby</a> post. Mikel and Jimmy have commented on the post saying I did a poor job, and I would agree. I decided to do a better job this time. Please let me know if measurements can be further improved.</p>
<p>So, I have an e-mail file called <code>1.eml</code>:</p>
<pre class="brush: plain;">
Date: Thu, 24 Dec 2009 14:37:34 Central European Standard Time
From: from@test.com
To: to@test.com
Message-ID: &lt;4b336e9e762a0_a1014263a4689d3@2003-ie7.mail&gt;
Subject: This is a test email
Mime-Version: 1.0
Content-Type: text/plain;
	charset=&quot;US-ASCII&quot;;
Content-Transfer-Encoding: 7bit

Some text for mail body
</pre>
<h2>The First Try</h2>
<p>This is the test from the first post. (RubyInstaller was not included in the first post.) It is included here so all code and numbers are at the same page, I guess it is easier to compare that way. Read the file, display subject and total time elapsed (in seconds).</p>
<pre class="brush: ruby;">
time = Time.now
require &quot;rubygems&quot;
require &quot;mail&quot;
mail = Mail.read(&quot;1.eml&quot;)
puts mail.subject.to_s
puts Time.now - time
</pre>
<p>Executed the script three times for each Ruby implementation. RubyInstaller the fastest, CRuby and JRuby were similar in speed, IronRuby was way slower.</p>
<table border="1">
<tbody>
<tr>
<th>Test Run</th>
<th>1</th>
<th>2</th>
<th>3</th>
</tr>
<tr>
<th>CRuby</th>
<td>2.594</td>
<td>2.109</td>
<td>2.11</td>
</tr>
<tr>
<th>JRuby</th>
<td>3.0</td>
<td>2.016</td>
<td>2.0</td>
</tr>
<tr>
<th>IronRuby</th>
<td>9.8125</td>
<td>7.796875</td>
<td>7.6875</td>
</tr>
<tr>
<th>RubyInstaller</th>
<td>1.21875</td>
<td>1.203125</td>
<td>1.203125</td>
</tr>
</tbody>
</table>
<table>
<h2>The Second Try</h2>
<p>Since both Mikel and Jimmy said <code>require</code> could take the majority of the time, and I was not really interested in measuring that, I excluded it from the measurement. </p>
<pre class="brush: ruby;">
require &quot;rubygems&quot;
require &quot;mail&quot;

time = Time.now
mail = Mail.read(&quot;1.eml&quot;)
puts mail.subject.to_s
puts Time.now - time
</pre>
<p>Times were way shorter. RubyInstaller the fastest (can not get much faster that 0.0 seconds), CRuby and JRuby in the same order of magnitude, IronRuby order of magnitude slower. JRuby has surprisingly the same numbers every time.</p>
<table border="1">
<tbody>
<tr>
<th>Test Run</th>
<th>1</th>
<th>2</th>
<th>3</th>
</tr>
<tr>
<th>CRuby</th>
<td>0.015</td>
<td>0.016</td>
<td>0.0</td>
</tr>
<tr>
<th>JRuby</th>
<td>0.047</td>
<td>0.047</td>
<td>0.047</td>
</tr>
<tr>
<th>IronRuby</th>
<td>0.5</td>
<td>0.46875</td>
<td>0.484375</td>
</tr>
<tr>
<th>RubyInstaller</th>
<td>0.0</td>
<td>0.0</td>
<td>0.0</td>
</tr>
</tbody>
</table>
<table>
<h2>Benchmark</h2>
<p>Mikel and Jimmy have suggested that I should use <a href="http://ruby-doc.org/stdlib/libdoc/benchmark/rdoc/index.html">benchmark.rb</a>, so I took a look. I have slightly modified the script. This time the file was read 1000 times.</p>
<pre class="brush: ruby;">
require &quot;rubygems&quot;
require &quot;mail&quot;
require &quot;benchmark&quot;

Benchmark.bm do |x|
  x.report { 1000.times do; puts Mail.read(&quot;1.eml&quot;).subject.to_s; end }
end
</pre>
<p>This measurement said JRuby was the fastest, followed closely by RubyInstaller and CRuby, IronRuby again order of magnitude slower.</p>
<table border="1">
<tbody>
<tr>
<th>Test Run</th>
<th>user</th>
<th>system</th>
<th>total</th>
<th>real</th>
</tr>
<tr>
<th>CRuby</th>
<td>11.000000</td>
<td>0.657000</td>
<td>11.657000</td>
<td>13.485000</td>
</tr>
<tr>
<th>JRuby</th>
<td>6.187000</td>
<td>0.000000</td>
<td>6.187000</td>
<td>6.187000</td>
</tr>
<tr>
<th>IronRuby</th>
<td>69.984375</td>
<td>7.140625</td>
<td>77.125000</td>
<td>60.656250</td>
</tr>
<tr>
<th>RubyInstaller</th>
<td>7.297000</td>
<td>0.766000</td>
<td>8.063000</td>
<td>9.953125</td>
</tr>
</tbody>
</table>
<h2>Environment</h2>
<p>Tests were run in VMware Fusion 2.0.6 virtual machine, 512 MB RAM, Microsoft Windows Sever 2003 R2 (Standard Edition, Service pack 2).<br />
Host machine is MacBook Pro, 2.4 GHz Intel Core 2 Duo, Mac OS X 10.6.2, 4 GB RAM.</p>
<pre class="brush: bash;">
&gt;ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]

&gt;jruby -v
jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java HotSpot(TM) Client VM 1.6.0_10) [x86-java]

&gt;ir -v
IronRuby 0.9.3.0 on .NET 2.0.0.0

&gt;ruby -v
ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32]
</pre>
<p>Mail version 1.3.4 on all platforms.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeljkofilipin.com/2010/01/05/ruby-mail-and-benchmark-rb-on-cruby-jruby-ironruby-and-rubyinstaller/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>ASP.NET &#8211; Install Everything You Need</title>
		<link>http://zeljkofilipin.com/2007/04/20/aspnet-install-everything-you-need/</link>
		<comments>http://zeljkofilipin.com/2007/04/20/aspnet-install-everything-you-need/#comments</comments>
		<pubDate>Fri, 20 Apr 2007 14:16:03 +0000</pubDate>
		<dc:creator>Željko Filipin</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://zeljkofilipin.com/2007/04/20/aspnet-install-everything-you-need/</guid>
		<description><![CDATA[Recently I started to play with ASP.NET. I found asp.net, The Official Microsoft ASP.NET 2.0 Site. The first thing you have to do is to install required software.
In my opinion, they made the installation to complicated for total beginner. There are too many choices. I wish they had something like Instant Rails. I lost some [...]]]></description>
			<content:encoded><![CDATA[<p>Recently <a href="http://zeljkofilipin.com/2007/03/22/first-steps-in-aspnet/">I started to play with ASP.NET</a>. I found <a href="http://www.asp.net/">asp.net</a>, The Official Microsoft ASP.NET 2.0 Site. The first thing you have to do is to install required software.</p>
<p>In my opinion, they made the installation to complicated for total beginner. There are too many choices. I wish they had something like <a href="http://instantrails.rubyforge.org/wiki/wiki.pl">Instant Rails</a>. I lost some time figuring it out, so I decided to share my experience. Maybe it will help somebody. If you have comments, improvements, or if I did something wrong, please leave a comment.</p>
<p>At asp.net home page there is link GET ASP.NET. It leads to Essential Downloads page. There they say you need Microsoft .NET Framework Version 2.0 (framework) and Visual Web Developer 2005 Express Edition (<a href="http://en.wikipedia.org/wiki/Integrated_development_environment">IDE</a>). Language version was easy to choose (English), but do I need Framework or SDK version of framework? That was also easily answered when I saw</p>
<blockquote><p>If you are new to web development, select the Framework download.</p></blockquote>
<p>The truth is that you do not have to download framework. It will automatically be downloaded when you download IDE. I selected English version of IDE.</p>
<p>Download page opens with four <em>easy</em> steps.</p>
<p>The first step was to check if my computer meets the System Requirements. It did. That was easy enough. Also, uninstall any previous versions of SQL Server 2005, IDE and framework. I did not have any installed.</p>
<p>The second step is to download IDE. But, there is just to many options. Six. I just want to download an IDE for language I do not know nothing about, and they make me choose. I just knew that <a href="http://edge4dev.wordpress.com/">my developer</a> uses ASP.NET and C#. And at that page there are Visual Web Developer and Visual C# IDE-s. Later I found out that I do not need Visual C#. (But after I downloaded and installed it. Do not make the same mistake.)</p>
<p>After download (Visual Web Developer is what you need), execute downloaded file. Of course, you have to be logged in as administrator. At the third screen of installation wizard there is option to also download and install Microsoft MSDN 2005 Express Edition and Microsoft SQL Server 2005 Express Edition x86. You need only SQL Server. At the next screen I noticed that Microsoft .NET Framework 2.0 will also be installed.</p>
<p>The third step is to download updates and additional components. You can install additional components later if you want to, no need to do it now. You do not have to download updates if you perform Microsoft Update after installation. That is what I did. There was two updates for .NET Framework and one for Visual Studio. I just wonder why they just do not offer the newest version of IDE and .NET framework, but instead you have to download an old version and than update it.</p>
<p>The fourth step is registration. You have 30 days, so there is no rush. But beware (from <a href="http://msdn.microsoft.com/vstudio/express/register/faq/">FAQ</a>):</p>
<blockquote><p>Without a registration key, downloaded Editions will no longer work after 30 days.</p></blockquote>
<p>So, all you have to do is to <a href="http://msdn.microsoft.com/vstudio/express/downloads/">download Visual Web Developer</a>, make sure that SQL Server is also downloaded (while installing IDE) and perform <a href="http://update.microsoft.com/">Microsoft Update</a> after installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeljkofilipin.com/2007/04/20/aspnet-install-everything-you-need/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First Steps in ASP.NET</title>
		<link>http://zeljkofilipin.com/2007/03/22/first-steps-in-aspnet/</link>
		<comments>http://zeljkofilipin.com/2007/03/22/first-steps-in-aspnet/#comments</comments>
		<pubDate>Thu, 22 Mar 2007 12:13:11 +0000</pubDate>
		<dc:creator>Željko Filipin</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://zeljkofilipin.com/2007/03/22/first-steps-in-aspnet/</guid>
		<description><![CDATA[
My developer is using ASP.NET. I decided to learn basics of it. After all, you have to know your enemy. As it usually goes, pretty soon I got into trouble. Internet Information Services (IIS 5.1) at my machine (Windows XP Professional, Service Pack 2) was processing server code of asp pages, but not of aspx. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://zeljkofilipin.com/wp-content/uploads/2007/03/asp.png"><img src='http://zeljkofilipin.com/wp-content/uploads/2007/03/asp.png' title='asp.png' alt='asp.png' /></a></p>
<p><a href="http://edge4dev.wordpress.com/">My developer</a> is using <a href="http://msdn2.microsoft.com/en-us/asp.net/default.aspx">ASP.NET</a>. I decided to learn basics of it. After all, you have to <a href="http://www.youtube.com/watch?v=wzkGHoOp3AQ">know your enemy</a>. As it usually goes, pretty soon I got into trouble. <a href="http://www.microsoft.com/WindowsServer2003/iis/default.mspx">Internet Information Services</a> (IIS 5.1) at my machine (Windows XP Professional, Service Pack 2) was processing server code of asp pages, but not of aspx. Internet Explorer would show HTML portion of aspx page, but server code was ignored. Firefox was showing asp pages, but for aspx pages I was getting &#8220;open with&#8221; pop-up.</p>
<p>What went wrong? <a href="http://msdn2.microsoft.com/en-us/netframework/default.aspx">.NET Framework</a> and IIS are installed.</p>
<p>I started looking at Internet Information Services (Start > All Programs > Administrative Tools > Internet Information Services). At ASP.NET tab of Web Sites Properties window (Internet Information Services > local computer > Web Sites > right click > Properties ) I saw that ASP.NET version is not selected, so I selected 2.0.50727 (1.1.4322 was also available).</p>
<p>No luck. I started getting this error page.</p>
<blockquote><p>Server Application Unavailable</p></blockquote>
<p>Time to ask my <a href="http://en.wikipedia.org/wiki/Artillery">developer</a> for help. He said I should create virtual directory.</p>
<ul>
<li>at C:\Inetpub\wwwroot\ create directory asp</li>
<li>Internet Information Services > local computer > Web Sites > Default Web Site > right click > New > Virtual Directory&#8230; > enter alias (&#8220;asp&#8221; sounds good) > browse to directory > make sure &#8220;Read&#8221; and &#8220;Run scripts (such as ASP)&#8221; checkboxes are checked</li>
<li>Internet Information Services > local computer > Web Sites > Default Web Site > virtual directory alias (&#8220;asp&#8221;, remember) > right click > Properties > ASP.NET > ASP.NET version > 2.0.50727</li>
</ul>
<p>Then I got different error message.</p>
<blockquote><p>Failed to access IIS metabase.</p></blockquote>
<p>According to <a href="http://blog.devstone.com/Aaron/archive/2006/05/08/1586.aspx">Failed to access IIS metabase</a> blog post from R. Aaron Zupancic, the problem was:</p>
<blockquote><p>You may have installed IIS after installing the .NET framework.</p></blockquote>
<p>True. I installed .NET framework immediately after I installed Windows, and I installed IIS later when I needed it. Solution? Open command prompt, go to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 and execute</p>
<blockquote><p>aspnet_regiis -i</p></blockquote>
<p>Everything works fine now. Firefox needed some time to start recognizing aspx pages (I was still getting &#8220;open with&#8221; pop-up), but now it works.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeljkofilipin.com/2007/03/22/first-steps-in-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
