<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>lambda &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/lambda/</link>
	<description>Feed of posts on WordPress.com tagged "lambda"</description>
	<pubDate>Thu, 31 Dec 2009 02:04:01 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[俄罗斯lambda图标设计]]></title>
<link>http://davidqiu.wordpress.com/2009/12/29/%e4%bf%84%e7%bd%97%e6%96%aflambda%e5%9b%be%e6%a0%87%e8%ae%be%e8%ae%a1/</link>
<pubDate>Tue, 29 Dec 2009 13:57:16 +0000</pubDate>
<dc:creator>davidqiu</dc:creator>
<guid>http://davidqiu.wordpress.com/2009/12/29/%e4%bf%84%e7%bd%97%e6%96%aflambda%e5%9b%be%e6%a0%87%e8%ae%be%e8%ae%a1/</guid>
<description><![CDATA[俄罗斯设计师lambda图标设计作品欣赏。 Blogged with the Flock Browser]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>俄罗斯设计师lambda图标设计作品欣赏。</p>
<p align="center"><img src="http://www.visionunion.com/admin/data/file/img/20091227/20091227004801.jpg" border="0" /></p>
<p align="center"><img src="http://www.visionunion.com/admin/data/file/img/20091227/20091227004802.jpg" border="0" /></p>
<div class="flockcredit" style="text-align:right;color:#CCC;font-size:x-small;">Blogged with the <a href="http://www.flock.com/blogged-with-flock" style="color:#999;font-weight:bold;" target="_new" title="Flock Browser">Flock Browser</a></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[New pop release by Lambda]]></title>
<link>http://musrel.wordpress.com/2009/12/28/new-pop-release-by-lambda/</link>
<pubDate>Mon, 28 Dec 2009 18:12:24 +0000</pubDate>
<dc:creator>moozone</dc:creator>
<guid>http://musrel.wordpress.com/2009/12/28/new-pop-release-by-lambda/</guid>
<description><![CDATA[&nbsp;La Verticale by Lambda 2009 (1 tracks, 3:38) pop]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://moozone.com/album/MNID35769623/La_Verticale" title="La Verticale by Lambda"><img src='http://images.musicnet.com/albums/035/769/623/m.jpeg' width='130' height='130' align='left' border='0' style='margin-right:5px;'></a>&#160;<a href="http://moozone.com/album/MNID35769623/La_Verticale" title="La Verticale by Lambda">La Verticale</a> by <a href="http://moozone.com/artist/MNID248417/Lambda" title="Lambda"><b>Lambda</b></a></p>
<p>2009 (1 tracks, 3:38)</p>
<p><a href="http://moozone.com/member?qb=tags%3Apop">pop</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Lambda Extensible FizzBuzz 2.0 With LINQ]]></title>
<link>http://simpleprogrammer.com/2009/12/19/lambda-extensible-fizzbuzz-2-0-with-linq/</link>
<pubDate>Sat, 19 Dec 2009 06:41:51 +0000</pubDate>
<dc:creator>jsonmez</dc:creator>
<guid>http://simpleprogrammer.com/2009/12/19/lambda-extensible-fizzbuzz-2-0-with-linq/</guid>
<description><![CDATA[Many of you have probably heard of the FizzBuzz challenge: Jeff Atwood blogged about it here I think]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Many of you have probably heard of the FizzBuzz challenge:</p>
<p>Jeff Atwood blogged about it <a href="http://http://www.codinghorror.com/blog/archives/000781.html">here</a></p>
<p>I think it started from <a href="http://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/">here</a></p>
<p>Anyway, if you don&#8217;t want to click those links and you&#8217;re not familiar with it, is a small programming problem designed to screen someone who can actually write code from someone who pretends to write code.  The problem is:</p>
<blockquote><p>Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”</p></blockquote>
<p>The point is this is a simple problem.  Just simple enough to be interesting.  I actually got asked to solve this problem this week.  I solved it after bumbling through it way more than I should have (I was trying to think of an elegant solution on the spot.)  But it kept bugging me.  I knew there was a solution that I wanted to give it that would make me happy with feelings of maps, function pointers and linq.  Pretty much 3 of my favorite things.  So I thought about it for a bit and here is the solution I came up with (3rd cut.)</p>
<pre class="brush: csharp; pad-line-numbers: false;">
        public static void FizzBuzz()
        {
            Dictionary&#60;Func&#60;int, bool&#62;, Func&#60;int, string&#62;&#62; rules = new Dictionary&#60;Func&#60;int, bool&#62;, Func&#60;int, string&#62;&#62;();
            rules.Add(x =&#62; x % 3 == 0, x =&#62; &#34;fizz&#34;);
            rules.Add(x =&#62; x % 5 == 0, x =&#62; &#34;buzz&#34;);
            rules.Add(x =&#62; x % 5 != 0 &#38;&#38; x % 3 != 0, x =&#62; x.ToString());
            rules.Add(x =&#62; true, x =&#62; &#34;\n&#34;);

            var output = from n in Enumerable.Range(1, 100)
                         from f in rules
                         where f.Key(n)
                         select f.Value(n);

            output.ToList().ForEach(x =&#62; Console.Write(x));
        }
</pre>
<p>That&#8217;s my crack at it.  If you&#8217;re not familiar with all the C# magic going on here, basically it works like this:</p>
<p>You have a map which maps one lambda expression which defines the rule we are checking for to a second lambda expression which is what string to return if that rule matches.<br />
Then we have a LINQ query that does a Cartesian join on the set of numbers from 1 to 100 and the 4 rules.<br />
Finally, we take the output and for each string we write it out.</p>
<p>The 4th rule in the set makes sure that after evaluating the set of rules for each number a newline gets put in.</p>
<p>It is kind of interesting how thinking about different ways to solve a fairly simple problem can help you think about the tools you have in new ways.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Download to Donate: UAI presents www.endhivaids.com]]></title>
<link>http://universalartists.wordpress.com/2009/12/08/download-to-donate-uai-presents-www-endhivaids-com/</link>
<pubDate>Tue, 08 Dec 2009 14:31:29 +0000</pubDate>
<dc:creator>universalartists</dc:creator>
<guid>http://universalartists.wordpress.com/2009/12/08/download-to-donate-uai-presents-www-endhivaids-com/</guid>
<description><![CDATA[www.endhivaids.com: Uniting the World Against HIV/AIDS With its goal to help in the effort to find a]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div id="attachment_222" class="wp-caption aligncenter" style="width: 305px"><a href="http://universalartists.wordpress.com/files/2009/12/newsweek-5.jpg"><img class="size-full wp-image-222" title="www.endhivaids.com" src="http://universalartists.wordpress.com/files/2009/12/newsweek-5.jpg" alt="Global Effort to End HIV AIDS" width="295" height="314" /></a><p class="wp-caption-text">www.endhivaids.com: Uniting the World Against HIV/AIDS </p></div>
<p>With its goal to help in the effort to find a cure for the HIV/AIDS virus, Joe Stern-McGovern, global agent and President of Universal Artists, International, has announced the coming force in the world of music, Black Flock Gang&#8217;s, music downloads available exclusively at the future site created for charity, knowledge, and understanding, <a href="http://www.endhivaids.com">www.endhivaids.com</a>.</p>
<p>In a quote from the Universal Artists, International leader, Joe Stern-McGovern states, &#8220;We&#8217;re attempting to show our support for the global organizations and leaders who are doing all they can to thwart the HIV/AIDS virus through financial contributions gathered through the sale of our products.&#8221;</p>
<div id="attachment_223" class="wp-caption aligncenter" style="width: 470px"><a href="http://universalartists.wordpress.com/files/2009/12/aids-ribbon.jpg"><img class="size-full wp-image-223" title="AIDS-ribbon" src="http://universalartists.wordpress.com/files/2009/12/aids-ribbon.jpg" alt="Download to Donate" width="460" height="263" /></a><p class="wp-caption-text">www.endhivaids.com: Download to Donate</p></div>
<p>Who are the most likely to receive these funds? Various clinical research organizations such as AMFAR, those which serve to better the lives of children suffering from the virus, such as the Elizabeth Glaser Pediatric AIDS Foundation, St. Judes, and Children&#8217;s Hospital, Gay &#38; Lesbian health activists, legal heavyweights such as the ACLU and LAMBDA, and many others.</p>
<p>&#8220;We&#8217;re trying to put as much money towards the cause as we can,&#8221; states Joe Stern-McGovern, &#8220;and at the same time gather the means to continue in the various parts involved in making this movement a success, such as site fees, advertising, and other related expenses.&#8221;</p>
<p>How will the movement of Joe Stern-McGovern and Universal Artists, International fare, only time will tell, but with the power of the Southern force known as Shaka Productions of Birmingham, Alabama, and his vanguard of soldiers, Black Flock Gang, also known as BFG, chances for success lean towards the more positive end of the spectrum.</p>
<p>&#8220;The BFG is a statistics breaker,&#8221; states Joe Stern-McGovern, &#8220;it&#8217;s sheer genius and momentum will shatter all previously conceived measures of success in the charts and through word of mouth.&#8221;</p>
<div id="attachment_224" class="wp-caption aligncenter" style="width: 470px"><a href="http://universalartists.wordpress.com/files/2009/12/union-two.jpg"><img class="size-full wp-image-224" title="Shaka &#38; A-Dub" src="http://universalartists.wordpress.com/files/2009/12/union-two.jpg" alt="United Against HIV/AIDS" width="460" height="276" /></a><p class="wp-caption-text">Shaka &#38; A-Dub: Uniting to End HIV/AIDS</p></div>
<p>A bold statement indeed, but having heard the material ourselves, we tend to agree with this icon known as Joe Stern-McGovern, a figure given towards brash statements and bravado in what some might consider a Ted Turner-esque sort of manner.</p>
<p>Black Flock Gang, consisting of Dem Hard Headz, DO and Pain, coupled with the FAM Boy$, Ms. Fame, Facts, Lo, CO, and the ambitious Mr. Hood Shuttlesworth, will burst out of the gate with their smash follow up to the, &#8220;Welcome 2 da Bams&#8221;, album in a second entrance into the market with the album simply titled, &#8220;Radio&#8221;. &#8220;Radio&#8221;, a compilation of BFG, Ms. Fame, and Jacksonville&#8217;s artful brothers, Ripp &#38; Redd, is the first in a series of charitable material which has come to be known as, World Mixtape.</p>
<div class="mceTemp mceIEcenter">
<div id="attachment_226" class="wp-caption aligncenter" style="width: 310px"><a href="http://universalartists.wordpress.com/files/2009/12/img_05731.jpg"><img class="size-medium wp-image-226" title="Ripp &#38; Redd" src="http://universalartists.wordpress.com/files/2009/12/img_05731.jpg?w=300" alt="Jacksonville's Ripp &#38; Redd" width="300" height="249" /></a><p class="wp-caption-text">Ripp &#38; Redd: Donating Talent for a Great Cause</p></div>
</div>
<p>What is a Mixtape many ask? In reality, it&#8217;s a CD compilation of various hip hop&#8217;s future stars joining to hop onto what are largely the beats of other artists of prominence. In the case of Universal Artists, International, all their material is original, however, the element they share with the mixtape phenomenon is the mustering of street credibility, outspoken and haughty declarations, and a supreme sense of one&#8217;s self coupled with the factors of authenticy and believability.</p>
<div class="mceTemp mceIEcenter">
<div id="attachment_229" class="wp-caption aligncenter" style="width: 470px"><a href="http://universalartists.wordpress.com/files/2009/12/bfg-logo.jpg"><img class="size-full wp-image-229" title="BFG Logo" src="http://universalartists.wordpress.com/files/2009/12/bfg-logo.jpg" alt="" width="460" height="461" /></a><p class="wp-caption-text">Black Flock Gang: Download to Donate</p></div>
</div>
<p>Sharing part on the follow up mixtape to Radio, BFG will be joined by the sultry sounds of Ms. Kesha Lee, as well as the lyrically headstrong, Christian Levi, both hailing from Birmingham, Alabama. Reports from the field are that both Ms. Kesha Lee and Christian Levi are poised for their breakouts as solo artists, something all fans of hip hop and R&#38;B are avidly waiting for courtesy of Joe Stern-McGovern, Shaka Productions, and Universal Artists, International.</p>
<p>If all of this wasn&#8217;t enough, all material from the World Mixtapes have been finalized by Seattle&#8217;s very own, multi-platinum producer, DJ Funk Daddy. Known throughout the Emerald City and the greater Pacific Northwest, DJ Funk Daddy has worked with the very best, and continues his artesan&#8217;s tradition on the turntables and microphone with adept skill and dedication to the true nature of hip hop. For more information on DJ Funk Daddy, please visit his site at, <a href="http://www.funkdaddy.com">www.funkdaddy.com</a>.</p>
<p>The ultimate winner in all these endeavours of Joe Stern-McGovern, Shaka Productions and his artists, and DJ Funk Daddy, are the fans who all hope will download to donate in the most generous of fashion. They are what makes the industry what it is, as well as creating the impetus for where it is headed. After all, without its fans, how far could any genre go?</p>
<div class="mceTemp mceIEcenter">
<div id="attachment_231" class="wp-caption aligncenter" style="width: 234px"><a href="http://universalartists.wordpress.com/files/2009/12/funk-daddy-funk-grind-and-hustle-equip-11.jpg"><img class="size-medium wp-image-231" title="Funk Daddy Funk Grind and Hustle Equip 1" src="http://universalartists.wordpress.com/files/2009/12/funk-daddy-funk-grind-and-hustle-equip-11.jpg?w=224" alt="" width="224" height="300" /></a><p class="wp-caption-text">DJ Funk Daddy: Doing His Part Against HIV/AIDS</p></div>
</div>
<p>Please look for the coming site, <a href="http://www.endhivaids.com">www.endhivaids.com</a> sometime in mid-January, where you will delight to the smooth sounds, thumping bass, and articulations of the likes of the BFG as they reflect on the need for awareness, education, and a cure through their music and the contribution it&#8217;s expected to generate.</p>
<p>For more information, please write to <a href="mailto:joesternmcgovern@myspace.com">joesternmcgovern@myspace.com</a>, <a href="mailto:universalartists@myspace.com">universalartists@myspace.com</a>, or <a href="mailto:blackflockgang@myspace.com">blackflockgang@myspace.com</a>.</p>
<p>To book an appearance or any other scheduling matters, please feel free to write directly to Joe Stern-McGovern&#8217;s assistant at, <a href="mailto:joe@universalartists.net">joe@universalartists.net</a>. For matters of production and A&#38;R, Shaka Productions can be reached at <a href="mailto:shaka@universalartists.net">shaka@universalartists.net</a>. For international correspondence, please refer to the company address for Joe Stern-McGovern, or write to Guy at <a href="mailto:guy@universalartists.net">guy@universalartists.net</a>. You may also call us at 1(619)757-1301.</p>
<p>Look for information and updates coming soon regarding the South&#8217;s definitive hip hop instrumentalist, A-Dub of Tiptonville, Tennessee, as well as his partner on the microphone, Lake County&#8217;s Lil&#8217; J. </p>
<div id="attachment_232" class="wp-caption aligncenter" style="width: 310px"><a href="http://universalartists.wordpress.com/files/2009/12/a-dub.jpg"><img class="size-medium wp-image-232" title="A-Dub" src="http://universalartists.wordpress.com/files/2009/12/a-dub.jpg?w=300" alt="" width="300" height="225" /></a><p class="wp-caption-text">A-Dub: The Best at What He Does</p></div>
<p>&#8220;Together,&#8221; states Joe Stern-McGovern, &#8220;we can defeat this plague. It&#8217;s Universal Artists, International and Shaka Productions sincerest intention to do so in the most powerful and accomplishing manner.&#8221;</p>
<p>Again, please look for the Black Flock Gang&#8217;s greatest material, past and present, exclusively at <a href="http://www.endhivaids.com">www.endhivaids.com</a>. Your patronage and donations are greatly appreciated.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[LINQ/Lambda and SharePoint]]></title>
<link>http://sbrozius.wordpress.com/2009/12/03/linqlambda-and-sharepoint/</link>
<pubDate>Thu, 03 Dec 2009 13:44:40 +0000</pubDate>
<dc:creator>Sebastiaan Brozius</dc:creator>
<guid>http://sbrozius.wordpress.com/2009/12/03/linqlambda-and-sharepoint/</guid>
<description><![CDATA[I just ran into a very nice article about using Lambda&#8217;s/LINQ on SharePoint objects. You can f]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I just ran into a very nice article about using Lambda&#8217;s/LINQ on SharePoint objects.<br />
You can find it <a href="http://blog.libinuko.com/2009/07/21/howto-use-lambda-expression-in-sharepoint-working-with-spweb/">here</a>.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Control.Invoke and BeginInvoke using lamba and anonymous delegates]]></title>
<link>http://smehrozalam.wordpress.com/2009/11/24/control-invoke-and-begininvoke-using-lamba-and-anonymous-delegates/</link>
<pubDate>Mon, 23 Nov 2009 19:05:43 +0000</pubDate>
<dc:creator>Syed Mehroz Alam</dc:creator>
<guid>http://smehrozalam.wordpress.com/2009/11/24/control-invoke-and-begininvoke-using-lamba-and-anonymous-delegates/</guid>
<description><![CDATA[Working constantly with LINQ and .NET 3.5 these days, I sometimes forget how to do things without la]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Working constantly with LINQ and .NET 3.5 these days, I sometimes forget how to do things without <a href="http://msdn.microsoft.com/en-us/library/bb397687.aspx">lamda expressions</a>. Today, I was working on a WinForms application and I needed to update the UI from a separate thread, so I wrote the following code:</p>
<pre class="brush: csharp;">
    this.BeginInvoke( ()=&#62;
        {
            //code to update UI
        });
</pre>
<p>This gave me the following error:</p>
<p><code>Cannot convert lambda expression to type 'System.Delegate' because it is not a delegate type</code></p>
<p>I, then tried the anonymous delegate syntax:</p>
<pre class="brush: csharp;">
    this.BeginInvoke( delegate ()
        {
            //code to update UI
        });
</pre>
<p>Still incorrect, as it gave me this error:</p>
<p><code>Cannot convert anonymous method to type 'System.Delegate' because it is not a delegate type</code></p>
<p>A quick google revealed that <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.control.invoke.aspx">Control.Invoke</a> and <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.control.begininvoke.aspx">Control.BeginInvoke</a> take a <a href="http://msdn.microsoft.com/en-us/library/system.delegate.aspx">System.Delegate</a> as parameter that is not a delegate type and we need to cast our lambas or anonymous delegates to <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.methodinvoker.aspx">MethodInvoker</a> or <a href="http://msdn.microsoft.com/en-us/library/system.action.aspx">Action</a> like this:</p>
<pre class="brush: csharp;">
    this.BeginInvoke( (Action) (()=&#62;
        {
            this.txtLongestWord.Text = this.longestWord;
        }));
</pre>
<p>The above code does not look good due to lot of brackets, so let&#8217;s use the anonymous delegate syntax:</p>
<pre class="brush: csharp;">
    this.BeginInvoke( (Action) delegate ()
        {
            //code to update UI
        });

//or

    this.BeginInvoke( (MethodInvoker) delegate ()
        {
            //code to update UI
        });
</pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[more resistors...]]></title>
<link>http://rp181.wordpress.com/2009/11/22/more-resistors/</link>
<pubDate>Sun, 22 Nov 2009 20:44:54 +0000</pubDate>
<dc:creator>Ravi Gaddipati</dc:creator>
<guid>http://rp181.wordpress.com/2009/11/22/more-resistors/</guid>
<description><![CDATA[I went to a surplus shop, and picked up the following: 4x 225W 50ohm resistors 5v 200A regulated pow]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I went to a surplus shop, and picked up the following:<br />
4x 225W 50ohm resistors<br />
5v 200A regulated power supply<br />
18AWG wire<br />
The resistors are current limiting (all in parallel) for the charger, just under 1kW. The PSU may be used in the future for augmentation, and the wire was used to make a cable.</p>
<p><img class="aligncenter" title="http://farm3.static.flickr.com/2665/4125994186_8ff0677585.jpg" src="http://farm3.static.flickr.com/2665/4125994186_8ff0677585.jpg" alt="" width="500" height="375" /><img class="aligncenter" title="http://farm3.static.flickr.com/2585/4125994164_db71a160a5.jpg" src="http://farm3.static.flickr.com/2585/4125994164_db71a160a5.jpg" alt="" width="500" height="375" /><img class="aligncenter" title="http://farm3.static.flickr.com/2655/4125994178_2567fd3f2f.jpg" src="http://farm3.static.flickr.com/2655/4125994178_2567fd3f2f.jpg" alt="" width="500" height="375" /><img class="aligncenter" title="http://farm3.static.flickr.com/2503/4125994156_b37428b5e1.jpg" src="http://farm3.static.flickr.com/2503/4125994156_b37428b5e1.jpg" alt="" width="500" height="375" /><img class="aligncenter" title="http://farm3.static.flickr.com/2702/4125994182_cec7cc76ba.jpg" src="http://farm3.static.flickr.com/2702/4125994182_cec7cc76ba.jpg" alt="" width="500" height="375" /></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Imagens em alta definição mostram superfície do Sol]]></title>
<link>http://phobosedeimos.wordpress.com/2009/11/18/imagens-em-alta-definicao-mostram-superficie-do-sol/</link>
<pubDate>Wed, 18 Nov 2009 23:59:08 +0000</pubDate>
<dc:creator>Pedro Augusto</dc:creator>
<guid>http://phobosedeimos.wordpress.com/2009/11/18/imagens-em-alta-definicao-mostram-superficie-do-sol/</guid>
<description><![CDATA[O telescópio SUNRISE, cuja construção foi liderada pelo Instituto Max Planck para Pesquisa do Sistem]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>O telescópio SUNRISE, cuja construção foi liderada pelo Instituto Max Planck para Pesquisa do Sistema Solar, na Alemanha, registrou imagens da superfície do Sol em uma resolução inédita. Movimentadas por campos magnéticos, porções de gás sobem e descem e nuvens de matéria são ejetadas, dando à superfície solar sua estrutura granulada.</p>
<p>Aí vão as imagens:</p>
<p>&#160;</p>
<div class="wp-caption aligncenter" style="width: 438px"><a href="http://g1.globo.com/Noticias/Ciencia/foto/0,,32935455-FMM,00.jpg"><img class="   " src="http://g1.globo.com/Noticias/Ciencia/foto/0,,32935455-FMM,00.jpg" alt="" width="428" height="305" /></a><p class="wp-caption-text">Cada imagem mostra a mesma região solar em quatro comprimentos diferentes de onda, como está indicado na lambda acima de cada foto. A escala é de 1 - 20000.</p></div>
<p>O telescópio que pesa mais de 6 toneladas, foi lançado de uma base na Suécia em 8 de junho e <strong>levado por um balão de hélio de 130 metros de diâmetro a uma altitude de 37 quilômetros</strong>. De lá, na estratosfera, as condições de observação são similares às do espaço: as imagens não são prejudicadas por turbulência (está acima do nível das nuvens, e o ar é muito rarefeito) e a câmera pode dar zoom em luz ultravioleta, que de outro modo seria absorvida pela camada de ozônio. As variações na radiação solar são particularmente pronunciadas em luz ultravioleta.</p>
<p>Separado do balão, o SUNRISE desceu de paraquedas em 14 de junho, pousando na Ilha Somerset, em território canadense. (imagina você está passeando com seu cachorro e vê um telescópio de <em>6t </em>descendo de para quedas?)</p>
<p>Toda a informação (material de análise) colhido pelo telescópio somava cerca de 1,8 <strong>terabytes. </strong>Com base em todas essas informações (e muitas outras que ainda podem ser colhidas) está se iniciando uma intensa pesquisa sobre a atividade solar, visando descobrir muitos mistérios (inclusive aquela história que as manchas solares podem sumir em menos de 20 anos).</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[LINQ To C# &ndash; Drop Dead]]></title>
<link>http://goldmanalpha.wordpress.com/2009/11/18/linq-to-c-drop-dead/</link>
<pubDate>Wed, 18 Nov 2009 16:36:09 +0000</pubDate>
<dc:creator>goldmanalpha</dc:creator>
<guid>http://goldmanalpha.wordpress.com/2009/11/18/linq-to-c-drop-dead/</guid>
<description><![CDATA[What’s up with no edit &amp; continue support for methods with Lambda Expressions(mostly from LINQ q]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>What’s up with no edit &#38; continue support for methods with Lambda Expressions(mostly from LINQ queries).</p>
<blockquote><p>Error    7    Modifying a &#8216;method&#8217; which contains a lambda expression will prevent the debug session from continuing while Edit and Continue is enabled.</p></blockquote>
<p>Originally this post was going to be “LINQ Vs. Edit and Continue”, but then I found <a href="http://msdn.microsoft.com/en-us/library/bb763103.aspx" target="_blank">this article on MSDN</a> saying how it works just fine in Visual Basic.  Visual Basic!  WTF!!!</p>
<p>The details for VB are a little cagey though:</p>
<blockquote><p>You can add or remove code <strong>before</strong> the LINQ statement…. Your Visual Basic debugging experience for non-LINQ code remains the same as it was before LINQ was introduced.</p></blockquote>
<p>Does this mean if you add or remove code after a LINQ statement it stops edit and continue, or does this mean MSDN needs a better editorial staff?  The “before” seems to cast doubt on the statement that “debugging experience for non-LINQ code remains the same &#8220;  Not that I really care since I like my languages with curly brackets.</p>
<p>If you want to know what you can’t do in C# edit and continue, <a href="http://msdn.microsoft.com/en-us/library/ms164927.aspx" target="_blank">read this article</a>.  I personally have no interest in what I can’t do. I only want to know when I’ll be able to do it and I couldn’t find any articles on that.  I heard from a friend that its not fixed in C# 4.0.   <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>LINQ is too good to give up, but this is really getting annoying.</p>
<p>I’m almost (getting <a href="http://www.serienoldies.de/images6/minimax_2.jpg" target="_blank">this close</a>) ready to make my own solution, or horrors, switching to VB.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Brian Schroeder, Ivy League grad accused of setting fire to a sacred 9/11 chapel, loses job offer]]></title>
<link>http://arcticchicken.wordpress.com/2009/11/02/brian-schroeder-ivy-league-grad-accused-of-setting-fire-to-a-sacred-911-chapel-loses-job-offer/</link>
<pubDate>Tue, 03 Nov 2009 01:40:45 +0000</pubDate>
<dc:creator>Arctic Chicken</dc:creator>
<guid>http://arcticchicken.wordpress.com/2009/11/02/brian-schroeder-ivy-league-grad-accused-of-setting-fire-to-a-sacred-911-chapel-loses-job-offer/</guid>
<description><![CDATA[Brian Schroeder, Ivy League grad accused of setting fire to a sacred 9/11 chapel, loses job offer BY]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><blockquote><p>Brian Schroeder, Ivy League grad accused of setting fire to a sacred 9/11 chapel, loses job offer<br />
BY Katie Nelson<br />
DAILY NEWS WRITER<br />
Originally Published:Monday, November 2nd 2009, 1:55 PM<br />
Updated: Monday, November 2nd 2009, 2:07 PM</p>
<p>An Ivy League law grad told his mom he must have been out of his mind to spark a blaze at a sacred 9/11 chapel &#8211; and now he&#8217;s out of a job, too. </p>
<p>White-shoe firm Sidley Austin yanked Brian Schroeder&#8217;s employment offer Monday morning, firm partner Bill Conlon said.</p>
<p>Schroeder, a Harvard Law School grad, worked in the firm&#8217;s New York office for part of the summer, Conlon confirmed. </p>
<p>He was supposed to return but lost the opportunity after cops say he set fire to a Manhattan chapel containing the remains of 9/11 victims in a drunken prank early Friday.</p></blockquote>
<p><a href="http://www.nydailynews.com/news/ny_crime/2009/11/02/2009-11-02_brian_schroeder_.html">New York Daily News-Brian Schroeder, Ivy League grad accused of setting fire to a sacred 9/11 chapel, loses job offer</a></p>
<p>What kind of sickfuck is this person????????? Setting fire to a sacred place and of all things, 9/11. His defenders are just as bad. I couldn&#8217;t help noticing these in the article:</p>
<blockquote><p>&#8220;I know him as someone who has traveled extensively and taken time to see parts of the world that many of the rest of us ignore,&#8221; said Patrick Kelly, a board member of HLS Lambda, an LGBT law-student group where Schroeder was co-president.</p></blockquote>
<blockquote><p>Alice Schroeder also defended her son as an ace student who wants to fight for human rights.</p></blockquote>
<p>Sounds like a raving moonbat to me. Anyways, he lost his job. Too fucking bad for him. Cry me a river. Schroeder should be disbarred.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Types - Arrows - Duals]]></title>
<link>http://xosfaere.wordpress.com/2009/10/30/types-arrows-duals/</link>
<pubDate>Fri, 30 Oct 2009 00:56:57 +0000</pubDate>
<dc:creator>xosfaere</dc:creator>
<guid>http://xosfaere.wordpress.com/2009/10/30/types-arrows-duals/</guid>
<description><![CDATA[As part of my continued pursuit of the Lambda Lecture Series (my name for it) on Channel 9, I&#8217;]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>As part of my continued pursuit of the Lambda Lecture Series (my name for it) on Channel 9, I&#8217;ve summoned up a brain-storm worth of examples that show the symmetry and dualism of some functions and types. I&#8217;m not yet familiar with the higher-level abstract concepts of Arrows so arrow here simply means function.</p>
<p><strong>References<br />
</strong> &#8211; <a href="http://cid-e189d6f0d12fdc06.skydrive.live.com/browse.aspx/Public/Types%20Arrows%20Duals?uc=5">Types &#8211; Arrows &#8211; Duals</a> [SkyDrive]</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Imágenes de entropía.]]></title>
<link>http://nicolamariani.wordpress.com/2009/10/28/imagenes-de-entropia/</link>
<pubDate>Wed, 28 Oct 2009 11:52:38 +0000</pubDate>
<dc:creator>Nicola Mariani</dc:creator>
<guid>http://nicolamariani.wordpress.com/2009/10/28/imagenes-de-entropia/</guid>
<description><![CDATA[(publicado en soitu.es el día 17-08-2009 ) Entropías. Otros imaginarios, otros vacíos de lugar. (Exp]]></description>
<content:encoded><![CDATA[(publicado en soitu.es el día 17-08-2009 ) Entropías. Otros imaginarios, otros vacíos de lugar. (Exp]]></content:encoded>
</item>
<item>
<title><![CDATA[Reposit&oacute;rios e Express&otilde;es Lambda]]></title>
<link>http://agvalente.wordpress.com/2009/10/27/repositrios-e-expresses-lambda/</link>
<pubDate>Tue, 27 Oct 2009 14:57:13 +0000</pubDate>
<dc:creator>Alexandre Valente</dc:creator>
<guid>http://agvalente.wordpress.com/2009/10/27/repositrios-e-expresses-lambda/</guid>
<description><![CDATA[Esta semana fizemos mais uma grande melhoria na nossa camada de domínio, incorporando expressões lam]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Esta semana fizemos mais uma grande melhoria na nossa camada de domínio, incorporando <a href="http://en.wikipedia.org/wiki/Lambda_expressions" target="_blank">expressões lambda</a> .Net nas nossas consultas e parâmetros de ordenação de repositórios. Retomando o <a href="http://agvalente.wordpress.com/2009/09/01/produtividade-camada-de-domnio/">post sobre a camada de domínio</a>, os <a href="http://en.wikipedia.org/wiki/Domain-driven_design" target="_blank">repositórios</a> são utilizados para tirar a dependência da aplicação dos detalhes de persistência de objetos e para ser uma representação abstrata de uma coleção de entidades de domínio.
<p>A idéia é que eles facilitem a busca de entidades específicas ou implementem métodos mais complexos para a execução de consultas. Como no nosso caso usamos o <a href="http://en.wikipedia.org/wiki/Nhibernate" target="_blank">NHibernate</a> para camada de persistência, nós temos duas opções de efetuar estas consultas, os Criterias (DetachedCriteria ou expressões ICriterion simples) ou o <a href="http://en.wikipedia.org/wiki/HQL" target="_blank">HQL</a>, que é uma linguagem de consulta parecida com SQL só que composta pelas entidades de domínio.
<p>Consultas HQL são baseadas em strings (ver exemplo abaixo do nosso sistema de ServiceDesk), o que é extremamente flexível porém não suporta intellisense nem é compilada (o que pode facilitar erros no caso de refactors). Mas, para o HQL não temos muita opção, a alternativa que seria usar o NH Linq ainda não é viável (pelo que eu tenho visto, ainda não suporta muitas coisas).</p>
<div style="width:500px;margin-bottom:10px;background:black;">
<pre></pre>
<p><a href="http://11011.net/software/vspaste"></a>
<pre class="code"><span style="background:black;color:#e07a00;">public int </span><span style="background:black;color:#fddf39;">TotalInbox</span><span style="background:black;color:white;">(</span><span style="background:black;color:#9fabff;">User </span><span style="background:black;color:#fddf39;">user</span><span style="background:black;color:white;">) {
   </span><span style="background:black;color:#e07a00;">const string </span><span style="background:black;color:#fddf39;">hql </span><span style="background:black;color:silver;">=
       </span><span style="background:black;color:#a31515;">@"select count(*) from Incident i inner join i.Allocation a</span></pre>
<pre class="code"><span style="background:black;color:#a31515;">         inner join a.SupportGroup s inner join s.Users u </span></pre>
<pre class="code"><span style="background:black;color:#a31515;">         inner join i.Company c
         where i.ClosedOn is null and a.SupportUser is null
         and i.State != isnull(c.WaitingUserConfirmationState,-1) </span></pre>
<pre class="code"><span style="background:black;color:#a31515;">         and i.State != isnull(c.WaitingUserInformationState, -1) </span></pre>
<pre class="code"><span style="background:black;color:#a31515;">         and u = ?"</span><span style="background:black;color:white;">;
   </span><span style="background:black;color:#e07a00;">return </span><span style="background:black;color:white;">(</span><span style="background:black;color:#e07a00;">int</span><span style="background:black;color:white;">) </span><span style="background:black;color:#fddf39;">ExecuteScalar</span><span style="background:black;color:silver;">&#60;</span><span style="background:black;color:#e07a00;">long</span><span style="background:black;color:silver;">&#62;</span><span style="background:black;color:white;">(</span><span style="background:black;color:#fddf39;">hql</span><span style="background:black;color:white;">, </span><span style="background:black;color:#fddf39;">user</span><span style="background:black;color:white;">);
}</span></pre>
</div>
<p>O uso de Criterias é mais simples e é indicado para consultas com restrições diretas na entidade base (ou nas que possuem relacionamento direto com a entidade base). Porém, nos criterias é necessário especificar o nome da propriedade como string. Novamente, sem intellisense e sujeito a problemas de refactor. Como o uso de Criterias é muito mais freqüente, nós automatizamos na nossa camada de domínio a geração de uma classe estática com todas as propriedades das entidades de domínio (usando arquivos .tt de um <a href="http://en.wikipedia.org/wiki/Text_Template_Transformation_Toolkit" target="_blank">editor T4</a>). Desta forma, temos intellisense e no caso de refactor que cause alguma quebra, teremos um erro de compilação (já que as classes são sempre regeradas). E, conforme falado no post da camada de domínio, construímos ainda uma <a href="http://en.wikipedia.org/wiki/Fluent_interface" target="_blank">fluent interface</a> para facilitar a escrita. O exemplo abaixo mostra isto em funcionamento. </p>
<div style="width:500px;margin-bottom:10px;background:black;">
<pre class="code"><span style="background:black;color:#e07a00;">public long </span><span style="background:black;color:#fddf39;">TotalClosed</span><span style="background:black;color:white;">(</span><span style="background:black;color:#9fabff;">User </span><span style="background:black;color:#fddf39;">user</span><span style="background:black;color:white;">) {
    </span><span style="background:black;color:#e07a00;">return</span><span style="background:black;color:white;"> </span><span style="background:black;color:#fddf39;">Query</span><span style="background:black;color:silver;">.</span><span style="background:black;color:#fddf39;">Where</span><span style="background:black;color:white;">(</span><span style="background:black;color:#9fabff;">Restrictions</span><span style="background:black;color:silver;">.</span><span style="background:black;color:#fddf39;">Eq</span><span style="background:black;color:white;">(</span><span style="background:black;color:#9fabff;">PN</span><span style="background:black;color:silver;">.</span><span style="background:black;color:#fddf39;">User</span><span style="background:black;color:white;">, </span><span style="background:black;color:#fddf39;">user</span><span style="background:black;color:white;">))</span></pre>
<pre class="code"><span style="background:black;color:white;">           </span><span style="background:black;color:silver;">.</span><span style="background:black;color:#fddf39;">And</span><span style="background:black;color:white;">(</span><span style="background:black;color:#9fabff;">Restrictions</span><span style="background:black;color:silver;">.</span><span style="background:black;color:#fddf39;">IsNotNull</span><span style="background:black;color:white;">(</span><span style="background:black;color:#9fabff;">PN</span><span style="background:black;color:silver;">.</span><span style="background:black;color:#fddf39;">ClosedOn</span><span style="background:black;color:white;">))</span><span style="background:black;color:silver;">.</span><span style="background:black;color:#fddf39;">Count</span><span style="background:black;color:white;">();
}</span></pre>
</div>
<p>Esta solução estava bastante adequada até aparecer a alternativa de usarmos expressões lambda ao invés de gerar as classes estáticas. Existem algumas iniciativas já fazendo isto, como o projeto <a href="http://code.google.com/p/nhlambdaextensions/" target="_blank">NHLambdaExtensions</a>. Neste caso específico, porém, eles estão abordando isto como uma biblioteca à parte para a geração de Criterias do NH e não como algo integrado aos repositórios.</p>
<p>Felizmente, na nossa camada de domíno, os repositórios já são tipados para a entidade de domínio que eles representam. Desta foram, fica simples gerar as expressões. O exemplo abaixo mostra a mesma rotina acima, agora usando expressões lamdas.</p>
<div style="width:500px;margin-bottom:10px;background:black;">
<pre class="code"><span style="background:black;color:#e07a00;">public long </span><span style="background:black;color:#fddf39;">TotalClosed</span><span style="background:black;color:white;">(</span><span style="background:black;color:#9fabff;">User </span><span style="background:black;color:#fddf39;">user</span><span style="background:black;color:white;">) {
    </span><span style="background:black;color:#e07a00;">return </span></pre>
<pre class="code"><span style="background:black;color:#e07a00;">      </span><span style="background:black;color:#fddf39;">Query</span><span style="background:black;color:silver;">.</span><span style="background:black;color:#fddf39;">Where</span><span style="background:black;color:white;">(</span><span style="background:black;color:#fddf39;">i </span><span style="background:black;color:silver;">=&#62; </span><span style="background:black;color:#fddf39;">i</span><span style="background:black;color:silver;">.</span><span style="background:black;color:#fddf39;">User </span><span style="background:black;color:silver;">== </span><span style="background:black;color:#fddf39;">user</span><span style="background:black;color:white;"> &#38;&#38; </span><span style="background:black;color:#fddf39;">i</span><span style="background:black;color:silver;">.</span><span style="background:black;color:#fddf39;">ClosedOn </span><span style="background:black;color:silver;">!= </span><span style="background:black;color:#e07a00;">null</span><span style="background:black;color:white;">)</span><span style="background:black;color:silver;">.</span><span style="background:black;color:#fddf39;">Count</span><span style="background:black;color:white;">();
}</span></pre>
</div>
<p>Como pode ser visto, bem mais legível e intuitivo. E sem a necessidade de se usar classes estáticas de apoio! Ainda temos algum trabalho a ser feito, pois não é simples traduzir todos os tipos de lambda para restrições válidas. Mas para os casos mais simples como o acima, está já 100% funcionando.</p>
<p>Outro ponto interessante é que as funções que aceitam lambda podem ser expostos para camadas superiores de domínio, já que usar uma expressão lambda não causa dependência para a camada de persistência. Isto diminui de maneira significativa o próprio tamanho da implementação dos repositórios.</p>
<p>Finalmente, a utilização deste tipo de solução acaba sendo algo tão flexível que estamos passando a adotar em vários outros cenários. Na definição de classes de ordenação para consultas, na identificação de campos usados como atributos em formulários e controllers e assim por diante. Realmente algo muito simples que está aí desde o lançamento da versão 3.5 do .Net mas que demorou para&#160; a “ficha cair” achar uma maneira legal de aplicar na nossa infraestrutura.</p>
<p>Quem quiser saber algum detalhe mais técnico da implementação basta me mandar um <a href="mailto:alexandre.g.valente@gmail.com">email</a>. Até a próxima.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Hasil Uji Emisi]]></title>
<link>http://moefid.net/2009/10/21/hasil-uji-emisi/</link>
<pubDate>Wed, 21 Oct 2009 00:54:36 +0000</pubDate>
<dc:creator>Moefid</dc:creator>
<guid>http://moefid.net/2009/10/21/hasil-uji-emisi/</guid>
<description><![CDATA[Hasil uji emisi untuk mobil mitsubishi galant injection 2000cc tahun 1995 Uji pertama 20 Oktober 200]]></description>
<content:encoded><![CDATA[Hasil uji emisi untuk mobil mitsubishi galant injection 2000cc tahun 1995 Uji pertama 20 Oktober 200]]></content:encoded>
</item>
<item>
<title><![CDATA[lambda e generator]]></title>
<link>http://pythonrs.wordpress.com/2009/10/19/lambda-generetor/</link>
<pubDate>Mon, 19 Oct 2009 17:10:54 +0000</pubDate>
<dc:creator>Sérgio</dc:creator>
<guid>http://pythonrs.wordpress.com/2009/10/19/lambda-generetor/</guid>
<description><![CDATA[Tem duas coisas bem interessantes no python que me chamam a atenção ( dentre muitas outras tb ! ): 1]]></description>
<content:encoded><![CDATA[Tem duas coisas bem interessantes no python que me chamam a atenção ( dentre muitas outras tb ! ): 1]]></content:encoded>
</item>
<item>
<title><![CDATA[Delegates and the AddressOf Operator]]></title>
<link>http://enggtech.wordpress.com/2009/10/12/delegates-and-the-addressof-operator/</link>
<pubDate>Mon, 12 Oct 2009 06:17:39 +0000</pubDate>
<dc:creator>Visitor Blogs</dc:creator>
<guid>http://enggtech.wordpress.com/2009/10/12/delegates-and-the-addressof-operator/</guid>
<description><![CDATA[Delegates are objects that refer to methods. They are sometimes described as type-safe function poin]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Delegates are objects that refer to methods. They are sometimes described as <span class="parameter">type-safe function pointers</span> because they are similar to function pointers used in other programming languages. But unlike function pointers, Visual Basic delegates are a reference type based on the class <span><a id="ctl00_MTCS_main_ctl01" href="http://msdn.microsoft.com/en-us/library/system.delegate.aspx">System<span class="cs">.</span><span class="vb">.</span><span class="cpp">::</span><span class="nu">.</span>Delegate</a></span>.</p>
<p><strong><a href="http://msdn.microsoft.com/en-us/library/74wy9422.aspx">Delegates and the AddressOf Operator</a></strong>.</p>
<p><span>use delegates for other, non-event related tasks, such as </span></p>
<ul>
<li><span>free threading or<br />
</span></li>
<li><span>with procedures that need to call different versions of functions at run time. </span></li>
</ul>
<div class="CollapseRegionLink"><strong>AddressOf and Lambda Expressions </strong></div>
<div class="MTPS_CollapsibleSection" style="display:block;"><a id="sectionToggle3"></a>Each delegate class defines a constructor that is passed the specification of an object method. An argument to a delegate constructor must be a</p>
<ul>
<li>reference to a method, or</li>
<li>a lambda expression.</li>
</ul>
<p>To specify a reference to a method, use the following syntax:</p>
<p><em><span><span class="input">AddressOf</span></span> </em>[<span class="parameter">expression</span>.]<span class="parameter">methodName</span></p>
<p>The compile-time type of the <span class="parameter">expression</span> must be the name of a class or an interface that contains a method of the specified name whose signature matches the signature of the delegate class. The <span class="parameter">methodName</span> can be either a shared method or an instance method. The <span class="parameter">methodName</span> is not optional, even if you create a delegate for the default method of the class.</p>
<p>To specify a <strong>lambda expression</strong>, use the following syntax:</p>
<p><em><span><span class="input">Function</span></span> </em>([<span class="parameter">parm</span> As <span class="parameter">type</span>, <span class="parameter">parm2</span> As <span class="parameter">type2</span>, ...]) <span class="parameter">expression</span></p>
<p>The following example shows both <span><span class="input">AddressOf</span></span> and lambda expressions used to specify the reference for a delegate.</p>
<div id="snippetGroup2"><span id="ctl00_MTCS_main_ctl27_ctl00_ctl00"></p>
<div id="ctl00_MTCS_main_ctl27_ctl00_ctl00_VisualBasic" class="libCScode">
<div class="CodeSnippetTitleBar">
<div class="CodeDisplayLanguage">Visual Basic</div>
</div>
<div style="background-color:#dddddd;" dir="ltr">
<pre class="libCScode" style="white-space:pre-wrap;"><span style="color:blue;">Module</span> Module1

    <span style="color:blue;">Sub</span> Main()
        <span style="color:green;">' Create an instance of InOrderClass and assign values to the properties.</span>
        <span style="color:green;">' InOrderClass method ShowInOrder displays the numbers in ascending </span>
        <span style="color:green;">' or descending order, depending on the comparison method you specify.</span>
        <span style="color:blue;">Dim</span> inOrder <span style="color:blue;">As</span> <span style="color:blue;">New</span> InOrderClass
        inOrder.Num1 = 5
        inOrder.Num2 = 4

        <span style="color:green;">' Use AddressOf to send a reference to the comparison function you want</span>
        <span style="color:green;">' to use.</span>
        inOrder.ShowInOrder(<span style="color:blue;">AddressOf</span> GreaterThan)
        inOrder.ShowInOrder(<span style="color:blue;">AddressOf</span> LessThan)

        <span style="color:green;">' Use lambda expressions to do the same thing.</span>
        inOrder.ShowInOrder(<span style="color:blue;">Function</span>(m, n) m &#62; n)
        inOrder.ShowInOrder(<span style="color:blue;">Function</span>(m, n) m &#60; n)
    <span style="color:blue;">End</span> <span style="color:blue;">Sub</span>

    <span style="color:blue;">Function</span> GreaterThan(<span style="color:blue;">ByVal</span> num1 <span style="color:blue;">As</span> <span style="color:blue;">Integer</span>, <span style="color:blue;">ByVal</span> num2 <span style="color:blue;">As</span> <span style="color:blue;">Integer</span>) <span style="color:blue;">As</span> <span style="color:blue;">Boolean</span>
        <span style="color:blue;">Return</span> num1 &#62; num2
    <span style="color:blue;">End</span> <span style="color:blue;">Function</span>

    <span style="color:blue;">Function</span> LessThan(<span style="color:blue;">ByVal</span> num1 <span style="color:blue;">As</span> <span style="color:blue;">Integer</span>, <span style="color:blue;">ByVal</span> num2 <span style="color:blue;">As</span> <span style="color:blue;">Integer</span>) <span style="color:blue;">As</span> <span style="color:blue;">Boolean</span>
        <span style="color:blue;">Return</span> num1 &#60; num2
    <span style="color:blue;">End</span> <span style="color:blue;">Function</span>

    <span style="color:blue;">Class</span> InOrderClass
        <span style="color:green;">' Define the delegate function for the comparisons.</span>
        <span style="color:blue;">Delegate</span> <span style="color:blue;">Function</span> CompareNumbers(<span style="color:blue;">ByVal</span> num1 <span style="color:blue;">As</span> <span style="color:blue;">Integer</span>, <span style="color:blue;">ByVal</span> num2 <span style="color:blue;">As</span> <span style="color:blue;">Integer</span>) <span style="color:blue;">As</span> <span style="color:blue;">Boolean</span>
        <span style="color:green;">' Display properties in ascending or descending order.</span>
        <span style="color:blue;">Sub</span> ShowInOrder(<span style="color:blue;">ByVal</span> compare <span style="color:blue;">As</span> CompareNumbers)
            <span style="color:blue;">If</span> compare(_num1, _num2) <span style="color:blue;">Then</span>
                Console.WriteLine(_num1 &#38; <span style="color:maroon;">"  "</span> &#38; _num2)
            <span style="color:blue;">Else</span>
                Console.WriteLine(_num2 &#38; <span style="color:maroon;">"  "</span> &#38; _num1)
            <span style="color:blue;">End</span> <span style="color:blue;">If</span>
        <span style="color:blue;">End</span> <span style="color:blue;">Sub</span>

        <span style="color:blue;">Private</span> _num1 <span style="color:blue;">As</span> <span style="color:blue;">Integer</span>
        <span style="color:blue;">Property</span> Num1() <span style="color:blue;">As</span> <span style="color:blue;">Integer</span>
            <span style="color:blue;">Get</span>
                <span style="color:blue;">Return</span> _num1
            <span style="color:blue;">End</span> <span style="color:blue;">Get</span>
            <span style="color:blue;">Set</span>(<span style="color:blue;">ByVal</span> value <span style="color:blue;">As</span> <span style="color:blue;">Integer</span>)
                _num1 = value
            <span style="color:blue;">End</span> <span style="color:blue;">Set</span>
        <span style="color:blue;">End</span> <span style="color:blue;">Property</span>

        <span style="color:blue;">Private</span> _num2 <span style="color:blue;">As</span> <span style="color:blue;">Integer</span>
        <span style="color:blue;">Property</span> Num2() <span style="color:blue;">As</span> <span style="color:blue;">Integer</span>
            <span style="color:blue;">Get</span>
                <span style="color:blue;">Return</span> _num2
            <span style="color:blue;">End</span> <span style="color:blue;">Get</span>
            <span style="color:blue;">Set</span>(<span style="color:blue;">ByVal</span> value <span style="color:blue;">As</span> <span style="color:blue;">Integer</span>)
                _num2 = value
            <span style="color:blue;">End</span> <span style="color:blue;">Set</span>
        <span style="color:blue;">End</span> <span style="color:blue;">Property</span>
    <span style="color:blue;">End</span> <span style="color:blue;">Class</span>
<span style="color:blue;">End</span> <span style="color:blue;">Module</span></pre>
</div>
</div>
<p></span></div>
<p>The signature of the function must match that of the delegate type. For more information about lambda expressions, see <span><a id="ctl00_MTCS_main_ctl27_ctl00_ctl01" href="http://msdn.microsoft.com/en-us/library/bb531253.aspx">Lambda Expressions</a></span>. For more examples of lambda expression and <span><span class="input">AddressOf</span></span> assignments to delegates, see <span><a id="ctl00_MTCS_main_ctl27_ctl00_ctl02" href="http://msdn.microsoft.com/en-us/library/bb531336.aspx">Relaxed Delegate Conversion</a></span>.</div>
<h3 class="procedureSubHeading">Create the delegate and matching procedures</h3>
<div class="subSection">
<ol>
<li>Create a delegate named <span class="code">MySubDelegate</span>.
<p><span id="ctl00_MTCS_main_ctl01"></p>
<div id="ctl00_MTCS_main_ctl01_" class="libCScode">
<div class="CodeSnippetTitleBar">
<div class="CodeDisplayLanguage"></div>
</div>
<div style="background-color:#dddddd;" dir="ltr">
<pre class="libCScode" style="white-space:pre-wrap;">    Delegate Sub MySubDelegate(ByVal x As Integer)</pre>
</div>
</div>
<p></span></li>
<li>Declare a class that contains a method with the same signature as the delegate.
<p><span id="ctl00_MTCS_main_ctl02"></p>
<div id="ctl00_MTCS_main_ctl02_" class="libCScode">
<div class="CodeSnippetTitleBar">
<div class="CodeDisplayLanguage"></div>
</div>
<div style="background-color:#dddddd;" dir="ltr">
<pre class="libCScode" style="white-space:pre-wrap;">    Class class1
        Sub Sub1(ByVal x As Integer)
            MsgBox("The value of x is: " &#38; CStr(x))
        End Sub
    End Class</pre>
</div>
</div>
<p></span></li>
<li>Define a method that creates an instance of the delegate and invokes the method associated with the delegate by calling the built-in <span><span class="input">Invoke</span></span> method.
<p><span id="ctl00_MTCS_main_ctl03"></p>
<div id="ctl00_MTCS_main_ctl03_" class="libCScode">
<div class="CodeSnippetTitleBar">
<div class="CodeDisplayLanguage"></div>
</div>
<div style="background-color:#dddddd;" dir="ltr">
<pre class="libCScode" style="white-space:pre-wrap;">    Protected Sub DelegateTest()
        Dim c1 As New class1
        ' Create an instance of the delegate.
        Dim msd As MySubDelegate = AddressOf c1.Sub1
        ' Call the method.
        msd.Invoke(10)
    End Sub</pre>
</div>
</div>
<p></span></li>
</ol>
</div>
<h3 class="procedureSubHeading">Create the delegate and matching procedures</h3>
<div class="subSection">
<ol>
<li>Create a delegate named <span class="code">MathOperator</span>.
<div id="snippetGroup"><span id="ctl00_MTCS_main_ctl01"></p>
<div id="ctl00_MTCS_main_ctl01_VisualBasic" class="libCScode">
<div class="CodeSnippetTitleBar">
<div class="CodeDisplayLanguage">Visual Basic</div>
</div>
<div style="background-color:#dddddd;" dir="ltr">
<pre class="libCScode" style="white-space:pre-wrap;"><span style="color:blue;">Delegate</span> <span style="color:blue;">Function</span> MathOperator( _
    <span style="color:blue;">ByVal</span> x <span style="color:blue;">As</span> <span style="color:blue;">Double</span>, _
    <span style="color:blue;">ByVal</span> y <span style="color:blue;">As</span> <span style="color:blue;">Double</span> _
) <span style="color:blue;">As</span> <span style="color:blue;">Double</span></pre>
</div>
</div>
<p></span></div>
</li>
<li>Create a procedure named <span class="code">AddNumbers</span> with parameters and return value that match those of <span class="code">MathOperator</span>, so that the signatures match.
<div id="snippetGroup1"><span id="ctl00_MTCS_main_ctl02"></p>
<div id="ctl00_MTCS_main_ctl02_VisualBasic" class="libCScode">
<div class="CodeSnippetTitleBar">
<div class="CodeDisplayLanguage">Visual Basic</div>
</div>
<div style="background-color:#dddddd;" dir="ltr">
<pre class="libCScode" style="white-space:pre-wrap;"><span style="color:blue;">Function</span> AddNumbers( _
    <span style="color:blue;">ByVal</span> x <span style="color:blue;">As</span> <span style="color:blue;">Double</span>, _
    <span style="color:blue;">ByVal</span> y <span style="color:blue;">As</span> <span style="color:blue;">Double</span> _
) <span style="color:blue;">As</span> <span style="color:blue;">Double</span>
    <span style="color:blue;">Return</span> x + y
<span style="color:blue;">End</span> <span style="color:blue;">Function</span></pre>
</div>
</div>
<p></span></div>
</li>
<li>Create a procedure named <span class="code">SubtractNumbers</span> with a signature that matches <span class="code">MathOperator</span>.
<div id="snippetGroup2"><span id="ctl00_MTCS_main_ctl03"></p>
<div id="ctl00_MTCS_main_ctl03_VisualBasic" class="libCScode">
<div class="CodeSnippetTitleBar">
<div class="CodeDisplayLanguage">Visual Basic</div>
</div>
<div style="background-color:#dddddd;" dir="ltr">
<pre class="libCScode" style="white-space:pre-wrap;"><span style="color:blue;">Function</span> SubtractNumbers( _
    <span style="color:blue;">ByVal</span> x <span style="color:blue;">As</span> <span style="color:blue;">Double</span>, _
    <span style="color:blue;">ByVal</span> y <span style="color:blue;">As</span> <span style="color:blue;">Double</span> _
) <span style="color:blue;">As</span> <span style="color:blue;">Double</span>
    <span style="color:blue;">Return</span> x - y
<span style="color:blue;">End</span> <span style="color:blue;">Function</span></pre>
</div>
</div>
<p></span></div>
</li>
<li>Create a procedure named <span class="code">DelegateTest</span> that takes a delegate as a parameter.
<p>This procedure can accept a reference to <span class="code">AddNumbers</span> or <span class="code">SubtactNumbers</span>, because their signatures match the <span class="code">MathOperator</span> signature.</p>
<div id="snippetGroup3"><span id="ctl00_MTCS_main_ctl04"></p>
<div id="ctl00_MTCS_main_ctl04_VisualBasic" class="libCScode">
<div class="CodeSnippetTitleBar">
<div class="CodeDisplayLanguage">Visual Basic</div>
</div>
<div style="background-color:#dddddd;" dir="ltr">
<pre class="libCScode" style="white-space:pre-wrap;"><span style="color:blue;">Sub</span> DelegateTest( _
    <span style="color:blue;">ByVal</span> x <span style="color:blue;">As</span> <span style="color:blue;">Double</span>, _
    <span style="color:blue;">ByVal</span> op <span style="color:blue;">As</span> MathOperator, _
    <span style="color:blue;">ByVal</span> y <span style="color:blue;">As</span> <span style="color:blue;">Double</span> _
)
    <span style="color:blue;">Dim</span> ret <span style="color:blue;">As</span> <span style="color:blue;">Double</span>
    ret = op.Invoke(x, y) <span style="color:green;">' Call the method.</span>
    MsgBox(ret)
<span style="color:blue;">End</span> <span style="color:blue;">Sub</span></pre>
</div>
</div>
<p></span></div>
</li>
<li>Create a procedure named <span class="code">Test</span> that calls <span class="code">DelegateTest</span> once with the delegate for <span class="code">AddNumbers</span> as a parameter, and again with the delegate for <span class="code">SubtractNumbers</span> as a parameter.
<div id="snippetGroup4"><span id="ctl00_MTCS_main_ctl05"></p>
<div id="ctl00_MTCS_main_ctl05_VisualBasic" class="libCScode">
<div class="CodeSnippetTitleBar">
<div class="CodeDisplayLanguage">Visual Basic</div>
</div>
<div style="background-color:#dddddd;" dir="ltr">
<pre class="libCScode" style="white-space:pre-wrap;"><span style="color:blue;">Protected</span> <span style="color:blue;">Sub</span> Test()
    DelegateTest(5, <span style="color:blue;">AddressOf</span> AddNumbers, 3)
    DelegateTest(9, <span style="color:blue;">AddressOf</span> SubtractNumbers, 3)
<span style="color:blue;">End</span> <span style="color:blue;">Sub</span></pre>
</div>
</div>
<p></span></div>
<p>When <span class="code">Test</span> is called, it first displays the result of <span class="code">AddNumbers</span> acting on <span class="code">5</span> and <span class="code">3</span>, which is 8. Then the result of <span class="code">SubtractNumbers</span> acting on <span class="code">9</span> and <span class="code">3</span> is displayed, which is 6.</li>
</ol>
</div>
<div class="subSection">
<div class="CollapseRegionLink"><strong>Converting to a Delegate Type </strong></div>
<div class="MTPS_CollapsibleSection" style="display:block;"><a id="sectionToggle3"></a>A lambda expression can be implicitly converted to a compatible delegate type. For more information about the general requirements for compatibility, see <span><a id="ctl00_MTCS_main_ctl37_ctl00_ctl00" href="http://msdn.microsoft.com/en-us/library/bb531336.aspx">Relaxed Delegate Conversion</a></span>.</p>
<p>In addition, when you assign lambda expressions to delegates, you can specify the parameter names but omit their data types, letting the types be taken from the delegate. In the following example, a lambda expression is assigned to a variable named <span class="code">del</span> of type <span class="code">ExampleDel</span>, a delegate that takes two parameters, an integer and a string. Notice that the data types of the parameters in the lambda expression are not specified. However, <span class="code">del</span> does require an integer argument and a string argument, as specified in the definition of <span class="code">ExampleDel</span>.</p>
<div id="snippetGroup6"><span id="ctl00_MTCS_main_ctl37_ctl00_ctl01"></p>
<div id="ctl00_MTCS_main_ctl37_ctl00_ctl01_VisualBasic" class="libCScode">
<div class="CodeSnippetTitleBar">
<div class="CodeDisplayLanguage">Visual Basic</div>
</div>
<div style="background-color:#dddddd;" dir="ltr">
<pre class="libCScode" style="white-space:pre-wrap;"><span style="color:green;">' Definition of function delegate ExampleDel.</span>
<span style="color:blue;">Delegate</span> <span style="color:blue;">Function</span> ExampleDel(<span style="color:blue;">ByVal</span> arg1 <span style="color:blue;">As</span> <span style="color:blue;">Integer</span>, _
                             <span style="color:blue;">ByVal</span> arg2 <span style="color:blue;">As</span> <span style="color:blue;">String</span>) <span style="color:blue;">As</span> <span style="color:blue;">Integer</span></pre>
</div>
</div>
<p></span></div>
<div id="snippetGroup7"><span id="ctl00_MTCS_main_ctl37_ctl00_ctl02"></p>
<div id="ctl00_MTCS_main_ctl37_ctl00_ctl02_VisualBasic" class="libCScode">
<div class="CodeSnippetTitleBar">
<div class="CodeDisplayLanguage">Visual Basic</div>
</div>
<div style="background-color:#dddddd;" dir="ltr">
<pre class="libCScode" style="white-space:pre-wrap;"><span style="color:green;">' Declaration of del as an instance of ExampleDel, with no data </span>
<span style="color:green;">' type specified for the parameters, m and s.</span>
<span style="color:blue;">Dim</span> del <span style="color:blue;">As</span> ExampleDel = <span style="color:blue;">Function</span>(m, s) m

<span style="color:green;">' Valid call to del, sending in an integer and a string.</span>
Console.WriteLine(del(7, <span style="color:maroon;">"up"</span>))

<span style="color:green;">' Neither of these calls is valid. Function del requires an integer</span>
<span style="color:green;">' argument and a string argument.</span>
<span style="color:green;">' Not valid.</span>
<span style="color:green;">' Console.WriteLine(del(7, 3))</span>
' Console.WriteLine(del(<span style="color:maroon;">"abc"</span>))</pre>
</div>
</div>
<p></span></div>
</div>
</div>
<div class="subSection"></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Lambda Lecture Series]]></title>
<link>http://xosfaere.wordpress.com/2009/10/11/lambda-lecture-series/</link>
<pubDate>Sun, 11 Oct 2009 21:50:30 +0000</pubDate>
<dc:creator>xosfaere</dc:creator>
<guid>http://xosfaere.wordpress.com/2009/10/11/lambda-lecture-series/</guid>
<description><![CDATA[There is a new lecture series on Channel 9 by Dr. Erik Meijer. It is about functional programming an]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>There is a new lecture series on Channel 9 by Dr. Erik Meijer. It is about functional programming and is using Haskell as the the means of expression although the exact language is not so important; but Haskell is appropriate in that it is pure, lazy and has a discrete syntax.</p>
<p>There was a couple of questions about the execution of the programs in the beginning of the series and so for weekend fun I prepared a small document that shows two different (actually not so different) REPL&#8217;s. These may be used to execute Haskell expressions directly.</p>
<p>References</p>
<ul>
<li><a href="http://channel9.msdn.com/shows/Going+Deep/Lecture-Series-Erik-Meijer-Functional-Programming-Fundamentals-Chapter-1/">Lecture Series</a> [channel 9]</li>
<li><a href="http://cid-e189d6f0d12fdc06.skydrive.live.com/browse.aspx/Public/Lambda%20Lecture%20Series">Lecture Reference</a> [SkyDrive]</li>
</ul>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[TDK-Lambda Launches RFE1000 Power Supplies]]></title>
<link>http://primson.wordpress.com/2009/10/05/tdk-lambda-launches-rfe1000-power-supplies/</link>
<pubDate>Mon, 05 Oct 2009 21:04:27 +0000</pubDate>
<dc:creator>primson</dc:creator>
<guid>http://primson.wordpress.com/2009/10/05/tdk-lambda-launches-rfe1000-power-supplies/</guid>
<description><![CDATA[TDK-Lambda Launches RFE1000 Power Supplies TDK-Lambda has introduced 1kW embedded 1U-high single-out]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div class="wp-caption alignright" style="width: 310px"><img title="TDK-Lambda Launches RFE1000 Power Supplies" src="http://www.electronicstalk.com/news/lbd/lbd252_01.jpeg" alt="TDK-Lambda Launches RFE1000 Power Supplies" width="300" height="214" /><p class="wp-caption-text">TDK-Lambda Launches RFE1000 Power Supplies</p></div>
<p><strong><a href="http://www.tdk-lambda.com">TDK-Lambda</a></strong> has introduced 1kW embedded 1U-high single-output AC-DC power supplies for standalone and distributed power architecture applications requiring 24V, 32V and 48V bulk power. Up to 20 per cent output voltage adjustment is possible, enabling the RFE1000 series to be used in a variety of customer-specific applications, including battery charging.</p>
<p>Operating from a universal input of 85VAC to 265VAC, typical applications for the RFE1000 supplies include communications, factory automation and radio-frequency amplifiers. Efficiency of up to 89 per cent minimises heat dissipation. The RFE1000-24 ,-32 and -48 power supplies can be used individually or up to eight units can be connected in parallel to form an N+1 redundant power system with optional OR&#8217;ing diodes.</p>
<p>Each power supply has variable-speed cooling fans and can operate in temperatures ranging from 0C to +70C. The RFE has a power density of 10.5W/in3 with dimensions of 305 x 127 x 41mm. AC input is via a terminal block and DC output is via M5 studs. Auxiliary outputs are via a JST-type 12-way connector. Over-voltage, over-current and over-temperature protection are standard features and, for system monitoring, there are opto-isolated signals for DC OK, AC fail and over-temperature warning with a rear-panel light-emitting-diode (LED) indicator for DC OK.</p>
<p>Remote on/off control and remote sense features also come as standard. Other standard features include single-wire current sharing and an auxiliary 12V 0.25A output with a built-in OR&#8217;ing diode. As well as being EN55022 and FCC compliant (achieving Class B conducted and radiated emission), the RFE1000 series meets UL/EN 60950-1 safety approvals and carries the CE mark. Harmonic correction meets the EN61000-3-2 standard and the power supplies are backed by a two-year warranty.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Beta Delta]]></title>
<link>http://imabetadeltatriedandtrue.wordpress.com/2009/10/02/beta-delta/</link>
<pubDate>Fri, 02 Oct 2009 05:08:22 +0000</pubDate>
<dc:creator>Kyra Halloway</dc:creator>
<guid>http://imabetadeltatriedandtrue.wordpress.com/2009/10/02/beta-delta/</guid>
<description><![CDATA[Chapter: Sigma Phi Colors: Sky Blue and Kelly Green Jewels: Diamond, Saphire and Pearl Symbols: Butt]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Chapter: Sigma Phi</p>
<p>Colors: Sky Blue and Kelly Green</p>
<p>Jewels: Diamond, Saphire and Pearl</p>
<p>Symbols: Butterfly, Conch, Sword, and Grasshopper</p>
<p>Flower: Gerber Daisy</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[The Author]]></title>
<link>http://imabetadeltatriedandtrue.wordpress.com/2009/09/28/the-author/</link>
<pubDate>Mon, 28 Sep 2009 15:45:02 +0000</pubDate>
<dc:creator>Kyra Halloway</dc:creator>
<guid>http://imabetadeltatriedandtrue.wordpress.com/2009/09/28/the-author/</guid>
<description><![CDATA[Name: Kyra Halloway Home Town: Bayville, ND Major: English Education Sorority: Beta Delta School: Mi]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Name: Kyra Halloway</p>
<p>Home Town: Bayville, ND</p>
<p>Major: English Education</p>
<p>Sorority: Beta Delta</p>
<p>School: Midwestern University</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Shift Subtitle, part 2]]></title>
<link>http://charpcfn.wordpress.com/2009/09/27/shift-subtitle-part-2/</link>
<pubDate>Sun, 27 Sep 2009 23:56:40 +0000</pubDate>
<dc:creator>ggnextmap</dc:creator>
<guid>http://charpcfn.wordpress.com/2009/09/27/shift-subtitle-part-2/</guid>
<description><![CDATA[I find myself with some more free time today so I&#8217;ll forge ahead with this challenge! The firs]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I find myself with some more free time today so I&#8217;ll forge ahead with this challenge!</p>
<p>The first thing I&#8217;m going to do here is add functionality to the options and arguments and make sure they are being read in correctly. Here is my resulting code:</p>
<p><a href="http://charpcfn.pastebin.com/f454f0012">http://charpcfn.pastebin.com/f454f0012</a></p>
<p>Now that those are all set I can start working on file I/O. I have no idea how Ruby handles this, but it&#8217;s probably pretty easy. Time for more google!</p>
<p>As I expected File I/O is pretty easy. infile is going to be read in line by line and then as the times are updated each line will be written to the outfile. I&#8217;m thinking about making a class SubtitleTime and have that handle the conversion from HH:MM:SS,mmm to an object, but I&#8217;m gonna sit on that idea for a while before implementing it.</p>
<p>I&#8217;m spending a lot of my time looking up specific syntax here. I made sure the ternary operator was normal as well as looking up lambdas which, apparently, you have to do function.call in order for it to work&#8230;That one was a stumper. I also really like how Ruby does regular expressions. My first introduction to REs were in Perl so this is a great throwback seeing the =~ operator again.</p>
<p>Anyway, I&#8217;m finished programming for now, here is the code I ended up with:</p>
<p><a href="http://charpcfn.pastebin.com/f1e1b9214">http://charpcfn.pastebin.com/f1e1b9214</a></p>
<p>Overall I spent more time looking up syntax than I did library function calls but am definitely learning a lot about the Ruby language.</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
