<?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>Khopdi</title>
	<atom:link href="http://www.khopdi.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.khopdi.com</link>
	<description>My Brain Dump</description>
	<lastBuildDate>Thu, 17 Nov 2011 22:49:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Enterprise Library &#8211; StringLengthValidator [Validation Attribute] is not an Attribute Class</title>
		<link>http://www.khopdi.com/entlib-stringlengthvalidator-not-attribute-class</link>
		<comments>http://www.khopdi.com/entlib-stringlengthvalidator-not-attribute-class#comments</comments>
		<pubDate>Thu, 17 Nov 2011 22:46:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.khopdi.com/?p=137</guid>
		<description><![CDATA[If you are trying to use Enterprise Library 5.0 Validation Application block and are seeing an error in visual studio when you add the StringLengthValidator attribute to a property you want to be validated then you need to add a reference to System.ComponentModel.DataAnnotations assembly to your project. This is needed in addition to the Mircrosoft.Practices.EnterpriseLibrary.Validation [...]]]></description>
			<content:encoded><![CDATA[<p>If you are trying to use Enterprise Library 5.0 Validation Application block and are seeing an error in visual studio when you add the StringLengthValidator attribute to a property you want to be validated then you need to add a reference to System.ComponentModel.DataAnnotations assembly to your project. This is needed in addition to the Mircrosoft.Practices.EnterpriseLibrary.Validation assembly you would normally add. This is mentioned in the <a rel="external nofollow" href="http://entlib.codeplex.com/wikipage?title=EntLib5ChangeLog&amp;referringTitle=EntLib5#breakingChanges">Enlib 5.0 Breaking changes</a>.<br />
&#8220;If you used validator attributes in your code you must now reference the System.ComponentModel.DataAnnotations assembly.&#8221; Too bad I didn&#8217;t read it and spend quite some time figuring this out. The System.ComponentMode.DataAnnotations namespace gives access to attribute class that are used to define the metadata for the validators.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.khopdi.com/entlib-stringlengthvalidator-not-attribute-class/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Webmin: there are too many zones on your system to display here</title>
		<link>http://www.khopdi.com/webmin-there-are-too-many-zones-on-your-system-to-display-here</link>
		<comments>http://www.khopdi.com/webmin-there-are-too-many-zones-on-your-system-to-display-here#comments</comments>
		<pubDate>Wed, 26 Oct 2011 20:34:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.khopdi.com/?p=135</guid>
		<description><![CDATA[I have a linux server running ubuntu 10.04 and I use webmin 1.570 to monitor and manage my services like named and mysql. Yesterday I went over the default limit of number of zones shown in the &#8216;Existing DNS Zones&#8217; section of the named module on webmin and got a message &#8220;there are too many [...]]]></description>
			<content:encoded><![CDATA[<p>I have a linux server running ubuntu 10.04 and I use webmin 1.570 to monitor and manage my services like named and mysql. Yesterday I went over the default limit of number of zones shown in the &#8216;Existing DNS Zones&#8217; section of the named module on webmin and got a message &#8220;there are too many zones on your system to display here&#8221;. I really didn&#8217;t want to go the command line way of managing my zones and like to see all the zones in one place in a nice gui.<br />
The solution was to click on the &#8216;Module Config&#8217; link for the &#8216;BIND DNS Server&#8217; and set the &#8216;Maximum number of zones to display&#8217; to 100 and hit save.<br />
From the main Webmin window, click Servers, then Bind DNS Server and finally Module Config</p>
<p>The module config link may not show for all webmin users depending on how you have it setup (you can restrict access to parts of modules from the Webmin users control). Also, I know for sure that the module config link is not available on webmin version 1.180 and older. Upgrade to 1.230 atleast and you should be able to see the link. You can upgrade webmin from the Webmin->Webmin Configuration->Upgrade Webmin section</p>
]]></content:encoded>
			<wfw:commentRss>http://www.khopdi.com/webmin-there-are-too-many-zones-on-your-system-to-display-here/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Reading List</title>
		<link>http://www.khopdi.com/my-reading-list</link>
		<comments>http://www.khopdi.com/my-reading-list#comments</comments>
		<pubDate>Tue, 25 Oct 2011 07:32:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.khopdi.com/?p=128</guid>
		<description><![CDATA[Designing Reusable Classes &#8211; http://www.laputan.org/drc/drc.html Event Sourcing &#8211; http://martinfowler.com/eaaDev/EventSourcing.html Template Method Pattern &#8211; http://en.wikipedia.org/wiki/Template_method_pattern Service Locator Pattern &#8211; http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceLocator.html\]]></description>
			<content:encoded><![CDATA[<p>Designing Reusable Classes &#8211; http://www.laputan.org/drc/drc.html<br />
Event Sourcing &#8211; http://martinfowler.com/eaaDev/EventSourcing.html<br />
Template Method Pattern &#8211; http://en.wikipedia.org/wiki/Template_method_pattern<br />
Service Locator Pattern &#8211; http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceLocator.html\</p>
]]></content:encoded>
			<wfw:commentRss>http://www.khopdi.com/my-reading-list/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Samsung LCD TV: Power on problem/delay with clicking sound and blinking LED</title>
		<link>http://www.khopdi.com/samsung-lcd-tv-power-on-problem-clicking-sound-capacitor-troubleshooting-repair</link>
		<comments>http://www.khopdi.com/samsung-lcd-tv-power-on-problem-clicking-sound-capacitor-troubleshooting-repair#comments</comments>
		<pubDate>Sat, 12 Dec 2009 07:08:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.khopdi.com/?p=75</guid>
		<description><![CDATA[Symptoms: When trying to turn on the TV after a while, it doesn&#8217;t immediately turn and makes a clicking sound a number of times with the red LED/light flashing for a few seconds. Finally, the TV turns on and works normally after that. After the TV has been on for a while, immediate turning off [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Symptoms:</strong> When trying to turn on the TV after a while, it doesn&#8217;t immediately turn and makes a clicking sound a number of times with the red LED/light flashing for a few seconds. Finally, the TV turns on and works normally after that. After the TV has been on for a while, immediate turning off and then on again doesn&#8217;t reproduce the problem. There are no other symptoms of this problem (picture quality appears to be fine) and TV appears to be working perfectly once it turns on after the initial delay.<br />
This problem actually worsens with time. The TV takes longer and longer to turn on. one guy reported a turn on delay of up to 30 mins; looks like he really wanted to watch TV <img src='http://www.khopdi.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . If you wait long enough to fix this problem, eventually the TV won&#8217;t turn on and permanent damage is possible.<strong> </strong></p>
<p><strong>Problem: </strong>The problem lies in the power supply SMPS unit of the TV. The low voltage filter capacitors in the power supply are faulty. Samsung managed to install under-rated capacitors here. Instead of putting 16V rating capacitors they erroneously installed capacitors rated for 10V. This exposure to over voltage gradually deteorates the capacitors by heating the dielectric oil that is present in these capacitors. Over time with sufficient heat the oil manages to either swell the top of the capacitors and in some case explode the capacitor. The capacitors losose their capacity without the oil in them and are no longer useful.</p>
<p>Here are the models that are known with this problem:</p>
<p>* Samsung LN40A630M1F (would not power up at all)<br />
* Samsung LE40R88BD<br />
* Samsung LN40A500<br />
* Samsung LA40N81BD<br />
* Samsung LN-T##61F<br />
* Samsung LN-T##65F<br />
* Samsung LN-T##66F<br />
* Samsung LN-T##71F<br />
* Samsung LN-52A550P<br />
* Samsung BN68-01024D</p>
<p><strong>Solution:</strong> Luckily these capacitors can be replaced at home without the expensive technician call. They are not specialized parts with only two leads and are easy to replace if you have the right tools. They are also easy to identify as you&#8217;ll see in the pictures.</p>
<p><strong>Tools Needed:</strong></p>
<ul>
<li>Philips Screw Driver (To remove several screws on the back of the TV and the screws on the SMPS unit.</li>
<li> Soldering Iron (20-30 watts) any hardware store</li>
<li>Soldering wire with flux in the core radio shack</li>
<li>Desoldering wick or pump (preferred) from radio shack</li>
<li> 4 Capacitors 1000uF Voltage rating &gt; 16V</li>
</ul>
<p>I used 1000uF 35V capacitors from radio shack. These are slightly larger than the original ones but will fit just fine.<br />
Moreover, they can handle upto 35V so they are better in a sense.</p>
<p><strong>Cost:</strong> If you alread have the tools need the cost is about $1.5 * 4</p>
<p><strong>Steps:</strong></p>
<ol>
<li>If you don&#8217;t know how to solder or desolder watch the Youtube videos on how to do it first. Its easy.</li>
<li>Unmount your TV from the stand or the wall mount and place it face down on a soft flat surface.</li>
<li> Unscrew all screws holding the back coverof the TV and remove the back cover gently. if it doesn;t come of easily it means you have another screw somewhere holding it. Keep the screws in a safe place.</li>
<li>Locate the SMPS power supply unit.</li>
<li>Remove the top of the PSU by unscrewing the retaining screws.</li>
<li>Locate the faulty capacitors on the component side of the SMPS PCB (printed circuit board). They are easy to spot. They will be bulged up and some may have a tiny hole at the top and traces of brown dried oil residue.<a href="http://www.khopdi.com/wp-content/uploads/2009/12/samsung-lcd-bad-capacitors.jpg"><img class="size-full wp-image-91 aligncenter" title="samsung-lcd-bad-capacitors" src="http://www.khopdi.com/wp-content/uploads/2009/12/samsung-lcd-bad-capacitors.jpg" alt="" width="486" height="292" /></a></li>
<li>Flip the SMPS board so you see the solder side.</li>
<li> Heat you soldering and check if appropriate temperature is reached by melting a small length of soldering wire.</li>
<li> Clean the soldering iron tip on solder cleaning pad or a car board to get rid of the excess solder on the tip.</li>
<li>You will be removing one capacitor at a time so be patient. This will take some time but is easy to do if you follow the instructions.</li>
<li>Now take the soldering iron in one hand and the desoldering pump or the desoldering wick in another and apply</li>
<li> some heat to one of the capacitors lead. Apply heat till you visually can tell that the solder holding the pin has melted.</li>
<li>Apply the desoldering pump at the pin location and suck the solder out. If you are using the wick then just apply the wick to at the spot to absorb the solder.</li>
<li> Once the solder is removed from one pin, do the second pin.</li>
<li>This should free the capacitor and you should be able to pull it out fairly easily. If the pin is still attached to the PCB just apply some heat to melt the solder holding it while moving the capacitor. Remove other faulty capacitors similarly.</li>
<li>Grab the new capacitor and insert in the holes from the component side making sure that the polarity is correct. Capacitors have a +ve lead and a -ve lead and the +ve lead needs to go to hole marked as positive on the PCB and vice-versa. If you fail to correctly match the polarity, you will destroy the newly installed capacitors, so please match the polarity carefully.</li>
<li>Ones the leads come out on the other side bend them outwards slightly so the capacitors stays on its own. Now apply some head with the soldering iron at the base of the joint and intrduce some soldering wire to make the perfect solder. Don&#8217;t fret too much if there is too much solder at the joint as long as the it is not touching any neighboring leads or pins.</li>
<li>Once both leads are soldering, cut the excess part of the lead with a small cutter or a nail clipper. Replace other capacitors in similar fashion.</li>
<li><a href="http://www.khopdi.com/wp-content/uploads/2009/12/samsung-lcd-replaced-capacitors.jpg"><img class="aligncenter size-full wp-image-96" title="samsung-lcd-replaced-capacitors" src="http://www.khopdi.com/wp-content/uploads/2009/12/samsung-lcd-replaced-capacitors.jpg" alt="" width="493" height="358" /></a>Put the SMPS power supply unit cover back and screw it on. Screw the back of the TV</li>
<li> Turn on the TV and check for the problem. Your TV should no longer click or blink for more than a couple of seconds which is normal.</li>
</ol>
<p>Your TV should function normally now. There is no guarantee that  the older capacitors in the TV will work as long as the new ones but you know what to do when you spot a faulty one now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.khopdi.com/samsung-lcd-tv-power-on-problem-clicking-sound-capacitor-troubleshooting-repair/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Javascript video lectures and tutorials</title>
		<link>http://www.khopdi.com/javascript-video-lectures-tutorials</link>
		<comments>http://www.khopdi.com/javascript-video-lectures-tutorials#comments</comments>
		<pubDate>Wed, 11 Nov 2009 03:59:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.khopdi.com/?p=41</guid>
		<description><![CDATA[Cool JavaScript videos by Douglas Crockford and other yui people&#8230;. http://www.techvideos.org/javascript]]></description>
			<content:encoded><![CDATA[<p>Cool JavaScript videos by Douglas Crockford and other yui people&#8230;.<br />
<a href="http://www.techvideos.org/javascript">http://www.techvideos.org/javascript</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.khopdi.com/javascript-video-lectures-tutorials/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla IIS Search Engine Friendly (SEF) Url generation with Free Extensions: How to get rid of index.php</title>
		<link>http://www.khopdi.com/joomla-iis-search-engine-friendly-sef-url-generation-free-extensions-how-get-rid-index-php</link>
		<comments>http://www.khopdi.com/joomla-iis-search-engine-friendly-sef-url-generation-free-extensions-how-get-rid-index-php#comments</comments>
		<pubDate>Wed, 11 Nov 2009 02:56:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://www.khopdi.com/?p=36</guid>
		<description><![CDATA[This article assumes that you are using Joomla 1.5 with IIS 6.0 on Windows Server 2003 Generating clean Search Engine Friendly Urls in joomla is pretty easy if you have the right component/plugin. You have several options for enabling SEF urls for your joomla installation. 1. Default Joomla SEF Plugin 2. sh404SEF component (Commercial) 3. [...]]]></description>
			<content:encoded><![CDATA[<p>This article assumes that you are using Joomla 1.5 with IIS 6.0 on Windows Server 2003</p>
<p>Generating clean Search Engine Friendly Urls in joomla is pretty easy if you have the right component/plugin. You have several options for enabling SEF urls for your joomla installation.</p>
<p>1. Default Joomla SEF Plugin<br />
2. sh404SEF component (Commercial)<br />
3. JoomSEO Component (Non-Commercial)</p>
<p>The default Joomla! SEF plugin is pretty good at what it does but its not as powerful as the last two options from above. Any serious blog or website should probably be using one of them. There are other options for doing SEF urls but those are the two main options. sh404SEF was my favorite as long as it was free. It had some bugs but overall it was running fine. When I went to download sh404SEF for another site I am currently building I realized it was no longer free. Since I am on a very tight budget it was no longer an option for me, so I decided to try ARTIO-JoomSEF. Even though</p>
]]></content:encoded>
			<wfw:commentRss>http://www.khopdi.com/joomla-iis-search-engine-friendly-sef-url-generation-free-extensions-how-get-rid-index-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Technical programming interview questions blog</title>
		<link>http://www.khopdi.com/technical-programming-interview-questions-blog</link>
		<comments>http://www.khopdi.com/technical-programming-interview-questions-blog#comments</comments>
		<pubDate>Wed, 11 Nov 2009 02:56:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[interview questions]]></category>

		<guid isPermaLink="false">http://www.khopdi.com/?p=34</guid>
		<description><![CDATA[I started a new Interview Questions Blog where I will be posting solutions to commonly asked technical programming interview questions. Currently I have about 50 coding questions asked in programming interviews. Hopefully, I will be adding more questions and solutions progressively.]]></description>
			<content:encoded><![CDATA[<p>I started a new Interview Questions Blog where I will be posting solutions to commonly asked <a href="http://www.technicalinterviewquestions.net">technical programming interview questions</a>. Currently I have about 50 coding questions asked in programming interviews. Hopefully, I will be adding more questions and solutions progressively.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.khopdi.com/technical-programming-interview-questions-blog/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The C# Coalesce (??) Operator</title>
		<link>http://www.khopdi.com/c-sharp-coalesce-operator</link>
		<comments>http://www.khopdi.com/c-sharp-coalesce-operator#comments</comments>
		<pubDate>Wed, 11 Nov 2009 02:54:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.khopdi.com/?p=32</guid>
		<description><![CDATA[The ?? operator returns the left-hand operand if it is not null, or else it returns the right operand. if (myObject == null) { myObject = new MyClass(); } return myObject; The above code can be represented using the one-liner below. return myObject ?? new MyClass();]]></description>
			<content:encoded><![CDATA[<p>The ?? operator returns the left-hand operand if it is not null, or else it returns the right operand.</p>
<pre class="brush: c#">

if (myObject == null)
{
    myObject = new MyClass();
}
return myObject;
</pre>
<p>The above code can be represented using the one-liner below.</p>
<pre class="brush: c#">

return myObject ?? new MyClass();
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.khopdi.com/c-sharp-coalesce-operator/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extending XSLT with Extension Objects in .NET</title>
		<link>http://www.khopdi.com/extending-xslt-with-extension-objects-in-net</link>
		<comments>http://www.khopdi.com/extending-xslt-with-extension-objects-in-net#comments</comments>
		<pubDate>Wed, 11 Nov 2009 02:53:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.khopdi.com/?p=30</guid>
		<description><![CDATA[XSLT 2.0 is good news but .NET 2.0 supports only XSLT 1.0 as of the writing of this post. Even Orcas is not going to support XSLT 2.0. Microsoft has a good explanation for this decision. They suggest you use XQuery 1.0. You can read about it here. Edit: Microsoft has agreed to a XSLT [...]]]></description>
			<content:encoded><![CDATA[<p>XSLT 2.0 is good news but .NET 2.0 supports only XSLT 1.0 as of the writing of this post. Even Orcas is not going to support XSLT 2.0. Microsoft has a good explanation for this decision. They suggest you use XQuery 1.0.  You can read about  it here.</p>
<p>Edit: <a href="http://blogs.msdn.com/xmlteam/archive/2007/01/29/xslt-2-0.aspx">Microsoft has agreed to a XSLT 2.0 implementation CTP release. </a></p>
<p>Anyway, I needed to do some special transformations (non-trivial string/date formatting and ebcdic encoding) that are not supported out of the box in XSLT 1.0. I decided to look for free xslt extensions and tried exslt and others. After an unsuccessful attempt at tring to setup and use them, I gave up. Instead, I resorted to  doing the special handling on the C# side, where I am more comfortable. Here is how you do it.</p>
<p>Using the XSLT extension feature provided by .NET, custom code can be invoked from an XSLT stylesheet.</p>
<p><strong>Steps required to use the Extension Object functionality:</strong></p>
<ul>
<li> Write a class with a method that implements the special functionality.</li>
<li>Create and object of the above class and add an extension object to the XsltArgumentList class using the</li>
<li>AddExtensionObject method.</li>
<li>Pass this XsltArgumentList object to the XslCompiledTransform.Transform method.</li>
<li>Add the namespace in the XSL stylesheet to refernce the extension objects from the stylesheet</li>
</ul>
<p>Below is a sample code snippet below which implements ToUpper().</p>
<p><strong>Sample XML File</strong></p>
<pre class="brush: xml">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
&lt;root&gt;
&lt;node name=&quot;node1&quot;&gt;Hello World!&lt;/node&gt;
&lt;/root&gt;
</pre>
<p><strong>Sample XSLT File</strong></p>
<pre class="brush: xml">
&lt;xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;
xmlns:stringhelper=&quot;urn:StringHelper&quot;&gt;
&lt;xsl:output method=&quot;text&quot; omit-xml-declaration=&quot;yes&quot;&gt;
&lt;xsl:template match=&quot;/&quot;&gt;
&lt;xsl:for-each select=&quot;//Node&quot;&gt;
&lt;xsl:value-of select=&quot;StringHelper:ToUpper(.)&quot;&gt;&lt;/xsl:value-of&gt;
&lt;/xsl:for-each&gt;
&lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;
</pre>
<p><strong>Output:</strong> HELLO WORLD!</p>
<p><strong>Code</strong></p>
<pre class="brush: c#">
namespace XsltTest
{
class Program
{
static void Main(string[] args)
{
XslCompiledTransform transform = new XslCompiledTransform();
transform.Load(&quot;XSLTFile1.xslt&quot;);
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(&quot;XMLFile1.xml&quot;);
FileInfo fileInfo = new FileInfo(@&quot;output.txt&quot;);

using (StreamWriter writer = fileInfo.CreateText())
{
XsltArgumentList xsltArgs = new XsltArgumentList();
xsltArgs.AddExtensionObject(&quot;urn:StringHelper&quot;, new StringHelper());
transform.Transform(xmlDoc, xsltArgs, writer);
}
}
}
// This is the extension class.
// It implements the trivial ToUpper(),
// but certainly can be used for complex operations
public class StringHelper
{
public string ToUpper(string str)
{
return str.ToUpper();
}
}
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.khopdi.com/extending-xslt-with-extension-objects-in-net/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find the caller from a callee method in .NET</title>
		<link>http://www.khopdi.com/how-to-find-the-caller-from-a-callee-method-in-net</link>
		<comments>http://www.khopdi.com/how-to-find-the-caller-from-a-callee-method-in-net#comments</comments>
		<pubDate>Wed, 11 Nov 2009 02:52:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.Net]]></category>

		<guid isPermaLink="false">http://www.khopdi.com/?p=28</guid>
		<description><![CDATA[In .Net, how do you find from a method, who the caller of that method is? MethodA &#60;&#8212;&#8212;&#8212;&#8212;-MethodB, MethodC, MethodD (All these methods call MethodA) string callerName = new System.Diagnostics.StackTrace(false).GetFrame(1).GetMethod().Name; Pass in &#8216;true&#8217; to the StackTrace constructor if you need to know the Filename, line number, and column number. Isn&#8217;t that cool?]]></description>
			<content:encoded><![CDATA[<p>In .Net, how do you find from a method, who the caller of that method is?</p>
<p>MethodA &lt;&#8212;&#8212;&#8212;&#8212;-MethodB, MethodC, MethodD (All these methods call MethodA)</p>
<pre class="brush: c#">

string callerName = new System.Diagnostics.StackTrace(false).GetFrame(1).GetMethod().Name;
</pre>
<p>Pass in &#8216;true&#8217; to the StackTrace constructor if you need to know the Filename, line number, and column number. Isn&#8217;t that cool?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.khopdi.com/how-to-find-the-caller-from-a-callee-method-in-net/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

