<?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"
	>

<channel>
	<title>Kapusta Brothers</title>
	<atom:link href="http://www.kapustabrothers.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kapustabrothers.com</link>
	<description>Come and read the thoughts about everything and anything from politics to web development.  Shaun Farrell has been the founder and creator of kapustabrothers.com since it was registered some time ago.  As a web developer, and programmer Shaun brings thought to his posts had takes a stance on a lot of issues.  Come and read his thoughts and comments of others.</description>
	<pubDate>Fri, 01 Aug 2008 16:52:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>ZendCon 2008</title>
		<link>http://www.kapustabrothers.com/2008/08/01/zendcon-2008/</link>
		<comments>http://www.kapustabrothers.com/2008/08/01/zendcon-2008/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 16:52:42 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[California]]></category>

		<category><![CDATA[PHP Conference]]></category>

		<category><![CDATA[Zend]]></category>

		<category><![CDATA[ZendCon]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/?p=770</guid>
		<description><![CDATA[I have signed up and all my travel plans are set to go to ZendCon08.  This will be my first PHP conference and my first visit out to California.  I&#8217;m pretty excited to meet and network with the PHP community and look forward to learning many new things.  See you all on September 14th!
]]></description>
			<content:encoded><![CDATA[<p>I have signed up and all my travel plans are set to go to <a title="ZendCon" href="http://www.zendcon.com/">ZendCon08</a>.  This will be my first PHP conference and my first visit out to California.  I&#8217;m pretty excited to meet and network with the PHP community and look forward to learning many new things.  See you all on September 14th!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2008/08/01/zendcon-2008/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP == or ===</title>
		<link>http://www.kapustabrothers.com/2008/07/29/php-comparison-operators/</link>
		<comments>http://www.kapustabrothers.com/2008/07/29/php-comparison-operators/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 16:40:44 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[comparison operators]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/?p=763</guid>
		<description><![CDATA[Many PHP developers get confused when using the comparison operators.  Mainly weather to us two equal signs or three.  It really is a simple concept when you understand what it does.  The double equal sign (==) compares two data types which don&#8217;t have to be in the same type.  So for example you can compare
$a [...]]]></description>
			<content:encoded><![CDATA[<p>Many PHP developers get confused when using the comparison operators.  Mainly weather to us two equal signs or three.  It really is a simple concept when you understand what it does.  The double equal sign (==) compares two data types which don&#8217;t have to be in the same type.  So for example you can compare</p>
<p>$a = 1</p>
<p>$b = &#8216;1&#8242;</p>
<p>$a is a integer and $b is a string. That would return true under a double equal sign.</p>
<p>However, the triple equal sign (===) the data types must be the same on both sides of the operand.  So&#8230; the above would return false since $a is a integer and $b is a string.</p>
<p>So just remember that double doesn&#8217;t matter on data types triple must be the same data type.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2008/07/29/php-comparison-operators/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Blackberry Bold Coming to AT&#038;T</title>
		<link>http://www.kapustabrothers.com/2008/07/27/blackberry-bold-coming-to-att/</link>
		<comments>http://www.kapustabrothers.com/2008/07/27/blackberry-bold-coming-to-att/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 01:56:19 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<category><![CDATA[AT&amp;T]]></category>

		<category><![CDATA[BlackBerry]]></category>

		<category><![CDATA[BlackBerry Bold]]></category>

		<category><![CDATA[RIM]]></category>

		<category><![CDATA[Verizon]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/?p=760</guid>
		<description><![CDATA[I was over at the AT&#38;T store in the Reston Town Center on Saturday and was looking around at the BlackBerrys.  I saw no advertisements yet for the BlackBerry Bold so I asked the salesman about it.  He told me that the RIM salesman was just in talking to the store about it and that [...]]]></description>
			<content:encoded><![CDATA[<p>I was over at the AT&amp;T store in the <a title="RTC" href="http://www.restontowncenter.com/">Reston Town Center</a> on Saturday and was looking around at the BlackBerrys.  I saw no advertisements yet for the <a title="Bold" href="http://www.blackberry.com/blackberrybold/">BlackBerry Bold</a> so I asked the salesman about it.  He told me that the RIM salesman was just in talking to the store about it and that it should be hitting AT&amp;T stores in a couple of days, maybe the beginning of the month.  I however, will have to wait till it comes out at Verizon which should be a month or so after AT&amp;T.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2008/07/27/blackberry-bold-coming-to-att/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ABC Tweets Twitter</title>
		<link>http://www.kapustabrothers.com/2008/07/23/abc-tweets-twitter/</link>
		<comments>http://www.kapustabrothers.com/2008/07/23/abc-tweets-twitter/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 11:21:39 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
		
		<category><![CDATA[Interwebs]]></category>

		<category><![CDATA[ABC]]></category>

		<category><![CDATA[News]]></category>

		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/?p=498</guid>
		<description><![CDATA[Last night on ABC News with Charlie Gibson they did a piece on Twitter.com.  It was a pretty good piece but did they get it all wrong?  They marketed the whole twitter service as a customer service platform.  Yes it can be used as that since there are some companies that are responding to customer [...]]]></description>
			<content:encoded><![CDATA[<p>Last night on ABC News with Charlie Gibson they did a piece on <a title="Twitter" href="http://www.twitter.com/">Twitter.com</a>.  It was a pretty good piece but did they get it all wrong?  They marketed the whole twitter service as a customer service platform.  Yes it can be used as that since there are some companies that are responding to customer problems but I don&#8217;t think that 2% of the poople at using it that way.  <a title="twitter" href="http://abcnews.go.com/Technology/AheadoftheCurve/story?id=5388404&amp;page=1">You can check out the online video of the piece here</a>.  It looks like ABC news doesn&#8217;t allow you to embed the video yet, sorry.  What do you think about the clip?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2008/07/23/abc-tweets-twitter/feed/</wfw:commentRss>
		</item>
		<item>
		<title>No Pushing!</title>
		<link>http://www.kapustabrothers.com/2008/07/21/no-pushing/</link>
		<comments>http://www.kapustabrothers.com/2008/07/21/no-pushing/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 12:32:29 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
		
		<category><![CDATA[Odds &amp; Ends]]></category>

		<category><![CDATA[Funny]]></category>

		<category><![CDATA[Get on the Train]]></category>

		<category><![CDATA[Japan]]></category>

		<category><![CDATA[Metro]]></category>

		<category><![CDATA[Subway]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/?p=496</guid>
		<description><![CDATA[Why not just wait for the next train?

http://www.youtube.com/watch?v=Ht3wNdsZFJ4

]]></description>
			<content:encoded><![CDATA[<p>Why not just wait for the next train?</p>
<div class="vvqbox vvqyoutube" style="width:425px;height:335px;">
<p id="vvq489b5aa49263d"><a href="http://www.youtube.com/watch?v=Ht3wNdsZFJ4">http://www.youtube.com/watch?v=Ht3wNdsZFJ4</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2008/07/21/no-pushing/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Backtick Operator</title>
		<link>http://www.kapustabrothers.com/2008/07/11/backtick-operator/</link>
		<comments>http://www.kapustabrothers.com/2008/07/11/backtick-operator/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 17:47:07 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Backtick Operator]]></category>

		<category><![CDATA[Software Development]]></category>

		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/?p=494</guid>
		<description><![CDATA[I just learned something new today in PHP.  It&#8217;s the Backtick Operator.  What it does is executes a shell command and captures its output.  You can then store that in a variable for use.  I am pretty sure this is a UNIX command only.  Not sure if this will work in windows or not.  Here [...]]]></description>
			<content:encoded><![CDATA[<p>I just learned something new today in PHP.  It&#8217;s the Backtick Operator.  What it does is executes a shell command and captures its output.  You can then store that in a variable for use.  I am pretty sure this is a UNIX command only.  Not sure if this will work in windows or not.  Here is how you use it.</p>
<pre name="code" class="php">
&lt; ?php
$a = `ls -l`;
echo $a;
?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2008/07/11/backtick-operator/feed/</wfw:commentRss>
		</item>
		<item>
		<title>2nd Word Help</title>
		<link>http://www.kapustabrothers.com/2008/06/30/2nd-word-help/</link>
		<comments>http://www.kapustabrothers.com/2008/06/30/2nd-word-help/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 11:36:09 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
		
		<category><![CDATA[Social Networking]]></category>

		<category><![CDATA[Captcha]]></category>

		<category><![CDATA[Friendfeed]]></category>

		<category><![CDATA[Help]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/?p=491</guid>
		<description><![CDATA[Ok&#8230;I have not activated my friendfeed account and was looking to check it out this morning but I am having trouble with the captcha.  Can someone help me figure out what the second word is?

]]></description>
			<content:encoded><![CDATA[<p>Ok&#8230;I have not activated my friendfeed account and was looking to check it out this morning but I am having trouble with the captcha.  Can someone help me figure out what the second word is?</p>
<p><a rel="attachment wp-att-493" href="http://www.kapustabrothers.com/2008/06/30/2nd-word-help/2words-2/"><img class="alignnone size-medium wp-image-493" title="Two Words" src="http://www.kapustabrothers.com/journal/wp-content/uploads/2008/06/2words-300x238.gif" alt="What\'s the 2nd Word?" width="300" height="238" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2008/06/30/2nd-word-help/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Eastern Roads Contiki Trip Pictures</title>
		<link>http://www.kapustabrothers.com/2008/06/23/eastern-roads-contiki-trip-pictures/</link>
		<comments>http://www.kapustabrothers.com/2008/06/23/eastern-roads-contiki-trip-pictures/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 12:37:14 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
		
		<category><![CDATA[Travel &amp; Vacation]]></category>

		<category><![CDATA[Contiki]]></category>

		<category><![CDATA[Eastern Europe]]></category>

		<category><![CDATA[Eastern Roads]]></category>

		<category><![CDATA[Europe]]></category>

		<category><![CDATA[Holiday]]></category>

		<category><![CDATA[Trip]]></category>

		<category><![CDATA[Vacation]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/2008/06/23/eastern-roads-contiki-trip-pictures/</guid>
		<description><![CDATA[After being back more than a month I have finally finished uploading all of the good and worthy to look at photos of my Eastern European trip to flickr .
]]></description>
			<content:encoded><![CDATA[<p>After being back more than a month I have finally finished uploading all of the good and worthy to look at photos of my <a title="Flickr" href="http://www.flickr.com/photos/farrelley/collections/72157605356386476/" title="Flickr">Eastern European trip to flickr</a> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2008/06/23/eastern-roads-contiki-trip-pictures/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Date Validation with CI</title>
		<link>http://www.kapustabrothers.com/2008/06/20/date-validation-with-ci/</link>
		<comments>http://www.kapustabrothers.com/2008/06/20/date-validation-with-ci/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 18:39:29 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[CI]]></category>

		<category><![CDATA[CMS]]></category>

		<category><![CDATA[CodeIgniter]]></category>

		<category><![CDATA[Date]]></category>

		<category><![CDATA[Regular Expression]]></category>

		<category><![CDATA[Validation]]></category>

		<category><![CDATA[Validator]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/?p=489</guid>
		<description><![CDATA[The new release of CodeIgniter (1.6.2) still doesn&#8217;t have a date validation function included in the validation class.  However, no need to worry.  I will show you in a couple easy steps how to add this in.
First off let&#8217;s start by saying that we will validate dates in the MM/DD/YYYY format.  If [...]]]></description>
			<content:encoded><![CDATA[<p>The new release of <a title="codeigniter" href="http://codeigniter.com/">CodeIgniter (1.6.2)</a> still doesn&#8217;t have a date validation function included in the validation class.  However, no need to worry.  I will show you in a couple easy steps how to add this in.</p>
<p>First off let&#8217;s start by saying that we will validate dates in the <strong>MM/DD/YYYY</strong> format.  If you need to change  this it only takes a couple of simple edits to the regular expression.</p>
<p>The files that need to be edited are the <strong>validation.php </strong> (located @ CI → System → Libraries) and the English Language Validation file, <strong>validation_lang.php </strong> (located @ CI → System → Language → English).</p>
<p>Here is the code to check to make sure the date is in the right format and contains numerics.</p>
<pre name="code" class="php">
/**
* Valid Date
*
* @access    public
* @param    string
* @return    bool
*/
function valid_date($str) {
if(!preg_match(&quot;/[0-9]{1,2}/[0-9]{1,2}/[0-9]{4}/&quot;,$str)){
return FALSE;
}
else {
/* 1. Extract the numeric data presented as MM/DD/YYYY */
list($MM, $DD, $YYYY) = explode(&quot;/&quot;,$str);
/* 2. Validate the date */
if(!checkdate($MM, $DD, $YYYY)) {
return FALSE;
}
}
}

// --------------------------------------------------------------------
</pre>
<p>You can add this code to the end of the validation.php file.</p>
<p>Now in your controller when you are validating data you just have to add <strong>valid_date</strong> text to the mix.  However, you still need to add an error message into the validation dictionary.  You can add anything you want but open up the validation_lang.php and append the following line of code.</p>
<pre name="code" class="php">
$lang[&#039;valid_date&#039;] = &quot;The %s field must contain a vaild Date in the mm/dd/yyyy format.&quot;;
</pre>
<p>You can get more information on the CI validation class <a title="Validation Class" href="http://codeigniter.com/user_guide/libraries/validation.html">here</a> .</p>
<p>That&#8217;s it..happy validating!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2008/06/20/date-validation-with-ci/feed/</wfw:commentRss>
		</item>
		<item>
		<title>No Update Available!</title>
		<link>http://www.kapustabrothers.com/2008/06/18/no-update-available/</link>
		<comments>http://www.kapustabrothers.com/2008/06/18/no-update-available/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 12:15:51 +0000</pubDate>
		<dc:creator>farrelley</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<category><![CDATA[downloads]]></category>

		<category><![CDATA[firefox]]></category>

		<category><![CDATA[Firefox 3]]></category>

		<category><![CDATA[Mozilla]]></category>

		<guid isPermaLink="false">http://www.kapustabrothers.com/2008/06/18/no-update-available/</guid>
		<description><![CDATA[Looks like Firefox is not pushing Firefox 3 through the application updater!  I just tried it today and it said no update was available.  Imagine if they did how many more downloads they would have gotten.

]]></description>
			<content:encoded><![CDATA[<p>Looks like Firefox is not pushing Firefox 3 through the application updater!  I just tried it today and it said no update was available.  Imagine if they did how many more downloads they would have gotten.</p>
<p><a title="Firefox Update? by farrelley, on Flickr" href="http://www.flickr.com/photos/farrelley/2589268127/"><img src="http://farm4.static.flickr.com/3114/2589268127_3f654a1717_m.jpg" alt="Firefox Update?" width="240" height="161" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kapustabrothers.com/2008/06/18/no-update-available/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
