<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:posterous="http://posterous.com/help/rss/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title>Sharath Ciddu</title>
    <link>http://sharath.posterous.com</link>
    <description>Posts, Pictures and Pointless ephemera</description>
    <generator>posterous.com</generator>
    <link xmlns="http://www.w3.org/2005/Atom" href="http://posterous.com/api/sup_update#2e242e1c2" type="application/json" rel="http://api.friendfeed.com/2008/03#sup" />
    
    
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/SharathCiddu" /><feedburner:info uri="sharathciddu" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://posterous.superfeedr.com/" /><item>
      <pubDate>Wed, 20 Apr 2011 15:52:11 -0700</pubDate>
      <title>A successful marathon</title>
      <link>http://feedproxy.google.com/~r/SharathCiddu/~3/RoIiYq00FlU/a-successful-marathon</link>
      <guid isPermaLink="false">http://sharath.posterous.com/a-successful-marathon</guid>
      <description>
        <![CDATA[<p>
	<p>In a successful marathon you start at the &quot;Point of excitement&quot; and go through &quot;Point of exhaust&quot;, &quot;Point of black circles&quot;, &quot;Point of hallucinations&quot; , &quot;Point of philosophical hunger&quot;, &quot;Point of no point&quot;, &quot;Point of target in sight&quot;, &quot;Point of accomplishment&quot; and end up at &quot;Point of wanna do it all over again&quot;. </p><p></p><p>As long as you don't give up at the &quot;Point of no point&quot; you are good to go.</p><p></p><p>@chandansharma #designer-ke-fundae</p>
	
</p>

<p><a href="http://sharath.posterous.com/a-successful-marathon">Permalink</a> 

	| <a href="http://sharath.posterous.com/a-successful-marathon#comment">Leave a comment&nbsp;&nbsp;&raquo;</a>

</p>]]>
      </description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/323303/sharath2.png</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/3sIMqeB2fmhz</posterous:profileUrl>
        <posterous:firstName>Sharath</posterous:firstName>
        <posterous:lastName>Ciddu</posterous:lastName>
        <posterous:nickName>sharathciddu</posterous:nickName>
        <posterous:displayName>Sharath Ciddu</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://sharath.posterous.com/a-successful-marathon</feedburner:origLink></item>
    <item>
      <pubDate>Thu, 17 Dec 2009 21:43:53 -0800</pubDate>
      <title>In the briefing room: ViVu</title>
      <link>http://feedproxy.google.com/~r/SharathCiddu/~3/_Pqod9I4rnk/in-the-briefing-room-vivu</link>
      <guid isPermaLink="false">http://sharath.posterous.com/in-the-briefing-room-vivu</guid>
      <description>
        <![CDATA[<p>
	       <p><a href="http://www.basexblog.com/2009/12/16/itbr-vivu/">http://www.basexblog.com/2009/12/16/itbr-vivu/</a></p> 
	
</p>

<p><a href="http://sharath.posterous.com/in-the-briefing-room-vivu">Permalink</a> 

	| <a href="http://sharath.posterous.com/in-the-briefing-room-vivu#comment">Leave a comment&nbsp;&nbsp;&raquo;</a>

</p>]]>
      </description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/323303/sharath2.png</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/3sIMqeB2fmhz</posterous:profileUrl>
        <posterous:firstName>Sharath</posterous:firstName>
        <posterous:lastName>Ciddu</posterous:lastName>
        <posterous:nickName>sharathciddu</posterous:nickName>
        <posterous:displayName>Sharath Ciddu</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://sharath.posterous.com/in-the-briefing-room-vivu</feedburner:origLink></item>
    <item>
      <pubDate>Sun, 06 Dec 2009 12:02:00 -0800</pubDate>
      <title>Conditional compiling in AS3</title>
      <link>http://feedproxy.google.com/~r/SharathCiddu/~3/8upJF487UxI/conditional-compiling-in-as3</link>
      <guid isPermaLink="false">http://sharath.posterous.com/conditional-compiling-in-as3</guid>
      <description>
        <![CDATA[<p>
	

<p><span style="color: #ffffff;">We come across situations where we don&rsquo;t want part of our debug code/modules be part of the compiled SWF.</span></p>
<p><span style="color: #ffffff;">The following is how you can do conditional compiling in Actionscript 3.</span></p>
<p><span style="color: #ffffff;"><br /></span></p>
<p><span style="color: #ffffff;">function xxxxx</span></p>
<p><span style="color: #ffffff;">{</span></p>
<p><span style="color: #ffffff;">&nbsp;&nbsp;&nbsp;&nbsp; .....</span></p>
<p><span style="color: #ffffff;">&nbsp;&nbsp;&nbsp;&nbsp; .....</span></p>
<p><span style="font-family: ;"><span style="color: #ffffff;">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #ffffff;">CONFIG::flag1</span></span></p>
<p><span style="color: #ffffff;">&nbsp;&nbsp;&nbsp;&nbsp; {</span></p>
<p style=""><span style="color: #ffffff;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;....</span></p>
<p style=""><span style="font-family: ;"><span style="color: #ffffff;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;....</span></span></p>
<p style=""><span style="font-family: ;"><span style="color: #ffffff;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;....</span></span></p>
<p style=""><span style="font-family: ;"><span style="color: #ffffff;">&nbsp;&nbsp; &nbsp; &nbsp;}</span></span></p>
<p style=""><span style="font-family: ;"><span style="color: #ffffff;">&nbsp;&nbsp; &nbsp; &nbsp;.....</span></span></p>
<p style=""><span style="font-family: ;"><span style="color: #ffffff;">&nbsp;&nbsp; &nbsp; &nbsp;.....</span></span></p>
<p><span style="color: #ffffff;">}</span></p>
<p><span style="color: #ffffff;"><br /></span></p>
<p><span style="color: #ffffff;">Everything enclosed by the CONFIG::flag1 statement is compiled only if the </span><span style="color: #ffffff;">flag1</span><span style="color: #ffffff;"> config constant is set to true.</span></p>
<p><span style="color: #ffffff;"><br /></span></p>
<p><span style="color: #ffffff;">In Flash CS4, This can be set from File -&gt; Publish Settings. Select Settings next to Actionscript 3.</span></p>
<p><span style="color: #ffffff;">In the config constants menu, we can add over config constants.</span></p>

	
</p>

<p><a href="http://sharath.posterous.com/conditional-compiling-in-as3">Permalink</a> 

	| <a href="http://sharath.posterous.com/conditional-compiling-in-as3#comment">Leave a comment&nbsp;&nbsp;&raquo;</a>

</p>]]>
      </description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/323303/sharath2.png</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/3sIMqeB2fmhz</posterous:profileUrl>
        <posterous:firstName>Sharath</posterous:firstName>
        <posterous:lastName>Ciddu</posterous:lastName>
        <posterous:nickName>sharathciddu</posterous:nickName>
        <posterous:displayName>Sharath Ciddu</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://sharath.posterous.com/conditional-compiling-in-as3</feedburner:origLink></item>
    <item>
      <pubDate>Thu, 03 Dec 2009 03:27:50 -0800</pubDate>
      <title>Singleton in AS3</title>
      <link>http://feedproxy.google.com/~r/SharathCiddu/~3/aIkYrutRmcg/singleton-in-as3</link>
      <guid isPermaLink="false">http://sharath.posterous.com/singleton-in-as3</guid>
      <description>
        <![CDATA[<p>
	       <p>Singleton classes are one of the simple but very effective design patterns. Creating singleton classes in Java, C++ or even AS2 for that matter is very straightforward.</p> <p>But in AS3, which is based on <a href="http://en.wikipedia.org/wiki/ECMAScript">ECMAScript</a> private constructors are not supported. The following is how you enforce a user of your library to have a singleton object in AS3.</p> <p></p> <p>Even the SingletonEnforcer class should go into the Example.as</p> <p><span style="font-family: Courier New; color: #943634;"></span></p> <p><span style="font-family: Courier New; color: #943634;">package com.ciddu.sharath</span></p> <p><span style="font-family: Courier New; color: #943634;">{</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp; public class Example</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp; {</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private static var _instance:Example;</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public function Example(obj:Singleton)</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(obj == null)</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; throw Error(&#8220;This is a singleton class. Use getInstance instead&#8221;);</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public function getInstance():Example</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(Example._instance == null)</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var obj:SingletonEnforcer = new SingletonEnforcer();</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Example._instance = new Example(obj);</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return Example. _instance;</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></p> <p><span style="font-family: Courier New; color: #943634;">&nbsp;&nbsp;&nbsp;&nbsp; }</span></p> <p><span style="font-family: Courier New; color: #943634;">}</span></p> <p><span style="font-family: Courier New; color: #943634;"></span></p> <p><span style="font-family: Courier New; color: #943634;">class SingletonEnforcer</span></p> <p><span style="font-family: Courier New; color: #943634;">{</span></p> <p><span style="font-family: Courier New; color: #943634;">}</span></p> <p></p> <p>Since the class SingletonEnforcer is present outside the package, it is not accessible outside Example.as</p> <p>But at the same time if someone tries to create an object using new Example(), it will throw argument mismatch error during compilation.</p> <p></p> <p>If still someone tries to use new Example(null), a runtime exception is thrown.</p>     
	
</p>

<p><a href="http://sharath.posterous.com/singleton-in-as3">Permalink</a> 

	| <a href="http://sharath.posterous.com/singleton-in-as3#comment">Leave a comment&nbsp;&nbsp;&raquo;</a>

</p>]]>
      </description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/323303/sharath2.png</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/3sIMqeB2fmhz</posterous:profileUrl>
        <posterous:firstName>Sharath</posterous:firstName>
        <posterous:lastName>Ciddu</posterous:lastName>
        <posterous:nickName>sharathciddu</posterous:nickName>
        <posterous:displayName>Sharath Ciddu</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://sharath.posterous.com/singleton-in-as3</feedburner:origLink></item>
    <item>
      <pubDate>Thu, 03 Dec 2009 03:23:58 -0800</pubDate>
      <title>GMail for Bugzilla notifications</title>
      <link>http://feedproxy.google.com/~r/SharathCiddu/~3/WmYI2rcOGCk/gmail-for-bugzilla-notifications</link>
      <guid isPermaLink="false">http://sharath.posterous.com/gmail-for-bugzilla-notifications</guid>
      <description>
        <![CDATA[<p>
	        <p>Bugzilla supports both sendmail and SMTP as the mail delivery method. But with Gmail Apps starting to become the favored email provider for most of the companies, the need for making Bugzilla work with Gmail becomes important.</p> <p>As of today, by default Bugzilla doesn&#8217;t support SMTP+TLS that is required for Bugzilla to work.</p> <p></p> <p>There has been one method <a href="http://www.dawood.in/bugzilla_alerts_using_gmail.html">suggested in the web</a> that has worked fine for most of the users. But it hasn&#8217;t worked for me do to some authentication issues.</p> <p>The following is how I was able to make Bugzilla work with my Gmail.</p> <p></p> <p><i>[root@sciddu~]# perl -MCPAN -e shell</i></p> <p></p> <p>This will launch the CPAN shell</p> <p></p> <p><i>cpan&gt; install Email::Send::Gmail</i></p> <p></p> <p>It will ask to install additional modules. Install them.</p> <p></p> <p>Once the installation is done, in the Bugzilla mail_delivery_method admin page, choose Gmail as the option</p> <p></p> <p><div class='p_embed p_image_embed'>
<img alt="Image001" height="244" src="http://getfile0.posterous.com/getfile/files.posterous.com/sharath/UeGhL1OSmvmgThwSgGczUyoZbJYMrtSf7JyUXzzH2IrN4CJM5Gv5LKDPvyDB/image001.png" width="184" />
</div>
</p> <p></p> <p>Enter the from mailfrom address as &lt;username&gt;@gmail.com</p> <p>Enter the smtp server as smtp.gmail.com</p> <p>Enter the smtp_username as &lt;username&gt;@gmail.com</p> <p>Enter the smtp_password</p> <p></p> <p>Click on &#8220;Save Changes&#8221;.</p> <p></p> <p>Now open the file Bugzilla/Mailer.pm</p> <p></p> <p>Look for the line <code><span style="font-size: 10.0pt; color: black;">if</span></code><span class="apple-converted-space"><span style="font-size: 7.5pt; font-family: Consolas; color: black;">&nbsp;</span></span><code><span style="font-size: 10.0pt; color: black;">($method</span></code><span class="apple-converted-space"><span style="font-size: 7.5pt; font-family: Consolas; color: black;">&nbsp;</span></span><code><span style="font-size: 10.0pt; color: black;">eq</span></code><span class="apple-converted-space"><span style="font-size: 10.0pt; font-family: Courier New; color: black;">&nbsp;</span></span><code><span style="font-size: 10.0pt; color: black;">&quot;SMTP&quot;) { </span></code>and replace it with <code><span style="font-size: 10.0pt; color: black;">if</span></code><span class="apple-converted-space"><span style="font-size: 7.5pt; font-family: Consolas; color: black;">&nbsp;(</span></span><code><span style="font-size: 10.0pt; color: black;">($method</span></code><span class="apple-converted-space"><span style="font-size: 7.5pt; font-family: Consolas; color: black;">&nbsp;</span></span><code><span style="font-size: 10.0pt; color: black;">eq</span></code><span class="apple-converted-space"><span style="font-size: 10.0pt; font-family: Courier New; color: black;">&nbsp;</span></span><code><span style="font-size: 10.0pt; color: black;">&quot;SMTP&quot;)||($method eq &#8220;Gmail&#8221;)) {</span></code></p> <p>Save the file.</p> <p></p> <p>Now you are all set to use Gmail with Bugzilla.</p>   
	
</p>

<p><a href="http://sharath.posterous.com/gmail-for-bugzilla-notifications">Permalink</a> 

	| <a href="http://sharath.posterous.com/gmail-for-bugzilla-notifications#comment">Leave a comment&nbsp;&nbsp;&raquo;</a>

</p>]]>
      </description>
      <posterous:author>
        <posterous:userImage>http://files.posterous.com/user_profile_pics/323303/sharath2.png</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/3sIMqeB2fmhz</posterous:profileUrl>
        <posterous:firstName>Sharath</posterous:firstName>
        <posterous:lastName>Ciddu</posterous:lastName>
        <posterous:nickName>sharathciddu</posterous:nickName>
        <posterous:displayName>Sharath Ciddu</posterous:displayName>
      </posterous:author>
      <media:content type="image/png" height="244" width="184" url="http://getfile0.posterous.com/getfile/files.posterous.com/sharath/UeGhL1OSmvmgThwSgGczUyoZbJYMrtSf7JyUXzzH2IrN4CJM5Gv5LKDPvyDB/image001.png">
        <media:thumbnail height="244" width="184" url="http://getfile0.posterous.com/getfile/files.posterous.com/sharath/UeGhL1OSmvmgThwSgGczUyoZbJYMrtSf7JyUXzzH2IrN4CJM5Gv5LKDPvyDB/image001.png" />
      </media:content>
    <feedburner:origLink>http://sharath.posterous.com/gmail-for-bugzilla-notifications</feedburner:origLink></item>
  </channel>
</rss>

