<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>.NET Evangelist - Abi Bellamkonda</title>
	<atom:link href="http://abibaby.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://abibaby.wordpress.com</link>
	<description>Human evolution has just begun</description>
	<lastBuildDate>Tue, 17 Nov 2009 00:15:42 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='abibaby.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/f6112031670922e4cfbc71a8e8d42b38?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>.NET Evangelist - Abi Bellamkonda</title>
		<link>http://abibaby.wordpress.com</link>
	</image>
			<item>
		<title>Conditional Rendering in ASP.NET AJAX 4.0</title>
		<link>http://abibaby.wordpress.com/2009/11/16/conditional-rendering-in-asp-net-ajax-4-0/</link>
		<comments>http://abibaby.wordpress.com/2009/11/16/conditional-rendering-in-asp-net-ajax-4-0/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 23:58:27 +0000</pubDate>
		<dc:creator>abibaby</dc:creator>
				<category><![CDATA[Blogroll]]></category>
		<category><![CDATA[Ideas]]></category>

		<guid isPermaLink="false">http://abibaby.wordpress.com/?p=133</guid>
		<description><![CDATA[There are times when using a Prototype template or jQuery templates, we feel like &#8220;wish it had conditions &#38; collection loops&#8221;. Conditional rendering in ASP.NET Ajax 4.0 seems to address this to some extent. Its pretty much using attributes like below in tags


sys:if="false" - this as the name sounds is a Javascript condition


sys:before="false" - is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=133&subd=abibaby&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>There are times when using a Prototype template or jQuery templates, we feel like &#8220;wish it had conditions &amp; collection loops&#8221;. Conditional rendering in ASP.NET Ajax 4.0 seems to address this to some extent. Its pretty much using attributes like below in tags</p>
<ul>
<li>
<pre>sys:if="false" - this as the name sounds is a Javascript condition</pre>
</li>
<li>
<pre>sys:before="false" - is PreRender equvalent script for this XHTML Element</pre>
</li>
</ul>
<ul>
<li>
<pre>sys:after="false" - is PostRender equvalent script for this XHTML Element</pre>
</li>
</ul>
<p>Pretty basic stuff, but we can&#8217;t use loops and more JavaScript. But may be helpful.  What i would like to see is, browsers support javascript eval statements already. I think we need to write something, which just will keep the existing jQuery/prototypejs template structure. But embed &lt;%%&gt; like structures, which is real JS. This has to work with relatively less code, compared to the total freedom. Lets say we define our template as:</p>
<pre>&lt;tr&gt;
&lt;td&gt;#{CountryName}&lt;/td&gt;
&lt;td&gt;#{CurrencySymbol}&lt;/td&gt;
&lt;td&gt;
    &lt;# if(dataItem.States &amp;&amp; dataItem.States.length&gt;0) #&gt;
        &lt;ul&gt;
            &lt;# foreach s in dataItem.States #&gt;
                &lt;li&gt;#{s}&lt;/li&gt;
            &lt;/##&gt;
        &lt;/ul&gt;
    &lt;/##&gt;
&lt;/td&gt;
&lt;/tr&gt;</pre>
<p>For easy of development sake, we could mandate that the JS blocks must be enclosed in tags, and all tags must be closed properly. We are currently assuming its &lt;/##&gt;, we could pick something else. not &lt;$ $&gt;&lt;!&#8211; &#8211;&gt; or &lt;%%&gt;, as they are used already by .net, jsp, html and other languages) template. The js class, which we implement, say JsTemplate should just create grab all the JS template tags, evaluate them and create a larger template. Which will end up being jQuery Template (temptest) or prototype template. We could have some predefined variables like dataItem and stuff, similar to variables in http://msdn.microsoft.com/en-us/magazine/ee335716.aspx. We should be good. We just use JavaScript&#8217;s eval() to evaluate the JS.</p>
<p>Feel free to suggest improvements or ask for clarifications on this. After reading the article on MSDN, i thought we could use native JS eval() to extract more from templates, without creating much of a new laguage.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abibaby.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abibaby.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abibaby.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abibaby.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abibaby.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abibaby.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abibaby.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abibaby.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abibaby.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abibaby.wordpress.com/133/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=133&subd=abibaby&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://abibaby.wordpress.com/2009/11/16/conditional-rendering-in-asp-net-ajax-4-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f30a4984751e654bd04e5841b7b5081?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abibaby</media:title>
		</media:content>
	</item>
		<item>
		<title>MIT subjects online free</title>
		<link>http://abibaby.wordpress.com/2008/04/02/mit-subjects-online-free/</link>
		<comments>http://abibaby.wordpress.com/2008/04/02/mit-subjects-online-free/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 16:56:00 +0000</pubDate>
		<dc:creator>abibaby</dc:creator>
				<category><![CDATA[Inventor]]></category>

		<guid isPermaLink="false">http://abibaby.wordpress.com/?p=96</guid>
		<description><![CDATA[A while ago i noticed MIT had their subject lectures made available for download free at http://ocw.mit.edu/OcwWeb/web/courses/courses/index.htm. I started out on Natural language processing. A kid learns words, sounds, actions &#8211; so a computer must. I am going to refer the application that will analise, solve and find best answer(s) as Inventor (say code name) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=96&subd=abibaby&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A while ago i noticed MIT had their subject lectures made available for download free at <a href="http://ocw.mit.edu/OcwWeb/web/courses/courses/index.htm" target="_blank">http://ocw.mit.edu/OcwWeb/web/courses/courses/index.htm</a>. I started out on Natural language processing. A kid learns words, sounds, actions &#8211; so a computer must. I am going to refer the application that will analise, solve and find best answer(s) as Inventor (say code name) for now.</p>
<p>Word meanings must be known and core Dependant word must be associated with software meaning.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/abibaby.wordpress.com/96/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/abibaby.wordpress.com/96/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abibaby.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abibaby.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abibaby.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abibaby.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abibaby.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abibaby.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abibaby.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abibaby.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abibaby.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abibaby.wordpress.com/96/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=96&subd=abibaby&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://abibaby.wordpress.com/2008/04/02/mit-subjects-online-free/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f30a4984751e654bd04e5841b7b5081?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abibaby</media:title>
		</media:content>
	</item>
		<item>
		<title>Solution Finder</title>
		<link>http://abibaby.wordpress.com/2008/01/02/solution-finder/</link>
		<comments>http://abibaby.wordpress.com/2008/01/02/solution-finder/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 01:56:18 +0000</pubDate>
		<dc:creator>abibaby</dc:creator>
				<category><![CDATA[Ideas]]></category>
		<category><![CDATA[Inventor]]></category>

		<guid isPermaLink="false">http://abibaby.wordpress.com/2008/01/02/solution-finder/</guid>
		<description><![CDATA[Wikipedia is big information source. It contains information about human knowledge. What if we can translate the text into Computer understandable data and use it to find solutions to current problems. I think it can solve at least 10 major problems on our planet. Say for example there are articles on wikipedia saying that hydrogen [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=95&subd=abibaby&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Wikipedia is big information source. It contains information about human knowledge. What if we can translate the text into Computer understandable data and use it to find solutions to current problems. I think it can solve at least 10 major problems on our planet. Say for example there are articles on wikipedia saying that hydrogen is in abundance in earth core and another article that says how to get inside earth core using say CoreDriller. When asked for alternative fuel source, the solver should be able to grab both the articles and tell user to use CoreDriller to get hydrogen and use it as alternative fuel source. Capture solar energy or reduce pollution. Invent less pollutant transport vehicle, find cures for diseases.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/abibaby.wordpress.com/95/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/abibaby.wordpress.com/95/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abibaby.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abibaby.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abibaby.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abibaby.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abibaby.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abibaby.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abibaby.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abibaby.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abibaby.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abibaby.wordpress.com/95/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=95&subd=abibaby&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://abibaby.wordpress.com/2008/01/02/solution-finder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f30a4984751e654bd04e5841b7b5081?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abibaby</media:title>
		</media:content>
	</item>
		<item>
		<title>.NET Framework Source Code, Silverlight streaming, PLinq</title>
		<link>http://abibaby.wordpress.com/2007/10/04/net-framework-source-code-silverlight-streaming-plinq/</link>
		<comments>http://abibaby.wordpress.com/2007/10/04/net-framework-source-code-silverlight-streaming-plinq/#comments</comments>
		<pubDate>Thu, 04 Oct 2007 23:07:56 +0000</pubDate>
		<dc:creator>abibaby</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://abibaby.wordpress.com/2007/10/04/net-framework-source-code-silverlight-streaming-plinq/</guid>
		<description><![CDATA[News summary of today

Scott Gu has info on how to look at the source code for .NET Framework.
Live has 4 gb of sliverlight streaming FREE
PLinq &#8211; paralell linq to be used on multiprocessor machines

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=94&subd=abibaby&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>News summary of today</p>
<ol>
<li>Scott Gu has info on how to look at the <a href="http://weblogs.asp.net/scottgu/archive/2007/10/03/releasing-the-source-code-for-the-net-framework-libraries.aspx">source code for .NET Framework</a>.</li>
<li>Live has 4 gb of <a href="https://silverlight.live.com/">sliverlight streaming FREE</a></li>
<li><a href="http://www.123aspx.com/redir.aspx?res=36611">PLinq</a> &#8211; paralell linq to be used on multiprocessor machines</li>
</ol>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/abibaby.wordpress.com/94/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/abibaby.wordpress.com/94/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abibaby.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abibaby.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abibaby.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abibaby.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abibaby.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abibaby.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abibaby.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abibaby.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abibaby.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abibaby.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=94&subd=abibaby&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://abibaby.wordpress.com/2007/10/04/net-framework-source-code-silverlight-streaming-plinq/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f30a4984751e654bd04e5841b7b5081?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abibaby</media:title>
		</media:content>
	</item>
		<item>
		<title>Ajax actvity indicators</title>
		<link>http://abibaby.wordpress.com/2007/03/26/ajax-actvity-indicators/</link>
		<comments>http://abibaby.wordpress.com/2007/03/26/ajax-actvity-indicators/#comments</comments>
		<pubDate>Mon, 26 Mar 2007 06:30:07 +0000</pubDate>
		<dc:creator>abibaby</dc:creator>
				<category><![CDATA[Blogroll]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://abibaby.wordpress.com/2007/03/26/ajax-actvity-indicators/</guid>
		<description><![CDATA[I found a web site that generates cool Ajax activity indicator images http://www.ajaxload.info/; and http://www.napyfab.com/ajax-indicators/ is worth taking a look too.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=93&subd=abibaby&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I found a <a href="http://www.ajaxload.info/" title="Ajax Load">web site</a> that generates cool Ajax activity indicator images <a href="http://www.ajaxload.info/" title="Ajax Load">http://www.ajaxload.info/</a>; and <a href="http://www.napyfab.com/ajax-indicators/">http://www.napyfab.com/ajax-indicators/</a> is worth taking a look too.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/abibaby.wordpress.com/93/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/abibaby.wordpress.com/93/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abibaby.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abibaby.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abibaby.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abibaby.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abibaby.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abibaby.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abibaby.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abibaby.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abibaby.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abibaby.wordpress.com/93/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=93&subd=abibaby&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://abibaby.wordpress.com/2007/03/26/ajax-actvity-indicators/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f30a4984751e654bd04e5841b7b5081?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abibaby</media:title>
		</media:content>
	</item>
		<item>
		<title>An 8 Year old Cop</title>
		<link>http://abibaby.wordpress.com/2006/11/01/an-8-year-old-cop/</link>
		<comments>http://abibaby.wordpress.com/2006/11/01/an-8-year-old-cop/#comments</comments>
		<pubDate>Wed, 01 Nov 2006 03:30:34 +0000</pubDate>
		<dc:creator>abibaby</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://abibaby.wordpress.com/2006/11/01/an-8-year-old-cop/</guid>
		<description><![CDATA[The Jubilee Hills police station in Hyderabad had an eight-year-old inspector. The boy got to interrogate a petty offender, asking him what his offence was. He told the offender that instead of committing thefts, he could earn a living by working hard, before adding that offenders would be sent to jail.
read more&#160;&#124;&#160;digg story
   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=91&subd=abibaby&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The Jubilee Hills police station in Hyderabad had an eight-year-old inspector. The boy got to interrogate a petty offender, asking him what his offence was. He told the offender that instead of committing thefts, he could earn a living by working hard, before adding that offenders would be sent to jail.</p>
<p><a href="http://www.rediff.com/news/2006/oct/31look2.htm">read more</a>&nbsp;|&nbsp;<a href="http://digg.com/world_news/An_8_Year_old_Cop">digg story</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/abibaby.wordpress.com/91/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/abibaby.wordpress.com/91/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abibaby.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abibaby.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abibaby.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abibaby.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abibaby.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abibaby.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abibaby.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abibaby.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abibaby.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abibaby.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=91&subd=abibaby&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://abibaby.wordpress.com/2006/11/01/an-8-year-old-cop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f30a4984751e654bd04e5841b7b5081?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abibaby</media:title>
		</media:content>
	</item>
		<item>
		<title>Split text with a delimiter and Text Qualifier</title>
		<link>http://abibaby.wordpress.com/2006/09/03/split-text-with-a-delimiter-and-text-qualifier/</link>
		<comments>http://abibaby.wordpress.com/2006/09/03/split-text-with-a-delimiter-and-text-qualifier/#comments</comments>
		<pubDate>Sun, 03 Sep 2006 04:06:50 +0000</pubDate>
		<dc:creator>abibaby</dc:creator>
				<category><![CDATA[Blogroll]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">https://abibaby.wordpress.com/2006/09/03/split-text-with-a-delimiter-and-text-qualifier/</guid>
		<description><![CDATA[I have read an article that spoke about spltting a string for given Delimiter and TextQualifier at codeproject by Larry Steinle. Larry had an example of Delimiter being FULL-STOP and Text Qualifier being DOUBLE-QUOTE.
If you are unsure of what i am talking, conside this. For example, say we have some text test string &#8220;example.&#8221;.cool!, we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=89&subd=abibaby&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have read an article that spoke about spltting a string for given Delimiter and TextQualifier at <a href="http://www.codeproject.com/useritems/TextQualifyingSplit.asp" title="Text QualifiyingSplit">codeproject</a> by Larry Steinle. Larry had an example of Delimiter being FULL-STOP and Text Qualifier being DOUBLE-QUOTE.</p>
<p>If you are unsure of what i am talking, conside this. For example, say we have some text <q>test string &#8220;example.&#8221;.cool!</q>, we would like to split the text whenever we see the FULL-STOP &#8211; which is something the normal string.Split() does anyway. But we should be able to have DOUBLE-QUOTES as Text Qualifiers, so any text thats enclosed between two DOUBLE-QUOTES should be treated as text and we should not split that part of text if it contains a FULL-STOP.</p>
<pre>Input : <q>test string "example.".cool!</q>
Delimiter : <q>.</q>
Text Qualifier : <q>"</q></pre>
<p>Our result after split should be</p>
<ol>
<li>test string &#8220;example.&#8221;</li>
<li>cool!</li>
</ol>
<p>Looks like Larry intended to have a generic method that will take given demiliter &amp; textQualifier do the split. Larry wrote a function that does the work. I thought regular expression might be alternative, so i came up with some code and posted a <a href="http://www.codeproject.com/useritems/TextQualifyingSplit.asp?df=100&amp;forumid=336054&amp;select=1646284#xx1646284xx">comment with code</a>. I am suprised how many number of lines i needed to do this (Just 3 maximum &#8211; oh yeah we can go crazy and make it single line too). I have attached a sample project too (for your reference). I started out simple with the issue mentioned (Spliting for a delimiter and text qualifier). I was pretty sure that Regular expression is better option (they are easier to implement &#8211; less code and time required and are pretty good performance wise, but yeah normal codeing can beat regular expression sometimes with couple of % &#8211; usually between 1%-5%, but they take days to write and optmise). Firstly i googled for an existing code which has 100% match for what i wanted to try. Then i had trouble finding exactly what i wanted, so i moved to almost what i want. I know i have used parse CSV files using RE ( Delimiter and &#8216;,&#8217; and Qualifier is &#8216;&#8221;&#8216;). I just replaced the comma with DOT (slash dot &#8211; as dot is regular expression syntax so i had to escape it). Bingo, its all done.</p>
<p><code> Regex re = new Regex(@"\.(?=(?:[^""]*\"[^""]*"")*(?![^""]*""))", RegexOptions.IgnoreCase| RegexOptions.Compiled); string[] arr = re.Split(@"test string ""example."".cool!"); </code>Larry request for a generic method that can support any delimiter and textQualifier. I placed {0} where ever i saw &#8216;\.&#8217; and {1} where ever i saw &#8220;, thats it. It was all done:</p>
<pre>string reString = string.Format(@"{0}(?=(?:[^{1}]*{1}[^{1}]*{1})*(?![^{1}]*{1}))", Regex.Escape(delimiter), Regex.Escape(textQualifier));
Regex re = new Regex(reString, RegexOptions.IgnoreCase | RegexOptions.Compiled | RegexOptions.Multiline);
re.Split(inputString);</pre>
<p>I have attached the source code for anyone else who wants to do it. This is what the source code does <a href="http://abibaby.files.wordpress.com/2006/09/splitit.PNG" target="_blank"><img src="http://abibaby.files.wordpress.com/2006/09/splitit.PNG?w=372&#038;h=288" alt="Screen shot wat the source code does" height="288" width="372" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/abibaby.wordpress.com/89/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/abibaby.wordpress.com/89/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abibaby.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abibaby.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abibaby.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abibaby.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abibaby.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abibaby.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abibaby.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abibaby.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abibaby.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abibaby.wordpress.com/89/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=89&subd=abibaby&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://abibaby.wordpress.com/2006/09/03/split-text-with-a-delimiter-and-text-qualifier/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f30a4984751e654bd04e5841b7b5081?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abibaby</media:title>
		</media:content>

		<media:content url="http://abibaby.files.wordpress.com/2006/09/splitit.PNG" medium="image">
			<media:title type="html">Screen shot wat the source code does</media:title>
		</media:content>
	</item>
		<item>
		<title>ParkingZone</title>
		<link>http://abibaby.wordpress.com/2006/06/30/parkingzone/</link>
		<comments>http://abibaby.wordpress.com/2006/06/30/parkingzone/#comments</comments>
		<pubDate>Fri, 30 Jun 2006 01:18:35 +0000</pubDate>
		<dc:creator>abibaby</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">https://abibaby.wordpress.com/2006/06/30/parkingzone/</guid>
		<description><![CDATA[I saw this game on digg, it was nice. Its basically to park a car it its own colored parking spot. But it had a problem that it was shaking. I did a refresh at first, but problem seem to persist. So, I clicked the car regardless (in level 4), it worked. In level six, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=88&subd=abibaby&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I saw this game on digg, it was nice. Its basically to park a car it its own colored parking spot. But it had a problem that it was shaking. I did a refresh at first, but problem seem to persist. So, I clicked the car regardless (in level 4), it worked. In level six, i had to do an undo and redo. The below is the image of level 7<br />
<img src="http://abibaby.files.wordpress.com/2006/06/level-7.thumbnail.PNG?w=73&#038;h=96" alt="Level 7" height="96" width="73" /></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/abibaby.wordpress.com/88/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/abibaby.wordpress.com/88/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abibaby.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abibaby.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abibaby.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abibaby.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abibaby.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abibaby.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abibaby.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abibaby.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abibaby.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abibaby.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=88&subd=abibaby&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://abibaby.wordpress.com/2006/06/30/parkingzone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f30a4984751e654bd04e5841b7b5081?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abibaby</media:title>
		</media:content>

		<media:content url="http://abibaby.files.wordpress.com/2006/06/level-7.thumbnail.PNG" medium="image">
			<media:title type="html">Level 7</media:title>
		</media:content>
	</item>
		<item>
		<title>Google Gadget Contest</title>
		<link>http://abibaby.wordpress.com/2006/06/27/google-gadget-contest/</link>
		<comments>http://abibaby.wordpress.com/2006/06/27/google-gadget-contest/#comments</comments>
		<pubDate>Tue, 27 Jun 2006 23:57:37 +0000</pubDate>
		<dc:creator>abibaby</dc:creator>
				<category><![CDATA[Code Competitions]]></category>

		<guid isPermaLink="false">https://abibaby.wordpress.com/2006/06/27/google-gadget-contest/</guid>
		<description><![CDATA[Do you have what it takes to create a great Google Desktop Gadget? Have you been waiting for some motivation to prove it? Well, good news &#8212; the Google Desktop Gadget Contest is here to spur you into brilliant action.
Key Dates
Contest Ends – July 31, 2006 (all submissions must be received by this date)
Winners Announced [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=86&subd=abibaby&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Do you have what it takes to create a great Google Desktop Gadget? Have you been waiting for some motivation to prove it? Well, good news &#8212; the Google Desktop Gadget Contest is here to spur you into brilliant action.</p>
<h3>Key Dates</h3>
<p>Contest Ends – July 31, 2006 (all submissions must be received by this date)<br />
Winners Announced – August 21, 2006 (will be posted to the <a href="http://googledesktop.blogspot.com/">Google Desktop Blog</a>)</p>
<h3>The best gadgets will be determined based on:</h3>
<ol>
<li>Popularity</li>
<li>Visual appeal</li>
<li>Use of new features such as:
<ol>
<li>UI Script API (transparency, animation, etc.)</li>
<li>Sharing/collaboration through the Google Talk API (interactive games, shared lists, etc.)</li>
<li>Personalization engine (contextual information, etc.)</li>
</ol>
</li>
<li>Creativity</li>
</ol>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/abibaby.wordpress.com/86/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/abibaby.wordpress.com/86/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abibaby.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abibaby.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abibaby.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abibaby.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abibaby.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abibaby.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abibaby.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abibaby.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abibaby.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abibaby.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=86&subd=abibaby&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://abibaby.wordpress.com/2006/06/27/google-gadget-contest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f30a4984751e654bd04e5841b7b5081?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abibaby</media:title>
		</media:content>
	</item>
		<item>
		<title>Solved the TopCoder problem with least non-zero success rate</title>
		<link>http://abibaby.wordpress.com/2006/06/15/solved-the-topcoder-problem-with-least-non-zero-success-rate/</link>
		<comments>http://abibaby.wordpress.com/2006/06/15/solved-the-topcoder-problem-with-least-non-zero-success-rate/#comments</comments>
		<pubDate>Thu, 15 Jun 2006 07:49:02 +0000</pubDate>
		<dc:creator>abibaby</dc:creator>
				<category><![CDATA[Code Competitions]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">https://abibaby.wordpress.com/2006/06/15/solved-the-topcoder-problem-with-least-non-zero-success-rate/</guid>
		<description><![CDATA[Background
Have anyone heard of PrePrime? Prime number is a number that is divisible by 1 and itself (it has 2 divisiors). PrePrime has 4 divisiors. For example, the 1st preprime is 6 (1, 2, 3 &#38; 6). The numbers 6, 8, 11, 14 &#8230; are a sequence of PrePrimes.
The Problem
Find the nth preprime. Sounds simple, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=85&subd=abibaby&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h1>Background</h1>
<p>Have anyone heard of PrePrime? Prime number is a number that is divisible by 1 and itself (it has 2 divisiors). PrePrime has 4 divisiors. For example, the 1st preprime is 6 (1, 2, 3 &amp; 6). The numbers 6, 8, 11, 14 &#8230; are a sequence of PrePrimes.</p>
<h1>The Problem</h1>
<p>Find the nth preprime. Sounds simple, but there is a catch. The number n, can be upto 1 Million (1,000,000). So you are going to loop almost MaxInteger, then find if the number is pre prime. TopCoder wants code to respond back in 2 seconds. I broke 1 million into 100 parts. I pre-calculated every 10,000th PrePrime and struck the results in an array ino the code again. So if when i get a query to calculate 43,000th PrePrime. I first pick the 40,000th prime number and start working from there till i reach 43,000. Yeah, its precalculating 1/10,000th of the results. Unless we have a multi processor computer. I am not sure how to do it within 2 seconds. Anyway here is my code below&#8230;</p>
<pre>using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;

public class PreprimeNumbers {
  //public List arr = new List();
/*{ 6,
222599,
460015,
703553,
951149 };*/
  public int[] arr = { 6, 41037, 85003, 130163, 175867, 222595, 269506, 316527, 364369, 411989, 460011, 508658, 557129, 606063, 654554, 703546, 752777, 802391, 851923, 901577, 951143, 1000543, 1050514, 1100566, 1150843, 1201429, 1251479, 1301977, 1352177, 1403067, 1453467, 1504507, 1554933, 1605621, 1656418, 1707686, 1758349, 1809493, 1860778, 1912201, 1963817, 2015207, 2066453, 2117989, 2169451, 2220565, 2272654, 2323769, 2374973, 2426881, 2478478, 2530498, 2582417, 2634307, 2686165, 2738161, 2790154, 2843041, 2894739, 2946639, 2998839, 3050557, 3102997, 3155605, 3208541, 3261109, 3313397, 3365095, 3418171, 3470639, 3522473, 3574502, 3627578, 3680114, 3733219, 3785423, 3838238, 3890966, 3944026, 3996329, 4049561, 4102397, 4154783, 4207979, 4260811, 4313255, 4365757, 4419037, 4472635, 4525643, 4578583, 4631906, 4685107, 4738661, 4791471, 4844693, 4898343, 4951795, 5005241, 5058386, 5111443 };
    public int nthNumber(int n) {
        int N=6;
    int i = 1;
    if (n &gt; 10000)
    {
      i = n / 10000;
      N = arr[i];
      i = i * 10000;
    }

for (; i &lt;= n; i++)
    {
      while(!IsPrePrime(N++));
      //if (i % 10000 == 0)
      //    Console.Write(&quot;{0}, &quot;, N-1);
    }
        return N-1;
    }

private bool IsPrePrime(int n)
  {
    int l = (int)Math.Sqrt(n);
    int c = 0;
    for (int i = 2; i &lt;= l; i++)
    {
      if (n % i == 0)
      {
        c++;
        if (c &gt; 2)
          return false;
      }
    }
    c += c + 2;
    if (l * l == n)
      c--;
    return (c == 4);
  }
  //1 000 000
  //0 043 765
  //  500 000
}
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/abibaby.wordpress.com/85/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/abibaby.wordpress.com/85/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abibaby.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abibaby.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abibaby.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abibaby.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abibaby.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abibaby.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abibaby.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abibaby.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abibaby.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abibaby.wordpress.com/85/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abibaby.wordpress.com&blog=102481&post=85&subd=abibaby&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://abibaby.wordpress.com/2006/06/15/solved-the-topcoder-problem-with-least-non-zero-success-rate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5f30a4984751e654bd04e5841b7b5081?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abibaby</media:title>
		</media:content>
	</item>
	</channel>
</rss>