<?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>TechnoGeeks &#187; Programming</title>
	<atom:link href="http://techno-geeks.org/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://techno-geeks.org</link>
	<description>A fusion of technology, music, and geekyness.</description>
	<lastBuildDate>Sat, 04 Sep 2010 08:17:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Startup Script for Rails with WEBrick</title>
		<link>http://techno-geeks.org/2010/04/startup-script-for-rails-with-webrick/</link>
		<comments>http://techno-geeks.org/2010/04/startup-script-for-rails-with-webrick/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 12:41:08 +0000</pubDate>
		<dc:creator>jesse</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[WEBrick]]></category>

		<guid isPermaLink="false">http://techno-geeks.org/?p=439</guid>
		<description><![CDATA[I finally started playing with rails again. I decided to play around and start the basics of a billing application. I was initially debating web app versus a desktop app (rails vs ruby-gtk). I wanted a reason to finally start using rails so I decided to make it a web app. I then realized I [...]]]></description>
			<content:encoded><![CDATA[<p>I finally started playing with rails again. I decided to play around and start the basics of a billing application. I was initially debating web app versus a desktop app (rails vs ruby-gtk). I wanted a reason to finally start using rails so I decided to make it a web app. I then realized I may be able to simulate a desktop app with rails. I pulled in the base ruby packages, manually compiled RubyGems and installed necessary gems, and decided to script a startup routine so I could create a launcher on my desktop. This solution is far from perfect but it manages to fulfill my needs. My &#8220;desktop rails app&#8221; uses the built in standalone webserver WEBrick and sqlite3 for its backend.</p>
<pre class="brush: bash;">
#!/bin/bash
cd /home/jesse/rails/billing

if [ ! -f tmp/pids/server.pid ]; then
	script/server -d
fi

while [ `netstat -tan | grep 0.0.0.0:3000 | wc -l` != 1 ]; do
	echo &quot;Server not started yet...&quot;
	sleep 1
done

google-chrome http://localhost:3000/customers &amp;
tail -f log/development.log

# Server can be killed with:
# kill -INT `cat tmp/pids/server.pid`
</pre>
<p>I then created a launcher simliar to this:</p>
<p><a href="http://techno-geeks.org/wp-content/uploads/2010/04/launcher.png"><img src="http://techno-geeks.org/wp-content/uploads/2010/04/launcher.png" alt="launcher" title="launcher" width="552" height="495" class="aligncenter size-full wp-image-440" /></a></p>
<p>When I double click on the icon the first time it pauses for about 5-6 seconds while WEBrick initializes and binds to port 3000. As soon as it detects the webserver listening, I launch google-chrome to the default view. Each time I click the icon there after, the webserver is already running so the google-chrome tab kicks off instantly. </p>
]]></content:encoded>
			<wfw:commentRss>http://techno-geeks.org/2010/04/startup-script-for-rails-with-webrick/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CakePHP eCommerce Done Right: Mocha Shopping Cart</title>
		<link>http://techno-geeks.org/2009/09/cakephp-ecommerce-done-right-mocha-shopping-cart/</link>
		<comments>http://techno-geeks.org/2009/09/cakephp-ecommerce-done-right-mocha-shopping-cart/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 19:57:12 +0000</pubDate>
		<dc:creator>jesse</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[mocha]]></category>

		<guid isPermaLink="false">http://techno-geeks.org/?p=262</guid>
		<description><![CDATA[ few months back I posted on CakePHP eCommerce and the lack of good solutions. Well that is now no longer the case. I would like to be one of the first people to introduce you to Mocha Shopping Cart. We have been working day and night (literally) to come up with a solution for [...]]]></description>
			<content:encoded><![CDATA[<p><div class="wp-caption alignleft" style="width: 171px"><a href="http://mochashoppingcart.com"><img alt="Mocha Shopping Cart" src="http://mochashoppingcart.com/img/mocha-logo-white.gif" title="Mocha Shopping Cart" width="161" height="83" /></a><p class="wp-caption-text">Mocha Shopping Cart</p></div>A few months back I posted on CakePHP eCommerce and the lack of good solutions. Well that is now no longer the case. I would like to be one of the first people to introduce you to <a href="http://mochashoppingcart.com">Mocha Shopping Cart</a>. We have been working day and night (literally) to come up with a solution for the small and medium sized business owners to sell their products online easily. We also have geared Mocha to be extend-able and easy for CakePHP designers and developers to add in their own twists for clients.</p>
<p>Mocha is written entirely in CakePHP and jQuery and is certainly the best CakePHP eCommerce app out there. Why do I say that?</p>
<p><strong>Mocha Shopping Cart is&#8230;</strong></p>
<ul>
<li>Fully hosted, secure, pre-installed</li>
<li>Very easy to set up and configure</li>
<li>Themable and Modular (Plug ins docs in the works)</li>
<li>Works with most popular payment and shipping apis (UPS, USPS, Authorize.net, Paypal, etc.)</li>
<li>Charges no transaction fees and no setup fees</li>
</ul>
<p>If you still don&#8217;t believe me, Mocha is offering a limited time only <a href="http://bit.ly/HTSbo">Pre-Launch coupon code</a> that gives you the first month <strong>FREE</strong>. You can try it for yourself and see how you like it. I think you will agree that it beats CakeCart and BakeSale, HANDS DOWN! And no, Mocha is not free (after the first 30 days). The costs help to speed up development, pay for server and hosting fees, and pay for that cup of coffee that us developers need when its 8 AM and we are having to talk with &lt;insert_API_name_here&gt; first thing in the morning.</p>
<p>Official Website: <a href="http://mochashoppingcart.com">Mocha Shopping Cart</a><br />
Blog with coupon code: <a href="http://bit.ly/HTSbo">Get a free trial of Mocha Shopping Cart</a></p>
]]></content:encoded>
			<wfw:commentRss>http://techno-geeks.org/2009/09/cakephp-ecommerce-done-right-mocha-shopping-cart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy JSON with CakePHP and jQuery</title>
		<link>http://techno-geeks.org/2009/08/easy-json-with-cakephp-and-jquery/</link>
		<comments>http://techno-geeks.org/2009/08/easy-json-with-cakephp-and-jquery/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 19:00:52 +0000</pubDate>
		<dc:creator>jesse</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[JSON]]></category>

		<guid isPermaLink="false">http://techno-geeks.org/?p=250</guid>
		<description><![CDATA[I am not sure if this is the fanciest way to get the job done but it works REALLY well. What job am I referring to? I am referring to outputting data as JSON in a CakePHP view and then parsing it in a jQuery AJAX response. Its fairly easy to accomplish with the JSON [...]]]></description>
			<content:encoded><![CDATA[<p>I am not sure if this is the fanciest way to get the job done but it works REALLY well. What job am I referring to? I am referring to outputting data as JSON in a CakePHP view and then parsing it in a jQuery AJAX response. Its fairly easy to accomplish with the <a href="http://www.json.org/js.html">JSON parser provided by json.org</a>. Scroll to the bottom and download/include <a href="http://www.json.org/json2.js">json2.js</a>.</p>
<p>Controller example:</p>
<pre class="brush: php;">
				$sizeArray = getimagesize('/path/to/really_cool_image.jpg');

				$outputArray = array(
					'file' =&gt; 'really_cool_image.jpg',
					'width' =&gt; $sizeArray[0],
					'height' =&gt; $sizeArray[1],
				);

				$this-&gt;set('result', $outputArray);

				$this-&gt;render(null, 'ajax');
</pre>
<p>AJAX View example:</p>
<pre class="brush: php;">
Configure::write('debug', 0);
echo $javascript-&gt;object($result);
</pre>
<p>jQuery AJAX response handler example:</p>
<pre class="brush: jscript;">
	  function(response, status) {
	  		imageDetails = JSON.parse(response);
	  		imageName = imageDetails.file;
	  }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://techno-geeks.org/2009/08/easy-json-with-cakephp-and-jquery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Selective RSS Plugin for WordPress</title>
		<link>http://techno-geeks.org/2009/06/selective-rss-plugin-for-wordpress/</link>
		<comments>http://techno-geeks.org/2009/06/selective-rss-plugin-for-wordpress/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 16:42:03 +0000</pubDate>
		<dc:creator>jesse</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://techno-geeks.org/?p=199</guid>
		<description><![CDATA[We had a client recently request that we embed an RSS feed from a different site inside their WordPress install. This would&#8217;ve been very easy considering there are 100&#8217;s of RSS feed plugins that will accomplish this task. However, they wanted to only display RSS items that had certain keywords in the title. My initial [...]]]></description>
			<content:encoded><![CDATA[<p>We had a client recently request that we embed an RSS feed from a different site inside their WordPress install. This would&#8217;ve been very easy considering there are 100&#8217;s of RSS feed plugins that will accomplish this task. However, they wanted to only display RSS items that had certain keywords in the title. My initial search found no WP plugins that currently were capable of this. I also tried one of the more popular ones, <a href="http://wordpress.org/extend/plugins/feedlist/">FeedList</a>, but it used the <a href="http://codex.wordpress.org/Function_Reference/get_rss">get_rss()</a> function in the WordPress API. For some reason, this function was not properly parsing the feed they wanted to use, most likely due to it not being a <a href="http://validator.w3.org/feed/">valid feed</a>.</p>
<p>So to make a long story short: I decided to make a quick hack up solution and write my own WP plugin. My only hurdle-like requirement is that it had to work for PHP4 as well because the client is on one of our older servers. I ended up finding a really good <a href="http://www.stemkoski.com/how-to-easily-parse-a-rss-feed-with-php-4-or-php-5/">example by Ryan Stemkoski</a>. He wrote a perfect function for me to tweak a little and expand upon. I am currently waiting to get approved on WordPress extend so I can host my plugin there. For now, I have created a <a href="http://techno-geeks.org/selective-rss/">page here where you can download</a> the plugin.</p>
<p>Note: I haven&#8217;t tested this in a more recent version of WP yet but I will be soon. Let me know if you find any bugs!</p>
<p>I also figured I would post the source code in case someone needed a quick and dirty solution with some examples.</p>
<p>rss_lib.php</p>
<pre class="brush: php;">
&lt;?php

/*
* RSS Parsing Function
*
* Original Author: Ryan Stemkoski
* http://www.stemkoski.com/how-to-easily-parse-a-rss-feed-with-php-4-or-php-5/
*
* Slight modifications by Jesse R. Adams (DualTech Services, Inc.)
*/ 

function parseRSS($url) { 

	//PARSE RSS FEED
        $feedeed = implode('', file($url));
        $parser = xml_parser_create();
        xml_parse_into_struct($parser, $feedeed, $valueals, $index);
        xml_parser_free($parser);

	//CONSTRUCT ARRAY
        foreach($valueals as $keyey =&gt; $valueal){
            if($valueal['type'] != 'cdata') {
                $item[$keyey] = $valueal;
			}
        }

        $i = 0;

        foreach($item as $key =&gt; $value){

            if($value['type'] == 'open') {

                $i++;
                $itemame[$i] = $value['tag'];

            } elseif($value['type'] == 'close') {

                $feed = $values[$i];
                $item = $itemame[$i];
                $i--;

                if(count($values[$i])&gt;1){
                    $values[$i][strtolower($item)][] = $feed;
                } else {
                    $values[$i][strtolower($item)] = $feed;
                }

            } else {
                $values[$i][strtolower($value['tag'])] = $value['value'];
            }
        }

	//RETURN ARRAY VALUES
	return $values[0];
} 

/*
* Convert Raw RSS Parse into concise list of items
*
* Optionally pass in limit (on number of items)
* and/or array list of words to grab items by.
*
*/

function extractRSSItems($xmlArray, $limit = null, $filteredWords = array()) {
	$array = array();
	$regex = null;

	if (count($filteredWords) &gt; 0) {
		$regex = implode('|', $filteredWords);
	}

	foreach($xmlArray['rss']['channel']['item'] as $item) {
		if (!$regex || ($regex &amp;&amp; preg_match(&quot;/$regex/i&quot;, $item['title']))) {
			$array[] = $item;
		}
 	}

	if($limit) {
		array_splice($array, ($limit - 1), (count($array) - $limit));
	}

	return $array;
}
?&gt;
</pre>
<p>selective_rss.php</p>
<pre class="brush: php;">
&lt;?php
/*
Plugin Name: Selective RSS
Plugin URI: http://techno-geeks.org/selective-rss
Description: Simple Plugin that allows you to embed RSS feed items into Pages or Posts. Optionally allows you to choose how many items to display and allows you to limit items to ones that contain certain words in the titles.
Version: 0.1.0b
Author: Jesse R. Adams (DualTech Services, Inc.)
Author URI: http://www.dual-tech.com/about-dualtech-services/
*/

require_once('rss_lib.php');

function filter_feeds($content) {
	$limit = null;
	$filter = array();
	$url = null;

	$inputTag = preg_match('/\[srss (.+)\]/', $content, $matches);
	$rawArgs = explode(',', $matches[1]);

	foreach($rawArgs as $input) {
                preg_match_all('/^(url|filter|limit)=(.+)$/i', $input, $matches);
                $key = $matches[1][0];
                $value = $matches[2][0]

		if ($key == 'filter') {
			$filter = explode(';', $value);
		} else {
			$$key = $value;
		}
	}

	if ($url) {
		$xml = parseRSS($url);
		$items = extractRSSItems($xml, $limit, $filter);

		$htmlToAdd = '';
		foreach ($items as $item) {
			$htmlToAdd .= '&lt;a href=&quot;' . $item['link'] . '&quot; target=&quot;new&quot;&gt;' . $item['title'] . '&lt;/a&gt;' . &quot;&lt;br/&gt;\n&quot;;
			$htmlToAdd .= $item['description'] . &quot;&lt;br/&gt;&lt;br/&gt;\n&quot;;
		}

		$content = preg_replace('/\[srss .+\]/', $htmlToAdd, $content);
	}
	return $content;
}

add_filter('the_content', 'filter_feeds');
?&gt;
</pre>
<p>Update 06/19: Fixed the way arguments are parsed to be less limiting on possibilities.</p>
]]></content:encoded>
			<wfw:commentRss>http://techno-geeks.org/2009/06/selective-rss-plugin-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>CakePHP: Including Models inside your Controller</title>
		<link>http://techno-geeks.org/2009/05/models-inside-controller/</link>
		<comments>http://techno-geeks.org/2009/05/models-inside-controller/#comments</comments>
		<pubDate>Tue, 26 May 2009 16:07:38 +0000</pubDate>
		<dc:creator>jesse</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://techno-geeks.org/?p=176</guid>
		<description><![CDATA[There are currently three methods for including and using models inside your controller. I am referring to the case when your controller does not belong to a model or or the model is not related to the model inside the controller you are working in. Although this case should be extremely rare, it seems to [...]]]></description>
			<content:encoded><![CDATA[<p>There are currently three methods for including and using models inside your controller. I am referring to the case when your controller does not belong to a model or or the model is not related to the model inside the controller you are working in. Although this case should be extremely rare, it seems to happen to me a lot. This post is basically a re-summary of <a href="http://groups.google.com/group/cake-php/browse_thread/thread/137c57b4eb010317">Gwoo&#8217;s response</a> in the <a href="http://groups.google.com/group/cake-php/browse_thread/thread/137c57b4eb010317">CakePHP Google Groups discussion</a>.</p>
<p><strong>1. Controller::loadModel();</strong><br />
This method actually calls ClassRegistry::init() and saves the instance of the model as a parameter in the controller.</p>
<p>Example:</p>
<pre class="brush: php;">
Controller::loadModel('Car');
$cars = $this-&gt;Car-&gt;find('all');
</pre>
<p><strong>2. ClassRegistry::init()</strong><br />
This method creates an instance of the Model and returns it for use.</p>
<p>Example:</p>
<pre class="brush: php;">
$car = ClassRegistry::init('Car');
$cars = $car-&gt;find('all');
</pre>
<p><strong>3. App:import()</strong> (not recommended)<br />
This method only includes the file. This requires you to create an instance each time.</p>
<p>Example:</p>
<pre class="brush: php;">
App::import('Car');
$car = new Car();
$cars = $car-&gt;find('all');
</pre>
<p>As you can see this is really simple and basic stuff. However, I felt the need to re-post this information. If for nothing else, I will be using this as a reference point for myself <img src='http://techno-geeks.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Update 5/27/09: Miles Johnson has a nice write up on this <a href="http://www.milesj.me/blog/read/16/loading-models-specific-to-certain-actions">on his blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://techno-geeks.org/2009/05/models-inside-controller/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>CakePHP Character Encoding Checklist</title>
		<link>http://techno-geeks.org/2009/05/cakephp-character-encoding-checklist/</link>
		<comments>http://techno-geeks.org/2009/05/cakephp-character-encoding-checklist/#comments</comments>
		<pubDate>Fri, 15 May 2009 20:04:01 +0000</pubDate>
		<dc:creator>jesse</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://techno-geeks.org/?p=171</guid>
		<description><![CDATA[I was having some issues today with character encoding and I thought I&#8217;d post about it. There are three elements that you need to make sure you have if you want to properly use UTF-8 character encoding in your Cake app. My issue was that I did not have #2, although adding #1 didn&#8217;t hurt [...]]]></description>
			<content:encoded><![CDATA[<p>I was having some issues today with character encoding and I thought I&#8217;d post about it. There are three elements that you need to make sure you have if you want to properly use UTF-8 character encoding in your Cake app. My issue was that I did not have #2, although adding #1 didn&#8217;t hurt either.</p>
<p>1. Database Config</p>
<p>Add &#8216;encoding&#8217; => &#8216;utf8&#8242; to app/config/database.php</p>
<pre class="brush: php;">
	var $default = array(
		'driver' =&gt; 'mysql',
		'persistent' =&gt; false,
		'host' =&gt; 'localhost',
		'login' =&gt; 'user',
		'password' =&gt; 'password',
		'database' =&gt; 'database',
		'encoding' =&gt; 'utf8'
	);
</pre>
<p>2. Make sure your layout has the charset line in the <head></p>
<pre class="brush: php;">
	&lt;head&gt;
	 	&lt;?php echo $html-&gt;charset(); ?&gt;
	 	Other elements...
	&lt;/head&gt;
</pre>
<p>3. This one is set by default, but make sure App.encoding is set in app/config/core.php</p>
<pre class="brush: php;">
/**
 * Application wide charset encoding
 */
	Configure::write('App.encoding', 'UTF-8');
</pre>
<p>And thats it!</p>
]]></content:encoded>
			<wfw:commentRss>http://techno-geeks.org/2009/05/cakephp-character-encoding-checklist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Peep! A friendly GTD compliant productivity tool for you.</title>
		<link>http://techno-geeks.org/2009/05/peep/</link>
		<comments>http://techno-geeks.org/2009/05/peep/#comments</comments>
		<pubDate>Mon, 11 May 2009 14:33:47 +0000</pubDate>
		<dc:creator>jesse</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Peep!]]></category>

		<guid isPermaLink="false">http://techno-geeks.org/?p=164</guid>
		<description><![CDATA[
About a year ago Rick (http://www.rickguyer.com) had me read the book Getting Things Done by David Allen. In his book, Allen teaches you how to use his strategies and procedures on managing your tasks (or actions) in a very organized and well thought out fashion. His strategy is unique and calls for a very unique [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://trypeep.com"><img alt="" src="http://trypeep.com/img/peep-logo-plain.png" class="alignleft" width="146" height="80" /></a><br />
About a year ago Rick (<a href="http://www.rickguyer.com">http://www.rickguyer.com</a>) had me read the book <a href="http://en.wikipedia.org/wiki/Getting_things_done">Getting Things Done</a> by David Allen. In his book, Allen teaches you how to use his strategies and procedures on managing your tasks (or actions) in a very organized and well thought out fashion. His strategy is unique and calls for a very unique tool to accompany his GTD system. When I originally read his book, Rick and I spent several days searching for a different program, service, or web app that would allow us to incorporate Allen&#8217;s GTD system in an electronic fashion. After a solid week of effort I gave up after finding nothing that I felt was easy to use and completely GTD compliant. </p>
<p>Finally, after over a year, we decided to create this perfect GTD compliant web service that will help people, like us, be able to incorporate Allen&#8217;s system and become more productive. <a href="http://trypeep.com">Peep!</a> is &#8220;a simple and easy-to-use tool to help you focus and start getting things done.&#8221; I highly suggest you all try it and let me know what you think.</p>
<p>Head over to <a href="http://trypeep.com">http://trypeep.com</a> and get started today!</p>
]]></content:encoded>
			<wfw:commentRss>http://techno-geeks.org/2009/05/peep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick and Dirty trim() in Javascript</title>
		<link>http://techno-geeks.org/2009/05/quick-and-dirty-trim-in-javascript/</link>
		<comments>http://techno-geeks.org/2009/05/quick-and-dirty-trim-in-javascript/#comments</comments>
		<pubDate>Thu, 07 May 2009 16:26:23 +0000</pubDate>
		<dc:creator>jesse</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://techno-geeks.org/?p=159</guid>
		<description><![CDATA[Shailesh N. Humbad had some really quick, simple, and useful code snippets on their website on how to provide trim() functionality (like PHP&#8217;s trim) in Javascript. Check out his Javascript Trim LTrim and RTrim Functions. My favorite application of his examples is as follows:

String.prototype.trim = function() {
	return this.replace(/^\s+&#124;\s+$/g,&#34;&#34;);
}		

trimmedString = string.trim();

Thanks for your work on this [...]]]></description>
			<content:encoded><![CDATA[<p>Shailesh N. Humbad had some really quick, simple, and useful code snippets on their website on how to provide trim() functionality (like PHP&#8217;s trim) in Javascript. Check out his <a href="http://www.somacon.com/p355.php" target="new">Javascript Trim LTrim and RTrim Functions</a>. My favorite application of his examples is as follows:</p>
<pre class="brush: jscript;">
String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,&quot;&quot;);
}		

trimmedString = string.trim();
</pre>
<p>Thanks for your work on this Shailesh. You made my life easier <img src='http://techno-geeks.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://techno-geeks.org/2009/05/quick-and-dirty-trim-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coming Soon: Peep!</title>
		<link>http://techno-geeks.org/2009/04/coming-soon-peep/</link>
		<comments>http://techno-geeks.org/2009/04/coming-soon-peep/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 21:30:20 +0000</pubDate>
		<dc:creator>jesse</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[DualTech]]></category>
		<category><![CDATA[Peep!]]></category>

		<guid isPermaLink="false">http://techno-geeks.org/?p=148</guid>
		<description><![CDATA[We&#8217;ve been working hard at the office lately in efforts to launch a new application that will be aimed towards increasing one&#8217;s productivity. The app will follow the principles in the book Getting Things Done by David Allen. Check out the sneak peek below!

]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve been working hard at the office lately in efforts to launch a new application that will be aimed towards increasing one&#8217;s productivity. The app will follow the principles in the book <a href="http://www.davidco.com/">Getting Things Done by David Allen</a>. Check out the sneak peek below!</p>
<p><img src="http://techno-geeks.org/wp-content/uploads/2009/04/peep-300x239.jpg" alt="peep" title="peep" width="300" height="239" class="aligncenter size-medium wp-image-149" /></p>
]]></content:encoded>
			<wfw:commentRss>http://techno-geeks.org/2009/04/coming-soon-peep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Friend Connect</title>
		<link>http://techno-geeks.org/2009/04/google-friend-connect/</link>
		<comments>http://techno-geeks.org/2009/04/google-friend-connect/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 16:41:20 +0000</pubDate>
		<dc:creator>jesse</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Cool Stuff]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://techno-geeks.org/?p=103</guid>
		<description><![CDATA[Rick (from rickguyer.com) and I played around with Google Friend Connect today. It appears that Google is attempting to turn the entire internet into a single, gigantic Facebook or Myspace. I like where they are going with the idea but I think it needs quite a bit of polishing still. I have installed it for [...]]]></description>
			<content:encoded><![CDATA[<p>Rick (from <a href="http://rickguyer.com">rickguyer.com</a>) and I played around with Google Friend Connect today. It appears that Google is attempting to turn the entire internet into a single, gigantic Facebook or Myspace. I like where they are going with the idea but I think it needs quite a bit of polishing still. I have installed it for you to play with as well (see right side bar). Please leave comments and let me know what you think. For more information on Google Friend Connect check out <a href="http://www.google.com/friendconnect/">Google&#8217;s site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://techno-geeks.org/2009/04/google-friend-connect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
