<?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>Learning in progress</title>
	<atom:link href="http://kishordaher.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://kishordaher.wordpress.com</link>
	<description>With great power comes great responsibility.</description>
	<lastBuildDate>Wed, 08 Jun 2011 17:09:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='kishordaher.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/d482b730b4a54c6497362ae9e2e29418?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Learning in progress</title>
		<link>http://kishordaher.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://kishordaher.wordpress.com/osd.xml" title="Learning in progress" />
	<atom:link rel='hub' href='http://kishordaher.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Historical Volatility</title>
		<link>http://kishordaher.wordpress.com/2011/03/26/historical-volatility/</link>
		<comments>http://kishordaher.wordpress.com/2011/03/26/historical-volatility/#comments</comments>
		<pubDate>Sat, 26 Mar 2011 16:14:51 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[F#]]></category>
		<category><![CDATA[Finance]]></category>
		<category><![CDATA[Functional Programming]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://kishordaher.wordpress.com/2011/03/26/historical-volatility/</guid>
		<description><![CDATA[The code snippet is capable of calculating historical volatility using Close Price, High Low Price and Close High Low Price methods. Simply provide symbol, start date and end date of the specific volatility method and it extracts the market data from the yahoo service and calculated the volatility. open System open System.IO open System.Xml open [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=192&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The code snippet is capable of calculating historical volatility using Close Price, High Low Price and Close High Low Price methods. Simply provide symbol, start date and end date of the specific volatility method and it extracts the market data from the yahoo service and calculated the volatility.</p>
<div class="csharpcode">
<pre class="csharpcode">open System
open System.IO
open System.Xml
open System.Text
open System.Net
open System.Globalization

let makeUrl symbol (dfrom:DateTime) (dto:DateTime) =
    <span class="rem">//Uses the not-so-known chart-data:</span>
    <span class="kwrd">new</span> Uri(<span class="str">"http://ichart.finance.yahoo.com/table.csv?s="</span> + symbol +
       <span class="str">"&amp;e="</span> + dto.Day.ToString() + <span class="str">"&amp;d="</span> + dto.Month.ToString() + <span class="str">"&amp;f="</span> + dto.Year.ToString() +
       <span class="str">"&amp;g=d&amp;b="</span> + dfrom.Day.ToString() + <span class="str">"&amp;a="</span> + dfrom.Month.ToString() + <span class="str">"&amp;c="</span> + dfrom.Year.ToString() +
       <span class="str">"&amp;ignore=.csv"</span>)

let fetch (url : Uri) =
    let req = WebRequest.Create (url) <img src='http://s2.wp.com/wp-includes/images/smilies/icon_confused.gif' alt=':?' class='wp-smiley' /> &gt; HttpWebRequest
    use stream = req.GetResponse().GetResponseStream()
    use reader = <span class="kwrd">new</span> StreamReader(stream)
    reader.ReadToEnd()

let reformat (response:<span class="kwrd">string</span>) =
    let split (mark:<span class="kwrd">char</span>) (data:<span class="kwrd">string</span>) =
        data.Split(mark) |&gt; Array.toList
    response |&gt; split <span class="str">'\n'</span>
    |&gt; List.filter (fun f -&gt; f&lt;&gt;<span class="str">""</span>)
    |&gt; List.map (split <span class="str">','</span>) 

let getRequest uri = (fetch &gt;&gt; reformat) uri

type MarketData =
    {Date: DateTime;
     Open: <span class="kwrd">double</span>;
     High: <span class="kwrd">double</span>;
     Low: <span class="kwrd">double</span>;
     Close: <span class="kwrd">double</span>;
     Volume: <span class="kwrd">int</span>;
     AdjClose: <span class="kwrd">double</span>;}

let converter (data:List&lt;List&lt;<span class="kwrd">string</span>&gt;&gt;) =
    [<span class="kwrd">for</span> dataArray <span class="kwrd">in</span> data.Tail <span class="kwrd">do</span>
        <span class="kwrd">yield</span> {Date = DateTime.ParseExact(dataArray.[0],<span class="str">"yyyy-MM-dd"</span>,CultureInfo.InvariantCulture);
          Open = System.Convert.ToDouble(dataArray.[1]);
          High = System.Convert.ToDouble(dataArray.[2]);
          Low = System.Convert.ToDouble(dataArray.[3]);
          Close = System.Convert.ToDouble(dataArray.[4]);
          Volume = System.Convert.ToInt32(dataArray.[5]);
          AdjClose = System.Convert.ToDouble(dataArray.[6])}]

<span class="rem">//Example: Microsoft, from 2010-03-20 to 2010-04-21</span>
<span class="rem">//getMarketData "MSFT" (new DateTime(2010,1,1)) (new DateTime(2010,1,30));;</span>
let getMarketData symbol fromDate toDate = makeUrl symbol fromDate toDate  |&gt; getRequest |&gt; converter

<span class="rem">//highLowVolatility "MSFT" (new DateTime(2010,1,1)) (new DateTime(2010,1,30));;</span>
let highLowVolatility symbol (fromDate:DateTime) (toDate:DateTime) =
    let data = getMarketData symbol fromDate toDate
    data
    |&gt; List.fold (fun acc mktdata -&gt; acc + Math.Log(mktdata.High / mktdata.Low) )  0.0
    |&gt; (*) ( 1.0 / ( ( 2.0 * System.Convert.ToDouble(data.Length)) * System.Math.Sqrt(System.Math.Log(2.0)) ) )
    |&gt; (*) (System.Math.Sqrt 252.0)

<span class="rem">//closeVolatility "MSFT" (new DateTime(2010,1,1)) (new DateTime(2010,1,30));;</span>
let closeVolatility symbol (fromDate:DateTime) (toDate:DateTime) =
        let data = getMarketData symbol fromDate toDate
        let rec close (dt: MarketData list)  =
            match dt with
            | x::y::[] -&gt; System.Math.Pow(System.Math.Log((y.Close / x.Close)),2.0)
            | x::y::tail -&gt; System.Math.Pow(System.Math.Log((y.Close / x.Close)),2.0)  + (close (List.append [y] tail))
            | [] -&gt; 0.0

        let rec close1 (dt: MarketData list)  =
            match dt with
            | x::y::[] -&gt; System.Math.Log(y.Close / x.Close)
            | x::y::tail -&gt; System.Math.Log(y.Close / x.Close)  + (close1 (List.append [y] tail))
            | [] -&gt; 0.0

        let firstValue = data
                            |&gt; close
                            |&gt; (*) (1.0 / (System.Convert.ToDouble(data.Length - 1) - 1.0))

        let secondValue = (System.Math.Pow((close1 data), 2.0)) * ( 1.0 / (System.Convert.ToDouble(data.Length - 1) *(System.Convert.ToDouble(data.Length - 1) - 1.0 )))

        System.Math.Sqrt (firstValue - secondValue) * System.Math.Sqrt(252.0)     

<span class="rem">//highLowCloseVolatility "MSFT" (new DateTime(2010,1,1)) (new DateTime(2010,1,30));;</span>
let highLowCloseVolatility symbol (fromDate:DateTime) (toDate:DateTime) =
        let data = getMarketData symbol fromDate toDate
        let highLow (dt: MarketData list) =
                    dt
                    |&gt; List.fold (fun acc x -&gt; acc + (0.5) * System.Math.Pow(System.Math.Log(x.High / x.Low),2.0))  0.0
                    |&gt; (*) ( 1.0 / System.Convert.ToDouble(data.Length - 1))

        let rec closeCalc (dt: MarketData list)  =
                    match dt with
                    | x::y::[] -&gt; ((2.0 * System.Math.Log(2.0)) - 1.0) * System.Math.Pow(System.Math.Log((y.Close / x.Close)),2.0)
                    | x::y::tail -&gt; ((2.0 * System.Math.Log(2.0)) - 1.0) * System.Math.Pow(System.Math.Log((y.Close / x.Close)),2.0)  + (closeCalc (List.append [y] tail))
                    | [] -&gt; 0.0

        let close (dt: MarketData list) =
                dt
                |&gt; closeCalc
                |&gt; (*) ( 1.0 / System.Convert.ToDouble(data.Length - 1))

        System.Math.Sqrt(252.0) * System.Math.Sqrt((highLow data.Tail) - (close data))</pre>
<p>&nbsp;</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kishordaher.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kishordaher.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kishordaher.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kishordaher.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/192/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=192&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2011/03/26/historical-volatility/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>
	</item>
		<item>
		<title>Open new window with its own UI thread.</title>
		<link>http://kishordaher.wordpress.com/2010/08/28/open-new-window-with-its-own-ui-thread/</link>
		<comments>http://kishordaher.wordpress.com/2010/08/28/open-new-window-with-its-own-ui-thread/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 03:06:05 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/?p=188</guid>
		<description><![CDATA[The code below speaks for itself on how to open multiple windows which have there own dispatcher. private void CreateNewWindow() { Thread thread = new Thread(() =&#62; { Window1 w = new Window1(); w.Show(); w.Closed += (sender2, e2) =&#62; w.Dispatcher.InvokeShutdown(); System.Windows.Threading.Dispatcher.Run(); }); thread.SetApartmentState(ApartmentState.STA); thread.Start(); }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=188&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>The code below speaks for itself on how to open multiple windows which have there own dispatcher.
private void CreateNewWindow()
  {
   Thread thread = new Thread(() =&gt;
    {
     Window1 w = new Window1();
     w.Show();

<strong>     w.Closed += (sender2, e2) =&gt;
      w.Dispatcher.InvokeShutdown();
</strong>
     System.Windows.Threading.Dispatcher.Run();
    });

   thread.SetApartmentState(ApartmentState.STA);
   thread.Start();
  }</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kishordaher.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kishordaher.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kishordaher.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kishordaher.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/188/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=188&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2010/08/28/open-new-window-with-its-own-ui-thread/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>
	</item>
		<item>
		<title>Powershell &#8211; Copyright header generator script</title>
		<link>http://kishordaher.wordpress.com/2010/03/11/powershell-copyright-header-generator-script/</link>
		<comments>http://kishordaher.wordpress.com/2010/03/11/powershell-copyright-header-generator-script/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 05:39:44 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/?p=169</guid>
		<description><![CDATA[Recently i have been doing pair programming with my colleague Andre and thanks to him, i learned powershell programming. Most of the code files in the project need some kind of copyright information at the top. One way to add these headers is by using code formatting tools like stylecop or resharper. But with my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=169&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently i have been doing pair programming with my colleague <a href="http://decav.com/" target="_blank">Andre</a> and thanks to him, i learned powershell programming. Most of the code files in the project need some kind of copyright information at the top. One way to add these headers is by using code formatting tools like stylecop or resharper. But with my newly acquired skills i believe its better to write a small script to append the header on all code files using powershell.</p>
<p>Problem: (Add copyright information to all the files with a given extension found in the target and its subdirectories.)</p>
<ul>
<li>Read all the files from target directory and its subdirectories with given extension.</li>
<li>Append header text at the beginning of the file with copyright information.</li>
</ul>
<p>Solution:</p>
<div id="codeSnippetWrapper" style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:97.5%;">
<div id="codeSnippet" style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;">
<div id="_mcePaste"><span style="color:#ff6600;"><span style="color:#0000ff;">param</span>($target</span> = <span style="color:#800000;">"c:\\tmp", <span style="color:#000000;"><span style="color:#ff6600;">$companyname</span> = <span style="color:#800000;">"Lab49")</span></span></span></div>
<div id="_mcePaste"><span style="color:#ff6600;">$header</span> = <span style="color:#800000;">"//-----------------------------------------------------------------------</span></div>
<div id="_mcePaste"><span style="color:#800000;">// &lt;copyright file=""{0}"" company=""{1}""&gt;</span></div>
<div id="_mcePaste"><span style="color:#800000;">//     Copyright (c) {1}. All rights reserved.</span></div>
<div id="_mcePaste"><span style="color:#800000;">// &lt;/copyright&gt;</span></div>
<div id="_mcePaste"><span style="color:#800000;">//-----------------------------------------------------------------------`r`n"</span></div>
<div id="_mcePaste">function <span style="color:#ff00ff;">Write-Header</span> (<span style="color:#ff6600;">$file</span>) {</div>
<div id="_mcePaste">    <span style="color:#ff6600;">$content</span> = <span style="color:#0000ff;">Get-Content</span> <span style="color:#ff6600;">$file</span></div>
<div id="_mcePaste">    <span style="color:#ff6600;">$filename = <span style="color:#0000ff;">Split-Path</span> <span style="color:#000000;">-Leaf</span> $file</span></div>

<span style="color:#ff6600;">    $fileheader = $header <span style="color:#c0c0c0;">-f</span> $filename,$companyname</span>
<div id="_mcePaste">    <span style="color:#0000ff;">Set-Content</span> <span style="color:#ff6600;">$file $fileheader</span></div>
<div id="_mcePaste">    <span style="color:#0000ff;">Add-Content</span> <span style="color:#ff6600;">$file $content</span></div>
<div id="_mcePaste">}</div>
<div id="_mcePaste"><span style="color:#0000ff;">Get-ChildItem</span> <span style="color:#ff6600;">$target</span> -Recurse | <span style="color:#0000ff;">?</span> { <span style="color:#ff6600;">$_</span>.Extension -like <span style="color:#800000;">".txt"</span> } | <span style="color:#0000ff;">%</span> {</div>
<div id="_mcePaste">    <span style="color:#0000ff;">Write-Header</span> <span style="color:#ff6600;">$_</span>.PSPath.Split(<span style="color:#800000;">":"</span>,<span style="color:#ff00ff;">3</span>)[<span style="color:#ff00ff;">2</span>]</div>
<div id="_mcePaste">}</div>
</pre>
<p><!--CRLF--></p>
</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kishordaher.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kishordaher.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kishordaher.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kishordaher.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/169/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=169&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2010/03/11/powershell-copyright-header-generator-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>
	</item>
		<item>
		<title>WPF Dynamic Data Display.</title>
		<link>http://kishordaher.wordpress.com/2009/12/04/wpf-dynamic-data-display/</link>
		<comments>http://kishordaher.wordpress.com/2009/12/04/wpf-dynamic-data-display/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 14:51:32 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/?p=165</guid>
		<description><![CDATA[Found this amazing library for dynamic data display developed by Computational Science Laboratory in Microsoft Research. It features efficient binding mechanisms and real-time interactivity capable of charting millions of data points. WPF developers in finance should have a look at this. http://www.codeplex.com/dynamicdatadisplay<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=165&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Found this amazing library for dynamic data display developed by Computational Science Laboratory in Microsoft Research. It features efficient binding mechanisms and real-time interactivity capable of charting millions of data points. WPF developers in finance should have a look at this.</p>
<p><a href="http://www.codeplex.com/dynamicdatadisplay">http://www.codeplex.com/dynamicdatadisplay</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kishordaher.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kishordaher.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kishordaher.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kishordaher.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/165/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=165&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2009/12/04/wpf-dynamic-data-display/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>
	</item>
		<item>
		<title>CSLA.Net framework for developing business objects.</title>
		<link>http://kishordaher.wordpress.com/2009/11/21/csla-net-framework-for-developing-business-objects/</link>
		<comments>http://kishordaher.wordpress.com/2009/11/21/csla-net-framework-for-developing-business-objects/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 16:43:43 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/?p=161</guid>
		<description><![CDATA[I have been fan of CSLA.Net(component-based, scalable, logical architecture) framework since early days of my career had ported it from VB.Net to C# then. This framework comes handy for development of N-Tier architecture. Following are the feature highlights. Tracking Broken Business Rules Tracking Whether the Object Has Changed Strongly Typed Collections of Child Objects Simple and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=161&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">I have been fan of CSLA.Net(component-based, scalable, logical architecture) framework since early days of my career had ported it from VB.Net to C# then. This framework comes handy for development of N-Tier architecture. Following are the feature highlights.</div>
<div>
<div>
<ol>
<li>Tracking Broken Business Rules</li>
<li>Tracking Whether the Object Has Changed</li>
<li>Strongly Typed Collections of Child Objects</li>
<li>Simple and Abstract Model for the UI Developer</li>
<li>Supporting Data Binding</li>
<li>Object Persistence and Object-Relational Mapping .</li>
<li>Business Object Creation</li>
<li>N-Level Undo Functionality</li>
<li>Data Binding Support</li>
<li>Validation Rules</li>
<li>Data Portal</li>
<li>Custom Authentication</li>
<li>Integrated Authorization</li>
</ol>
<p><a href="http://www.lhotka.net/">http://www.lhotka.net/</a></p>
<ol></ol>
</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kishordaher.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kishordaher.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kishordaher.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kishordaher.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/161/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=161&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2009/11/21/csla-net-framework-for-developing-business-objects/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>
	</item>
		<item>
		<title>Finally WPF/Sliverlight style generator.</title>
		<link>http://kishordaher.wordpress.com/2009/10/02/finally-wpfsliverlight-style-generator/</link>
		<comments>http://kishordaher.wordpress.com/2009/10/02/finally-wpfsliverlight-style-generator/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 04:16:10 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/?p=157</guid>
		<description><![CDATA[I started this project last week and so far i was able to get Monochromatic, complimentary, Triad , Tetrads and analogous colors. The final goal of this project are as follows. User should be able to view dark and light style with chosen color on predefined template. User should be able to generate ResourceDictionary for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=157&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I started this project last week and so far i was able to get Monochromatic, complimentary, Triad , Tetrads and analogous colors. The final goal of this project are as follows.</p>
<ol>
<li>User should be able to view dark and light style with chosen color on predefined template. </li>
<li>User should be able to generate ResourceDictionary for Silverlight/WPF out of the chosen color. (This would relieve every developer from pain of styling the application <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  trust me i know it) </li>
</ol>
<p><a href="http://kishordaher.files.wordpress.com/2009/10/image.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://kishordaher.files.wordpress.com/2009/10/image_thumb.png?w=510&#038;h=270" width="510" height="270" /></a></p>
<p>Coming soon on codeplex…….&#160; <a href="http://cid-7248f33fe35dbe24.skydrive.live.com/self.aspx/.Public/ColorWheel.zip" target="_blank">Download code.</a></p>
<p>Note: Please contribute to the project for the wellbeing of all the developers <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kishordaher.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kishordaher.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kishordaher.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kishordaher.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/157/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=157&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2009/10/02/finally-wpfsliverlight-style-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>

		<media:content url="http://kishordaher.files.wordpress.com/2009/10/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft Security Essentials</title>
		<link>http://kishordaher.wordpress.com/2009/09/29/microsoft-security-essentials/</link>
		<comments>http://kishordaher.wordpress.com/2009/09/29/microsoft-security-essentials/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 15:55:54 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/?p=152</guid>
		<description><![CDATA[Microsoft Security Essentials provides real-time protection for your home PC that guards against viruses, spyware, and other malicious software. It is available for free, for Windows XP 32-bit, Windows Vista/7 32-bit, and Windows Vista/7 64-bit. http://www.microsoft.com/security_essentials/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=152&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Microsoft Security Essentials provides real-time protection for your home PC that guards against viruses, spyware, and other malicious software. It is available for free, for Windows XP 32-bit, Windows Vista/7 32-bit, and Windows Vista/7 64-bit.</p>
<p><a href="http://www.microsoft.com/security_essentials/">http://www.microsoft.com/security_essentials/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kishordaher.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kishordaher.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kishordaher.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kishordaher.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/152/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=152&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2009/09/29/microsoft-security-essentials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>
	</item>
		<item>
		<title>Project Tuva from microsoft research.</title>
		<link>http://kishordaher.wordpress.com/2009/09/18/project-tuva-from-microsoft-research/</link>
		<comments>http://kishordaher.wordpress.com/2009/09/18/project-tuva-from-microsoft-research/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 03:01:40 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/2009/09/18/project-tuva-from-microsoft-research/</guid>
		<description><![CDATA[http://research.microsoft.com/apps/tools/tuva/index.html Microsoft research project tuva home page explains it like this: “Project Tuva explores core scientific concepts and theories through presenting timeless videos with its new enchanced Video Player featuring searchable video, linked transcripts, notes, and interactive extras” It was amazing to see and hear Dr. Richard Feynman’s lecture on “Law of Gravitation” at Cornell [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=150&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://research.microsoft.com/apps/tools/tuva/index.html">http://research.microsoft.com/apps/tools/tuva/index.html</a></p>
<p>Microsoft research project tuva home page explains it like this:</p>
<p>“Project Tuva explores core scientific concepts and theories through presenting timeless videos with its new enchanced Video Player featuring searchable video, linked transcripts, notes, and interactive extras”</p>
<p>It was amazing to see and hear Dr. Richard Feynman’s lecture on “Law of Gravitation” at Cornell University in 1964.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kishordaher.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kishordaher.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kishordaher.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kishordaher.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/150/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=150&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2009/09/18/project-tuva-from-microsoft-research/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>
	</item>
		<item>
		<title>Why functional programming?</title>
		<link>http://kishordaher.wordpress.com/2009/09/17/why-functional-programming/</link>
		<comments>http://kishordaher.wordpress.com/2009/09/17/why-functional-programming/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 01:56:05 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Functional Programming]]></category>
		<category><![CDATA[Hakell]]></category>
		<category><![CDATA[Haskell]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/?p=143</guid>
		<description><![CDATA[Functional programming is not a silver bullet, but learning it will indeed add to the knowledge of every software engineer about solving problem in different a way. One can always implement functional style of programming in any imperative language they use. Advantages: For analysis of mathematical problem that requires human analysts, it is possible to represent [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=143&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Functional programming is not a silver bullet, but learning it will indeed add to the knowledge of every software engineer about solving problem in different a way. One can always implement functional style of programming in any imperative language they use.</p>
<p>Advantages:</p>
<ol>
<li>For analysis of mathematical problem that requires human analysts, it is possible to represent the problem in a concise mathematical form that analysts can understand.</li>
<li>A declarative language simplifies the creation and multiple interpretations and static analysis.</li>
<li>Compositional construction allows natural mapping of the problem domain and encourages code reuse.</li>
<li>Functional programming language like haskell makes maintenance easy due to its high level of abstraction which also makes addition of new features a lot simpler then it would be in any imperative language.</li>
<li>As most of the data types in functional languages are immutable concurrency and parallelism is integral art of the language. Most modern functional languages like Haskell and Erlang support multi-core without any extra libraries.</li>
<li>Its easy to implement domain-specific language.</li>
</ol>
<p>Disadvantages:</p>
<ol>
<li>Its difficult to get developers on functional languages and thus it adds to project risk.</li>
<li>UI development is not a proven ground in functional world.</li>
<li>Performance is real unknown for most functional languages as its not widely accepted in developing of large real time systems. <a href="http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&amp;lang=ghc&amp;lang2=gpp&amp;box=1" target="_blank">Haskell performance</a>. (i personally believe that with multi-core systems any problem needs to be parallelized and immutability is the only answer to that type problems. So even imperative languages have to make data structures immutable to solve the problem on multi-core.)</li>
</ol>
<p>Here is the implementation of Black Scholes model for European options in Haskell and C#. I wrote this example to show the difference between functional and imperative language, see it your self.</p>
<div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:8cd63bf3-2a2f-4527-8286-2f32607a156b" class="wlWriterEditableSmartContent" style="width:560px;display:block;float:none;margin-left:auto;margin-right:auto;padding:5px;">
<div style="border:#000080 1px solid;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#ddd;max-height:300px;overflow:auto;padding:0;">
<ol style="background:#ffffff;white-space:nowrap;margin:0 0 0 35px;">
<li style="background:#f3f3f3;"> type Put = String</li>
<li> type Call = String</li>
<li style="background:#f3f3f3;"> data Option = Call | Put</li>
<li> deriving (Eq, Show)</li>
<li> blackscholes :: Option -&gt; Double -&gt; Double -&gt; Double -&gt; Double -&gt; Double -&gt; Double</li>
<li style="background:#f3f3f3;"> blackscholes  option s x t r v</li>
<li> | option == Call = s * normcdf d1 &#8211; x*exp (-r*t) * normcdf d2</li>
<li style="background:#f3f3f3;"> | option == Put = x * exp (-r*t) * normcdf (-d2) &#8211; s * normcdf (-d1)</li>
<li> where</li>
<li style="background:#f3f3f3;"> d1 = ( log(s/x) + (r+v*v/2)*t )/(v*sqrt t)</li>
<li> d2 = d1 &#8211; v*sqrt t</li>
<li style="background:#f3f3f3;"> normcdf x</li>
<li> | x &lt; 0 = 1 &#8211; w</li>
<li style="background:#f3f3f3;"> | otherwise = w</li>
<li> where</li>
<li style="background:#f3f3f3;"> w = 1.0 &#8211; 1.0 / sqrt (2.0 * pi) * exp(-l*l / 2.0) * poly k</li>
<li> k = 1.0 / (1.0 + 0.2316419 * l)</li>
<li style="background:#f3f3f3;"> l = abs x</li>
<li> poly = horner coeff</li>
<li style="background:#f3f3f3;"> coeff = [0.0,0.31938153,-0.356563782,1.781477937,-1.821255978,1.330274429]</li>
<li style="background:#f3f3f3;"> horner coeff <span style="color:#0000ff;">base</span> = foldr1 multAdd  coeff</li>
<li> where</li>
<li style="background:#f3f3f3;"> multAdd x y = y*<span style="color:#0000ff;">base</span> + x</li>
</ol>
</div>
</div>
</div>
<div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:c6670cec-e768-4d47-acd0-8226d681a432" class="wlWriterEditableSmartContent" style="width:536px;display:block;float:none;margin-left:auto;margin-right:auto;padding:5px;">
<div style="border:#000080 1px solid;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#ddd;max-height:300px;overflow:auto;padding:0;">
<ol style="background:#ffffff;white-space:wrap;margin:0 0 0 35px;">
<li> <span style="color:#0000ff;">namespace</span> BackScholes</li>
<li style="background:#f3f3f3;"> {</li>
<li> <span style="color:#0000ff;">class</span> <span style="color:#2b91af;">Program</span></li>
<li style="background:#f3f3f3;"> {</li>
<li> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> Main(<span style="color:#0000ff;">string</span>[] args)</li>
<li style="background:#f3f3f3;"> {</li>
<li> }</li>
<li style="background:#f3f3f3;"> }</li>
<li> <span style="color:#0000ff;">enum</span> <span style="color:#2b91af;">Option</span></li>
<li style="background:#f3f3f3;"> {</li>
<li> Call,</li>
<li style="background:#f3f3f3;"> Put</li>
<li> }</li>
<li style="background:#f3f3f3;"> <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span></li>
<li> <span style="color:#808080;">///</span><span style="color:#008000;"> Summary description for BlackSholes.</span></li>
<li style="background:#f3f3f3;"> <span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span></li>
<li> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">class</span> <span style="color:#2b91af;">BlackSholes</span></li>
<li style="background:#f3f3f3;"> {</li>
<li> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">double</span> BlackScholes(<span style="color:#2b91af;">Option</span> option, <span style="color:#0000ff;">double</span> S, <span style="color:#0000ff;">double</span> X,</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">double</span> T, <span style="color:#0000ff;">double</span> r, <span style="color:#0000ff;">double</span> v)</li>
<li> {</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">double</span> d1 = 0.0;</li>
<li> <span style="color:#0000ff;">double</span> d2 = 0.0;</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">double</span> dBlackScholes = 0.0;</li>
<li style="background:#f3f3f3;"> d1 = (Math.Log(S / X) + (r + v * v / 2.0) * T) / (v * Math.Sqrt(T));</li>
<li> d2 = d1 &#8211; v * Math.Sqrt(T);</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">if</span> (option == <span style="color:#2b91af;">Option</span>.Call)</li>
<li> {</li>
<li style="background:#f3f3f3;"> dBlackScholes = S * CND(d1) &#8211; X * Math.Exp(-r * T) * CND(d2);</li>
<li> }</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">else</span> <span style="color:#0000ff;">if</span> (option == <span style="color:#2b91af;">Option</span>.Put)</li>
<li> {</li>
<li style="background:#f3f3f3;"> dBlackScholes = X * Math.Exp(-r * T) * CND(-d2) &#8211; S * CND(-d1);</li>
<li> }</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">return</span> dBlackScholes;</li>
<li> }</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">double</span> CND(<span style="color:#0000ff;">double</span> X)</li>
<li> {</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">double</span> L = 0.0;</li>
<li> <span style="color:#0000ff;">double</span> K = 0.0;</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">double</span> dCND = 0.0;</li>
<li> <span style="color:#0000ff;">const</span> <span style="color:#0000ff;">double</span> a1 = 0.31938153;</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">const</span> <span style="color:#0000ff;">double</span> a2 = -0.356563782;</li>
<li> <span style="color:#0000ff;">const</span> <span style="color:#0000ff;">double</span> a3 = 1.781477937;</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">const</span> <span style="color:#0000ff;">double</span> a4 = -1.821255978;</li>
<li> <span style="color:#0000ff;">const</span> <span style="color:#0000ff;">double</span> a5 = 1.330274429;</li>
<li style="background:#f3f3f3;"> L = Math.Abs(X);</li>
<li> K = 1.0 / (1.0 + 0.2316419 * L);</li>
<li style="background:#f3f3f3;"> dCND = 1.0 &#8211; 1.0 / Math.Sqrt(2 * Convert.ToDouble(Math.PI.ToString())) *</li>
<li> Math.Exp(-L * L / 2.0) * (a1 * K + a2 * K * K + a3 * Math.Pow(K, 3.0) +</li>
<li style="background:#f3f3f3;"> a4 * Math.Pow(K, 4.0) + a5 * Math.Pow(K, 5.0));</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">if</span> (X &lt; 0)</li>
<li> {</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">return</span> 1.0 &#8211; dCND;</li>
<li> }</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">else</span></li>
<li> {</li>
<li style="background:#f3f3f3;"> <span style="color:#0000ff;">return</span> dCND;</li>
<li> }</li>
<li style="background:#f3f3f3;"> }</li>
<li> }</li>
<li style="background:#f3f3f3;"> }</li>
</ol>
</div>
</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kishordaher.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kishordaher.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kishordaher.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kishordaher.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/143/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=143&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2009/09/17/why-functional-programming/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>
	</item>
		<item>
		<title>Dryad and DryadLinq release for academic community.</title>
		<link>http://kishordaher.wordpress.com/2009/07/19/dryad-and-dryadlinq-release-for-academic-community/</link>
		<comments>http://kishordaher.wordpress.com/2009/07/19/dryad-and-dryadlinq-release-for-academic-community/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 17:01:13 +0000</pubDate>
		<dc:creator>Kishor Aher</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kishordaher.wordpress.com/?p=139</guid>
		<description><![CDATA[Microsoft&#8217;s answer to google map reduce and hadoop for distributed computing is Dryad. http://research.microsoft.com/en-us/collaboration/tools/dryad.aspx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=139&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Microsoft&#8217;s answer to google map reduce and hadoop for distributed computing is Dryad.</p>
<p><a href="http://research.microsoft.com/en-us/collaboration/tools/dryad.aspx">http://research.microsoft.com/en-us/collaboration/tools/dryad.aspx</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kishordaher.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kishordaher.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kishordaher.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kishordaher.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kishordaher.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kishordaher.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kishordaher.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kishordaher.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kishordaher.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kishordaher.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kishordaher.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kishordaher.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kishordaher.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kishordaher.wordpress.com/139/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kishordaher.wordpress.com&amp;blog=7356419&amp;post=139&amp;subd=kishordaher&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kishordaher.wordpress.com/2009/07/19/dryad-and-dryadlinq-release-for-academic-community/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c1ad0543c9d8c2a056d47fb7d5a0c751?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kishordaher</media:title>
		</media:content>
	</item>
	</channel>
</rss>
