<?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>carters-site.net</title>
	<atom:link href="http://carters-site.net/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://carters-site.net/wordpress</link>
	<description>&#34;Ben Carter personal blog littered with projects and coding solutions from PHP to Javascript&#34;</description>
	<lastBuildDate>Wed, 17 Feb 2010 22:05:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Moline Web Design: QC TOTAL Tech careful who you trust&#8230;</title>
		<link>http://carters-site.net/wordpress/2010/02/moline-web-design-qc-total-tech-careful-who-you-trust/</link>
		<comments>http://carters-site.net/wordpress/2010/02/moline-web-design-qc-total-tech-careful-who-you-trust/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 01:13:18 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[interesting]]></category>
		<category><![CDATA[bad design example]]></category>
		<category><![CDATA[business review]]></category>
		<category><![CDATA[qc total tech]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[web design company]]></category>
		<category><![CDATA[web ethics]]></category>

		<guid isPermaLink="false">http://carters-site.net/wordpress/?p=321</guid>
		<description><![CDATA[ Please heed my warning...doing business with this company may leave you without a website in the future should their company continue to practice in the manner it does. ]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I have recently been investigating my personal local market for website design in Moline, IL. In doing this I realized many of the sites offering hosting do not have very well designed sites. <strong>It's kind of crazy to me:  you are trying to sell people on web design when your site itself is clunky or a dated design</strong>.</p>
<p style="text-align: justify;">In doing so, the best place I could find a good listing of businesses for this topic was in the online superpages. I never really came across a single site that was upfront with their cost. I found this somewhat annoying. I know website to website is different but many people I have talked to just want a professional web presence, and something like this could be priced. I hypothesize they leave the prices off to haggle with you. <strong>Meaning they want to try and get as much out of you as they can (despite what they have charged others)</strong>. Let's face it for them designing the site themselves is a matter of low overhead and mostly labor. (There are a few extra costs involved but most sites would be minimal in this regard.)</p>
<p style="text-align: justify;">For instance, I saw a company on superpages I am personally familiar with, QC Total Tech. In the past I have done contract work for them, which I was never paid for. I did some custom PHP programming since the owner himself was either not as versed with PHP or did not have time. (I am not really sure which).  I spent many hours working on a business directory listing service and I was told another person would be working on the look and design. This fell through first, the designer did not have time due to his personal life. The man who had contracted me said he would be doing it himself just to continue building code. During this time QC Total Tech attempted to get me to work more hours in offering me more pay, I refused. I have a full time job with benefits and at the time of this offer had still not received payment.</p>
<p style="text-align: justify;">The entire project lasted for about 5-6 weeks. I had originally been building the project on my own server but was asked to move it to QC Total Techs. This was my first mistake...(stupid me). After completing the project the site went live, and is still live to this day with all my labor... in fact featured on a local newspaper! I fixed a few bugs that were pointed out to me then waited for payment... <strong>My payment never came. I received emails that it would, then no emails at all. What I did receive in the mail was a  notice that QC Total Tech was bankrupt.</strong> Apparently, its really nice tactic to just claim bankruptcy instead of paying your contracts when you have no real inventory to lose.</p>
<p style="text-align: justify;">Today when I was on their site I noticed they had redesigned and were still an active business entity (what happened to bankruptcy). I warn the local business and others seeking local websites (Quad City Area)to look elsewhere for web hosting. <strong>QC Total Tech is unethical and poorly run</strong>. I can tell you just by looking at the site you can get a better website for less. If you want an example of their lack of web development knowledge simply go their homepage and look at the title in your web browser. Home-Keyword,Keyword...blah blah. A good designer knows this is not an effective title for a webpage for search engines or in general human readability. I could do a full analysis of all the problems with their front page but my intent is not to tear apart the site; I don't want to make an already long blog post longer. <strong>Please heed my warning, doing business with this company may leave you with out a website in the future should their company continue to practice in the manner it does.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://carters-site.net/wordpress/2010/02/moline-web-design-qc-total-tech-careful-who-you-trust/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ExtJS 2+ Navigation Plugin for creating simple site navigation.</title>
		<link>http://carters-site.net/wordpress/2010/01/extjs-2-navigation-plugin-for-creating-simple-site-navigation/</link>
		<comments>http://carters-site.net/wordpress/2010/01/extjs-2-navigation-plugin-for-creating-simple-site-navigation/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 00:32:34 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[custom extension]]></category>
		<category><![CDATA[example code]]></category>
		<category><![CDATA[ExtJs]]></category>
		<category><![CDATA[file download]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[javascript navigation]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://carters-site.net/wordpress/?p=312</guid>
		<description><![CDATA[What I came up with was small extension on the library that works with Ext2.2+ and will allow me to upgrade later without having to change any code. Below you an see an image of the example of NavPanel my first ExtJS extension.]]></description>
			<content:encoded><![CDATA[I use the <a href="http://extjs.com">ExtJS library</a> a lot.  In using the library I found in 3.0 they support a grouptab panels.  Unfortunately, I am still working on 2.2 and needed a similar solution that is compatible with both ExtJs 2.2 &amp; Ext 3.0.  My goal was to build a clean navigation similar to ExtJS 3.0 groupTabPanel option.

What I came up with was small extension on the library that works with Ext2.2+ and will allow me to upgrade later without having to change any code. Below you an see an image of the example of NavPanel my first ExtJS extension.

<div id="attachment_313" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-313" title="navpanel_screen" src="http://carters-site.net/wordpress/wp-content/uploads/2010/01/navpanel_screen-300x170.jpg" alt="NavPanel example screen shot." width="300" height="170" /><p class="wp-caption-text">NavPanel example screen shot.</p></div>

It allows for some basic formatting of the menu display including left, right, center.  Each navigation item will automatically adjust itself when group under the same NavPanel object.
<p>
<strong>Features</strong><br/>
<ul>
	<li> Clean/Fast Navigation creation with minimal code.</li>
	<li>Can support multiple navigation panels on same page each target to different Panel.</li>
	<li>Supported by ExtJS 2.2+</li>
	<li>Syntax similar to other Ext Objects.</li>
	<li>Menu layout adjustable (including icon positioning)</li>
</ul>
</p><p>
<strong>Usage </strong><br/>

Here is a simple code example usage of the extension:<br/>

<pre><code><br />
&nbsp;&nbsp;Basic Example Usage<br />
&nbsp;&nbsp;&nbsp;&nbsp; viewPt = new Ext.Viewport({<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;layout: &#039;border&#039;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;border: false,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;items: [{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xtype: &#039;panel&#039;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; region: &#039;west&#039;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; border: false,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bodyStyle: &#039;background-color: rgb(40, 120, 50);&#039;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width: 200,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; items: [{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xtype: &#039;navpanel&#039;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width: 150,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; panelXAlign: &#039;right&#039;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yOffset: 10,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; menuItemAlign: &#039;left&#039;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; activePanel: true,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; target: &#039;centerpanel&#039;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; defaultItem: 1,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; items: [{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;header: true,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; items: [{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xtype: &#039;panel&#039;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width: 500,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height: 200,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; style: &#039;padding: 10px;&#039;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; title: &#039;Sample Panel&#039;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html: &#039;something special&#039;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width: 600,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;border: false,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;region: &#039;center&#039;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }}<br />
&nbsp;&nbsp;&nbsp;&nbsp; }); <br />
</code></pre>
</p>
<p>
<strong>Files </strong><br/>

This zipfile contains all the resources used in the included example file (example.html) and the NavPanel.js file itself. I did not minify the file and the code is commented to aid you along your way.

<a href="http://carters-site.net/projects/navpanel.zip">navpanel.zip</a>
</p>
<p>
<strong>Example: </strong><br/>

Here is a link to the example I put together demonstrating some of the different layouts and targeting.

<a href="http://carters-site.net/projects/navpanel/example.html" target="_blank">navpanel example</a>
</p><p>
<strong>Terms</strong><br/>

Feel free to download and use however you want to.  Realize this is my first true ExtJS extension built from scratch so there may be bugs that need addressed.  Feel free to point them out and I will fix as time allows.  All I ask if you do use this particular extension is that you leave a comment on this page on how you intend to use it or where you are going to use it, this is for my own curiosity. Enjoy!
</p>
<p>
<strong>Changelog</strong><br />
<em>Feb 17 2010</em><br />
** Fixed Bug with NavPanel Z-Index causing it to bleed through parent windows and masks. 
</p>
]]></content:encoded>
			<wfw:commentRss>http://carters-site.net/wordpress/2010/01/extjs-2-navigation-plugin-for-creating-simple-site-navigation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE8 Javascript external script execution order solution.</title>
		<link>http://carters-site.net/wordpress/2009/11/ie8-javascript-external-script-execution-order-solution/</link>
		<comments>http://carters-site.net/wordpress/2009/11/ie8-javascript-external-script-execution-order-solution/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 01:40:37 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[browser compatability]]></category>
		<category><![CDATA[code example]]></category>
		<category><![CDATA[dynmic elements]]></category>
		<category><![CDATA[IE8]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[javascript execution order]]></category>

		<guid isPermaLink="false">http://carters-site.net/wordpress/?p=297</guid>
		<description><![CDATA[What happens though when the ad itself relies on an external script in and embeds code inline. Solution posted. ]]></description>
			<content:encoded><![CDATA[The lack of posts lately has been due to the fact that I have had way too much going on around me.  Fixing up one house to sell and adding a new room into my house has kept my out of work time to a minimum. That being said I came across an interesting problem the other day that I felt needed a small post about.
<br /><br />
<strong>Problem:</strong> <br />Many ad serving networks rely on JavaScript to deliver their ad code to the page.   The method typically employed to generate the code to the page is document.write('the ad code');  Well this is fine if the code is all present on the page and not relying on external scripts.   What happens though when the ad itself relies on an external script in and embeds code inline.  For example:<br/>

<pre><code>&lt;script language=&#039;javascript&#039;&gt;<br />
document.write(&#039;&lt;scr&#039; + &#039;ipt type=&quot;text/javascript&quot; src=&quot;http://domain.com/generated_external_script.php?param1=foo&amp;param2=foobar&quot;&gt;&lt;/script&gt;&#039;);<br />
&nbsp;<br />
document.write(&#039;&lt;div id=&quot;ad-placeholder&quot;&gt;Here is my ad: &lt;br/&gt;&lt;/div&gt; &lt;scr&#039; + &#039;ipt language=&quot;javascript&quot;&gt;insertAdInto(&quot;ad-placeholder&quot;);&lt;/scr&#039; + &#039;ipt&#039;&gt;&#039;);&nbsp;&nbsp;<br />
&nbsp;<br />
&lt;/script&gt;</code></pre>

In this case the external script is a javaScript function that will render itself into an element that was passed.  In this case it is an element we are dynamically adding to the page.  In <strong>most</strong> browsers this will work because they will wait to run the JavaScript command after the external script has been loaded. Internet Explorer though runs JavaScript as it parse the page. This means when it encounters insertAdInto("ad-placeholder");  It may or may not exist which will create an error.  (In most cases it will not exist.)
<br/><br />
<strong>Solution:</strong><br /><br />
I tried different solutions one involving the use of "defer" attribute as part of the script tag. (Which did not work).  I decided to simply suffer the gross solution.  Using the setInterval() method I need to keep checking the function until it exists. So it looks something like this. <br />

<pre><code>document.write(&#039;&lt;div id=&quot;ad-placeholder&quot;&gt;Here is my ad: &lt;br/&gt;&lt;/div&gt; &lt;scr&#039; + &#039;ipt language=&quot;javascript&quot;&gt;insertAdInto(&quot;ad-placeholder&quot;);&lt;/scr&#039; + &#039;ipt&#039;&gt;&#039;);&nbsp;&nbsp;<br />
&lt;/script&gt;</code></pre>
<b>Becomes: </b></br>
<pre><code>document.write(&#039;&lt;div id=&quot;ad-placeholder&quot;&gt;Here is my ad: &lt;br/&gt;&lt;/div&gt; &lt;scr&#039; + &#039;ipt language=&quot;javascript&quot;&gt;nmSpace_itvlId = setInterval(function(){ if(typeof insertAdInto == &quot;function&quot;){ insertAdInto(&quot;ad-placeholder&quot;); clearTimeout(nmSpace_itvlId); }}, 100);<br />
&lt;/scr&#039; + &#039;ipt&#039;&gt;&#039;);&nbsp;&nbsp;<br />
&lt;/script&gt;</code></pre>
Or in a more readable manner: <br />
<pre><code>
nmSpace_itvlId = setInterval(function(){
   if(typeof insertAdInto == "function"){
      insertAdInto("ad-placeholder");
      clearTimeout(nmSpace_itvlId);
   }
}, 100);
</cod></pre>

This allowed me to place ad code into dynamically created elements of from a document.write using a callback from an external JavaScript method. I tested this in all browsers and I hope it is useful to others. <br /><br /><br />]]></content:encoded>
			<wfw:commentRss>http://carters-site.net/wordpress/2009/11/ie8-javascript-external-script-execution-order-solution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL 5.0 Triggers example usage setting fields conditionally.</title>
		<link>http://carters-site.net/wordpress/2009/09/mysql-5-0-triggers-example-usage-setting-fields-conditionally/</link>
		<comments>http://carters-site.net/wordpress/2009/09/mysql-5-0-triggers-example-usage-setting-fields-conditionally/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 02:55:57 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[code example]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Triggers]]></category>

		<guid isPermaLink="false">http://carters-site.net/wordpress/?p=270</guid>
		<description><![CDATA[ I am putting up my example for those who may be looking to do simple item tracking using a start and end time. In my simple example I want to update some timestamps on my data and deal with handling an item in my databases status]]></description>
			<content:encoded><![CDATA[<p>MySQL 5.0 added <a href="http://dev.mysql.com/doc/refman/5.0/en/triggers.html" target="_blank">Triggers</a> as a feature.  Though the documentation is there and usage is similar to triggers in other database systems, I am putting up my example for those who may be looking to do simple item tracking using a start and end time. In my simple example I want to update some timestamps on my data and deal with handling an item in my databases status.</p>
<pre><code>
CREATE TABLE test (
&nbsp;&nbsp;&nbsp;&nbsp;&#039;id&#039; INT(10) NOT NULL AUTO_INCREMENT,
&nbsp;&nbsp;&nbsp;&nbsp;&#039;name&#039; VARCHAR(100) DEFAULT NULL,
&nbsp;&nbsp;&nbsp;&nbsp;&#039;created&#039; DATETIME DEFAULT NULL,
&nbsp;&nbsp;&nbsp;&nbsp;&#039;updated&#039; DATETIME DEFAULT NULL,
&nbsp;&nbsp;&nbsp;&nbsp;&#039;start&#039; DATE DEFAULT NULL,
&nbsp;&nbsp;&nbsp;&nbsp;&#039;end&#039; DATE DEFAULT NULL,
&nbsp;&nbsp;&nbsp;&nbsp;&#039;status&#039; varchar(10) DEFAULT &#039;active&#039;,
&nbsp;&nbsp;&nbsp;&nbsp;PRIMARY KEY(&#039;id&#039;)
);
</code></pre>
<p> In this sample table you could add more fields with the data you need to store. For my purposes this will serve just fine for illustrating the triggers I intend to implement. In the table above start and end represent the date item is in an <i>active</i> state. </p>
<p><b>Triggers:</b><br/></p>
<pre><code>
delimiter //
&nbsp;
/* Insert Trigger for new items */
CREATE TRIGGER &#039;t_insert_item&#039; BEFORE INSERT ON &#039;test&#039;
&nbsp;&nbsp;FOR EACH ROW BEGIN
&nbsp;&nbsp;&nbsp;&nbsp;SET NEW.updated = NOW();
&nbsp;&nbsp;&nbsp;&nbsp;SET NEW.created = NOW();
&nbsp;&nbsp;&nbsp;&nbsp;SET NEW.status = &#039;active&#039;;
&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;IF NEW.start &gt; DATE_FORMAT(NOW(),&#039;%Y-%m-%d) THEN
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SET NEW.status = &#039;future&#039;;
&nbsp;&nbsp;&nbsp;&nbsp;END IF;
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;IF NEW.end &lt; DATE_FORMAT(NOW(),&#039;%Y-%m-%d) THEN
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SET NEW.status = &#039;past&#039;;
&nbsp;&nbsp;&nbsp;&nbsp;END IF;&nbsp;&nbsp;&nbsp;&nbsp;
END
//
&nbsp;
/* Update trigger for existing */
CREATE TRIGGER &#039;t_update_item&#039; BEFORE UPDATE ON &#039;test&#039;
&nbsp;&nbsp;FOR EACH ROW BEGIN
&nbsp;&nbsp;&nbsp;&nbsp;SET NEW.updated = NOW();
&nbsp;&nbsp;&nbsp;&nbsp;SET NEW.status = &#039;active&#039;;
&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;IF NEW.start &gt; DATE_FORMAT(NOW(),&#039;%Y-%m-%d) THEN
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SET NEW.status = &#039;future&#039;;
&nbsp;&nbsp;&nbsp;&nbsp;END IF;
&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;IF NEW.end &lt; DATE_FORMAT(NOW(),&#039;%Y-%m-%d) THEN
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SET NEW.status = &#039;past&#039;;
&nbsp;&nbsp;&nbsp;&nbsp;END IF;
END
//
delimiter ; 
</code></pre>
<p> With these triggers when I am inserting new items or existing items are being rescheduled I no longer have to worry about timestamping <b>UPDATE</b> statements or adjusting the item&#8217;s status in the system.  I can also do faster simpler searches on items.   It could allow for a one query command to update all item&#8217;s status in the system. </p>
<pre><code>
UPDATE test SET updated = DATE_FORMAT(&#039;%Y-%m-%d&#039;) WHERE status &lt;&gt; &#039;past&#039;;
</code></pre>
<p>This updates all the active ads and future ads with a new timestamp and updates their status automatically.
</p>
<p> I hope this information is of use to someone and if you have questions about triggers in general feel free to comment.  I hope to get back to working on combining my 2 previous posts <a href="http://carters-site.net/wordpress/2009/08/php-flickr-imagerss-feed-parser/">PHP Flickr Parser</a> and <a href="http://carters-site.net/wordpress/2009/07/javascript-extjs-image-effects-example/">ExtJS Image Effects</a> into a combined example.</p>
]]></content:encoded>
			<wfw:commentRss>http://carters-site.net/wordpress/2009/09/mysql-5-0-triggers-example-usage-setting-fields-conditionally/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Flickr Image RSS Feed Parser.</title>
		<link>http://carters-site.net/wordpress/2009/08/php-flickr-imagerss-feed-parser/</link>
		<comments>http://carters-site.net/wordpress/2009/08/php-flickr-imagerss-feed-parser/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 23:10:36 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[example code]]></category>
		<category><![CDATA[Image Rotator]]></category>
		<category><![CDATA[RSS Parser]]></category>

		<guid isPermaLink="false">http://carters-site.net/wordpress/?p=256</guid>
		<description><![CDATA[Simple Flickr PHP RSS Feed Parser using lightweight FeedParser.php return image URLS.]]></description>
			<content:encoded><![CDATA[<p><b>Updated Sept 18, 2009</b> Flickr changed their feed so code has been altered to continue working. <br/></p>
<p>In an earlier posted an example on how to use ExtJS to do some simple effects to move images around the screen.  That is great and fun and all but it really has no value unless you can apply it.  In that example I used some static URL to images since the focus was on getting things moving.</p>
<p>Taking things a step further I decided it would be better to take that simple example and actually make it of use to someone.  <a href="http://Flickr.com" target="_blank"><strong>Flickr</strong></a> is a pretty commonly used site to upload photos to so I decided to focus on shifting my small example to pull photos from Flickr&#8217;s RSS feed.  This would allow the app to use just change as the feed changes.  Doing this did not take long.</p>
<p>Using <a href="http://www.ajaxray.com/blog/2008/05/02/php-universal-feed-parser-lightweight-php-class-for-parsing-rss-and-atom-feeds/" target="_blank">Anis uddin Ahmad&#8217;s  PHP lightweight feed parser</a> allowed me to build a rather quick parser to grab photos from Flickr.  10 minutes later I had my parser working grabbing just the photo URL&#8217;s from Flickrs RSS feed.  Here is the code and below an example of it working.</p>
<pre><code>
&lt;?php
include(&#039;FeedParser.php&#039;);
$sURL = &quot;http://api.flickr.com/services/feeds/photoset.gne?set=72157618659871441&amp;nsid=41823576@N00&amp;lang=en-us&quot;;

$Parser&nbsp;&nbsp; = new FeedParser();
$Parser-&gt;parse($sURL);
&nbsp;
$channels&nbsp;&nbsp;&nbsp;&nbsp;= $Parser-&gt;getChannels();&nbsp;&nbsp;&nbsp;&nbsp; 
$items&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = $Parser-&gt;getItems();&nbsp;&nbsp;
&nbsp;
foreach($items as $item){
&nbsp;&nbsp;$sContent = $item[&#039;CONTENT&#039;];
&nbsp;&nbsp;preg_match(&quot;#\s?src=\&quot;(http://(.+)\.jpg)\&quot;(\w)*#&quot;, $sContent, $aMatches); // updated!
&nbsp;&nbsp;
&nbsp;&nbsp;$sImgSrc = $aMatches[1];
&nbsp;&nbsp;echo &quot;&lt;img src=&#039;{$sImgSrc}&#039;/&gt;&lt;br&gt;&quot;;
}
?&gt;
</code></pre>
<p><a href="http://carters-site.net/projects/example_scripts/image_parser/flickr_parse.php" target="_blank">THE WORKING EXAMPLE</a></p>
<p>In the future I will bring the two ideas together to have a more interactive example of what is turning out to be a simple photo gallery project. </p>
]]></content:encoded>
			<wfw:commentRss>http://carters-site.net/wordpress/2009/08/php-flickr-imagerss-feed-parser/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Display Sample Code in Wordpress Post using plugins.</title>
		<link>http://carters-site.net/wordpress/2009/07/display-sample-code-in-wordpress-post-using-plugins/</link>
		<comments>http://carters-site.net/wordpress/2009/07/display-sample-code-in-wordpress-post-using-plugins/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 02:44:16 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[code sample]]></category>
		<category><![CDATA[display code]]></category>
		<category><![CDATA[example code]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress plugins]]></category>

		<guid isPermaLink="false">http://carters-site.net/wordpress/?p=238</guid>
		<description><![CDATA[I want to be able to show code examples in a clean format without and encoding of the characters and I want the spacing preserved.  I also want to be able to attach any JavaScript examples to my post to show the code actually working]]></description>
			<content:encoded><![CDATA[<p>As noted in an earlier post I have repurposed my blog site to a more techinical site.  In doing so the first hurdle I encountered was trying to get my code to display correctly and having my examples work correctly.</p>
<p><strong>The Goal</strong>: I want to be able to show code examples in a clean format without and encoding of the characters and I want the spacing preserved.  I also want to be able to attach any JavaScript examples to my post to show the code actually working.</p>
<p><strong>The Problem: </strong>Wordpress has certain filters and encodig in place that will replace and alter characters to make the text web viewable.  Even if you are entering code you want to run directly in the HTML portion of the editor this is not untouched by the wordpress formatter.  I found it would replace certain characters I did not want it to and made my code look terrible, not something you want when illustrating code to others.</p>
<p><strong>The Solution: </strong>After spending some time investigating possible solutions and reading the formatting code (which is the file wordpress/wp-includes/formatting.php) I found a few plugins that seem to address the issue.  The first plugin I found helpful for preserving the spacing and code I want to illustrate to others.</p>
<p><strong>Plugin: </strong><a href="http://www.coffee2code.com/wp-plugins/" target="_blank">Coffee2Code's Preserve Code Formatting</a> - This pluging will preserve code you stick into the &lt;pre&gt; or &lt;code&gt; tag.</p>
<p>I configured the program to only look for the &lt;code&gt; tag since I would be using the styling suggested by <a href="http://www.sohtanaka.com/web-design/styling-pre-tags-with-css-code-block/" target="_blank">Sohtanaka</a> .</p>
<p>This solved the issue with preserving the look of the code and giving it a distinct look.  I am sure there are more ways to style the code but this was simple enough for me to add and read.  The next problem was to deal with the fact that Wordpress was replacing certain characters of my JavaScript demo.  In particular I was using an 'and' operator (&amp;&amp;) and it was character encoding it wrong breaking my JavaScript. To solve this I added another plugin.</p>
<p><strong>Plugin: </strong><a href="http://dev.wp-plugins.org/wiki/TextControl" target="_blank">Text Control</a> - This plugin essentially turns the formatting of Wordpress off or if you choose can specify the type of formatting you want.  It also allows you to specify the character encoding used by the page.  When I am adding code that Iw ant to be run I do not want any encoding to happen, otherwise I risk my demo code breaking.</p>
<p>I installed the plugin and noticed it does work like it should except for one situation, '&amp;&amp;' the and operator. I decided to add a simple solution that handles this edge case directly into the plugin code.  While this is not the most elegant solutions it did fix my issues. Here is the code I added.</p>
<pre><code>
Add this to line 82:
 $text = preg_replace(&#039;/\&amp;amp;\&amp;amp;/&#039;, &#039;&amp;amp;&amp;amp;&#039;, $text);
 </code></pre>
<p>This fixed all my issues I have encountered so far.  I hope this aids others that have ran into this problem as well.</p>
<p><strong> <span style="color: #ff0000;">DO NOT UPDATE Coffe2Code Plugin it makes things much worse.  I had to revert back to 0.9 to get things working again.</span> </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://carters-site.net/wordpress/2009/07/display-sample-code-in-wordpress-post-using-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript: ExtJS Image Effects Example</title>
		<link>http://carters-site.net/wordpress/2009/07/javascript-extjs-image-effects-example/</link>
		<comments>http://carters-site.net/wordpress/2009/07/javascript-extjs-image-effects-example/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 02:09:50 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[code example]]></category>
		<category><![CDATA[ExtJs]]></category>
		<category><![CDATA[fade out image]]></category>
		<category><![CDATA[image effect]]></category>
		<category><![CDATA[image gallery]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://carters-site.net/wordpress/?p=195</guid>
		<description><![CDATA[I have been working with ExtJS library, a free very useful javascript library.  It is rather heavy due to it's size but has many great things built right into it.  You can check out for yourself above and look at some of the visual examples they have posted on the site.  That being said I [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working with <a title="ExtJS" href="http://extjs.com" target="_blank">ExtJS</a> library, a free very useful javascript library.  It is rather heavy due to it's size but has many great things built right into it.  You can check out for yourself above and look at some of the visual examples they have posted on the site.  That being said I have been working on my own experimentation (rather simple at the moment) for use in one of my own personal projects.  One particular issue I looked into was element handling and their FX library.</p>
<p>I have seen some fancy photo galleries out there well I wanted to just create a simple effect to get my hands a little dirty.   The code you see below utilizes a few different aspects of ExtJS Core library.</p>
<p>I will not go into great details about how the code works because its not too hard to follow.  If anyone has questions post it in the comments and I will do what I can to help though I am guessing most will just read or copy/paste and mess with it on their own. </p>
<p>Just click the image in the demo to see it work. </p>
<p>** Please do not link to my site to get the extjs libraries download them and install locally or on your own server.  I have basic hosting and do this as a hobby and if you are getting significant traffic it could slow my site down. </p>
<p>You can see this working here <a title="Simple Image Rotate Example" href="http://carters-site.net/projects/example_scripts/image_rotate/" target="_blank">Simple Image Rotate Example</a</p>
<pre><code>
&nbsp;&nbsp;&lt;body class=&quot;ext-gecko ext-gecko3&quot; style=&quot;background-color: black;&quot;&gt;
&nbsp;&nbsp;&lt;style&gt;
&nbsp;&nbsp; #box {
&nbsp;&nbsp;&nbsp;&nbsp; width: 125px;
&nbsp;&nbsp;&nbsp;&nbsp; height: 125px;
&nbsp;&nbsp;&nbsp;&nbsp; background-color: white;
&nbsp;&nbsp;&nbsp;&nbsp; position: absolute;
&nbsp;&nbsp;&nbsp;&nbsp; left: 200px;
&nbsp;&nbsp;&nbsp;&nbsp; top: 100px;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;overflow: hidden;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;border: 1px solid red;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cursor: hand; cursor: pointer;&nbsp;&nbsp; 
&nbsp;&nbsp; }
&nbsp;&nbsp; 
&nbsp;&nbsp; #box2 {
&nbsp;&nbsp;&nbsp;&nbsp; width: 50px;
&nbsp;&nbsp;&nbsp;&nbsp; height: 50px;
&nbsp;&nbsp;&nbsp;&nbsp; background-color: white;
&nbsp;&nbsp;&nbsp;&nbsp; position: absolute;
&nbsp;&nbsp;&nbsp;&nbsp; left: 100px;
&nbsp;&nbsp;&nbsp;&nbsp; top: 100px;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;border: 1px solid red;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cursor: hand; cursor: pointer;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;opacity:0.25;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;filter:alpha(opacity=25);
&nbsp;&nbsp; }
&nbsp;&nbsp; 
&nbsp;&nbsp;&lt;/style&gt;
&nbsp;&nbsp;&lt;div style=&quot;left:0px; top:0px; width: 800px%; height: 800px;&quot; id=&quot;plane&quot;&gt;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;img src=&quot;images/images.jpg&quot; align=&quot;middle&quot; id=&quot;box&quot;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;img src=&quot;images/images2.jpg&quot; align=&quot;middle&quot; id=&quot;box2&quot;&gt;
&nbsp;&nbsp;&lt;/div&gt;
&nbsp;&nbsp;&lt;script language=&quot;javascript&quot;&gt;
&nbsp;&nbsp;ImageRotate = Ext.extend(Ext.util.Observable, {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;constructor: function(oConfig){
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.name = oConfig.name;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.listeners = oConfig.listeners;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.addEvents({
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;summon_new&quot;: true
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });
&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.elBox = Ext.get(&quot;box&quot;);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.elBox2 = Ext.get(&quot;box2&quot;);&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.elBox.on(&#039;click&#039;, function(e, t, o){&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.elBox.shift({
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; opacity: .25, 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; duration: 1,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; easing: &#039;easeOut&#039;,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x: this.elBox.getX() + 150,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; y: this.elBox.getY(),
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height: this.elBox.getHeight() * .50,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width: this.elBox.getWidth() * .50
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.fireEvent(&quot;summon_new&quot;);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, this);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ImageRotate.superclass.constructor.call(oConfig);&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp; 
&nbsp;&nbsp;});&nbsp;&nbsp;
&nbsp;&nbsp;
&nbsp;&nbsp;Ext.onReady(function(){
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;oImageRot = new ImageRotate({ name: &#039;image_test&#039; });
&nbsp;&nbsp;});&nbsp;&nbsp; 
&nbsp;&nbsp;&lt;/script&gt; 
&lt;/body&gt;
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://carters-site.net/wordpress/2009/07/javascript-extjs-image-effects-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP CSV Column Mapper</title>
		<link>http://carters-site.net/wordpress/2009/07/php-csv-column-mapper/</link>
		<comments>http://carters-site.net/wordpress/2009/07/php-csv-column-mapper/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 01:16:08 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[data parsing]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[helios]]></category>

		<guid isPermaLink="false">http://carters-site.net/wordpress/?p=185</guid>
		<description><![CDATA[From time to time most programmers will run into a import/export problem where they need to take a dump of particular data and put it into another system.  A fairly standard way is to get the export into CSV (Comma Separated Value) formatted file. Most system/companies can fairly easily take this type of data [...]]]></description>
			<content:encoded><![CDATA[<p><img id="wp_delimgbtn" title="Delete Image" src="../wp-includes/js/tinymce/plugins/wpeditimage/img/delete.png" alt="" width="24" height="24" /><a href="http://carters-site.net/wordpress/wp-content/uploads/2009/07/php.gif" rel="lightbox[185]"><img class="size-medium wp-image-186 alignleft" style="margin: 15px;" title="php" src="http://carters-site.net/wordpress/wp-content/uploads/2009/07/php.gif" alt="" width="120" height="67" /></a>From time to time most programmers will run into a import/export problem where they need to take a dump of particular data and put it into another system.  A fairly standard way is to get the export into CSV (Comma Separated Value) formatted file. Most system/companies can fairly easily take this type of data and convert it into their own. Recently I was asked by the owner of company called <a href="http://qcnextlevelfitness.com" target="_blank">Next Level Fitness</a>, who I had previously put together their website, to take a look at their account management setup.</p>
<p>Currently they had been using dated software (Quickchek) which I could not find much information about online.  Their new setup was a more well known company called Helios who seems to focus in software for tanning salons.  Anyways, Quickchek stored the data in Parabox .DB files.  Using a tool called <a href="http://www.vlsoftware.net/exportizer/index.html" target="_blank">Exportizer</a> was able to extract this data as CSV files.  The problem now is column mapping similar data from one system to the next.  This happens frequently in the land of data importing.  Luckily Helios is using Access MDB files so using their interface I can import a CSV file right into the table. Now just getting a formatted CSV from CSV files I have from Quickchek.  In doing this I decided it was just best to build a quick tool to m ap the CSV data I need moved for me.</p>
<p>Here is the link to the <a href="http://carters-site.net/projects/uploader/" target="_blank">PHP column mapping tool</a> I built.  It&#8217;s not fancy but it does work.  Leave fields blank you do not need exported.</p>
]]></content:encoded>
			<wfw:commentRss>http://carters-site.net/wordpress/2009/07/php-csv-column-mapper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript: Figuring out daylight savings time.</title>
		<link>http://carters-site.net/wordpress/2009/04/javascript-figuring-out-daylight-savings-time/</link>
		<comments>http://carters-site.net/wordpress/2009/04/javascript-figuring-out-daylight-savings-time/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 18:03:14 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[interesting]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[code example]]></category>
		<category><![CDATA[daylight savings time]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[timezone]]></category>

		<guid isPermaLink="false">http://carters-site.net/wordpress/?p=155</guid>
		<description><![CDATA[Updated 11/2/2009: Fixed bug with code pointed out by comment. A while back I had been dealing with the different timezones across the US.  I needed to know whether or not the central timezone was in daylight savings time or not using my current timestamp from my computer. While this ultimately ended up not mattering [...]]]></description>
			<content:encoded><![CDATA[<b>Updated 11/2/2009: Fixed bug with code pointed out by comment. </b><br /><br />A while back I had been dealing with the different timezones across the US.  I needed to know whether or not the central timezone was in daylight savings time or not using my current timestamp from my computer. While this ultimately ended up not mattering because I switched everything to a GMT timestamp and use that for comparisons I did write a small bit of javascript code to determine this information for me.  So below you will see the rough code I hacked together which should accurately determine if we are currently in daylight savings time based on the current dates set by the US government.
<pre><code><br />
function isDaylight() {<br />
 <br />
&nbsp;&nbsp;&nbsp;&nbsp;// 2nd sunday of march<br />
&nbsp;&nbsp;&nbsp;&nbsp;oDate = new Date();<br />
&nbsp;&nbsp;&nbsp;&nbsp;var dstStartDate = new Date();<br />
&nbsp;&nbsp;&nbsp;&nbsp;dstStartDate.setMonth(2);<br />
&nbsp;&nbsp;&nbsp;&nbsp;dstStartDate.setDate(1);<br />
&nbsp;&nbsp;&nbsp;&nbsp;dstStartDate.setYear(2009);<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;dateIdx = dstStartDate.getDay() ? 8 - dstStartDate.getDay() : 1;<br />
&nbsp;&nbsp;&nbsp;&nbsp;dstStartDate.setDate(dateIdx + 7);<br />
 <br />
&nbsp;&nbsp;&nbsp;&nbsp;// first sunday of november<br />
&nbsp;&nbsp;&nbsp;&nbsp;var dstEndDate = new Date();<br />
&nbsp;&nbsp;&nbsp;&nbsp;dstEndDate.setMonth(10);<br />
&nbsp;&nbsp;&nbsp;&nbsp;dstEndDate.setDate(1);<br />
&nbsp;&nbsp;&nbsp;&nbsp;dstEndDate.setYear(2009);<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;dateIdx = dstEndDate.getDay() ? 8 - dstEndDate.getDay() : 1;<br />
&nbsp;&nbsp;&nbsp;&nbsp;dstEndDate.setDate(dateIdx);<br />
&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;if ((oDate.getMonth() &gt; dstStartDate.getMonth()) &amp;&amp; (oDate.getMonth() &lt; dstEndDate.getMonth())) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bInDST = true;<br />
&nbsp;&nbsp;&nbsp;&nbsp;} else if (oDate.getMonth() == dstStartDate.getMonth()) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (oDate.getDate() &gt;= dstStartDate.getDate()) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bInDST = true;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bInDST = false;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;} else if (oDate.getMonth() == dstEndDate.getMonth()) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (oDate.getDate() &lt; dstEndDate.getDate()) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bInDST = true;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bInDST = false;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;} else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bInDST = false;<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;return bInDST;<br />
}<br />
</code></pre>
<script language="javascript">
function isDaylight() {
 
    // 2nd sunday of march
    oDate = new Date();
    var dstStartDate = new Date();
    dstStartDate.setMonth(2);
    dstStartDate.setDate(1);
    dstStartDate.setYear(2009);
    
    dateIdx = dstStartDate.getDay() ? 8 - dstStartDate.getDay() : 1;
    dstStartDate.setDate(dateIdx + 7);
 
    // first sunday of november
    var dstEndDate = new Date();
    dstEndDate.setMonth(10);
    dstEndDate.setDate(1);
    dstEndDate.setYear(2009);
    
    dateIdx = dstEndDate.getDay() ? 8 - dstEndDate.getDay() : 1;
    dstEndDate.setDate(dateIdx);
  
    if ((oDate.getMonth() > dstStartDate.getMonth()) && (oDate.getMonth() < dstEndDate.getMonth())) {
        bInDST = true;
    } else if (oDate.getMonth() == dstStartDate.getMonth()) {
        if (oDate.getDate() >= dstStartDate.getDate()) {
            bInDST = true;
        } else {
            bInDST = false;
        }
    } else if (oDate.getMonth() == dstEndDate.getMonth()) {
        if (oDate.getDate() < dstEndDate.getDate()) {
            bInDST = true;
        } else {
            bInDST = false;
        }
    } else {
        bInDST = false;
    }
    return bInDST;
}</script>


<div style="border: 1px inset black; padding: 5px; width: 50px; cursor: pointer; font-family: 'Arial'; background-color: #f1f1f1;" onclick="if(isDaylight()) { alert('We are in Daylight Savings Time') } else { alert('We are not in Daylight Savings Time') }">Show Me</div>
Click the button to see the code working.]]></content:encoded>
			<wfw:commentRss>http://carters-site.net/wordpress/2009/04/javascript-figuring-out-daylight-savings-time/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>carters-site.net is back on the web</title>
		<link>http://carters-site.net/wordpress/2009/04/carters-sitenet-is-back-on-the-web/</link>
		<comments>http://carters-site.net/wordpress/2009/04/carters-sitenet-is-back-on-the-web/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 16:28:51 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[site updates]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Melbourne]]></category>
		<category><![CDATA[Site Issues]]></category>

		<guid isPermaLink="false">http://carters-site.net/wordpress/?p=153</guid>
		<description><![CDATA[After much time working with DNS providers and my web host bargainvault.com...(yes I know I am cheap).

I have my homesite back up and running. The deal was I registered my domain through yahoo small business years ago and it expired.  Except the expiration email was sent to a yahoo email account I did not know [...]]]></description>
			<content:encoded><![CDATA[After much time working with DNS providers and my web host bargainvault.com...(yes I know I am cheap).

I have my homesite back up and running. The deal was I registered my domain through yahoo small business years ago and it expired.  Except the expiration email was sent to a yahoo email account I did not know the username and password to anymore.  Well after contacting yahoo I got the username and reset the password  to login only to find that the small business portion had sent me numerous emails warning me they were going to to remove my account for lack of payment. (I had switched banks so they could not withdrawl the funds.) So my next job was to get a hold of yahoo small business and get them to give me my domain registration information or re-register it. Well they wanted $35/year to register through them (when I signed up it was 7)  I said I was transferring to goDaddy as my new host and they informed me that my domain was no longer under their control but actually sold to Melbourne IT out of Australia. Wow, what a mess. They were nice enough to contact the Melbourne with me on the phone only for Melbourne to inform me I have to fax them information...Fax this is the age of technology and a IT company needs me to fax them information.  One would think they would utilize online forms for this.  Anyway I paid 5.99 to fax a paper form to Melbourne and days later (they apparently are really slow there) they send me a registry key so I could sign up on their site and finish transferring my domain to GoDaddy.  I did all that only to find that no matter what I did I could not unlock my domain.  It said it was unlocked but using a whois I found that it listed my domain as clientTransferProhibited.  Grrr.... I sent two emails to Melbourne Support service neither which I received a response from in what I consider a timely manner (48 hours). So I had to call Australia and talk to their Support service.  Who then did unlock my domain for real this time.  5 days later they domain transfer went through because Melbourne does not allow you to login and authorize a transfer to a different host and I had to wait out the grace period.

Whew....with all that said and done I got my domain back and got things running again.  The whole process took about a month and half.  I place a lot of blame on this process on Melbourne themselves and their slow processing. For a register who charges $40 a year for domain names you would expect a little more service.

That being said I going to repurpose my blog away from personal posts and more into more techinical posts.   The reason being I would like to show some of the daily problems I encounter and my solutions to these problems.  In hopes that maybe someone else that encounters similar issues may find an answers from my experience.  I will sometimes write a post about something I am thinking about.  There may still be some comical posts once in a while but my main focus will be turned on projects and coding which is what I do. I will keep a photo gallery updated here and maybe some sections designated for a more personal side of things for family and friends to visit.

I want to eventually be able to use this site as a example to be displayed on my resume and some of the previous posts may be a little too personal to serve this purpose.  Anyway thanks to those who follow this and sorry if any of this disappoints.

Sincerely,

Site Admin and Content Author.]]></content:encoded>
			<wfw:commentRss>http://carters-site.net/wordpress/2009/04/carters-sitenet-is-back-on-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
