<?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>Riaz Missaghi</title>
	<atom:link href="http://riazmissaghi.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://riazmissaghi.com</link>
	<description>Trust your gut, code with your brain.</description>
	<lastBuildDate>Fri, 24 May 2013 17:39:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4</generator>
		<item>
		<title>My favorite extention</title>
		<link>http://riazmissaghi.com/2013/02/my-favorite-extention/</link>
		<comments>http://riazmissaghi.com/2013/02/my-favorite-extention/#comments</comments>
		<pubDate>Mon, 04 Feb 2013 20:30:17 +0000</pubDate>
		<dc:creator>Riaz</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://riazmissaghi.com/?p=147</guid>
		<description><![CDATA[Apart from linq, this extension saves me more time than any other syntactic sugar. public static class Extension { public static bool Like(this string str, string str1) { if (String.IsNullOrEmpty(str) &#124;&#124; String.IsNullOrEmpty(str1 )) return (String.IsNullOrEmpty(str) &#38;&#38; String.IsNullOrEmpty(str1)); else return str.Equals(str1, StringComparison.InvariantCultureIgnoreCase); } } Usage is simple. instead of having to write: if (str.Equals(str1, StringComparison.InvariantCultureIgnoreCase)) you can write [...]]]></description>
			<content:encoded><![CDATA[<p>Apart from linq, this extension saves me more time than any other syntactic sugar.</p>
<pre style="color: #000000; background: #ffffff;"><span style="color: #800000; font-weight: bold;">public</span> <span style="color: #800000; font-weight: bold;">static</span> <span style="color: #800000; font-weight: bold;">class</span> Extension
    <span style="color: #800080;">{</span>  
        <span style="color: #800000; font-weight: bold;">public</span> <span style="color: #800000; font-weight: bold;">static</span> <span style="color: #800000; font-weight: bold;">bool</span> Like<span style="color: #808030;">(</span><span style="color: #800000; font-weight: bold;">this</span> <span style="color: #800000; font-weight: bold;">string</span> str<span style="color: #808030;">,</span> <span style="color: #800000; font-weight: bold;">string</span> str1<span style="color: #808030;">)</span>
        <span style="color: #800080;">{</span>
            <span style="color: #800000; font-weight: bold;">if</span> <span style="color: #808030;">(</span>String<span style="color: #808030;">.</span>IsNullOrEmpty<span style="color: #808030;">(</span>str<span style="color: #808030;">)</span> || String<span style="color: #808030;">.</span>IsNullOrEmpty<span style="color: #808030;">(</span>str1 <span style="color: #808030;">)</span><span style="color: #808030;">)</span>
                <span style="color: #800000; font-weight: bold;">return</span> <span style="color: #808030;">(</span>String<span style="color: #808030;">.</span>IsNullOrEmpty<span style="color: #808030;">(</span>str<span style="color: #808030;">)</span> &amp;&amp; String<span style="color: #808030;">.</span>IsNullOrEmpty<span style="color: #808030;">(</span>str1<span style="color: #808030;">)</span><span style="color: #808030;">)</span><span style="color: #800080;">;</span>
            <span style="color: #800000; font-weight: bold;">else</span>
                <span style="color: #800000; font-weight: bold;">return</span> str<span style="color: #808030;">.</span>Equals<span style="color: #808030;">(</span>str1<span style="color: #808030;">,</span> StringComparison<span style="color: #808030;">.</span>InvariantCultureIgnoreCase<span style="color: #808030;">)</span><span style="color: #800080;">;</span>
        <span style="color: #800080;">}</span> 
    <span style="color: #800080;">}</span></pre>
<p>Usage is simple.</p>
<p>instead of having to write:</p>
<p><span style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;">if (str.Equals(str1, StringComparison.InvariantCultureIgnoreCase))</span></p>
<p>you can write</p>
<pre>if (str.like(str1))</pre>
<pre>And not have to worry about null exceptions.</pre>
<pre>Enjoy!</pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://riazmissaghi.com/2013/02/my-favorite-extention/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Star light</title>
		<link>http://riazmissaghi.com/2012/01/star-light/</link>
		<comments>http://riazmissaghi.com/2012/01/star-light/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 17:52:40 +0000</pubDate>
		<dc:creator>Riaz</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Photograpy]]></category>

		<guid isPermaLink="false">http://riazmissaghi.com/?p=123</guid>
		<description><![CDATA[When you experiment with materials, even just play with them, their properties expand your outlet for creative expression. This doesn&#8217;t happen when you simply watch them on TV, you need to really use them to learn their characteristics, how they bend, stretch, stick, reflect, and sound. Such is the case with cardboard, spray adhesive, tinfoil [...]]]></description>
			<content:encoded><![CDATA[<p>When you experiment with materials, even just play with them, their properties expand your outlet for creative expression. This doesn&#8217;t happen when you simply watch them on TV, you need to really use them to learn their characteristics, how they bend, stretch, stick, reflect, and sound. Such is the case with cardboard, spray adhesive, tinfoil and tape. I&#8217;ve used these ingredients to build several <a href="http://1.bp.blogspot.com/_NP1V1twlVEU/R0z2Udi9uoI/AAAAAAAAAH4/JL40rsTnKxI/s1600-h/Ikea+Softbox+II+051.JPG">DIY ringlights</a> and <a href="http://riazmissaghi.com/2007/11/ikea-photography-tent-softbox/">Tent Soft boxes</a>.</p>
<p>&nbsp;</p>
<p>So here is new twist, a light mod that sprays light out like a star against a wall. The basic construction is a strip of card with slits in it wrapped in a &#8216;U&#8217; shape surrounding a toilet roll coated in foil with a flash mount made of popsicle sticks. The band-aid wrapper is the result of using my finger to guide the leatherman saw blade (not all experiments are a success).</p>
<p>
<a href='http://riazmissaghi.com/2012/01/star-light/starburst-355-small/' title='starburst 355 (Small)'><img width="150" height="150" src="http://riazmissaghi.com/wp-content/uploads/2012/01/starburst-355-Small-150x150.jpg" class="attachment-thumbnail" alt="starburst 355 (Small)" title="starburst 355 (Small)" /></a>
<a href='http://riazmissaghi.com/2012/01/star-light/starburst-357-small/' title='starburst 357 (Small)'><img width="150" height="150" src="http://riazmissaghi.com/wp-content/uploads/2012/01/starburst-357-Small-150x150.jpg" class="attachment-thumbnail" alt="starburst 357 (Small)" title="starburst 357 (Small)" /></a>
<a href='http://riazmissaghi.com/2012/01/star-light/starburst-361-small/' title='starburst 361 (Small)'><img width="150" height="150" src="http://riazmissaghi.com/wp-content/uploads/2012/01/starburst-361-Small-150x150.jpg" class="attachment-thumbnail" alt="starburst 361 (Small)" title="starburst 361 (Small)" /></a>
<a href='http://riazmissaghi.com/2012/01/star-light/starburst-081-small/' title='starburst 081 (Small)'><img width="150" height="150" src="http://riazmissaghi.com/wp-content/uploads/2012/01/starburst-081-Small-150x150.jpg" class="attachment-thumbnail" alt="starburst 081 (Small)" title="starburst 081 (Small)" /></a>
<a href='http://riazmissaghi.com/2012/01/star-light/starburst-133-large/' title='starburst 133 (Large)'><img width="150" height="150" src="http://riazmissaghi.com/wp-content/uploads/2012/01/starburst-133-Large-150x150.jpg" class="attachment-thumbnail" alt="starburst 133 (Large)" title="starburst 133 (Large)" /></a>
<a href='http://riazmissaghi.com/2012/01/star-light/starburst-176-large/' title='starburst 176 (Large)'><img width="150" height="150" src="http://riazmissaghi.com/wp-content/uploads/2012/01/starburst-176-Large-150x150.jpg" class="attachment-thumbnail" alt="starburst 176 (Large)" title="starburst 176 (Large)" /></a>
<br />
My first impulse was to stick it behind peoples heads and make them look like they had decended from the heavens, then i gelled it to give it a more party look. Here is what it looks like, now go forth and extrapolate the possibilities!</p>
]]></content:encoded>
			<wfw:commentRss>http://riazmissaghi.com/2012/01/star-light/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Razor DropDownList With Descriptions From An Enum Using Extentions, Generics, and Reflection.</title>
		<link>http://riazmissaghi.com/2012/01/razor-dropdownlist-with-descriptions-from-an-enum-using-extentions-generics-and-reflection/</link>
		<comments>http://riazmissaghi.com/2012/01/razor-dropdownlist-with-descriptions-from-an-enum-using-extentions-generics-and-reflection/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 22:02:49 +0000</pubDate>
		<dc:creator>Riaz</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://riazmissaghi.com/?p=114</guid>
		<description><![CDATA[A good test of a web framework is to see how it handles select boxes.  It requires managing the list, the selected item across several states,  be easily styled, be easily ajax-ed, and connect to a data store. I like using Enums for static data, but they are a bit limited without a description value, you end up with select options labeled &#8220;ItemName &#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>A good test of a web framework is to see how it handles select boxes.  It requires managing the list, the selected item across several states,  be easily styled, be easily ajax-ed, and connect to a data store.</p>
<p>I like using Enums for static data, but they are a bit limited without a description value, you end up with select options labeled &#8220;ItemName &#8221; instead of  &#8221;Human Friendly Item Name&#8221;.</p>
<p>Binding an enum to a dropdown is well documented. Adding descriptions to enums is also well documented.  Here is a way to have enums with descriptions into a dropdown.</p>
<p>&nbsp;</p>
<p>Your Enum</p>
<div class="csharp" style="font-family: monospace; color: #006; border: 1px solid #d0d0d0; background-color: #f0f0f0;"> <span style="color: #0600ff; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">enum</span> ProjectRoles <span style="color: #008000;">{</span> <span style="color: #008000;">[</span>Description<span style="color: #008000;">(</span><span style="color: #666666;">"Descision Maker"</span><span style="color: #008000;">)</span><span style="color: #008000;">]</span>DescisionMaker, Researcher, <span style="color: #008000;">[</span>Description<span style="color: #008000;">(</span><span style="color: #666666;">"Project Manager"</span><span style="color: #008000;">)</span><span style="color: #008000;">]</span>ProjectManager <span style="color: #008000;">}</span><span style="color: #008000;">;</span></div>
<p>&nbsp;</p>
<p>The Razor</p>
<div class="csharp" style="font-family: monospace; color: #006; border: 1px solid #d0d0d0; background-color: #f0f0f0;"> @Html<span style="color: #008000;">.</span><span style="color: #0000ff;">DropDownListFor</span><span style="color: #008000;">(</span>model <span style="color: #008000;">=&gt;</span> model<span style="color: #008000;">.</span><span style="color: #0000ff;">YourRole</span>, EnumUtils<span style="color: #008000;">.</span><span style="color: #0000ff;">ToSelectList</span><span style="color: #008000;">&lt;</span>ContactModel<span style="color: #008000;">.</span><span style="color: #0000ff;">ProjectRoles</span><span style="color: #008000;">&gt;</span><span style="color: #008000;">(</span>Model<span style="color: #008000;">.</span><span style="color: #0000ff;">YourRole</span><span style="color: #008000;">.</span><span style="color: #0000ff;">ToString</span><span style="color: #008000;">(</span><span style="color: #008000;">)</span><span style="color: #008000;">)</span><span style="color: #008000;">)</span><span style="color: #008000;">;</span></div>
<p>&nbsp;</p>
<p>This function will turn your enum into an IEnumerable&lt;SelectListItem&gt;</p>
<div class="csharp" style="font-family: monospace; color: #006; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><span style="color: #0600ff; font-weight: bold;">public</span> <span style="color: #0600ff; font-weight: bold;">static</span> IEnumerable<span style="color: #008000;">&lt;</span><span style="color: #0000ff;">SelectListItem</span><span style="color: #008000;">&gt;</span> ToSelectList<span style="color: #008000;">&lt;</span>T<span style="color: #008000;">&gt;</span><span style="color: #008000;">(</span><span style="color: #6666cc; font-weight: bold;">string</span> selectedvalue<span style="color: #008000;">)</span><br />
<span style="color: #008000;">{</span><br />
<span style="color: #0600ff; font-weight: bold;">if</span> <span style="color: #008000;">(</span><span style="color: #008000;">!</span><a style="color: #000060;" href="http://www.google.com/search?q=typeof+msdn.microsoft.com"><span style="color: #008000;">typeof</span></a><span style="color: #008000;">(</span>T<span style="color: #008000;">)</span><span style="color: #008000;">.</span><span style="color: #0000ff;">IsEnum</span><span style="color: #008000;">)</span> <span style="color: #0600ff; font-weight: bold;">throw</span> <a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> ArgumentException<span style="color: #008000;">(</span><span style="color: #666666;">&#8220;T must be an enumerated type&#8221;</span><span style="color: #008000;">)</span><span style="color: #008000;">;</span><br />
<span style="color: #0600ff; font-weight: bold;">return</span> <span style="color: #6666cc; font-weight: bold;">Enum</span><span style="color: #008000;">.</span><span style="color: #0000ff;">GetValues</span><span style="color: #008000;">(</span><a style="color: #000060;" href="http://www.google.com/search?q=typeof+msdn.microsoft.com"><span style="color: #008000;">typeof</span></a><span style="color: #008000;">(</span>T<span style="color: #008000;">)</span><span style="color: #008000;">)</span><br />
<span style="color: #008000;">.</span><span style="color: #0000ff;">OfType</span><span style="color: #008000;">&lt;</span>T<span style="color: #008000;">&gt;</span><span style="color: #008000;">(</span><span style="color: #008000;">)</span><br />
<span style="color: #008000;">.</span><span style="color: #0600ff; font-weight: bold;">Select</span><span style="color: #008000;">(</span>x <span style="color: #008000;">=&gt;</span> <a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> <span style="color: #0000ff;">SelectListItem</span><span style="color: #008000;">(</span><span style="color: #008000;">)</span><br />
<span style="color: #008000;">{</span><br />
Value <span style="color: #008000;">=</span> x<span style="color: #008000;">.</span><span style="color: #0000ff;">ToString</span><span style="color: #008000;">(</span><span style="color: #008000;">)</span>,<br />
Text <span style="color: #008000;">=</span> <span style="color: #008000;">(</span><a style="color: #000060;" href="http://www.google.com/search?q=typeof+msdn.microsoft.com"><span style="color: #008000;">typeof</span></a><span style="color: #008000;">(</span>T<span style="color: #008000;">)</span><br />
<span style="color: #008000;">.</span><span style="color: #0000ff;">GetField</span><span style="color: #008000;">(</span>x<span style="color: #008000;">.</span><span style="color: #0000ff;">ToString</span><span style="color: #008000;">(</span><span style="color: #008000;">)</span><span style="color: #008000;">)</span><br />
<span style="color: #008000;">.</span><span style="color: #0000ff;">GetCustomAttributes</span><span style="color: #008000;">(</span><a style="color: #000060;" href="http://www.google.com/search?q=typeof+msdn.microsoft.com"><span style="color: #008000;">typeof</span></a><span style="color: #008000;">(</span>DescriptionAttribute<span style="color: #008000;">)</span>, <span style="color: #0600ff; font-weight: bold;">false</span><span style="color: #008000;">)</span><br />
<span style="color: #008000;">.</span><span style="color: #0000ff;">OfType</span><span style="color: #008000;">&lt;</span>DescriptionAttribute<span style="color: #008000;">&gt;</span><span style="color: #008000;">(</span><span style="color: #008000;">)</span><br />
<span style="color: #008000;">.</span><span style="color: #0000ff;">FirstOrDefault</span><span style="color: #008000;">(</span><span style="color: #008000;">)</span> <span style="color: #008000;">??</span> <a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> DescriptionAttribute<span style="color: #008000;">(</span>x<span style="color: #008000;">.</span><span style="color: #0000ff;">ToString</span><span style="color: #008000;">(</span><span style="color: #008000;">)</span><span style="color: #008000;">)</span><br />
<span style="color: #008000;">)</span><span style="color: #008000;">.</span><span style="color: #0000ff;">Description</span>,<br />
Selected <span style="color: #008000;">=</span> x<span style="color: #008000;">.</span><span style="color: #0000ff;">ToString</span><span style="color: #008000;">(</span><span style="color: #008000;">)</span> <span style="color: #008000;">==</span> <span style="color: #008000;">(</span>selectedvalue <span style="color: #008000;">??</span> <span style="color: #666666;">&#8220;&#8221;</span><span style="color: #008000;">)</span><br />
<span style="color: #008000;">}</span><span style="color: #008000;">)</span><span style="color: #008000;">;</span><br />
<span style="color: #008000;">}</span></div>
<p>&nbsp;</p>
<p>Of course shortly after finishing this I found a great post on <a href="http://stackoverflow.com/a/5255108/46706">StackOverflow</a> about making html helpers which results in an even prettier finish in razor, but requires a few extra helpers.</p>
]]></content:encoded>
			<wfw:commentRss>http://riazmissaghi.com/2012/01/razor-dropdownlist-with-descriptions-from-an-enum-using-extentions-generics-and-reflection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Obscure Tags</title>
		<link>http://riazmissaghi.com/2012/01/obscure-tags/</link>
		<comments>http://riazmissaghi.com/2012/01/obscure-tags/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 21:02:56 +0000</pubDate>
		<dc:creator>Riaz</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://riazmissaghi.com/?p=109</guid>
		<description><![CDATA[Ever used the definition list tag?  Me neither, yet it&#8217;s fully supported in all the browsers. &#60;dl&#62;   &#60;dt&#62;Coffee&#60;/dt&#62;     &#60;dd&#62;- black hot drink&#60;/dd&#62;   &#60;dt&#62;Milk&#60;/dt&#62;     &#60;dd&#62;- white cold drink&#60;/dd&#62; &#60;/dl&#62; turns into this: Coffee - black hot drink Milk - white cold drink From w3schools: &#8220; The &#60;dl&#62; tag defines a definition list. The &#60;dl&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Ever used the definition list tag?  Me neither, yet it&#8217;s fully supported in all the browsers.</p>
<div class="html4strict" style="font-family: monospace; color: #006; border: 1px solid #d0d0d0; background-color: #f0f0f0;">
<ol>
<li style="font-weight: normal; vertical-align: top; font: normal normal 130% 'Courier New', Courier, monospace; color: #003030;">
<div style="font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; background: none; vertical-align: top; color: #000020;"><span style="color: #009900;">&lt;<a style="color: #000060;" href="http://december.com/html/4/element/dl.html"><span style="color: #000000; font-weight: bold;">dl</span></a>&gt;</span></div>
</li>
<li style="font-weight: normal; vertical-align: top; font: normal normal 130% 'Courier New', Courier, monospace; color: #003030;">
<div style="font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; background: none; vertical-align: top; color: #000020;">  <span style="color: #009900;">&lt;<a style="color: #000060;" href="http://december.com/html/4/element/dt.html"><span style="color: #000000; font-weight: bold;">dt</span></a>&gt;</span>Coffee<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a style="color: #000060;" href="http://december.com/html/4/element/dt.html"><span style="color: #000000; font-weight: bold;">dt</span></a>&gt;</span></div>
</li>
<li style="font-weight: normal; vertical-align: top; font: normal normal 130% 'Courier New', Courier, monospace; color: #003030;">
<div style="font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; background: none; vertical-align: top; color: #000020;">    <span style="color: #009900;">&lt;<a style="color: #000060;" href="http://december.com/html/4/element/dd.html"><span style="color: #000000; font-weight: bold;">dd</span></a>&gt;</span>- black hot drink<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a style="color: #000060;" href="http://december.com/html/4/element/dd.html"><span style="color: #000000; font-weight: bold;">dd</span></a>&gt;</span></div>
</li>
<li style="font-weight: normal; vertical-align: top; font: normal normal 130% 'Courier New', Courier, monospace; color: #003030;">
<div style="font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; background: none; vertical-align: top; color: #000020;">  <span style="color: #009900;">&lt;<a style="color: #000060;" href="http://december.com/html/4/element/dt.html"><span style="color: #000000; font-weight: bold;">dt</span></a>&gt;</span>Milk<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a style="color: #000060;" href="http://december.com/html/4/element/dt.html"><span style="color: #000000; font-weight: bold;">dt</span></a>&gt;</span></div>
</li>
<li style="font-weight: bold; vertical-align: top; color: #006060;">
<div style="font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; background: none; vertical-align: top; color: #000020;">    <span style="color: #009900;">&lt;<a style="color: #000060;" href="http://december.com/html/4/element/dd.html"><span style="color: #000000; font-weight: bold;">dd</span></a>&gt;</span>- white cold drink<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a style="color: #000060;" href="http://december.com/html/4/element/dd.html"><span style="color: #000000; font-weight: bold;">dd</span></a>&gt;</span></div>
</li>
<li style="font-weight: normal; vertical-align: top; font: normal normal 130% 'Courier New', Courier, monospace; color: #003030;">
<div style="font: normal normal 1em/1.2em monospace; margin: 0; padding: 0; background: none; vertical-align: top; color: #000020;"><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a style="color: #000060;" href="http://december.com/html/4/element/dl.html"><span style="color: #000000; font-weight: bold;">dl</span></a>&gt;</span></div>
</li>
</ol>
</div>
<p>turns into this:</p>
<div class="html4strict" style="font-family: monospace; color: #006; border: 1px solid #d0d0d0; background-color: #f0f0f0;">
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
</div>
<p>From <a href="http://www.w3schools.com/tags/tag_dl.asp">w3schools</a>: &#8220; The &lt;dl&gt; tag defines a definition list. The &lt;dl&gt; tag is used in conjunction with <a href="http://www.w3schools.com/tags/tag_dt.asp">&lt;dt&gt;</a> (defines the item in the list) and <a href="http://www.w3schools.com/tags/tag_dd.asp">&lt;dd&gt;</a> (describes the item in the list).&#8221;</p>
<p>Well now i&#8217;ve used it.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://riazmissaghi.com/2012/01/obscure-tags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cross Domain Resource Sharing</title>
		<link>http://riazmissaghi.com/2012/01/cross-domain-resource-sharing/</link>
		<comments>http://riazmissaghi.com/2012/01/cross-domain-resource-sharing/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 20:39:35 +0000</pubDate>
		<dc:creator>Riaz</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://riazmissaghi.com/?p=104</guid>
		<description><![CDATA[CORS was really part of the inspiration for ServerCyde.  AJAX is cool, it lets you make the web more responsive, but it only connects to the site that you built.  If you wanted to consume the services of a third party then you would have to proxy it over your server or compromise on the [...]]]></description>
			<content:encoded><![CDATA[<p>CORS was really part of the inspiration for ServerCyde.  AJAX is cool, it lets you make the web more responsive, but it only connects to the site that you built.  If you wanted to consume the services of a third party then you would have to proxy it over your server or compromise on the functionality that you can offer.  As more and more digital services get turned into API services (life graphs, url minification, image manipulation,  data storage&#8230;) browsers will evolve to allow greater interconnectedness without sacrificing security. Right now each browsing is either trying their own implementation out (is it netscape vs IE all over again) or at some stage op implementing CORS standards, or web sockets. In the mean time I wanted a solution that worked now and supported all of the HTTP verbs so I had to implement one myself.</p>
<p>What it came down to was simple enough. Hidden iFrames and window.href polling. You see, when you open a site in an iframe the parent can only read the URL if the domains match. So what i did was have my server redirect back to your domain with a token in the URL that you could use to make a plain JSONP request for the data.  This model, works in every browser, lets you POST with cookies, and even allows a connection to stay open for a COMET implementation.</p>
<p>You can check it out in action here: <a href="http://servercyde.com/Developers/">http://servercyde.com/Developers/</a></p>
<p>Get the code from GitHub here: <a href="https://github.com/easymovet/ServerCyde/wiki">https://github.com/easymovet/ServerCyde/wiki</a></p>
<p>And see a <a href="https://docs.google.com/presentation/d/15-D-YcyOW0HLZCNo6ZfxjZXVpfAh6TAzg2GkGwWxVbs/edit" target="_blank">presentation</a> of it&#8217;s implementation, that I delivered to JavascriptMN at Refactr in November.</p>
]]></content:encoded>
			<wfw:commentRss>http://riazmissaghi.com/2012/01/cross-domain-resource-sharing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tools of the trade &#8211; A would be review.</title>
		<link>http://riazmissaghi.com/2012/01/camera-porn/</link>
		<comments>http://riazmissaghi.com/2012/01/camera-porn/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 20:17:58 +0000</pubDate>
		<dc:creator>Riaz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://riazmissaghi.com/?p=102</guid>
		<description><![CDATA[Do you think that you could tell the difference in the work of a mechanic using a thumb adjustable wrnch vs. one using a voice activated wrench? Better yet, could you tell if a painting was done with a horse hair bush or a cow hair brush? The same is true for photography. I&#8217;ve seen [...]]]></description>
			<content:encoded><![CDATA[<p>Do you think that you could tell the difference in the work of a mechanic using a thumb adjustable wrnch vs. one using a voice activated wrench? Better yet, could you tell if a painting was done with a horse hair bush or a cow hair brush? The same is true for photography. I&#8217;ve seen creative genius take better photos with an iPhone than I&#8217;ll probably ever get with my percision engineered German glass wielding 21megapixel beast of a camera. Why? Not because I&#8217;m not a creative genius (Ii&#8217;m not) and not because I don&#8217;t go to pretty places (I do).  I don&#8217;t get as great an image because most of the time i&#8217;m a pervert, that is to say, I spend more time fantasizing about the technical aspects of the equipment than actually using it.  It&#8217;s a bad habit, I know, and I&#8217;m working on it. It&#8217;s not entirely my fault, I&#8217;m just a victim of marketing that has taught me to obsess about my tools so that I buy better ones.</p>
<p>So now that you know that I know that equipment doesn&#8217;t translate into the quality of a product (I&#8217;ve built better websites using my phone than my friend could build on his MBPro). We can indulge in the relative (and insanely marginal) differences between camera companies. Actually I&#8217;ve changed my mind, this post has made me realize that if I really want to break the habit and start taking better pictures then I have to stop being a perv.  The end. Go take some pictures with whatever camera you have.  Go paint even if all you have is a wall and some crayons (unless you are my kids, then do not color the wall please.)  Go write a book, you don&#8217;t need a better typewriter, you don&#8217;t need a sharper pencil, you need to write.  Now.</p>
]]></content:encoded>
			<wfw:commentRss>http://riazmissaghi.com/2012/01/camera-porn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lens trading</title>
		<link>http://riazmissaghi.com/2011/06/lens-trading/</link>
		<comments>http://riazmissaghi.com/2011/06/lens-trading/#comments</comments>
		<pubDate>Fri, 03 Jun 2011 20:24:00 +0000</pubDate>
		<dc:creator>Riaz</dc:creator>
				<category><![CDATA[Camera]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[Photograpy]]></category>
		<category><![CDATA[Review]]></category>

		<guid isPermaLink="false">http://riazmissaghi.com/2011/06/lens-trading/</guid>
		<description><![CDATA[Quick reviews on some lenses i have played with lately: Nikon 70-200mm f/2.8G ED-IF AF-S VR Zoom Nikkor Lens for Nikon Digital SLR Cameras Bought: $1300 Sold: $1670 Usage: This lens is a head turner, it&#8217;s also built to last. Rubber bumper on the front, metal latch for the hood, tripod mount has 2 holes, [...]]]></description>
			<content:encoded><![CDATA[<p>Quick reviews on some lenses i have played with lately:</p>
<p><a href="http://www.amazon.com/gp/product/B00009MDBQ/ref=as_li_ss_tl?ie=UTF8&amp;tag=easymovet-20&amp;linkCode=as2&amp;camp=217145&amp;creative=399373&amp;creativeASIN=B00009MDBQ">Nikon 70-200mm f/2.8G ED-IF AF-S VR Zoom Nikkor Lens for Nikon Digital SLR Cameras</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=&amp;l=as2&amp;o=1&amp;a=B00009MDBQ&amp;camp=217145&amp;creative=399373" alt="" width="1" height="1" border="0" /></p>
<p>Bought: $1300<br />
Sold: $1670</p>
<p>Usage:<br />
This lens is a head turner, it&#8217;s also built to last. Rubber bumper on the front, metal latch for the hood, tripod mount has 2 holes, either for better balance with different weight bodies or use of tubes or simply when one wears out. Focus is perfect, not as fast as Canon but deadly accurate.</p>
<p>Image Quality<br />
I&#8217;ve noticed a trend with the newer lenses, I think a side effect of asynchronous lenses, the transition from sharp to bokeh is unnatural looking. This lens doesn&#8217;t have that. IQ is as good as it gets, really.</p>
<div></div>
<div><a href="http://www.amazon.com/gp/product/B00005LEOK/ref=as_li_ss_tl?ie=UTF8&amp;tag=lithemama-20&amp;linkCode=as2&amp;camp=217145&amp;creative=399373&amp;creativeASIN=B00005LEOK">Nikon 105mm f/2.0D AF DC-Nikkor Lens for Nikon Digital SLR Cameras</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=&amp;l=as2&amp;o=1&amp;a=B00005LEOK&amp;camp=217145&amp;creative=399373" alt="" width="1" height="1" border="0" /></div>
<div>Bought: $835</div>
<div>Sold: $865</div>
<div></div>
<div>I really wanted to like this lens, it&#8217;s one of the the fastest tele primes.  Good images were tough to get, especially coming off of the 105 micro VR. Defocus control was interesting but not an effect that I was looking for. AF was not greatest, this might be a good lens for studio work, but not for moving people.</div>
<div></div>
<div>One interesting usage is macro with cheap extension tubes, at f2 you can easily see enough light to manual focus, even with a full 12&#8243; of extension tubes,  and the presence of an apeture ring, no longer found on nikon lenses, lets you easily adjust the apeture even with cheapo tubes.</div>
<div></div>
<div><a href="http://www.amazon.com/gp/product/B000EOSHGQ/ref=as_li_ss_tl?ie=UTF8&amp;tag=easymovet-20&amp;linkCode=as2&amp;camp=217145&amp;creative=399373&amp;creativeASIN=B000EOSHGQ">Nikon 105mm f/2.8G ED-IF AF-S VR Micro-Nikkor Lens</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=&amp;l=as2&amp;o=1&amp;a=B000EOSHGQ&amp;camp=217145&amp;creative=399373" alt="" width="1" height="1" border="0" /></div>
<div>Bought: $800</div>
<div>Sold: $990</div>
<div></div>
<div>By far Nikon&#8217;s sharpest lens, I think this is one of the cheapest nano crystal lenses.  Macro images were immaculate.  As a portrait lens it was a bit of a let down because at the distance for a head shot the biggest apeture was F3.5 which was too much DOF for a pleasant background. At 200mm F3.5 is fine but at 100mm it&#8217;s too distracting. An 85mm1.8 or a 135mm f2 would be better for portraits, personally I like longer or wider: a 200mm 2.8 or 50mm 1.8</div>
<div></div>
<div>The lens was not too heavy but the hood is huge, with good reason, having the element right on the front means flare can be an issue.  AF is ok but not as fast as the 70-200 (makes sense being a macro though).</div>
<div></div>
<div>Tokina 12-24mm F4</div>
<div>Same as the nikon model but not as sharp, and a little more distortion.</div>
<div></div>
<div><a href="http://www.amazon.com/gp/product/B0014Z5XMK/ref=as_li_ss_tl?ie=UTF8&amp;tag=easymovet-20&amp;linkCode=as2&amp;camp=217145&amp;creative=399369&amp;creativeASIN=B0014Z5XMK">Tokina AT-X116PRDXN AT-X PRO DX 11-16mm Ultra-wide Angle Lens for Nikon</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=&amp;l=as2&amp;o=1&amp;a=B0014Z5XMK&amp;camp=217145&amp;creative=399369" alt="" width="1" height="1" border="0" /></div>
<div>Bought: $634</div>
<div>Sold: $700</div>
<div></div>
<div>Excellent lens. Construction is just as good as a Nikon. The AF/MF clutch system is very intuitive and works perfectly. AF is fast and accurate, but on a lens this wide the DOF is huge anyway. Awsome lens if you need 11mm. I only sold it becasue the 17-55 2.8 goes wide enough for me.</div>
<div>This lens wins the DX wide angle prize for image quality for sure.</div>
<div></div>
<div><a href="http://www.amazon.com/gp/product/B000HJPK2C/ref=as_li_ss_tl?ie=UTF8&amp;tag=easymovet-20&amp;linkCode=as2&amp;camp=217145&amp;creative=399373&amp;creativeASIN=B000HJPK2C">Nikon 70-300mm f/4.5-5.6G ED IF AF-S VR Nikkor Zoom Lens for Nikon Digital SLR Cameras</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=&amp;l=as2&amp;o=1&amp;a=B000HJPK2C&amp;camp=217145&amp;creative=399373" alt="" width="1" height="1" border="0" /></div>
<div>Bought: $300</div>
<div></div>
<div>I got this lens to compare to my dads canon 70-300 L lens. To be fair the nikon one costs 1/5th of the canon version. The nikon one is much smaller and lighter, and more plastic. The sharpness, and bokeh are similar, but the overall image quality is not as good as canon, the canon IS worked better than the nikon VR but that could be the added weight helping. AF was a little slow at 300 and the picture is a little softer.</div>
<div></div>
<div>The difference in image quality is the way the bokeh changes on the nikon from the center to the edges, making it look like tunnel vision, even though there is no distortion or vignetting , the cannon on the other hand is great looking at any focal length. This is a great lens, especially for the price, but I&#8217;ll ditch it when I get a 180 2.8</div>
<div></div>
<div><a href="http://www.amazon.com/gp/product/B000144I2Q/ref=as_li_ss_tl?ie=UTF8&amp;tag=easymovet-20&amp;linkCode=as2&amp;camp=217145&amp;creative=399373&amp;creativeASIN=B000144I2Q">Nikon 17-55mm f/2.8G ED-IF AF-S DX Nikkor Zoom Lens</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=&amp;l=as2&amp;o=1&amp;a=B000144I2Q&amp;camp=217145&amp;creative=399373" alt="" width="1" height="1" border="0" /></div>
<div>Bought $800</div>
<div></div>
<div>It&#8217;s in for repairs right now, but it seems like a great lens. It&#8217;s heavy and the zoom ring is stiff and not ergonomically placed, but the images look right and the zoom range is huge. This lens is very expensive especially given it&#8217;s age, one of the first DX lenses ever, and one of the first AF-S lenses. The AF sounds unrefined compared to the newer Silent Wave Motors. It&#8217;s the perfect DX walk around lens. I&#8217;ve also used the cannon 17-55 IS, it&#8217;s lighter, sharper, cheaper, and having IS at 17mm lets you shoot long exposures hand held.</p>
<div></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://riazmissaghi.com/2011/06/lens-trading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bottom Ten Android Apps</title>
		<link>http://riazmissaghi.com/2011/01/bottom-ten-android-apps/</link>
		<comments>http://riazmissaghi.com/2011/01/bottom-ten-android-apps/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 16:31:00 +0000</pubDate>
		<dc:creator>Riaz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://riazmissaghi.com/2011/01/bottom-ten-android-apps/</guid>
		<description><![CDATA[Everyone knows what the top 10 are so thats boring, also this isn&#8217;t the Top 10 worst apps on the market, because the muck at the bottom is too mucky to be distilled to 10. It&#8217;s the bottom 10 of the hand full of apps that make it from the millions of apps on the [...]]]></description>
			<content:encoded><![CDATA[<div>Everyone knows what the top 10 are so thats boring, also this isn&#8217;t the Top 10 worst apps on the market, because the muck at the bottom is too mucky to be distilled to 10. It&#8217;s the bottom 10 of the hand full of apps that make it from the millions of apps on the market to my Android and are still installed.</div>
<div></div>
<div><strong>Bottomest 10:</strong></div>
<div></div>
<div><img src="http://www.cohortor.org/gstrings/images/icon.png" alt="" /><strong>GStrings </strong>: A chromatic tuner for any musical instrument. I use to keep my whistle in perfect pitch.</div>
<div></div>
<div></div>
<div>
<div><img src="http://cdn2.staztic.com/badges/gasapp-101.png" alt="GasApp" /><strong>GassApp</strong>: Tracks your fuel consumption and expense on a monthly basis derived from info at each fill up at the pumps.</div>
<div></div>
</div>
<div></div>
<div><img src="http://lh5.ggpht.com/aQYxI4TgpWNJpXp6R19evNEEkjgeI1lgjvv0OMj1UpByjU2Dz5KCfmEdf8gEAxHwm4tKECTtatNw_skK=s48" alt="Chroma Doze" /><strong>Chroma Doze</strong>: <span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 16px;">Generate continuous colored/white noise by sketching a spectrum on the screen. I use it for waking up animals at the zoo with the annoying high pitch sounds, makes for better pictures.</span></div>
<div></div>
<div></div>
<div><strong>Audalyzer</strong>: <span class="Apple-style-span">displays sound readings from the microphone as a waveform display, as a frequency spectrum, and as a dB meter. I use it to identify the frequency of annoying buzzes, or to see how high a pitch i can whistle.</span></div>
<div></div>
<div><img src="http://cdn.androlib.com/appicon/app-qiEq.cs.png" alt="" /><strong>Antennas</strong>: Plots the cell towers that are in your area on a google maps map. I use it for debugging my cell connection issues.</div>
<div></div>
<div></div>
<div>
<div><img src="http://lh6.ggpht.com/sXj_k4zaS_HGGu_2dnIRKfl1V9ite8xs2xpFD-w63fRkE0KN3G4zINq1hVLhncYYedHqAhM5FV2nmr9B=s48" alt="Caffeine Tracker Lite" /><strong>Caffeine Tracker</strong>: <span class="Apple-style-span"><span class="Apple-style-span" style="line-height: 16px;">Tracks your current level of caffeine. Great way to make sure you have let your body metabolize enough caffeine by your bedtime.</span></span></div>
<div><span style="line-height: 16px;"><br />
</span></div>
</div>
<div></div>
<div><img src="http://cdn.androlib.com/appicon/app-npjB.cs.png" alt="" /><strong>Police Radio</strong>: Lets you listen to police, emt, and fire radio broadcasts, it really good, i&#8217;d say the delay is less than 10 seconds.</div>
<div></div>
<div><img src="http://code.google.com/p/ringdroid/logo?cct=1262389082" alt="Logo" /><strong>Ring Droid: </strong><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">recording and editing sounds, and creating ringtones, directly on the handset. I use it to cut clips from MP3s and make them into ringtones.</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br />
</span></div>
<div><span style="font-family: arial, sans-serif;"><br />
</span></div>
<div></div>
<div><span class="Apple-style-span"><span class="Apple-style-span" style="line-height: 16px;">Thats only 7, deal with it.</span></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span" style="line-height: 16px;"><br />
</span></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span" style="line-height: 16px;"><br />
</span></span></div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://riazmissaghi.com/2011/01/bottom-ten-android-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The best phone on the market</title>
		<link>http://riazmissaghi.com/2010/08/the-best-phone-on-the-market/</link>
		<comments>http://riazmissaghi.com/2010/08/the-best-phone-on-the-market/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 21:50:00 +0000</pubDate>
		<dc:creator>Riaz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://riazmissaghi.com/2010/08/the-best-phone-on-the-market/</guid>
		<description><![CDATA[While the Samsung Vibrant that my wife has is technically superior to my Nexus One, it&#8217;s not a better phone. When my wife and I are lying in bed watching TV and hear the notification chime, that both of us are to lazy to change, we wouldn&#8217;t know whose phone it was save for the lightup [...]]]></description>
			<content:encoded><![CDATA[<p>While the Samsung Vibrant that my wife has is technically superior to my Nexus One, it&#8217;s not a better phone.</p>
<div>
<div>When my wife and I are <span style="text-decoration: line-through;">lying in bed</span> watching TV and hear the notification chime, that both of us are to lazy to change, we wouldn&#8217;t know whose phone it was save for the lightup track ball on my N1. Ericcson got this right, back in the day, with the<a href="http://www.google.com/images?q=ericsson%20t39%20led&amp;um=1&amp;ie=UTF-8&amp;source=og&amp;sa=N&amp;hl=en&amp;tab=wi&amp;biw=1489&amp;bih=987"> t39</a> that had an LED with different colours for battery states. Flashing LED makes it a breeze to find the phone the dark. The N1 trackball LED has different colors for emails, vs IM, vs missed calls. It also has an LED to indicate charging status AND and LED as a flash. The vibrant has none <img src='http://riazmissaghi.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </div>
<div></div>
<div>LED&#8217;s, baby, are the wave of the future (not the google wave, mind you).</div>
<div></div>
<div>N1&#8242;s other better features: metal frame, <a href="http://twitter.com/cyanogenmod">@cyanogenmod</a> focus, 2 microphones, and maybe FM radio.</div>
<div></div>
<div>Fantasy phone: iPhone with lots of LED&#8217;s and running Android.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://riazmissaghi.com/2010/08/the-best-phone-on-the-market/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The end of a period</title>
		<link>http://riazmissaghi.com/2010/04/the-end-of-a-period/</link>
		<comments>http://riazmissaghi.com/2010/04/the-end-of-a-period/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 14:47:00 +0000</pubDate>
		<dc:creator>Riaz</dc:creator>
				<category><![CDATA[iPad]]></category>

		<guid isPermaLink="false">http://riazmissaghi.com/2010/04/the-end-of-a-period/</guid>
		<description><![CDATA[It has become clear to me now that the dichotomy of computing devices (eg: apple vs. PC) is a relic of geeks like me being resistant to change, a case of the early adopters failure to adopt. There was a certain pride in being the only one who knew how to reinstall windows for my [...]]]></description>
			<content:encoded><![CDATA[<p>It has become clear to me now that the dichotomy of <a href="http://www.ericsink.com/entries/dual_class_computing.html">computing devices</a> (eg: apple vs. PC)  is a relic of geeks like me being resistant to change, a case of the early adopters failure to adopt. There was a certain pride in being the only one who knew how to reinstall windows for my Mom and find all of the drivers for her pervasive yet poorly supported peripherals, why would i want to let that joy in labor be lost?</p>
<p>I&#8217;ve seen the light, it&#8217;s crafted from a single billet of aluminum and bears a glowing symbol of wholesomeness and the future. It doesn&#8217;t allow multitasking, it can&#8217;t get viruses* and it is really well marketed.  I&#8217;d like to apologize to folks who may have been deterred by my counsel to cling to open platforms with less DRM and a larger choice of third party software. So from now on:</p>
<p>I will be using a <a href="http://bit.ly/17vH8">Mac</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://riazmissaghi.com/2010/04/the-end-of-a-period/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
