<?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>Fraction of the Blogosphere</title>
	<atom:link href="http://ronniediaz.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ronniediaz.com</link>
	<description>Even the smallest piece of life contains a symphony of miracles. </description>
	<lastBuildDate>Wed, 22 May 2013 07:43:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ronniediaz.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/02cabac7bf9b1097ef4c6f921f7ca202?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Fraction of the Blogosphere</title>
		<link>http://ronniediaz.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ronniediaz.com/osd.xml" title="Fraction of the Blogosphere" />
	<atom:link rel='hub' href='http://ronniediaz.com/?pushpress=hub'/>
		<item>
		<title>IIS6 Change Framework Version without restart of W3SVC service</title>
		<link>http://ronniediaz.com/2013/05/10/iis6-change-framework-version-without-restart-of-w3svc/</link>
		<comments>http://ronniediaz.com/2013/05/10/iis6-change-framework-version-without-restart-of-w3svc/#comments</comments>
		<pubDate>Fri, 10 May 2013 14:27:40 +0000</pubDate>
		<dc:creator>Ronnie Diaz</dc:creator>
				<category><![CDATA[.net 4.0]]></category>
		<category><![CDATA[aspnet regiis]]></category>
		<category><![CDATA[aspnet_regiis]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[change framework version]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[iis6]]></category>
		<category><![CDATA[regiis]]></category>
		<category><![CDATA[restart]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[w3svc]]></category>
		<category><![CDATA[without restart]]></category>

		<guid isPermaLink="false">http://ronniediaz.com/?p=1596</guid>
		<description><![CDATA[browse to the location of the folder containing the version of asp_net regiis such as: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319 run aspnet_regiis -lk to get the virtual path you will need in the next command. to see which ID matches your website launch IIS manager and under websites you will see a column called &#8220;identifier&#8221;. run the command: aspnet_regiis.exe [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1596&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>browse to the location of the folder containing the version of asp_net regiis such as:<br />
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319</p>
<p>run aspnet_regiis -lk to get the virtual path you will need in the next command. to see which ID matches your website launch IIS manager and under websites you will see a column called &#8220;identifier&#8221;.</p>
<p>run the command:<br />
aspnet_regiis.exe -norestart -s &#8220;W3SVC\1398789133&#8243;</p>
<p>done.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ronniediaz.wordpress.com/1596/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ronniediaz.wordpress.com/1596/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1596&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ronniediaz.com/2013/05/10/iis6-change-framework-version-without-restart-of-w3svc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b052ad4849d4fad2483e0a06dc41c572?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ronnie Diaz</media:title>
		</media:content>
	</item>
		<item>
		<title>microsoft expressions split clips into multiple files</title>
		<link>http://ronniediaz.com/2013/04/16/microsoft-expressions-split-clips-into-multiple-files/</link>
		<comments>http://ronniediaz.com/2013/04/16/microsoft-expressions-split-clips-into-multiple-files/#comments</comments>
		<pubDate>Tue, 16 Apr 2013 20:37:56 +0000</pubDate>
		<dc:creator>Ronnie Diaz</dc:creator>
				<category><![CDATA[asf]]></category>
		<category><![CDATA[avi]]></category>
		<category><![CDATA[clips]]></category>
		<category><![CDATA[edit]]></category>
		<category><![CDATA[editing]]></category>
		<category><![CDATA[encoder]]></category>
		<category><![CDATA[encoder 4]]></category>
		<category><![CDATA[expressions]]></category>
		<category><![CDATA[expressions 4]]></category>
		<category><![CDATA[expressions encoder]]></category>
		<category><![CDATA[microsoft expressions]]></category>
		<category><![CDATA[microsoft expressions encoder 4]]></category>
		<category><![CDATA[split]]></category>
		<category><![CDATA[split video files]]></category>
		<category><![CDATA[vc-1]]></category>
		<category><![CDATA[vc1]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[video edit]]></category>
		<category><![CDATA[video split]]></category>
		<category><![CDATA[wma]]></category>
		<category><![CDATA[wmv]]></category>

		<guid isPermaLink="false">http://ronniediaz.com/?p=1590</guid>
		<description><![CDATA[open expressions (select transcode project) file-&#62;new job import file select all your encoding video/audio settings set your clips (click on location in timeline then on the &#8220;insert edit at playhead button&#8221;) at this point you may have assumed clips would have encoded into separate files but this is not how expressions works inherently save your [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1590&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>open expressions (select transcode project)</p>
<p>file-&gt;new job</p>
<p>import file</p>
<p>select all your encoding video/audio settings</p>
<p>set your clips (click on location in timeline then on the &#8220;insert edit at playhead button&#8221;)</p>
<p>at this point you may have assumed clips would have encoded into separate files but this is not how expressions works inherently</p>
<p>save your job in case you make a mistake</p>
<p>right click on the job file in the media window at the bottom left and select duplicate</p>
<p>all of your video/audio encoding settings and clips you set will be duplicated</p>
<p>you can now duplicate as many times for as many clips as you have and remove the excess clips, using the clips tab (window-&gt;clips) to make sure you don&#8217;t make mistakes by referencing the start/stop times</p>
<p>click encode and watch as many files are queued!</p>
<p><b>References</b></p>
<p><a href="http://msdn.microsoft.com/en-us/library/cc294634(v=expression.40)" rel="nofollow">http://msdn.microsoft.com/en-us/library/cc294634(v=expression.40)</a>.aspx</p>
<p><a href="http://msdn.microsoft.com/en-us/library/cc294622(v=expression.40)" rel="nofollow">http://msdn.microsoft.com/en-us/library/cc294622(v=expression.40)</a>.aspx</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ronniediaz.wordpress.com/1590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ronniediaz.wordpress.com/1590/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1590&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ronniediaz.com/2013/04/16/microsoft-expressions-split-clips-into-multiple-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b052ad4849d4fad2483e0a06dc41c572?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ronnie Diaz</media:title>
		</media:content>
	</item>
		<item>
		<title>iis 6 redirect with querystring</title>
		<link>http://ronniediaz.com/2013/04/02/iis-6-redirect-with-querystring/</link>
		<comments>http://ronniediaz.com/2013/04/02/iis-6-redirect-with-querystring/#comments</comments>
		<pubDate>Tue, 02 Apr 2013 15:21:21 +0000</pubDate>
		<dc:creator>Ronnie Diaz</dc:creator>
				<category><![CDATA[301]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[iis 6]]></category>
		<category><![CDATA[iis 7]]></category>
		<category><![CDATA[permanent]]></category>
		<category><![CDATA[redirect]]></category>

		<guid isPermaLink="false">http://ronniediaz.com/?p=1585</guid>
		<description><![CDATA[Permanent site redirects using IIS are useful when moving a site to a new domain and also more search engine friendly than simply doing a javascript or server side redirect. These send a &#8220;301&#8243; response status code To do this in IIS 6, simply open the website properties in IIS 6, select &#8220;a redirection to [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1585&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Permanent site redirects using IIS are useful when moving a site to a new domain and also more search engine friendly than simply doing a javascript or server side redirect. These send a &#8220;301&#8243; response status code</p>
<p>To do this in IIS 6, simply open the website properties in IIS 6, select &#8220;a redirection to a URL&#8221; and enter the URL.</p>
<p>(courtesy of R. prestol)<br />
<a href="http://ronniediaz.files.wordpress.com/2013/04/20130402httpredirect.png"><img src="http://ronniediaz.files.wordpress.com/2013/04/20130402httpredirect.png?w=300&#038;h=290" alt="20130402httpredirect" width="300" height="290" class="aligncenter size-medium wp-image-1586" /></a></p>
<p>To send querystring values along with your redirect, simply add &#8220;$Q&#8221; to the end of the URL, such as:</p>
<pre class="brush: plain; title: ; notranslate">

http://www.google.com/pagename/pagename/$Q

</pre>
<p>If you would like instructions on how to perform this via IIS 7, let me know and I can upload these screenshots as well.</p>
<p><b>References</b><br />
<a href="http://en.wikipedia.org/wiki/HTTP_301" target="_blank">http://en.wikipedia.org/wiki/HTTP_301</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ronniediaz.wordpress.com/1585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ronniediaz.wordpress.com/1585/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1585&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ronniediaz.com/2013/04/02/iis-6-redirect-with-querystring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b052ad4849d4fad2483e0a06dc41c572?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ronnie Diaz</media:title>
		</media:content>

		<media:content url="http://ronniediaz.files.wordpress.com/2013/04/20130402httpredirect.png?w=300" medium="image">
			<media:title type="html">20130402httpredirect</media:title>
		</media:content>
	</item>
		<item>
		<title>asp .net could not establish trust relationship for the SSL/TLS secure channel</title>
		<link>http://ronniediaz.com/2013/03/20/asp-net-could-not-establish-trust-relationship-for-the-ssltls-secure-channel/</link>
		<comments>http://ronniediaz.com/2013/03/20/asp-net-could-not-establish-trust-relationship-for-the-ssltls-secure-channel/#comments</comments>
		<pubDate>Wed, 20 Mar 2013 14:47:42 +0000</pubDate>
		<dc:creator>Ronnie Diaz</dc:creator>
				<category><![CDATA[asp]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[certificate error]]></category>
		<category><![CDATA[connection]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[invalid]]></category>
		<category><![CDATA[relationship]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[secure channel]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[trust]]></category>
		<category><![CDATA[validate]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://ronniediaz.com/?p=1575</guid>
		<description><![CDATA[A quick google search revealed multiple reported resolutions, however, after following the steps in the MSDN blog reference listed below, the issue was still unresolved in my situation. Additional details in the stack trace will reveal another similar message: &#8220;The remote certificate is invalid according to the validation procedure.&#8221; In this specific scenario, the site [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1575&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>A quick google search revealed multiple reported resolutions, however, after following the steps in the MSDN blog reference listed below, the issue was still unresolved in my situation.</p>
<p>Additional details in the stack trace will reveal another similar message: &#8220;The remote certificate is invalid according to the validation procedure.&#8221;</p>
<p>In this specific scenario, the site in question is either not configured with a wildcard certificate for a subdomain of the parent site or the operation system I am working on does not support SNI. In the meantime, a workaround is needed to continue testing and development.</p>
<p>Additional reading on google revealed another solution which was more suitable and utilized a code based approach, as opposed to a server configuration based solution.</p>
<p>To make it more dynamic, I added a key into the app/web config to control if SSL errors should be ignored. Please note that it is also possible to replace the code based approach solely with an app/web config entry listed in the west-wind blog referenced below, but I personally prefer to go with code whenever possible.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;configuration&gt;
  &lt;configSections&gt;
  &lt;/configSections&gt;
  &lt;connectionStrings&gt;
    &lt;add name=&quot;ConnectionString&quot;
      connectionString=&quot;Data Source=servername;Initial Catalog=databasename;&quot;
      providerName=&quot;System.Data.SqlClient&quot; /&gt;
  &lt;/connectionStrings&gt;
  &lt;appSettings&gt;
    &lt;add key=&quot;ignoresslerrors&quot; value=&quot;true&quot;/&gt;
  &lt;/appSettings&gt;
&lt;startup&gt;&lt;supportedRuntime version=&quot;v4.0&quot; sku=&quot;.NETFramework,Version=v4.0&quot;/&gt;&lt;/startup&gt;&lt;/configuration&gt;
</pre>
<pre class="brush: csharp; title: ; notranslate">
 public class ConfigValues
    {
        public static string IgnoreSSLErrors { get { return getval(&quot;ignoresslerrors&quot;); } }
}

public function main() {
connect(&quot;https://sitename.com&quot;,ConfigValues.IgnoreSSLErrors);
}

public function connect(string url, string ignoresslerrors) {
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);

try
            {
                if (Convert.ToBoolean(ignoresslerrors))
                {
                    System.Net.ServicePointManager.ServerCertificateValidationCallback +=
            delegate(object sender, System.Security.Cryptography.X509Certificates.X509Certificate certificate,
                                    System.Security.Cryptography.X509Certificates.X509Chain chain,
                                    System.Net.Security.SslPolicyErrors sslPolicyErrors)
            {
                return true; //will always accept the cert and ignore errors. this is not good common practice unless you are sure of the destination you are connecting to. needed in this scenario to continue development until issue with cert is resolved.
            };
                }
            }
            catch (Exception ex)
            {
                Shared.HandleError(ex);
            }
}
</pre>
<p><b>References</b></p>
<p><a href="http://www.west-wind.com/weblog/posts/2011/Feb/11/HttpWebRequest-and-Ignoring-SSL-Certificate-Errors" rel="nofollow">http://www.west-wind.com/weblog/posts/2011/Feb/11/HttpWebRequest-and-Ignoring-SSL-Certificate-Errors</a></p>
<p><a href="http://blogs.msdn.com/b/jpsanders/archive/2009/09/16/troubleshooting-asp-net-the-remote-certificate-is-invalid-according-to-the-validation-procedure.aspx" rel="nofollow">http://blogs.msdn.com/b/jpsanders/archive/2009/09/16/troubleshooting-asp-net-the-remote-certificate-is-invalid-according-to-the-validation-procedure.aspx</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ronniediaz.wordpress.com/1575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ronniediaz.wordpress.com/1575/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1575&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ronniediaz.com/2013/03/20/asp-net-could-not-establish-trust-relationship-for-the-ssltls-secure-channel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b052ad4849d4fad2483e0a06dc41c572?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ronnie Diaz</media:title>
		</media:content>
	</item>
		<item>
		<title>c# .net split strings with math divrem using lambda linq</title>
		<link>http://ronniediaz.com/2013/03/15/c-net-split-strings-with-math-divrem-using-lambda-linq/</link>
		<comments>http://ronniediaz.com/2013/03/15/c-net-split-strings-with-math-divrem-using-lambda-linq/#comments</comments>
		<pubDate>Fri, 15 Mar 2013 20:30:35 +0000</pubDate>
		<dc:creator>Ronnie Diaz</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[divrem]]></category>
		<category><![CDATA[lamba]]></category>
		<category><![CDATA[linq]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[split]]></category>
		<category><![CDATA[split string]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://ronniediaz.com/?p=1565</guid>
		<description><![CDATA[Recently I came across a nice alternative to loops using linq for evenly splitting a string using Math.DivRem. The following example illustrates how this can be used to parse a sequence of numbers based on a time series which may give variable results in a custom messaging protocol. (inspired by R. Prestol) A significant figure [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1565&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Recently I came across a nice alternative to loops using linq for evenly splitting a string using <a href="http://msdn.microsoft.com/en-us/library/system.math.divrem.aspx" target="_blank">Math.DivRem</a>.</p>
<p>The following example illustrates how this can be used to parse a sequence of numbers based on a time series which may give variable results in a custom messaging protocol.</p>
<p>(inspired by R. Prestol)</p>
<pre class="brush: csharp; title: ; notranslate">
//not the complete classes but satisfies the below example
class message {
string series {get;set;}
}

  string[] series = message.series.Split(' '); //will NOT throw an exception if series string is empty
            int Rem = 0;
            int d = Math.DivRem(name.Length, 2, out Rem); //hardcoded two for simplicity in this example
 
//valueB will contain the same value as valueA if there is no second value in the sequence
            string valueA = string.Join(&quot; &quot;, sentence.Take(Math.Max(d, 1)).ToArray());
            string valueB = string.Join(&quot; &quot;, sentence.Skip(d).Take(d + Rem).ToArray());

int average = (Convert.ToInt32(valueA) + Convert.ToInt32(valueB)) / 2; //2 would also need to be dynamic here

Console.WriteLine(average.ToString());

//potential input
//100 101
//100

//output for average
//first input: 100
//second input: 100

</pre>
<p>A significant figure is lost (.5) on first input since valueA and valueB are converted to int. Conversion to decimal, double etc would of course maintain this detail depending on the rounding you are looking for.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ronniediaz.wordpress.com/1565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ronniediaz.wordpress.com/1565/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1565&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ronniediaz.com/2013/03/15/c-net-split-strings-with-math-divrem-using-lambda-linq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b052ad4849d4fad2483e0a06dc41c572?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ronnie Diaz</media:title>
		</media:content>
	</item>
		<item>
		<title>erightsoft SUPER temp files</title>
		<link>http://ronniediaz.com/2013/03/14/erightsoft-super-temp-files/</link>
		<comments>http://ronniediaz.com/2013/03/14/erightsoft-super-temp-files/#comments</comments>
		<pubDate>Thu, 14 Mar 2013 19:08:17 +0000</pubDate>
		<dc:creator>Ronnie Diaz</dc:creator>
				<category><![CDATA[cannot find temp]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[eright]]></category>
		<category><![CDATA[erightsoft]]></category>
		<category><![CDATA[files encoder]]></category>
		<category><![CDATA[super]]></category>
		<category><![CDATA[temp]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://ronniediaz.com/?p=1562</guid>
		<description><![CDATA[SUPER video encoder is a pretty handy UI for ffmpeg and mencoder processing, however, keep in mind this tool will create temp files on your hard disk during the encoding process. Normally this is not an issue, as the temp files are deleted after processing is complete, however, if there are failures during processing or [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1562&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>SUPER video encoder is a pretty handy UI for ffmpeg and mencoder processing, however, keep in mind this tool will create temp files on your hard disk during the encoding process.</p>
<p>Normally this is not an issue, as the temp files are deleted after processing is complete, however, if there are failures during processing or if you cancel the process, temp files may be leftover on your hard disk even if you were encoding to an external drive.</p>
<p>In the screenshot below, I encountered a 30gb video file during my travels which I had a tough time finding the right encoding method for that didn&#8217;t take too long. Cancelling the process twice caused a situation illustrated by the screenshot below:</p>
<div id="attachment_1563" class="wp-caption aligncenter" style="width: 310px"><a href="http://ronniediaz.files.wordpress.com/2013/03/20130314erightsoftsupervideoencoder.png"><img src="http://ronniediaz.files.wordpress.com/2013/03/20130314erightsoftsupervideoencoder.png?w=300&#038;h=300" alt="erightsoft super video encoder temp files" width="300" height="300" class="size-medium wp-image-1563" /></a><p class="wp-caption-text">erightsoft super video encoder temp files</p></div>
<p>Deleting the temp files is no problem of course, and to navigate to the appropriate directory simply open an explorer window and type %TEMP% in the Window path.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ronniediaz.wordpress.com/1562/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ronniediaz.wordpress.com/1562/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1562&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ronniediaz.com/2013/03/14/erightsoft-super-temp-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b052ad4849d4fad2483e0a06dc41c572?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ronnie Diaz</media:title>
		</media:content>

		<media:content url="http://ronniediaz.files.wordpress.com/2013/03/20130314erightsoftsupervideoencoder.png?w=300" medium="image">
			<media:title type="html">erightsoft super video encoder temp files</media:title>
		</media:content>
	</item>
		<item>
		<title>macbook lock screen keyboard shortcut</title>
		<link>http://ronniediaz.com/2013/03/13/macbook-lock-screen-keyboard-shortcut/</link>
		<comments>http://ronniediaz.com/2013/03/13/macbook-lock-screen-keyboard-shortcut/#comments</comments>
		<pubDate>Wed, 13 Mar 2013 16:50:19 +0000</pubDate>
		<dc:creator>Ronnie Diaz</dc:creator>
				<category><![CDATA[keyboard]]></category>
		<category><![CDATA[keyboard shortcut]]></category>
		<category><![CDATA[keys]]></category>
		<category><![CDATA[lock]]></category>
		<category><![CDATA[lock screen]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[macbook pro]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://ronniediaz.com/?p=1560</guid>
		<description><![CDATA[control+shift+eject or if you don&#8217;t have an eject button: control-shift-fn-power button<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1560&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>control+shift+eject</p>
<p>or if you don&#8217;t have an eject button:</p>
<p>control-shift-fn-power button</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ronniediaz.wordpress.com/1560/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ronniediaz.wordpress.com/1560/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1560&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ronniediaz.com/2013/03/13/macbook-lock-screen-keyboard-shortcut/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b052ad4849d4fad2483e0a06dc41c572?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ronnie Diaz</media:title>
		</media:content>
	</item>
		<item>
		<title>linq to csv extension method</title>
		<link>http://ronniediaz.com/2013/03/11/linq-to-csv-extension-method/</link>
		<comments>http://ronniediaz.com/2013/03/11/linq-to-csv-extension-method/#comments</comments>
		<pubDate>Mon, 11 Mar 2013 15:12:41 +0000</pubDate>
		<dc:creator>Ronnie Diaz</dc:creator>
				<category><![CDATA[csv]]></category>
		<category><![CDATA[extension method]]></category>
		<category><![CDATA[linq]]></category>
		<category><![CDATA[linq to csv]]></category>
		<category><![CDATA[list]]></category>

		<guid isPermaLink="false">http://ronniediaz.com/?p=1558</guid>
		<description><![CDATA[Can be used to convert list of strongly typed objects to csv output.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1558&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Can be used to convert list of strongly typed objects to csv output.</p>
<pre class="brush: csharp; title: ; notranslate">
    public static class extensionmethods
    {
        #region LinqToCSV
        public static string ToCsv&lt;T&gt;(this IEnumerable&lt;T&gt; items)
            where T : class
        {
            var csvBuilder = new StringBuilder();
            var properties = typeof(T).GetProperties();
            string header = string.Join(&quot;,&quot;, properties.Select(p =&gt; p.Name.ToCsvValue()).ToArray());
            csvBuilder.AppendLine(header);

            foreach (T item in items)
            {
                string line = string.Join(&quot;,&quot;, properties.Select(p =&gt; p.GetValue(item, null).ToCsvValue()).ToArray());
                csvBuilder.AppendLine(line);
            }
            return csvBuilder.ToString();
        }

        private static string ToCsvValue&lt;T&gt;(this T item)
        {
            if (item == null) return &quot;\&quot;\&quot;&quot;;

            if (item is string)
            {
                return string.Format(&quot;\&quot;{0}\&quot;&quot;, item.ToString().Replace(&quot;\&quot;&quot;, &quot;\\\&quot;&quot;));
            }
            double dummy;
            if (double.TryParse(item.ToString(), out dummy))
            {
                return string.Format(&quot;{0}&quot;, item);
            }
            return string.Format(&quot;\&quot;{0}\&quot;&quot;, item);
        }
        #endregion
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ronniediaz.wordpress.com/1558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ronniediaz.wordpress.com/1558/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1558&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ronniediaz.com/2013/03/11/linq-to-csv-extension-method/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b052ad4849d4fad2483e0a06dc41c572?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ronnie Diaz</media:title>
		</media:content>
	</item>
		<item>
		<title>ie10 imagebutton _dopostback undefined bug with update panel script manager</title>
		<link>http://ronniediaz.com/2013/02/07/ie10-imagebutton-_dopostback-undefined-bug-with-update-panel-script-manager/</link>
		<comments>http://ronniediaz.com/2013/02/07/ie10-imagebutton-_dopostback-undefined-bug-with-update-panel-script-manager/#comments</comments>
		<pubDate>Thu, 07 Feb 2013 22:14:22 +0000</pubDate>
		<dc:creator>Ronnie Diaz</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[.net 4.0]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[ie10]]></category>
		<category><![CDATA[image button]]></category>
		<category><![CDATA[imagebutton]]></category>
		<category><![CDATA[script manager]]></category>
		<category><![CDATA[scriptmanager]]></category>
		<category><![CDATA[undefined]]></category>
		<category><![CDATA[update panel]]></category>
		<category><![CDATA[updatepanel]]></category>
		<category><![CDATA[_dopostback]]></category>

		<guid isPermaLink="false">http://ronniediaz.com/?p=1547</guid>
		<description><![CDATA[IE10 has a nice new little bug which occurs with image buttons on 2nd or consecutive postback on a page which contains an update panel. You will notice the bug as a broad javascript error message, but behind the scenes the issue occurs due to a bad type conversion to an integer from a floating [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1547&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>IE10 has a nice new little bug which occurs with image buttons on 2nd or consecutive postback on a page which contains an update panel.</p>
<p>You will notice the bug as a broad javascript error message, but behind the scenes the issue occurs due to a bad type conversion to an integer from a floating point which has started to return from the .Net functions.</p>
<p>The official fix is a <a href="http://support.microsoft.com/kb/2600088" target="_blank">patch from Microsoft</a> for your server, however, in the meantime you can simply apply the following in your global.asax.</p>
<p>Scott Hanselman has <a href="http://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMaintainFF5ScrollbarPosition.aspx" target="_blank">suggested a few things</a> regarding this issue, but I think you will find the solution below to be more straightforward in the short term.</p>
<p>See solution below. (courtesy of R. Prestol)</p>
<p>vb:</p>
<pre class="brush: vb; title: ; notranslate">
Protected Sub Application_PostMapRequestHandler(sender As Object, e As System.EventArgs)
        Dim app As HttpApplication = sender
        Dim handler As IHttpHandler = app.Context.Handler
        Dim page As Page = IIf(TypeOf handler Is Page, handler, Nothing)
        If (page IsNot Nothing) Then
            AddHandler page.Load, AddressOf Page_Load
        End If
    End Sub
   
    Private Sub Page_Load(sender As Object, e As EventArgs)
        Dim page As Page = HttpContext.Current.Handler
        Dim smg As ScriptManager = ScriptManager.GetCurrent(page)
        If smg IsNot Nothing AndAlso (page.IsPostBack = False OrElse smg.IsInAsyncPostBack = False) Then
            ScriptManager.RegisterOnSubmitStatement(page, page.GetType, &quot;IE10ImgFloatFix&quot;, &quot;IE10ImgFloatFix();&quot;)
            ScriptManager.RegisterStartupScript(page, page.GetType, &quot;IE10ImgFloatFix_func&quot;, &quot;function IE10ImgFloatFix() {try {var o = Sys.WebForms.PageRequestManager._instance;var s = o._additionalInput;s = s.replace(/(.y=\d+)([.]\d+)?/g, '$1');s = s.replace(/(.x=\d+)([.]\d+)?/g, '$1');o._additionalInput = s;} catch (ex){}}&quot;, True)
        End If
    End Sub
</pre>
<p>c#:</p>
<pre class="brush: csharp; title: ; notranslate">
void Application_PostMapRequestHandler(object sender, EventArgs e)
    {       
        var app = (HttpApplication)sender;
        var handler = (IHttpHandler)app.Context.Handler;
        Page page = handler as Page;
       
        if (page != null)
        {
            page.Load += Page_Load;
        }    
    }
   
    private void Page_Load(object sender, EventArgs e)
    {
        var page = (Page)HttpContext.Current.Handler;
        var smg = ScriptManager.GetCurrent(page);
        if (smg != null &amp;&amp; (page.IsPostBack == false || smg.IsInAsyncPostBack == false))
        {
            ScriptManager.RegisterOnSubmitStatement(page, page.GetType(), &quot;IE10ImgFloatFix&quot;, &quot;IE10ImgFloatFix();&quot;);
            ScriptManager.RegisterStartupScript(page, page.GetType(), &quot;IE10ImgFloatFix_func&quot;, &quot;function IE10ImgFloatFix() {try {var o = Sys.WebForms.PageRequestManager._instance;var s = o._additionalInput;s = s.replace(/(.y=\\d+)([.]\\d+)?/g, '$1');s = s.replace(/(.x=\\d+)([.]\\d+)?/g, '$1');o._additionalInput = s;} catch (ex){}}&quot;, true);
        }   
    }
</pre>
<p><b>References</b></p>
<p><a href="http://support.microsoft.com/kb/2600088" rel="nofollow">http://support.microsoft.com/kb/2600088</a></p>
<p><a href="http://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMaintainFF5ScrollbarPosition.aspx" rel="nofollow">http://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMaintainFF5ScrollbarPosition.aspx</a></p>
<p><a href="http://stackoverflow.com/questions/13784718/asp-net-fails-to-detect-ie10-causing-dopostback-is-undefined-javascript-error" rel="nofollow">http://stackoverflow.com/questions/13784718/asp-net-fails-to-detect-ie10-causing-dopostback-is-undefined-javascript-error</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ronniediaz.wordpress.com/1547/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ronniediaz.wordpress.com/1547/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1547&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ronniediaz.com/2013/02/07/ie10-imagebutton-_dopostback-undefined-bug-with-update-panel-script-manager/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b052ad4849d4fad2483e0a06dc41c572?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ronnie Diaz</media:title>
		</media:content>
	</item>
		<item>
		<title>Multiple Stored Procedures with same return type in LINQ</title>
		<link>http://ronniediaz.com/2013/01/16/multiple-stored-procedures-with-same-return-type-in-linq/</link>
		<comments>http://ronniediaz.com/2013/01/16/multiple-stored-procedures-with-same-return-type-in-linq/#comments</comments>
		<pubDate>Wed, 16 Jan 2013 20:59:08 +0000</pubDate>
		<dc:creator>Ronnie Diaz</dc:creator>
				<category><![CDATA[Programming & Development]]></category>
		<category><![CDATA[add result]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[complex loading]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[databind]]></category>
		<category><![CDATA[datareader]]></category>
		<category><![CDATA[datasource]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[linq]]></category>
		<category><![CDATA[linq datareader]]></category>
		<category><![CDATA[linq to sql]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[list of objects]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[load list]]></category>
		<category><![CDATA[loading complex]]></category>
		<category><![CDATA[loading lists]]></category>
		<category><![CDATA[nested]]></category>
		<category><![CDATA[nested list]]></category>
		<category><![CDATA[nested lists]]></category>
		<category><![CDATA[result]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sqldatasource]]></category>
		<category><![CDATA[stored procedure]]></category>
		<category><![CDATA[strongly type]]></category>
		<category><![CDATA[type]]></category>

		<guid isPermaLink="false">http://ronniediaz.com/?p=1519</guid>
		<description><![CDATA[Previously you may have achieved this functionality using datareader. Now that you are using LINQ, you may be wondering how to achieve the same with lists of strongly typed objects. Quite a few articles out there have reproduced DataReader functionality with LINQ. This article suggests a new approach using the SqlDataSource to create an almost [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1519&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Previously you may have achieved this functionality using datareader. Now that you are using LINQ, you may be wondering how to achieve the same with lists of strongly typed objects.</p>
<p>Quite a few articles out there have reproduced DataReader functionality with LINQ. This article suggests a new approach using the SqlDataSource to create an almost identical code pattern as you previously used with DataReader.</p>
<p>So instead of directly recreating DataReader using LINQ, I&#8217;ve replaced it with the same code pattern using a different base class altogether.</p>
<p>old datareader code pattern:<br />
<b>set reader<br />
set connection<br />
set reader parameters<br />
reader loop<br />
get/set reader data<br />
end reader loop<br />
</b></p>
<p>new sqldatasource code pattern:<br />
<b>set sqldatasource<br />
set connection<br />
set sqldatasource parameters<br />
lambda foreach loop calling external delegate function for each item in result<br />
</b></p>
<p>The new approach encapsulates the loop within a LINQ lambda ForEach statement that gets/sets the values and loops through each item inherently. (sourcecode examples below)</p>
<h3>Why the hassle?</h3>
<p>Sometimes it is useful to load a list of objects from a stored procedure, view or table without immediately binding it to a grid or other data control. The old .NET 2.0 datareader offered a means to easily do this while allowing you the flexibility to do additional work within the reader loop so I sought to reproduce this.</p>
<p>You may be surprised to find the below example does not utilize the LINQ dbml assistance you would normally use in a LINQ to SQL scenario. There is good reason for this as I would like to create a function that allows full control over the list of return values without auto-generating a strange new hybrid return type for every stored procedure.</p>
<p>In addition, I like to fully prototype my applications prior to linking them to the database (that&#8217;s how you know you&#8217;ve been coding a long time) and this approach makes this much easier.</p>
<p>Simple example:</p>
<pre class="brush: csharp; title: ; notranslate">
public class Person {
public int Id {get;set;}
public string Name {get;set;}
public DateTime DateOfBirth {get;set;}
public decimal Age {get;set;} //this value isn't actually stored in db and is calculated on load
}
        public static List&lt;Person&gt; LoadPersonsByFilter(string Filter, char Country)
        {
            SqlDataSource sds = new SqlDataSource();
            sds.ConnectionString = ConfigValues.ConnectionString; //encapsulates ConfigurationManager.ConnectionStrings
            sds.SelectCommandType = SqlDataSourceCommandType.StoredProcedure;
            sds.SelectCommand = &quot;get_persons&quot;;
            sds.SelectParameters.Add(&quot;Filter&quot;, Filter);
            sds.SelectParameters.Add(&quot;CountryID&quot;, Country.ToString());
            //sds.Selecting += new SqlDataSourceSelectingEventHandler(sds_Selecting);

            List&lt;TrainingEvent&gt; results = new List&lt;TrainingEvent&gt;();
            sds.Select(new DataSourceSelectArguments()).Cast&lt;DataRowView&gt;().ToList().ForEach(o =&gt; LoadPersons_AddResult(o, ref results));

            return results;
        }

 private static void LoadPersons_AddResult(dynamic o, ref List&lt;Person&gt; results)
        {
            results.Add(new Person
            {
                Id = Convert.ToInt32(o[&quot;PersonID&quot;]),
                Name = Convert.ToString(o[&quot;Name&quot;]),
                DateOfBirth = Convert.ToDateTime(o[&quot;DateOfBirth&quot;]),
                Age = CalcAge(Convert.ToDateTime(o[&quot;DateOfBirth&quot;]))
            });
        }

public decimal CalcAge(DateTime DOB) {
TimeSpan ts = DateTime.Now-DOB;
return Convert.ToDecimal(ts.TotalDays/365);
}
</pre>
<p>At this point, if you are familiar with Linq, you may be thinking of how the same can be accomplished without much effort by simply returning &#8220;new&#8221; within your linq query. (PM me if you are unsure what I mean by this).</p>
<p>This is true, you could do this, but as complexity increases, you quickly have to look to other alternatives or your LINQ will increase in complexity and create more room for error. </p>
<p>Consider the following strongly typed example:</p>
<pre class="brush: csharp; title: ; notranslate">
public List&lt;Computer&gt; Computers {get;set;}
//the memory module, cpu and harddrive classes should be self explanatory
public class Computer {
public int Id {get;set;}
public List&lt;MemoryModule&gt; MemoryModules  {get;set;}
public List&lt;CPU&gt; CPUs {get;set;}
public List&lt;HardDrive&gt; HardDrives {get;set;}
}

 public static List&lt;Computers&gt; LoadComputersByFilter(string Filter, char Country)
        {
            SqlDataSource sds = new SqlDataSource();
            sds.ConnectionString = ConfigValues.ConnectionString; //encapsulates ConfigurationManager.ConnectionStrings
            sds.SelectCommandType = SqlDataSourceCommandType.StoredProcedure;
            sds.SelectCommand = &quot;get_computers&quot;;
            sds.SelectParameters.Add(&quot;Filter&quot;, Filter);
            sds.SelectParameters.Add(&quot;CountryID&quot;, Country.ToString());
            //sds.Selecting += new SqlDataSourceSelectingEventHandler(sds_Selecting);

            List&lt;Computers&gt; results = new List&lt;Computers&gt;();
            sds.Select(new DataSourceSelectArguments()).Cast&lt;DataRowView&gt;().ToList().ForEach(o =&gt; LoadComputersByFilter_AddResult(o, ref results));

//results might look something like
//compid,mmid,cpuid,hdid
//1,1,1,1 - denotes first stick
//1,2,1,1 - denotes second stick
//1,1,1,2 - denotes second hd
//1,1,2,1 - denotes second cpu
//this is just an example, and would be structured slightly different in a production scenario but the concept remains the same

//you can now bind each sub list to its own nested repeater, etc

            return results;
        }

private static void LoadPersons_AddResult(dynamic o, ref List&lt;Computer&gt; results)
        {
            MemoryModule mm = new MemoryModule()
            {
                //load info and determine specs or other complex results etc
            };

            CPU cpu = new CPU()
            {
                //load info and determine specs or other complex results etc
            };

            HardDrive hd = new HardDrive ()
            {
                //load info and determine specs or other complex results etc
            };

            results.Add(new Computer
            {
                Id=Convert.ToInt32(o[&quot;compid&quot;]),
                MemoryModule = mm,
                CPU = cpu,
                HardDrive = hd
            });
        }
</pre>
<p>As illustrated by the above example, you can easily nest lists within one another without worrying about having to recode a casting mechanism from the custom return type from  autogenerated LINQ dbml, or without having to modify the dbml file directly (which resets on updates btw).</p>
<p>The above can be accomplished using LINQ to SQL and lambda expressions, but it will require more practice on your part and is not as explicit IMO.</p>
<p>You also may be wondering why the database call was made by a single stored procedure rather than three separate calls.. If you are unsure, consider the math. Using 1 call to return 4 rows is faster and less work on the database than using 3 calls to return 4 rows.</p>
<p>I should mention there is an alternative approach of creating a custom class that inherits from IEnumerable and can intercept the lazy loading that occurs, but this actually takes more time in my opinion, and may be more prone to error as there are more steps involved.</p>
<p>Enjoy. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>meta: Linq DataReader Load Nested List of Objects and Complex Data Results from SqlDataSource</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ronniediaz.wordpress.com/1519/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ronniediaz.wordpress.com/1519/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ronniediaz.com&#038;blog=5020457&#038;post=1519&#038;subd=ronniediaz&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ronniediaz.com/2013/01/16/multiple-stored-procedures-with-same-return-type-in-linq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b052ad4849d4fad2483e0a06dc41c572?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ronnie Diaz</media:title>
		</media:content>
	</item>
	</channel>
</rss>
