<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for JLCoady.net</title>
	<atom:link href="http://jlcoady.net/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://jlcoady.net</link>
	<description></description>
	<lastBuildDate>Wed, 13 Oct 2010 08:27:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Comment on Credit Card Validation in C# by Marinus</title>
		<link>http://jlcoady.net/c-sharp/credit-card-validation-in-c-sharp/comment-page-1#comment-2583</link>
		<dc:creator>Marinus</dc:creator>
		<pubDate>Wed, 13 Oct 2010 08:27:13 +0000</pubDate>
		<guid isPermaLink="false">http://jlcoady.net/?p=145#comment-2583</guid>
		<description>Can you please tell me if i have a Text box how will it be possible to send the  text box text information through this class

public static bool Validate(CardType cardType, string cardNumber)</description>
		<content:encoded><![CDATA[<p>Can you please tell me if i have a Text box how will it be possible to send the  text box text information through this class</p>
<p>public static bool Validate(CardType cardType, string cardNumber)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Doctrine query caching causing &#8220;Invalid parameter number&#8221; error for queries using &#8220;IN ?&#8221; by cpnfortehwin</title>
		<link>http://jlcoady.net/symfony/doctrine-query-caching-causing-invalid-parameter-number-error/comment-page-1#comment-2568</link>
		<dc:creator>cpnfortehwin</dc:creator>
		<pubDate>Sun, 10 Oct 2010 22:05:49 +0000</pubDate>
		<guid isPermaLink="false">http://jlcoady.net/?p=386#comment-2568</guid>
		<description>I had the same problem, but i using just using -&gt;whereIn(&#039;last&#039;, $array); And it&#039;s ok :)
But for my problem, that was not a problem of caching.</description>
		<content:encoded><![CDATA[<p>I had the same problem, but i using just using -&gt;whereIn(&#8216;last&#8217;, $array); And it&#8217;s ok :)<br />
But for my problem, that was not a problem of caching.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Easy Mortgage Calculator by Josh</title>
		<link>http://jlcoady.net/ventures/easy-mortgage-calculator/comment-page-1#comment-2335</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Thu, 23 Sep 2010 03:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://jlcoady.net/?p=182#comment-2335</guid>
		<description>Update: After 18 months of going live, the page currently makes enough to pay for itself (but not much more--yet!)</description>
		<content:encoded><![CDATA[<p>Update: After 18 months of going live, the page currently makes enough to pay for itself (but not much more&#8211;yet!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to remove the meta name=title element from Symfony pages by Olivier Hug</title>
		<link>http://jlcoady.net/symfony/remove-meta-name-title-symfony-pages/comment-page-1#comment-1734</link>
		<dc:creator>Olivier Hug</dc:creator>
		<pubDate>Sat, 21 Aug 2010 11:59:28 +0000</pubDate>
		<guid isPermaLink="false">http://jlcoady.net/?p=60#comment-1734</guid>
		<description>There is an even simpler solution to this:

go to the lib/vendor/helper/AssetHelper.php class,
and change the function include_metas() so that it skips
for the title tag (if...continue):

function include_metas()
{
  $context = sfContext::getInstance();
  $i18n = sfConfig::get(&#039;sf_i18n&#039;) ? $context-&gt;getI18N() : null;
  foreach ($context-&gt;getResponse()-&gt;getMetas() as $name =&gt; $content)
  {
    if($name = &quot;title&quot;) continue;
    echo tag(&#039;meta&#039;, array(&#039;name&#039; =&gt; $name, &#039;content&#039; =&gt; null === $i18n ? $content : $i18n-&gt;__($content))).&quot;\n&quot;;
  }
}

Cheers, Olivier</description>
		<content:encoded><![CDATA[<p>There is an even simpler solution to this:</p>
<p>go to the lib/vendor/helper/AssetHelper.php class,<br />
and change the function include_metas() so that it skips<br />
for the title tag (if&#8230;continue):</p>
<p>function include_metas()<br />
{<br />
  $context = sfContext::getInstance();<br />
  $i18n = sfConfig::get(&#8216;sf_i18n&#8217;) ? $context-&gt;getI18N() : null;<br />
  foreach ($context-&gt;getResponse()-&gt;getMetas() as $name =&gt; $content)<br />
  {<br />
    if($name = &#8220;title&#8221;) continue;<br />
    echo tag(&#8216;meta&#8217;, array(&#8216;name&#8217; =&gt; $name, &#8216;content&#8217; =&gt; null === $i18n ? $content : $i18n-&gt;__($content))).&#8221;\n&#8221;;<br />
  }<br />
}</p>
<p>Cheers, Olivier</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Install WordPress by Mike Seddon</title>
		<link>http://jlcoady.net/tutorials/wordpress/install-wordpress-shared-hosting/install-wordpress/comment-page-1#comment-817</link>
		<dc:creator>Mike Seddon</dc:creator>
		<pubDate>Sat, 29 May 2010 09:15:36 +0000</pubDate>
		<guid isPermaLink="false">http://jlcoady.net/?page_id=297#comment-817</guid>
		<description>Thank you for this.

An excellent write up. Very clear and very easy to follow.

I&#039;ve set up Wordpress blogs before but never with helmcontrol and it was doing my head in to find everything.

Cheers
Mike</description>
		<content:encoded><![CDATA[<p>Thank you for this.</p>
<p>An excellent write up. Very clear and very easy to follow.</p>
<p>I&#8217;ve set up WordPress blogs before but never with helmcontrol and it was doing my head in to find everything.</p>
<p>Cheers<br />
Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Easy way to get FCKEditor to work inside an ASP.Net AJAX UpdatePanel by Mark</title>
		<link>http://jlcoady.net/aspnet/fckeditor-work-inside-updatepanel/comment-page-1#comment-552</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 08 Feb 2010 19:50:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jlcoady.net/?p=3#comment-552</guid>
		<description>Outstanding...thank you!!!</description>
		<content:encoded><![CDATA[<p>Outstanding&#8230;thank you!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Credit Card Validation in C# by Navnit</title>
		<link>http://jlcoady.net/c-sharp/credit-card-validation-in-c-sharp/comment-page-1#comment-506</link>
		<dc:creator>Navnit</dc:creator>
		<pubDate>Fri, 22 Jan 2010 09:11:04 +0000</pubDate>
		<guid isPermaLink="false">http://jlcoady.net/?p=145#comment-506</guid>
		<description>public sealed class Card_Validation
{
    string MasterCard, BankCard, Visa, AmericanExpress, Discover, DinersClub, JCB;
    private Card_Validation()
    {
    } // static only

    //public static bool Validate(CardType cardType, string cardNumber)
    public static  bool Validate(string  cardType, string cardNumber)
   {
      byte[] number = new byte[16]; // number to validate

      // Remove non-digits
      int len = 0;
      for(int i = 0; i  5)
               return false;
            break;

         case &quot;BankCard&quot;:
            if(len != 16)
               return false;
            if(number[0] != 5 &#124;&#124; number[1] != 6 &#124;&#124; number[2] &gt; 1)
               return false;
            break;

         case &quot;Visa&quot;:
            if(len != 16 &amp;&amp; len != 13)
               return false;
            if(number[0] != 4)
               return false;
            break;

         case &quot;AmericanExpress&quot;:
            if(len != 15)
               return false;
            if(number[0] != 3 &#124;&#124; (number[1] != 4 &amp;&amp; number[1] != 7))
               return false;
            break;

         case &quot;Discover&quot;:
            if(len != 16)
               return false;
            if(number[0] != 6 &#124;&#124; number[1] != 0 &#124;&#124; number[2] != 1 &#124;&#124; number[3] != 1)
               return false;
            break;

         case &quot;DinersClub&quot;:
            if(len != 14)
               return false;
            if(number[0] != 3 &#124;&#124; (number[1] != 0 &amp;&amp; number[1] != 6 &amp;&amp; number[1] != 8)
               &#124;&#124; number[1] == 0 &amp;&amp; number[2] &gt; 5)
               return false;
            break;

         case &quot;JCB&quot;:
            if(len != 16 &amp;&amp; len != 15)
               return false;
            if(number[0] != 3 &#124;&#124; number[1] != 5)
               return false;
            break;
      }

      // Use Luhn Algorithm to validate
      int sum = 0;
      for(int i = len - 1; i &gt;= 0; i--)
      {
         if(i % 2 == len % 2)
         {
            int n = number[i] * 2;
            sum += (n / 10) + (n % 10);
         }
         else
            sum += number[i];
      }
      return (sum % 10 == 0);
   }
}</description>
		<content:encoded><![CDATA[<p>public sealed class Card_Validation<br />
{<br />
    string MasterCard, BankCard, Visa, AmericanExpress, Discover, DinersClub, JCB;<br />
    private Card_Validation()<br />
    {<br />
    } // static only</p>
<p>    //public static bool Validate(CardType cardType, string cardNumber)<br />
    public static  bool Validate(string  cardType, string cardNumber)<br />
   {<br />
      byte[] number = new byte[16]; // number to validate</p>
<p>      // Remove non-digits<br />
      int len = 0;<br />
      for(int i = 0; i  5)<br />
               return false;<br />
            break;</p>
<p>         case &#8220;BankCard&#8221;:<br />
            if(len != 16)<br />
               return false;<br />
            if(number[0] != 5 || number[1] != 6 || number[2] &gt; 1)<br />
               return false;<br />
            break;</p>
<p>         case &#8220;Visa&#8221;:<br />
            if(len != 16 &amp;&amp; len != 13)<br />
               return false;<br />
            if(number[0] != 4)<br />
               return false;<br />
            break;</p>
<p>         case &#8220;AmericanExpress&#8221;:<br />
            if(len != 15)<br />
               return false;<br />
            if(number[0] != 3 || (number[1] != 4 &amp;&amp; number[1] != 7))<br />
               return false;<br />
            break;</p>
<p>         case &#8220;Discover&#8221;:<br />
            if(len != 16)<br />
               return false;<br />
            if(number[0] != 6 || number[1] != 0 || number[2] != 1 || number[3] != 1)<br />
               return false;<br />
            break;</p>
<p>         case &#8220;DinersClub&#8221;:<br />
            if(len != 14)<br />
               return false;<br />
            if(number[0] != 3 || (number[1] != 0 &amp;&amp; number[1] != 6 &amp;&amp; number[1] != 8)<br />
               || number[1] == 0 &amp;&amp; number[2] &gt; 5)<br />
               return false;<br />
            break;</p>
<p>         case &#8220;JCB&#8221;:<br />
            if(len != 16 &amp;&amp; len != 15)<br />
               return false;<br />
            if(number[0] != 3 || number[1] != 5)<br />
               return false;<br />
            break;<br />
      }</p>
<p>      // Use Luhn Algorithm to validate<br />
      int sum = 0;<br />
      for(int i = len &#8211; 1; i &gt;= 0; i&#8211;)<br />
      {<br />
         if(i % 2 == len % 2)<br />
         {<br />
            int n = number[i] * 2;<br />
            sum += (n / 10) + (n % 10);<br />
         }<br />
         else<br />
            sum += number[i];<br />
      }<br />
      return (sum % 10 == 0);<br />
   }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Credit Card Validation in C# by Navnit</title>
		<link>http://jlcoady.net/c-sharp/credit-card-validation-in-c-sharp/comment-page-1#comment-505</link>
		<dc:creator>Navnit</dc:creator>
		<pubDate>Fri, 22 Jan 2010 09:09:28 +0000</pubDate>
		<guid isPermaLink="false">http://jlcoady.net/?p=145#comment-505</guid>
		<description>if(len == 16) return false; // number has too many digits
  number[len++] =Convert.ToByte(cardNumber[i]);</description>
		<content:encoded><![CDATA[<p>if(len == 16) return false; // number has too many digits<br />
  number[len++] =Convert.ToByte(cardNumber[i]);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Easy way to get FCKEditor to work inside an ASP.Net AJAX UpdatePanel by Matt</title>
		<link>http://jlcoady.net/aspnet/fckeditor-work-inside-updatepanel/comment-page-1#comment-449</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Tue, 01 Dec 2009 16:23:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jlcoady.net/?p=3#comment-449</guid>
		<description>I should have noted fckFullDescr was the ID of my fckeditor control in the asp.net page.</description>
		<content:encoded><![CDATA[<p>I should have noted fckFullDescr was the ID of my fckeditor control in the asp.net page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Easy way to get FCKEditor to work inside an ASP.Net AJAX UpdatePanel by Matt</title>
		<link>http://jlcoady.net/aspnet/fckeditor-work-inside-updatepanel/comment-page-1#comment-448</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Tue, 01 Dec 2009 16:23:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jlcoady.net/?p=3#comment-448</guid>
		<description>This is noted for my experience with visualstudio 2008 asp.net 3.x, i don&#039;t know if this problem exists for other versions of vs or asp.net.
 
If you are using the fckeditor html/text editor tool in your webpages and have these lines of code it appears that whenever a postback occurs the fckeditor control will disappear from your UI. It also appears  you can use the fckeditor without these lines of code and it will work fine(i.e. not disappear on postback).
 
  //string fullURL = Request.Url.AbsoluteUri;
  //int index = fullURL.IndexOf(&quot;/ServiceEditor/&quot;);
  //string path = fullURL.Substring(0, index);
   //fckFullDescr.BasePath = path + fckFullDescr.BasePath</description>
		<content:encoded><![CDATA[<p>This is noted for my experience with visualstudio 2008 asp.net 3.x, i don&#8217;t know if this problem exists for other versions of vs or asp.net.</p>
<p>If you are using the fckeditor html/text editor tool in your webpages and have these lines of code it appears that whenever a postback occurs the fckeditor control will disappear from your UI. It also appears  you can use the fckeditor without these lines of code and it will work fine(i.e. not disappear on postback).</p>
<p>  //string fullURL = Request.Url.AbsoluteUri;<br />
  //int index = fullURL.IndexOf(&#8220;/ServiceEditor/&#8221;);<br />
  //string path = fullURL.Substring(0, index);<br />
   //fckFullDescr.BasePath = path + fckFullDescr.BasePath</p>
]]></content:encoded>
	</item>
</channel>
</rss>

