<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rbfigueira</title>
	<atom:link href="http://rbfigueira.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://rbfigueira.net</link>
	<description>Programmer &#38; Photographer</description>
	<lastBuildDate>Wed, 12 Oct 2011 19:37:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Chase Jarvis TECH: Complete Workflow for Photo and Video</title>
		<link>http://rbfigueira.net/2011/09/chase-jarvis-workflow/</link>
		<comments>http://rbfigueira.net/2011/09/chase-jarvis-workflow/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 19:33:23 +0000</pubDate>
		<dc:creator>rbfigueira</dc:creator>
				<category><![CDATA[Videos]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[Workflow]]></category>

		<guid isPermaLink="false">http://rbfigueira.net/?p=1220</guid>
		<description><![CDATA[Chase Jarvis TECH: Complete Workflow for Photo and Video Without a doubt, one of our most popular posts of 2010 has been this post where we outline in detail our photo and video workflow from capture to delivery of digital assets to clients. (Source: blog.chasejarvis.com)]]></description>
			<content:encoded><![CDATA[<p>Chase Jarvis TECH: Complete Workflow for Photo and Video</p>
<p>Without a doubt, one of our most popular posts of 2010 has been this post where we outline in detail our photo and video workflow from capture to delivery of digital assets to clients.</p>
<p>(Source: <a href="blog.chasejarvis.com" target="_blank">blog.chasejarvis.com</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://rbfigueira.net/2011/09/chase-jarvis-workflow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ipad + &#8220;Eye of the Tiger&#8221;</title>
		<link>http://rbfigueira.net/2011/05/ipad-eye-of-the-tiger/</link>
		<comments>http://rbfigueira.net/2011/05/ipad-eye-of-the-tiger/#comments</comments>
		<pubDate>Sun, 29 May 2011 19:21:40 +0000</pubDate>
		<dc:creator>rbfigueira</dc:creator>
				<category><![CDATA[Videos]]></category>
		<category><![CDATA[instruments]]></category>
		<category><![CDATA[ipad]]></category>

		<guid isPermaLink="false">http://rbfigueira.net/?p=1213</guid>
		<description><![CDATA[Eye of the Tiger by Survivor. All instruments were played using ipad applications downloaded from itunes.]]></description>
			<content:encoded><![CDATA[<p>Eye of the Tiger by Survivor. All instruments were played using ipad applications downloaded from itunes.</p>
]]></content:encoded>
			<wfw:commentRss>http://rbfigueira.net/2011/05/ipad-eye-of-the-tiger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What’s HTML5 and Why We Should All Care</title>
		<link>http://rbfigueira.net/2010/10/wtf-html5-and-why-we-should-all-care/</link>
		<comments>http://rbfigueira.net/2010/10/wtf-html5-and-why-we-should-all-care/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 19:46:34 +0000</pubDate>
		<dc:creator>rbfigueira</dc:creator>
				<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://minimal.rbfigueira.net/?p=80</guid>
		<description><![CDATA[HTML5 is on the tip of every tech guru’s tongue these days. So what is it? How does it relate to Flash? How does it impact your site? All is answered in this helpful infographic from Focus. This handy printable reference help you understand the possibilities that HTML5 brings. You’ll learn how it works, how ...]]></description>
			<content:encoded><![CDATA[<p>HTML5 is on the tip of every tech guru’s tongue these days.  So what is it?  How does it relate to Flash?  How does it impact your site?  All is answered in this helpful infographic from Focus.   This handy printable reference help you understand the possibilities that HTML5 brings.  You’ll learn how it works, how the major browsers support it and where it’s headed.</p>
<p>Learn who will own the web’s interactive future.  Is it Flash?  HTML5? Get the <a href="http://2011.rbfigueira.net/wp-content/uploads/2010/10/HTML5.jpg">Full image</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://rbfigueira.net/2010/10/wtf-html5-and-why-we-should-all-care/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET Padding Oracle Attack (Demo)</title>
		<link>http://rbfigueira.net/2010/09/asp-net-padding-oracle-attack-demo/</link>
		<comments>http://rbfigueira.net/2010/09/asp-net-padding-oracle-attack-demo/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 23:40:29 +0000</pubDate>
		<dc:creator>rbfigueira</dc:creator>
				<category><![CDATA[DotNet]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Attack]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://minimal.rbfigueira.net/?p=34</guid>
		<description><![CDATA[In this video, researchers Juliano Rizzo and Thai Duong demonstrate the technique they developed for stealing cryptographic keys for ASP.NET Web applications, enabling them to compromise virtually any app built on ASP.NET. You can read the full story of their attack in this article, “Padding Oracle Attack Affects Millions of ASP.NET Apps.” Some great references: ...]]></description>
			<content:encoded><![CDATA[<p>In this video, researchers Juliano Rizzo and Thai Duong demonstrate the technique they developed for stealing cryptographic keys for ASP.NET Web applications, enabling them to compromise virtually any app built on ASP.NET.</p>
<p>You can read the full story of their attack in this article, “<a href="http://threatpost.com/en_us/blogs/new-crypto-attack-affects-millions-aspnet-apps-091310?utm_source=Threatpost&amp;utm_medium=Tabs&amp;utm_campaign=Today%27s+Most+Popular" target="_blank">Padding Oracle Attack Affects Millions of ASP.NET Apps</a>.”</p>
<p><strong>Some great references:<br />
</strong><a href="http://visualstudiomagazine.com/articles/2010/09/14/aspnet-security-hack.aspx" target="_blank">http://visualstudiomagazine.com/articles/2010/09/14/aspnet-security-hack.aspx<br />
</a><a href="http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-3332" target="_blank">http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-3332</a></p>
<p><strong>Microsoft Security Advisory (2416728)<br />
</strong><strong>Vulnerability in ASP.NET Could Allow Information Disclosure<br />
</strong><a href="http://www.microsoft.com/technet/security/advisory/2416728.mspx" target="_blank">http://www.microsoft.com/technet/security/advisory/2416728.mspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rbfigueira.net/2010/09/asp-net-padding-oracle-attack-demo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forrst invites</title>
		<link>http://rbfigueira.net/2010/09/forrst-invites/</link>
		<comments>http://rbfigueira.net/2010/09/forrst-invites/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 20:54:58 +0000</pubDate>
		<dc:creator>rbfigueira</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[Forrst]]></category>
		<category><![CDATA[invites]]></category>

		<guid isPermaLink="false">http://minimal.rbfigueira.net/?p=41</guid>
		<description><![CDATA[I have received invites from Forrst website and Iím looking for some great people to donate them. What is Forrst? Forrst is a place for designers and developers to share screenshots, links, code , and questions with their peers. Itís an online community for the web industry and a great place to showcase your work, ...]]></description>
			<content:encoded><![CDATA[<p>I have received invites from <a href="http://forrst.com/" target="_blank">Forrst</a> website and Iím looking for some great people to donate them.</p>
<p><strong>What is Forrst?</strong></p>
<p>Forrst is a place for designers and developers to share screenshots, links, code , and questions with their peers. Itís an online community for the web industry and a great place to showcase your work, as well as getting help and getting feedback on your work.</p>
<p><strong>Getting an invite</strong></p>
<p>As the title suggests, I have <del datetime="2010-12-07T20:08:51+00:00">8</del> (update: 13) invites available for Forrst, all I need from you is a link to your portfolio, or latest work, and I will soon announce the <strong><del datetime="2010-12-07T20:08:51+00:00">8</del> (update: 13)</strong> lucky people to get invites!</p>
]]></content:encoded>
			<wfw:commentRss>http://rbfigueira.net/2010/09/forrst-invites/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>DataBinder (increase performance)</title>
		<link>http://rbfigueira.net/2010/07/databinder-increase-performance/</link>
		<comments>http://rbfigueira.net/2010/07/databinder-increase-performance/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 19:23:40 +0000</pubDate>
		<dc:creator>rbfigueira</dc:creator>
				<category><![CDATA[DotNet]]></category>
		<category><![CDATA[cast]]></category>
		<category><![CDATA[DataBinder]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://minimal.rbfigueira.net/?p=49</guid>
		<description><![CDATA[DataBinder.Eval method saves you from writing complex expressions, but using this method does impose a performance penalty on your code, because all the work it does is late-bound. If we want the fastest possible code, you can replace calls to DataBinder.Eval with explicit casts. For example: &#60; %# DataBinder.Eval(Container.DataItem, “myField”,“{0:c}”) %&#62; An equivalent expression using ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://msdn.microsoft.com/en-us/library/4hx47hfe.aspx" target="_Blank">DataBinder.Eval</a> method saves you from writing complex expressions, but using this method does impose a performance penalty on your code, because all the work it does is late-bound. If we want the fastest possible code, you can replace calls to <a href="http://msdn.microsoft.com/en-us/library/4hx47hfe.aspx" target="_Blank">DataBinder.Eval</a> with explicit casts.</p>
<p>For example:</p>
<div class="wp_syntax">
<div class="code">
<pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&lt;</span> <span style="color: #008000;">%</span><span style="color: #008080;"># DataBinder.Eval(Container.DataItem, “myField”,“{0:c}”) %&gt;</span></pre>
</div>
</div>
<p>An equivalent expression using casts would be this:</p>
<div class="wp_syntax">
<div class="code">
<pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&lt;</span> <span style="color: #008000;">%</span><span style="color: #008080;"># String.Format(“{0:c}”,(CType(Container.DataItem,DataRowView)(“myField”))) %&gt;</span></pre>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://rbfigueira.net/2010/07/databinder-increase-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Synchronize Method in dotNet c#</title>
		<link>http://rbfigueira.net/2010/05/synchronize-method-in-dotnet-c/</link>
		<comments>http://rbfigueira.net/2010/05/synchronize-method-in-dotnet-c/#comments</comments>
		<pubDate>Thu, 27 May 2010 21:57:42 +0000</pubDate>
		<dc:creator>rbfigueira</dc:creator>
				<category><![CDATA[DotNet]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[synchronized methods]]></category>

		<guid isPermaLink="false">http://minimal.rbfigueira.net/?p=99</guid>
		<description><![CDATA[Synchronized methods give us an ability to execute only one thread at a time. This is useful if our method modifies global variable. The program will carry out request of user one, other user request will wait. After first request is carried out, second request will be handled. In Java World: public synchronized void SomeMethod&#40;&#41; ...]]></description>
			<content:encoded><![CDATA[<p>Synchronized methods give us an ability to execute only one thread at a time. This is useful if our method modifies global variable. The program will carry out request of user one, other user request will wait. After first request is carried out, second request will be handled.</p>
<p><strong>In Java World:</strong></p>
<div class="wp_syntax">
<div class="code">
<pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">synchronized</span> <span style="color: #000066; font-weight: bold;">void</span> SomeMethod<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// synchronized code</span>

<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<div class="wp_syntax">
<div class="code">
<pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> SomeMethod<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// trivial code  </span>
	<span style="color: #003399;">StringWriter</span> swr <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">StringWriter</span><span style="color: #009900;">&#40;</span>params<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>

&nbsp;
	<span style="color: #000000; font-weight: bold;">Synchronized</span><span style="color: #009900;">&#40;</span>swr<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	     <span style="color: #666666; font-style: italic;">// synchronized code</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p><strong>In DotNet Word:</strong></p>
<div class="wp_syntax">
<div class="code">
<pre class="csharp" style="font-family:monospace;"><span style="color: #000000;">&#91;</span>MethodImpl<span style="color: #000000;">&#40;</span>MethodImplOptions.<span style="color: #0000FF;">Synchronized</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span>

<span style="color: #0600FF;">public</span> <span style="color: #0600FF;">void</span> SomeMethod<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #008080; font-style: italic;">// synchronized code</span>
<span style="color: #000000;">&#125;</span></pre>
</div>
</div>
<div class="wp_syntax">
<div class="code">
<pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">public</span> <span style="color: #0600FF;">void</span> SomeMethod<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> 

<span style="color: #000000;">&#123;</span>
	<span style="color: #008080; font-style: italic;">// trivial code </span>
	StringWriter swr <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> StringWriter<span style="color: #000000;">&#40;</span><span style="color: #0600FF;">params</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
	<span style="color: #0600FF;">lock</span><span style="color: #000000;">&#40;</span>swr<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #008080; font-style: italic;">// synchronized code</span>

	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre>
</div>
</div>
<p>Personally, I don&#8217;t like the implementation of MethodImpl as it locks <em>this</em> or <em>typeof(Foo)</em> &#8211; which is against best practice.</p>
<p>In the next example, both <strong>lock(this)</strong> and M<strong>ethodImplOptions.Synchronized</strong> do the same thing &#8211; they lock against the object.This is why MethodImplOptions.Synchronized should be avoided.</p>
<div class="wp_syntax">
<div class="code">
<pre class="csharp" style="font-family:monospace;"><span style="color: #000000;">&#91;</span>MethodImpl<span style="color: #000000;">&#40;</span>MethodImplOptions.<span style="color: #0000FF;">Synchronized</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span>
<span style="color: #0600FF;">public</span> <span style="color: #0600FF;">void</span> SomeMethod<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #008080; font-style: italic;">// synchronized code</span>
<span style="color: #000000;">&#125;</span></pre>
</div>
</div>
<p>&#8211; same as &#8211;</p>
<div class="wp_syntax">
<div class="code">
<pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">public</span> <span style="color: #0600FF;">void</span> SomeMethod<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #0600FF;">lock</span><span style="color: #000000;">&#40;</span><span style="color: #0600FF;">this</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #008080; font-style: italic;">// synchronized code</span>

	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://rbfigueira.net/2010/05/synchronize-method-in-dotnet-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Registering a Virtual Path Provider</title>
		<link>http://rbfigueira.net/2010/05/registering-a-virtual-path-provider/</link>
		<comments>http://rbfigueira.net/2010/05/registering-a-virtual-path-provider/#comments</comments>
		<pubDate>Fri, 21 May 2010 22:00:19 +0000</pubDate>
		<dc:creator>rbfigueira</dc:creator>
				<category><![CDATA[DotNet]]></category>
		<category><![CDATA[AppInitialize]]></category>
		<category><![CDATA[Application_Start]]></category>
		<category><![CDATA[provider]]></category>
		<category><![CDATA[VPP]]></category>

		<guid isPermaLink="false">http://minimal.rbfigueira.net/?p=102</guid>
		<description><![CDATA[Unlike most providers, the Virtual Path provider is not registered through the web.config file. You can register the VPP through the Application_Start event in Global.asax or adding the static method AppInitialize into a class located in the App_Code directory. public static class WebAppStart &#123; public static void AppInitialize&#40;&#41; &#123; MyVirtualPathProvider vpp = new MyVirtualPathProvider&#40;&#41;; HostingEnvironment.RegisterVirtualPathProvider&#40;vpp&#41;; ...]]></description>
			<content:encoded><![CDATA[<p>Unlike most providers, the <strong>Virtual Path provider</strong> is not registered through the web.config file. You can register the VPP through the <strong>Application_Start</strong> event in Global.asax or adding the <strong>static method AppInitialize</strong> into a class located in the <em>App_Code</em> directory.</p>
<div class="wp_syntax">
<div class="code">
<pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">public</span> <span style="color: #0600FF;">static</span> <span style="color: #FF0000;">class</span> WebAppStart
<span style="color: #000000;">&#123;</span>
 <span style="color: #0600FF;">public</span> <span style="color: #0600FF;">static</span> <span style="color: #0600FF;">void</span> AppInitialize<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
 	<span style="color: #000000;">&#123;</span>
  		MyVirtualPathProvider vpp <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> MyVirtualPathProvider<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
  		HostingEnvironment.<span style="color: #0000FF;">RegisterVirtualPathProvider</span><span style="color: #000000;">&#40;</span>vpp<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
  	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre>
</div>
</div>
<p>You will get one compilation error if you have multiple static methods with the same name (AppInitialize) in different classes in the <em>App_Code</em> directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://rbfigueira.net/2010/05/registering-a-virtual-path-provider/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET + JavaScript</title>
		<link>http://rbfigueira.net/2010/05/asp-net-javascript/</link>
		<comments>http://rbfigueira.net/2010/05/asp-net-javascript/#comments</comments>
		<pubDate>Sat, 08 May 2010 20:09:58 +0000</pubDate>
		<dc:creator>rbfigueira</dc:creator>
				<category><![CDATA[DotNet]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://minimal.rbfigueira.net/?p=142</guid>
		<description><![CDATA[The .NET Platform came to facilitate the development of web pages but when we interact on the client-side we have to use the JavaScript language. The JavaScript is the &#8220;only&#8221; help, and no doubt crucial, as regards the interaction with the client (client-side). Often we use JavaScript to avoid &#8220;PostBack&#8220;, less trips to the server. ...]]></description>
			<content:encoded><![CDATA[<p>The <strong>.NET Platform</strong> came to facilitate the development of web pages but when we interact on the <em>client-side</em> we have to use the <strong>JavaScript</strong> language.</p>
<p>The <strong>JavaScript</strong> is the &#8220;only&#8221; help, and no doubt crucial, as regards the interaction with the client (<em>client-side</em>). Often we use JavaScript to avoid &#8220;<em>PostBack</em>&#8220;, less trips to the server. </p>
<p>It is also good for better usability. Who has not made the use of cookies (<em>client-side</em>) to improve usability? </p>
<p>As an example, I leave here a function, which I think it¥s very simple to understand and useful, which means that our &#8220;friends&#8221; <strong>Robots</strong> can not &#8220;eat&#8221; our emails published on the Web. Simple but effective!</p>
<div class="wp_syntax">
<div class="code">
<pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;html<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Test<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">language</span>=<span style="color: #ff0000;">&quot;JavaScript&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>

            function antispam(name,domain) {
                document.location = &quot;mailto:&quot; + name + &quot;@&quot; + domain;
            }
&nbsp;
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>

           <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>O meu email È <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;javascript:antispam('nome','dominio.net');&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>este<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/p<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://rbfigueira.net/2010/05/asp-net-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Looking Ahead to C# 4.0: Optional and Named Parameters</title>
		<link>http://rbfigueira.net/2010/01/looking-ahead-to-c-4-0-optional-and-named-parameters/</link>
		<comments>http://rbfigueira.net/2010/01/looking-ahead-to-c-4-0-optional-and-named-parameters/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 19:39:52 +0000</pubDate>
		<dc:creator>rbfigueira</dc:creator>
				<category><![CDATA[DotNet]]></category>
		<category><![CDATA[C# 4.0]]></category>

		<guid isPermaLink="false">http://minimal.rbfigueira.net/?p=55</guid>
		<description><![CDATA[Bill Wagner has explored two related upcoming features in the C# language: named and optional parameters. These features were added to the language to support COM interoperability, specifically COM interoperability with Microsoft Office. For a variety of historical reasons, Office COM APIs have large numbers of parameters, several of which have reasonable defaults. In addition, ...]]></description>
			<content:encoded><![CDATA[<p>Bill Wagner has explored two related upcoming features in the C# language: named and optional parameters. These features were added to the language to support COM interoperability, specifically COM interoperability with Microsoft Office.</p>
<p>For a variety of historical reasons, Office COM APIs have large numbers of parameters, several of which have reasonable defaults. In addition, while you may want to use many of the defaults, you may need to specify a value for some of the parameters later in the list. It would be great to call those Office methods having 15 or more parameters by only specifying those parameters where you want something other than the default. Optional and named parameters enable that for you in C# 4.0.</p>
<p><strong>Named and Optional Parameters Explained</strong><br />
Named parameters allow you to call a method by specifying which argument in a method call refers to which formal parameter. Suppose someone had written this trivial Subtract method:</p>
<div class="wp_syntax">
<div class="code">
<pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">public</span> <span style="color: #0600FF;">static</span> <span style="color: #FF0000;">int</span> Subtract<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> left, <span style="color: #FF0000;">int</span> right<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
<span style="color: #0600FF;">return</span> left <span style="color: #008000;">-</span> right<span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span></pre>
</div>
</div>
<p>All three of these calls are equivalent:</p>
<div class="wp_syntax">
<div class="code">
<pre class="csharp" style="font-family:monospace;">result <span style="color: #008000;">=</span> Subtract<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">7</span>, <span style="color: #FF0000;">5</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
result <span style="color: #008000;">=</span> Subtract<span style="color: #000000;">&#40;</span>left<span style="color: #008000;">:</span> <span style="color: #FF0000;">7</span>, right<span style="color: #008000;">:</span> <span style="color: #FF0000;">5</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>

result <span style="color: #008000;">=</span> Subtract<span style="color: #000000;">&#40;</span>right<span style="color: #008000;">:</span> <span style="color: #FF0000;">5</span>, left<span style="color: #008000;">:</span> <span style="color: #FF0000;">7</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span></pre>
</div>
</div>
<p>If you don&#8217;t specify a name for any of the parameters, the normal order is used. Notice that you can rearrange the order of the parameters by specifying them by name.</p>
<p>Optional parameters enable you to specify a default value for any parameter to a method. Any parameters that have default values must be at the end of the argument list. Optional parameters must be compile-time constants.</p>
<p>One of the things I like the most about named parameters is that you can improve the readability of code.</p>
<p><strong>Please read the complete article here:</strong><br />
<a href="http://visualstudiomagazine.com/Articles/2009/09/01/Optional-and-Named-Parameters.aspx?p=1" target="_blank">Visual Studio Magazine : Looking Ahead to C# 4.0: Optional and Named Parameters</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rbfigueira.net/2010/01/looking-ahead-to-c-4-0-optional-and-named-parameters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

