<?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>Yanachik.org</title>
	<atom:link href="http://www.yanachik.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yanachik.org</link>
	<description>IT Administration and Application Development</description>
	<lastBuildDate>Wed, 07 Apr 2010 22:39:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Testing mobile WordPress</title>
		<link>http://www.yanachik.org/2010/04/07/testing-mobile-wordpress/</link>
		<comments>http://www.yanachik.org/2010/04/07/testing-mobile-wordpress/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 22:30:31 +0000</pubDate>
		<dc:creator>kyanachik</dc:creator>
				<category><![CDATA[Test]]></category>

		<guid isPermaLink="false">http://www.yanachik.org/2010/04/07/testing-mobile-wordpress/</guid>
		<description><![CDATA[This is a test. How do images work?]]></description>
			<content:encoded><![CDATA[<p>This is a test.  How do images work?</p>
<p><a href="http://www.yanachik.org/wp-content/uploads/2010/04/p_1600_1200_3409D20F-393B-4125-9E2D-888C0DEF10E1.jpeg"><img src="http://www.yanachik.org/wp-content/uploads/2010/04/p_1600_1200_3409D20F-393B-4125-9E2D-888C0DEF10E1.jpeg" alt="" class="alignnone size-full" /></a></p>
<p><a href="http://www.yanachik.org/wp-content/uploads/2010/04/p_1600_1200_99C9228A-E0A2-4C6A-9A3D-E95C788BEC73.jpeg"><img src="http://www.yanachik.org/wp-content/uploads/2010/04/p_1600_1200_99C9228A-E0A2-4C6A-9A3D-E95C788BEC73.jpeg" alt="" class="alignnone size-full" /></a></p>
<p><a href="http://www.yanachik.org/wp-content/uploads/2010/04/p_1600_1200_9F74EDC5-529C-47F1-A5D3-17A994F3EC4A.jpeg"><img src="http://www.yanachik.org/wp-content/uploads/2010/04/p_1600_1200_9F74EDC5-529C-47F1-A5D3-17A994F3EC4A.jpeg" alt="" class="alignnone size-full" /></a></p>
<p><a href="http://www.yanachik.org/wp-content/uploads/2010/04/p_1600_1200_21D8AA81-CF88-4F07-B4DC-235AD0EA9265.jpeg"><img src="http://www.yanachik.org/wp-content/uploads/2010/04/p_1600_1200_21D8AA81-CF88-4F07-B4DC-235AD0EA9265.jpeg" alt="" class="alignnone size-full" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.yanachik.org/2010/04/07/testing-mobile-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to return a SQL Report as a PDF/Excel/CSV file from an ASP.Net MVC controller</title>
		<link>http://www.yanachik.org/2010/02/26/how-to-return-a-sql-report-as-a-pdfexcelcsv-file-from-as-asp-net-mvc-controller/</link>
		<comments>http://www.yanachik.org/2010/02/26/how-to-return-a-sql-report-as-a-pdfexcelcsv-file-from-as-asp-net-mvc-controller/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 16:38:24 +0000</pubDate>
		<dc:creator>kyanachik</dc:creator>
				<category><![CDATA[Website Development]]></category>

		<guid isPermaLink="false">http://www.yanachik.org/2010/02/26/how-to-return-a-sql-report-as-a-pdfexcelcsv-file-from-as-asp-net-mvc-controller/</guid>
		<description><![CDATA[SQL Reports is a wonderful tool for creating and publishing enterprise reports, yet it’s Web Forms viewer has it’s drawbacks such as requiring an Active-X control for printing and it’s not available in ASP.Net MVC. A good solution to utilizing SQL Reports in an ASP.Net MVC application is to use the SQL Reports Web Services [...]]]></description>
			<content:encoded><![CDATA[<p>SQL Reports is a wonderful tool for creating and publishing enterprise reports, yet it’s Web Forms viewer has it’s drawbacks such as requiring an Active-X control for printing and it’s not available in ASP.Net MVC.</p>
<p>A good solution to utilizing SQL Reports in an ASP.Net MVC application is to use the SQL Reports Web Services API to render the report as a PDF, Excel, or CSV file and to have your action method return the rendered report as a Filestream to the browser.</p>
<blockquote><p>The source code for this project is available on a Subversion server here:&#160; <a title="http://code.yanachik.org/public/MVCSQLReportDemo/" href="http://code.yanachik.org/public/MVCSQLReportDemo/">http://code.yanachik.org/public/MVCSQLReportDemo/</a></p>
</blockquote>
<h2>The steps involved are:</h2>
<ol>
<li>Create a Web Reference to the SQL Reports Report Execution Web Service. </li>
<li>Create an Action Method that returns a FileStreamResult. </li>
<li>Create a proxy to the Web Service and set the credentials. </li>
<li>Render the report. </li>
<li>Return the report as a file stream. </li>
</ol>
<h3>Create a Web Reference to the SQL Reports Report Execution Web Service</h3>
<p>In your ASP.Net MVC project add a Web-Reference to the Report Execution Web Reference to the following URL:&#160; <a title="http://qasqlserver/ReportServer/ReportExecution2005.asmx" href="http://REPORTSERVER/ReportServer/ReportExecution2005.asmx">http://REPORTSERVER/ReportServer/ReportExecution2005.asmx</a> and name it rsExecService.&#160; Even if you’re using SQL Reports 2008, the Web Reference is still set for 2005.</p>
<p>To do this, right-click on the project in Visual Studio and select Add Web Reference…&#160; The “Add Web Reference” dialog will appear.&#160; Fill in the URL to your SQL Reports Report Execution Web Service and hit enter or click on the Go button.&#160; Once the Web Service is found you fill out the Web Reference Name with rsExecService and click the Add Reference button.</p>
<p><a href="http://www.yanachik.org/wp-content/uploads/2010/02/AddingWebReference.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="AddingWebReference" border="0" alt="AddingWebReference" src="http://www.yanachik.org/wp-content/uploads/2010/02/AddingWebReference_thumb.png" width="244" height="171" /></a> </p>
<h3>Create an Action Method that returns a FileStreamResult</h3>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:17f0787a-1435-47e5-bae2-85484d08b93e" class="wlWriterEditableSmartContent">
<pre style="background-color:#FFFFFF;overflow: auto;"><span style="color: #000000;">[System.Web.Mvc.OutputCache(NoStore </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">true</span><span style="color: #000000;">, Duration </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800080;">0</span><span style="color: #000000;">, VaryByParam </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;">*</span><span style="color: #800000;">"</span><span style="color: #000000;">)]
</span><span style="color: #0000FF;">public</span><span style="color: #000000;"> FileStreamResult PrintReport(</span><span style="color: #0000FF;">string</span><span style="color: #000000;"> id)
{

}</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>The System.Web.Mvc.OutputCache attribute tells your browser to not cache the report.&#160; If you have static data you can remove this attribute.</p>
<h3>Create a proxy to the Web Service and set the credentials</h3>
<h3>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:1057a4a3-31b2-4a5d-983b-f38a3c12fac9" class="wlWriterEditableSmartContent">
<pre style="background-color:#FFFFFF;overflow: auto;"><span style="color: #008000;">//</span><span style="color: #008000;"> Create a new proxy to the web service</span><span style="color: #008000;">
</span><span style="color: #000000;">rsExecService.ReportExecutionService rsExec </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> rsExecService.ReportExecutionService();

</span><span style="color: #008000;">//</span><span style="color: #008000;"> Authenticate to the Web service using Windows credentials</span><span style="color: #008000;">
</span><span style="color: #000000;">rsExec.Credentials </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> System.Net.NetworkCredential(</span><span style="color: #800000;">"</span><span style="color: #800000;">USERNAME</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">Password</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">DOMAIN</span><span style="color: #800000;">"</span><span style="color: #000000;">);

</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>Render the report</h3>
<p>When loading the report, the file name is the full path for the report.&#160; In this case “Test Report” is at the root of the Report Server.&#160; If it was in a folder then the path would be “/Folder 1/Folder 2/Report Name”.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:b86a741e-8b8b-4ff2-9c1c-59435834126f" class="wlWriterEditableSmartContent">
<pre style="background-color:#FFFFFF;overflow: auto;"><span style="color: #008000;">//</span><span style="color: #008000;"> Load the selected report.</span><span style="color: #008000;">
</span><span style="color: #000000;">rsExec.LoadReport(</span><span style="color: #800000;">"</span><span style="color: #800000;">/Test Report</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #0000FF;">null</span><span style="color: #000000;">);

</span><span style="color: #008000;">//</span><span style="color: #008000;"> Prepare Render arguments</span><span style="color: #008000;">
</span><span style="color: #0000FF;">string</span><span style="color: #000000;"> encoding </span><span style="color: #000000;">=</span><span style="color: #000000;"> String.Empty;
</span><span style="color: #0000FF;">string</span><span style="color: #000000;"> mimeType </span><span style="color: #000000;">=</span><span style="color: #000000;"> String.Empty;
</span><span style="color: #0000FF;">string</span><span style="color: #000000;"> extension </span><span style="color: #000000;">=</span><span style="color: #000000;"> String.Empty;
rsExecService.Warning[] warnings </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;">;
</span><span style="color: #0000FF;">string</span><span style="color: #000000;">[] streamIDs </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;">;

</span><span style="color: #008000;">//</span><span style="color: #008000;"> Prepare report parameters.</span><span style="color: #008000;">
</span><span style="color: #000000;">rsExecService.ParameterValue[] parameters </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> rsExecService.ParameterValue[</span><span style="color: #800080;">1</span><span style="color: #000000;">];
parameters[</span><span style="color: #800080;">0</span><span style="color: #000000;">] </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> rsExecService.ParameterValue();
parameters[</span><span style="color: #800080;">0</span><span style="color: #000000;">].Value </span><span style="color: #000000;">=</span><span style="color: #000000;"> id;
parameters[</span><span style="color: #800080;">0</span><span style="color: #000000;">].Name </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;">id</span><span style="color: #800000;">"</span><span style="color: #000000;">;

</span><span style="color: #008000;">//</span><span style="color: #008000;"> Set the parameters for the report needed.</span><span style="color: #008000;">
</span><span style="color: #000000;">rsExec.SetExecutionParameters(parameters, </span><span style="color: #800000;">"</span><span style="color: #800000;">en-us</span><span style="color: #800000;">"</span><span style="color: #000000;">);

</span><span style="color: #008000;">//</span><span style="color: #008000;">Render the report to a byte[]</span><span style="color: #008000;">
</span><span style="color: #000000;">Byte[] byteInfo </span><span style="color: #000000;">=</span><span style="color: #000000;"> rsExec.Render(</span><span style="color: #800000;">"</span><span style="color: #800000;">PDF</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #0000FF;">null</span><span style="color: #000000;">, </span><span style="color: #0000FF;">out</span><span style="color: #000000;"> extension, </span><span style="color: #0000FF;">out</span><span style="color: #000000;"> encoding, </span><span style="color: #0000FF;">out</span><span style="color: #000000;"> mimeType, </span><span style="color: #0000FF;">out</span><span style="color: #000000;"> warnings, </span><span style="color: #0000FF;">out</span><span style="color: #000000;"> streamIDs);
</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<h3>Return the report as a file stream. </h3>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:a93b91a3-2b77-49a8-bb6c-b0e30344de08" class="wlWriterEditableSmartContent">
<pre style="background-color:#FFFFFF;overflow: auto;"><span style="color: #000000;">System.IO.MemoryStream ms </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> System.IO.MemoryStream();
ms.Write(byteInfo, </span><span style="color: #800080;">0</span><span style="color: #000000;">, byteInfo.Length);
ms.Position </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800080;">0</span><span style="color: #000000;">;

HttpContext.Response.AddHeader(</span><span style="color: #800000;">"</span><span style="color: #800000;">content-disposition</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">attachment; filename=FILENAME.pdf</span><span style="color: #800000;">"</span><span style="color: #000000;">);

</span><span style="color: #0000FF;">return</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> FileStreamResult(ms, </span><span style="color: #800000;">"</span><span style="color: #800000;">application/pdf</span><span style="color: #800000;">"</span><span style="color: #000000;">);
</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<h3>The final Action Method looks like this:</h3>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:1fc8b796-bbe4-4f15-8679-6836405275cc" class="wlWriterEditableSmartContent">
<pre style="background-color:#FFFFFF;overflow: auto;"><span style="color: #000000;">[System.Web.Mvc.OutputCache(NoStore </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">true</span><span style="color: #000000;">, Duration </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800080;">0</span><span style="color: #000000;">, VaryByParam </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;">*</span><span style="color: #800000;">"</span><span style="color: #000000;">)]
</span><span style="color: #0000FF;">public</span><span style="color: #000000;"> FileStreamResult PrintReport(</span><span style="color: #0000FF;">string</span><span style="color: #000000;"> id)
{
    </span><span style="color: #008000;">//</span><span style="color: #008000;"> Create a new proxy to the web service</span><span style="color: #008000;">
</span><span style="color: #000000;">    rsExecService.ReportExecutionService rsExec </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> rsExecService.ReportExecutionService();

    </span><span style="color: #008000;">//</span><span style="color: #008000;"> Authenticate to the Web service using Windows credentials</span><span style="color: #008000;">
</span><span style="color: #000000;">    rsExec.Credentials </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> System.Net.NetworkCredential(</span><span style="color: #800000;">"</span><span style="color: #800000;">USERNAME</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">Password</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">DOMAIN</span><span style="color: #800000;">"</span><span style="color: #000000;">);

    </span><span style="color: #008000;">//</span><span style="color: #008000;"> Load the selected report.</span><span style="color: #008000;">
</span><span style="color: #000000;">    rsExec.LoadReport(</span><span style="color: #800000;">"</span><span style="color: #800000;">/Test Report</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #0000FF;">null</span><span style="color: #000000;">);

    </span><span style="color: #008000;">//</span><span style="color: #008000;"> Prepare Render arguments</span><span style="color: #008000;">
</span><span style="color: #000000;">    </span><span style="color: #0000FF;">string</span><span style="color: #000000;"> encoding </span><span style="color: #000000;">=</span><span style="color: #000000;"> String.Empty;
    </span><span style="color: #0000FF;">string</span><span style="color: #000000;"> mimeType </span><span style="color: #000000;">=</span><span style="color: #000000;"> String.Empty;
    </span><span style="color: #0000FF;">string</span><span style="color: #000000;"> extension </span><span style="color: #000000;">=</span><span style="color: #000000;"> String.Empty;
    rsExecService.Warning[] warnings </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;">;
    </span><span style="color: #0000FF;">string</span><span style="color: #000000;">[] streamIDs </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;">;

    </span><span style="color: #008000;">//</span><span style="color: #008000;"> Prepare report parameters.</span><span style="color: #008000;">
</span><span style="color: #000000;">    rsExecService.ParameterValue[] parameters </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> rsExecService.ParameterValue[</span><span style="color: #800080;">1</span><span style="color: #000000;">];
    parameters[</span><span style="color: #800080;">0</span><span style="color: #000000;">] </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> rsExecService.ParameterValue();
    parameters[</span><span style="color: #800080;">0</span><span style="color: #000000;">].Value </span><span style="color: #000000;">=</span><span style="color: #000000;"> id;
    parameters[</span><span style="color: #800080;">0</span><span style="color: #000000;">].Name </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;">id</span><span style="color: #800000;">"</span><span style="color: #000000;">;

    </span><span style="color: #008000;">//</span><span style="color: #008000;"> Set the parameters for the report needed.</span><span style="color: #008000;">
</span><span style="color: #000000;">    rsExec.SetExecutionParameters(parameters, </span><span style="color: #800000;">"</span><span style="color: #800000;">en-us</span><span style="color: #800000;">"</span><span style="color: #000000;">);

    </span><span style="color: #008000;">//</span><span style="color: #008000;">Render the report to a byte[]</span><span style="color: #008000;">
</span><span style="color: #000000;">    Byte[] byteInfo </span><span style="color: #000000;">=</span><span style="color: #000000;"> rsExec.Render(</span><span style="color: #800000;">"</span><span style="color: #800000;">PDF</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #0000FF;">null</span><span style="color: #000000;">, </span><span style="color: #0000FF;">out</span><span style="color: #000000;"> extension, </span><span style="color: #0000FF;">out</span><span style="color: #000000;"> encoding, </span><span style="color: #0000FF;">out</span><span style="color: #000000;"> mimeType, </span><span style="color: #0000FF;">out</span><span style="color: #000000;"> warnings, </span><span style="color: #0000FF;">out</span><span style="color: #000000;"> streamIDs);

    System.IO.MemoryStream ms </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> System.IO.MemoryStream();
    ms.Write(byteInfo, </span><span style="color: #800080;">0</span><span style="color: #000000;">, byteInfo.Length);
    ms.Position </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800080;">0</span><span style="color: #000000;">;

    HttpContext.Response.AddHeader(</span><span style="color: #800000;">"</span><span style="color: #800000;">content-disposition</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">attachment; filename=FILENAME.pdf</span><span style="color: #800000;">"</span><span style="color: #000000;">);

    </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> FileStreamResult(ms, </span><span style="color: #800000;">"</span><span style="color: #800000;">application/pdf</span><span style="color: #800000;">"</span><span style="color: #000000;">);
}</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
]]></content:encoded>
			<wfw:commentRss>http://www.yanachik.org/2010/02/26/how-to-return-a-sql-report-as-a-pdfexcelcsv-file-from-as-asp-net-mvc-controller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Enable Firefox to Login Automatically to Intranet Servers</title>
		<link>http://www.yanachik.org/2009/07/29/how-to-enable-firefox-to-login-automatically-to-intranet-servers/</link>
		<comments>http://www.yanachik.org/2009/07/29/how-to-enable-firefox-to-login-automatically-to-intranet-servers/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 12:14:04 +0000</pubDate>
		<dc:creator>kyanachik</dc:creator>
				<category><![CDATA[Network Administration]]></category>
		<category><![CDATA[IIS Firefox NTLM]]></category>

		<guid isPermaLink="false">http://www.yanachik.org/2009/07/29/how-to-enable-firefox-to-login-automatically-to-intranet-servers/</guid>
		<description><![CDATA[The following link details the steps necessary to get Firefox to pass the logged-in credentials of the current user to a Windows IIS server for authentication. http://sivel.net/2007/05/firefox-ntlm-sso/]]></description>
			<content:encoded><![CDATA[<p>The following link details the steps necessary to get Firefox to pass the logged-in credentials of the current user to a Windows IIS server for authentication.</p>
<p><a title="http://sivel.net/2007/05/firefox-ntlm-sso/" href="http://sivel.net/2007/05/firefox-ntlm-sso/">http://sivel.net/2007/05/firefox-ntlm-sso/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.yanachik.org/2009/07/29/how-to-enable-firefox-to-login-automatically-to-intranet-servers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Linq To SQL Entity Data Context InsertOnSubmit vs Attach</title>
		<link>http://www.yanachik.org/2008/11/10/linq-to-sql-entity-data-context-insertonsubmit-vs-attach/</link>
		<comments>http://www.yanachik.org/2008/11/10/linq-to-sql-entity-data-context-insertonsubmit-vs-attach/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 19:28:49 +0000</pubDate>
		<dc:creator>kyanachik</dc:creator>
				<category><![CDATA[Website Development]]></category>

		<guid isPermaLink="false">http://www.yanachik.org/?p=100</guid>
		<description><![CDATA[After writing Unit tests lately I&#8217;ve been trying to test my business logic (which is all done in the Entity Manager) without actually submitting data to the database.  I&#8217;ll create my Items and Customers and do an InsertOnSubmit to get them into the Entity Manager context, but never call SubmitChanges(). This gets the data into [...]]]></description>
			<content:encoded><![CDATA[<p>After writing Unit tests lately I&#8217;ve been trying to test my business logic (which is all done in the Entity Manager) without actually submitting data to the database.  I&#8217;ll create my Items and Customers and do an InsertOnSubmit to get them into the Entity Manager context, but never call SubmitChanges().</p>
<p>This gets the data into the database, however, it does not get the objects into the EntityManager&#8217;s data context.  If I were to create a Customer Order and then create a Customer Order Item I can then Add the Customer Order Item to the Customer Order and the order item is then available within the Customer Order context, but the Customer Order is still not available within the Entity Manager context.  To do that, you need to Attach the Customer Order to the CustomerOrders table.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yanachik.org/2008/11/10/linq-to-sql-entity-data-context-insertonsubmit-vs-attach/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2008 Service Pack 1 Javascript Formatting Drives Me Nuts</title>
		<link>http://www.yanachik.org/2008/10/31/visual-studio-2008-service-pack-1-javascript-formatting-drives-me-nuts/</link>
		<comments>http://www.yanachik.org/2008/10/31/visual-studio-2008-service-pack-1-javascript-formatting-drives-me-nuts/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 13:01:28 +0000</pubDate>
		<dc:creator>kyanachik</dc:creator>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>

		<guid isPermaLink="false">http://www.yanachik.org/?p=98</guid>
		<description><![CDATA[With all of the goodies included with Service Pack 1 for Visual Studio 2008, the one thing that Microsoft did not do right is Javascript formatting.  First of all, it&#8217;s really slow.  Second of all, it doesn&#8217;t seem to be consistent with it&#8217;s indenting. For me, I&#8217;d like to do my own formatting.  So, to [...]]]></description>
			<content:encoded><![CDATA[<p>With all of the goodies included with Service Pack 1 for Visual Studio 2008, the one thing that Microsoft did not do right is Javascript formatting.  First of all, it&#8217;s really slow.  Second of all, it doesn&#8217;t seem to be consistent with it&#8217;s indenting.</p>
<p>For me, I&#8217;d like to do my own formatting.  So, to turn off the Javascript formatting in Visual Studio 2008 go to Tools &#8211; Options &#8211; Text Editor &#8211; JScript &#8211; Formatting.  And uncheck all of the checkboxes in the Automatic Formatting group.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yanachik.org/2008/10/31/visual-studio-2008-service-pack-1-javascript-formatting-drives-me-nuts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Yahoo DataTable editorSaveEvent Change from YUI 2.5.2 to 2.6.0</title>
		<link>http://www.yanachik.org/2008/10/10/yahoo-datatable-editorsaveevent-change-from-yui-252-to-260/</link>
		<comments>http://www.yanachik.org/2008/10/10/yahoo-datatable-editorsaveevent-change-from-yui-252-to-260/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 16:22:41 +0000</pubDate>
		<dc:creator>kyanachik</dc:creator>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[Yahoo.YUI.DataTable]]></category>

		<guid isPermaLink="false">http://www.yanachik.org/?p=96</guid>
		<description><![CDATA[In Yahoo YUI 2.5.2 the Yahoo DataTable editorSave Event&#8217;sData Cell Editor has changed.  To get to the data record for the editor it is no-longer oArgs.editor.record, but rather oArgs.editor.getRecord(); DataTable.subscribe("editorSaveEvent", EditorChanged); function EditorChanged(oArgs) { var record = oArgs.editor.getRecord(); }]]></description>
			<content:encoded><![CDATA[<p>In Yahoo YUI 2.5.2 the Yahoo DataTable editorSave Event&#8217;sData Cell Editor has changed.  To get to the data record for the editor it is no-longer oArgs.editor.record, but rather oArgs.editor.getRecord();</p>
<pre lang="javascript" line="1">DataTable.subscribe("editorSaveEvent", EditorChanged);

function EditorChanged(oArgs)
{
    var record = oArgs.editor.getRecord();
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.yanachik.org/2008/10/10/yahoo-datatable-editorsaveevent-change-from-yui-252-to-260/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to preconfigure your Ruby on Rails application for MySQL</title>
		<link>http://www.yanachik.org/2008/08/19/how-to-preconfigure-your-ruby-on-rails-application-for-mysql/</link>
		<comments>http://www.yanachik.org/2008/08/19/how-to-preconfigure-your-ruby-on-rails-application-for-mysql/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 20:04:30 +0000</pubDate>
		<dc:creator>kyanachik</dc:creator>
				<category><![CDATA[Website Development]]></category>

		<guid isPermaLink="false">http://www.yanachik.org/?p=94</guid>
		<description><![CDATA[Rails 2.0.2 now defaults your app&#8217;s database to SQLite3 (I believe because OSX comes pre-shipped with it).  In order to generate a rails application and having it setup to MySQL is pretty easy. In your when you create your app add (-d mysql) in the rails command:  rails -d mysql myapp]]></description>
			<content:encoded><![CDATA[<p>Rails 2.0.2 now defaults your app&#8217;s database to SQLite3 (I believe because OSX comes pre-shipped with it).  In order to generate a rails application and having it setup to MySQL is pretty easy.</p>
<p>In your when you create your app add (-d mysql) in the rails command:  rails -d mysql myapp</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yanachik.org/2008/08/19/how-to-preconfigure-your-ruby-on-rails-application-for-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bill Gates&#8217; last day at Microsoft</title>
		<link>http://www.yanachik.org/2008/03/04/bill-gates-last-day-at-microsoft/</link>
		<comments>http://www.yanachik.org/2008/03/04/bill-gates-last-day-at-microsoft/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 20:43:09 +0000</pubDate>
		<dc:creator>kyanachik</dc:creator>
				<category><![CDATA[Network Administration]]></category>

		<guid isPermaLink="false">http://www.yanachik.org/2008/03/04/bill-gates-last-day-at-microsoft/</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="373" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/i1M-IafCor4&amp;rel=1&amp;border=1" /><param name="wmode" value="transparent" /><embed type="application/x-shockwave-flash" width="425" height="373" src="http://www.youtube.com/v/i1M-IafCor4&amp;rel=1&amp;border=1" wmode="transparent"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.yanachik.org/2008/03/04/bill-gates-last-day-at-microsoft/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A series of Short reviews&#8230;</title>
		<link>http://www.yanachik.org/2008/03/04/a-series-of-short-reviews/</link>
		<comments>http://www.yanachik.org/2008/03/04/a-series-of-short-reviews/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 19:19:58 +0000</pubDate>
		<dc:creator>kyanachik</dc:creator>
				<category><![CDATA[Website Development]]></category>

		<guid isPermaLink="false">http://www.yanachik.org/2008/03/04/a-series-of-short-reviews/</guid>
		<description><![CDATA[There were a series of announcements and reviews that came out lately, here&#8217;s a sample: Google Gears has gone mobile &#8211; what a great idea.  When your mobile device can&#8217;t get a signal (such as on an airplane) but you need to do some work, you can now access your mobile apps though google gears.  [...]]]></description>
			<content:encoded><![CDATA[<p>There were a series of announcements and reviews that came out lately, here&#8217;s a sample:</p>
<div><a title="Google Mobile" href="http://www.flickr.com/photos/14047056@N05/2310082233/"><img src="http://static.flickr.com/3007/2310082233_d5dcba5f6b.jpg" border="0" alt="Google Mobile" /></a><a href="http://googlemobile.blogspot.com/2008/03/shifting-google-gears-to-mobile.html" target="_blank">Google Gears has gone mobile</a> &#8211; what a great idea.  When your mobile device can&#8217;t get a signal (such as on an airplane) but you need to do some work, you can now access your mobile apps though google gears.  Zoho runs on Google Gears, hopefully Zoho Planner is supported.  Unfortunately, Google Gears only runs on IE Mobile.</div>
<div><a title="Yahoo onePlace Overview" href="http://www.flickr.com/photos/14047056@N05/2310082285/"><img src="http://static.flickr.com/2109/2310082285_068cbf1b55.jpg" border="0" alt="Yahoo onePlace Overview" /></a>Yahoo has announced <a href="http://mobile.yahoo.com/oneplace" target="_blank">onePlace</a> which is a mobile service designed to take your Yahoo settings and make them available on your mobile device.  Your stock portfolio is available, your favorites, your Flickr account, your My Yahoo feeds &#8211; everything is available.  Look for this to come out shortly.</div>
<div><a title="Google Docs Vs Microsoft Workspaces" href="http://www.flickr.com/photos/14047056@N05/2310886448/"><img src="http://static.flickr.com/2346/2310886448_dc1a0f93b0.jpg" border="0" alt="Google Docs Vs Microsoft Workspaces" align="left" /></a> Read Write Web has a good <a href="http://www.readwriteweb.com/archives/office_live_workspace_vs_google_docs_feature_by_feature.php" target="_blank">feature comparison</a> between Google Docs and Microsoft Office Workspaces.  Google has everything between email, documents, calendars, etc.  For the life of me I can&#8217;t figure out why they don&#8217;t have a task tracking system.  Is it too easy?  Too basic for them?  It would be a hot commodity.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.yanachik.org/2008/03/04/a-series-of-short-reviews/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Presentation Foundation Flotzam has a new UI</title>
		<link>http://www.yanachik.org/2008/03/02/windows-presentation-foundation-flotzam-has-a-new-ui/</link>
		<comments>http://www.yanachik.org/2008/03/02/windows-presentation-foundation-flotzam-has-a-new-ui/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 04:20:07 +0000</pubDate>
		<dc:creator>kyanachik</dc:creator>
				<category><![CDATA[Website Development]]></category>

		<guid isPermaLink="false">http://www.yanachik.org/2008/03/02/windows-presentation-foundation-flotzam-has-a-new-ui/</guid>
		<description><![CDATA[Flotzam, a life streaming screensaver based all on Microsoft&#8217;s new Windows Presentation Foundation (WPF) put out a contest for redesigned UI.&#160; Here&#8217;s a screencast of the winner. Flotzam Design Contest Winner]]></description>
			<content:encoded><![CDATA[<p>Flotzam, a life streaming screensaver based all on Microsoft&#8217;s new Windows Presentation Foundation (WPF) put out a contest for redesigned UI.&nbsp; Here&#8217;s a screencast of the winner. </p>
<p><iframe src="http://visitmix.com/blogs/News/523/player/" frameborder="0" width="320" scrolling="no" height="325"></iframe><br /><a href="http://visitmix.com/blogs/News/Flotzam-Design-Contest-Winner/">Flotzam Design Contest Winner</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.yanachik.org/2008/03/02/windows-presentation-foundation-flotzam-has-a-new-ui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
