<?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>ChristopherCasper.com</title>
	<atom:link href="http://christophercasper.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://christophercasper.com</link>
	<description>Who me?</description>
	<lastBuildDate>Mon, 06 Feb 2012 17:39:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Simple Engine</title>
		<link>http://christophercasper.com/2012/02/simple-engine/</link>
		<comments>http://christophercasper.com/2012/02/simple-engine/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 17:39:27 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Simple Engine]]></category>

		<guid isPermaLink="false">http://christophercasper.com/?p=130</guid>
		<description><![CDATA[So one of my pet projects is Simple Engine. Its kind of a cross between wordpress and static html files. It allows you to do nice seo urls and manage a global template, so making changes is not a pain. &#8230; <a href="http://christophercasper.com/2012/02/simple-engine/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So one of my pet projects is <a title="Simple Engine" href="http://simpleengine.com/">Simple Engine</a>. Its kind of a cross between wordpress and static html files. It allows you to do nice seo urls and manage a global template, so making changes is not a pain. Anyways check it out, let me know what you think. It&#8217;s helped me with several sites big and small.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://christophercasper.com/2012/02/simple-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New site, new year.</title>
		<link>http://christophercasper.com/2012/01/new-site-new-year/</link>
		<comments>http://christophercasper.com/2012/01/new-site-new-year/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 07:08:37 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://christophercasper.com/?p=122</guid>
		<description><![CDATA[Well its a start of a new year. What better way than start it off than a new design. I am slowly working on the design of the site as I have time. So keep checking back for more updates.]]></description>
			<content:encoded><![CDATA[<p>Well its a start of a new year. What better way than start it off than a new design. I am slowly working on the design of the site as I have time. So keep checking back for more updates.</p>
]]></content:encoded>
			<wfw:commentRss>http://christophercasper.com/2012/01/new-site-new-year/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Posting JSON with jQuery and PHP</title>
		<link>http://christophercasper.com/2011/10/posting-json-with-jquery-and-php/</link>
		<comments>http://christophercasper.com/2011/10/posting-json-with-jquery-and-php/#comments</comments>
		<pubDate>Sat, 15 Oct 2011 21:01:39 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://christophercasper.com/?p=99</guid>
		<description><![CDATA[After looking around the net some, and having this issue before, I decided to put this up for anyone who might be having the same trouble as I once had. Posting JSON with PHP can be a bit tricky if &#8230; <a href="http://christophercasper.com/2011/10/posting-json-with-jquery-and-php/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After looking around the net some, and having this issue before, I decided to put this up for anyone who might be having the same trouble as I once had. Posting JSON with PHP can be a bit tricky if it&#8217;s your first time doing this.</p>
<p>So for starters, lets download some scripts we&#8217;ll need to make this work.</p>
<ul>
<li>https://github.com/douglascrockford/JSON-js/blob/master/json2.js</li>
<li>http://code.jquery.com/jquery-1.6.4.min.js</li>
</ul>
<h4>json2.js</h4>
<p>This file will be used for taking a javascript object and converting it to a string.</p>
<h4>jQuery</h4>
<p>This is my javascript library of choice. So for this example I will be using this.</p>
<h4>Javascript Time!</h4>
<p>So lets get our hands dirt with some javascript. Here is a simple AJAX post using javascript and using the JSON.stringify to convert our object to a string so we can post it. While I don&#8217;t actually show it. Make sure to include the json2.js file and in this case, jQuery on the page.</p>
<pre class="brush: jscript; title: ; notranslate">

// Declare a variable
var jsonObj = {demo: 'this is just a simple json object'}

// Lets convert our JSON object
var postData = JSON.stringify(jsonObj);

// Lets put our stringified json into a variable for posting
var postArray = {json:postData};

$.ajax({
    type: 'POST',
    url: &quot;http://somedomain.local.com/phpfile.php&quot;,
    data: postArray,
    success: function(data){
        // Do some action here with the data variable that contains the resulting message
    }
});
</pre>
<h4>PHP in The House</h4>
<p>In our php file, we can process the post variable. First we check and see if we actually have post variable. Next, we need to strip the slashes out of the string which were put in for transport. Then we just run the json_decode php function. After that we can access the php object and use it however we like.</p>
<pre class="brush: php; title: ; notranslate">

if(isset($_POST[&quot;json&quot;])){
    $json = stripslashes($_POST[&quot;json&quot;]);
    $output = json_decode($json);

    // Now you can access your php object like so
    // $output[0]-&gt;variable-name
}
</pre>
<p>This is a pretty basic and watered down example but hopefully it will help you.</p>
]]></content:encoded>
			<wfw:commentRss>http://christophercasper.com/2011/10/posting-json-with-jquery-and-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Posting form data with Curl</title>
		<link>http://christophercasper.com/2011/07/posting-form-data-with-curl/</link>
		<comments>http://christophercasper.com/2011/07/posting-form-data-with-curl/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 06:39:31 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://christophercasper.com/?p=82</guid>
		<description><![CDATA[So this is something I struggled with for whatever reason. Taking form data that  was posted and re-posting to another server. I am just going to post up the code first and then kind of step through it. So basically &#8230; <a href="http://christophercasper.com/2011/07/posting-form-data-with-curl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So this is something I struggled with for whatever reason. Taking form data that  was posted and re-posting to another server. I am just going to post up the code first and then kind of step through it.</p>
<pre class="brush: php; title: ; notranslate">
$ch = curl_init();

// Lets setup the data we need to pass
$postValues   = array('postedData' =&gt; $someArrayOfData);

// define the URL for upload file
curl_setopt($ch, CURLOPT_URL, 'http://yourdomain.com/api/somefile.php');
curl_setopt($ch, CURLOPT_POSTFIELDS, $postValues);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_ENCODING, &quot;&quot;);
$response = curl_exec($ch);
curl_close($ch);

header (&quot;Content-Type:text/xml&quot;);
echo($response);
</pre>
<p>So basically what is happening is at first we build an array of all the values we want to post. Then we pass that variable into the config for Curl. At that point we set, the URL, and the &#8220;RETURNTRANSFER&#8221; setting, letting Curl know we want any response back from the server that we posted to. Once that is done, we can just set the header and echo out the results, or we could pass that info back into a variable to be used elsewhere.</p>
<p>While this is pretty brief, it was more so just to get a couple thoughts down for myself. if you have any questions though, please feel free to leave a comment or jsut email me.</p>
]]></content:encoded>
			<wfw:commentRss>http://christophercasper.com/2011/07/posting-form-data-with-curl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Still around&#8230;</title>
		<link>http://christophercasper.com/2011/07/still-around/</link>
		<comments>http://christophercasper.com/2011/07/still-around/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 07:02:04 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://christophercasper.com/?p=73</guid>
		<description><![CDATA[Been so damn busy the past 3 months, I almost forgot I have a website! I have a ton of things I should add on here but I keep forgetting. I will try to add some new things soon. Ok, &#8230; <a href="http://christophercasper.com/2011/07/still-around/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Been so damn busy the past 3 months, I almost forgot I have a website!</p>
<p>I have a ton of things I should add on here but I keep forgetting. I will try to add some new things soon.</p>
<p>Ok, back to working, or sleeping I guess.</p>
]]></content:encoded>
			<wfw:commentRss>http://christophercasper.com/2011/07/still-around/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS word-wrap on a legend</title>
		<link>http://christophercasper.com/2011/04/css-word-wrap-on-a-legend/</link>
		<comments>http://christophercasper.com/2011/04/css-word-wrap-on-a-legend/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 19:03:14 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://christophercasper.com/?p=53</guid>
		<description><![CDATA[Legend elements are extremely tricky to get styled right across browsers. I&#8217;ve come across the issue on several occasions where I need the text inside the legend to wrap lines when it&#8217;s too long. Here is an example: All we &#8230; <a href="http://christophercasper.com/2011/04/css-word-wrap-on-a-legend/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Legend elements are extremely tricky to get styled right across browsers. I&#8217;ve come across the issue on several occasions where I need the text inside the legend to wrap lines when it&#8217;s too long. Here is an example:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;fieldset&gt;
  &lt;legend class=&quot;someclass&quot;&gt;Some text that needs to wrap because its too long.&lt;/legend&gt;
&lt;/fieldset&gt;&lt;/code&gt;
</pre>
<p>All we need to do now is just wrap the text inside the legend within a span tag like so:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;fieldset&gt;
  &lt;legend class=&quot;soemclass&quot;&gt;&lt;span&gt;Some text that needs to wrap because its too long.&lt;/span&gt;&lt;/legend&gt;
&lt;/fieldset&gt;
</pre>
<p>Add some css to target the span:</p>
<pre class="brush: css; title: ; notranslate">
legend.someclass span {
  word-wrap: normal;
  white-space: normal;
}
</pre>
<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://christophercasper.com/2011/04/css-word-wrap-on-a-legend/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Shelby GT500 Fog Light Replacement Bulb</title>
		<link>http://christophercasper.com/2010/12/shelby-gt500-fog-light-replacement-bulb/</link>
		<comments>http://christophercasper.com/2010/12/shelby-gt500-fog-light-replacement-bulb/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 08:47:56 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Automotive]]></category>
		<category><![CDATA[Ford]]></category>
		<category><![CDATA[GT500]]></category>
		<category><![CDATA[Mustang]]></category>
		<category><![CDATA[Replacement Parts]]></category>
		<category><![CDATA[Shelby]]></category>

		<guid isPermaLink="false">http://christophercasper.com/?p=47</guid>
		<description><![CDATA[This is more of a post to myself so I have someplace to keep it, but if you are looking to replace a burnt out fog light bulb on your 2007-2009 Shelby GT500 then this might come in handy for &#8230; <a href="http://christophercasper.com/2010/12/shelby-gt500-fog-light-replacement-bulb/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is more of a post to myself so I have someplace to keep it, but if you are looking to replace a burnt out fog light bulb on your 2007-2009 Shelby GT500 then this might come in handy for you.</p>
<p>The bulbs are completely different from the regular Mustang GT, so if you go into AutoZone, their little computer will tell you that you need a 9145 Light bulb which is incorrect. As far as I know you can only get them from Ford for like $30 a piece.</p>
<p>Part Number: 8L8Z-13N021-A (One Bulb and Socket Assembly)</p>
<p>If anyone else knows of where to get replacement ones besides Ford, please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://christophercasper.com/2010/12/shelby-gt500-fog-light-replacement-bulb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating Coda from one Mac to another.</title>
		<link>http://christophercasper.com/2010/10/migrating-coda-from-one-mac-to-another/</link>
		<comments>http://christophercasper.com/2010/10/migrating-coda-from-one-mac-to-another/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 07:27:49 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Coda]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://christophercasper.com/?p=42</guid>
		<description><![CDATA[So you use Panic Software&#8217;s Coda for all of your web development. Trouble is you just bought a shiny new Mac and you want to transfer over your sites. Well fear no more. Just locate the following file&#8230; /Users/YOUR-USER-FOLDER/Library/Preferences/com.panic.Coda.plist Then &#8230; <a href="http://christophercasper.com/2010/10/migrating-coda-from-one-mac-to-another/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So you use Panic Software&#8217;s Coda for all of your web development. Trouble is you just bought a shiny new Mac and you want to transfer over your sites. Well fear no more. Just locate the following file&#8230;</p>
<blockquote><p>/Users/YOUR-USER-FOLDER/Library/Preferences/com.panic.Coda.plist</p></blockquote>
<p>Then on your new Mac, make sure you have coda installed. Then copy the com.panic.plist file to the same location you found it, but on the new machine, and then you are all set.</p>
]]></content:encoded>
			<wfw:commentRss>http://christophercasper.com/2010/10/migrating-coda-from-one-mac-to-another/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>LESS Syntax Highlighting in Coda</title>
		<link>http://christophercasper.com/2010/09/less-syntax-highlighting-in-coda/</link>
		<comments>http://christophercasper.com/2010/09/less-syntax-highlighting-in-coda/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 22:27:46 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Coda]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[LESS]]></category>

		<guid isPermaLink="false">http://christophercasper.com/?p=27</guid>
		<description><![CDATA[UPDATE: Over at http://goo.gl/sn74C, someone has created a plugin for LESS in Coda that has more features than mine. I haven&#8217;t checked it out yet but it looks promising. First of all, LESS is insanely awesome to use on large &#8230; <a href="http://christophercasper.com/2010/09/less-syntax-highlighting-in-coda/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>UPDATE: Over at <a href="http://goo.gl/sn74C">http://goo.gl/sn74C</a>, someone has created a plugin for LESS in Coda that has more features than mine. I haven&#8217;t checked it out yet but it looks promising.</p>
<p>First of all, <a title="LESS" href="http://lesscss.org/">LESS</a> is insanely awesome to use on large sites that require thousands of lines of css. I&#8217;ll let a snippet from their site explain it a little better.</p>
<blockquote><p>LESS extends CSS with: variables, mixins, operations and nested rules. Best of all, LESS uses existing CSS syntax. This means you can rename your current .css files to .less and they&#8217;ll just work.</p></blockquote>
<p>So back to the syntax highlighting. I wanted to use LESS in Coda and have all the CSS syntax highlighting to work correctly. After a little Google searching I found the easiest solution was just to copy the &#8220;CSS Mode&#8221; out of the actual app and rename it so it works for LESS.</p>
<p>So in an effort make my life easier and hopefully yours I am hosting it up here for download.</p>
<p><a href="http://christophercasper.com/wp-content/uploads/2010/09/Less.mode_1.zip">LESS Syntax Highlighting for Coda Version 1.0</a> (Just fixed it so it doesn&#8217;t overwrite the CSS in the syntax option menu)</p>
<p>Installation:</p>
<p>Just download the zip, unzip it, and copy the &#8220;Less.mode&#8221; folder to /Users/YOURUSERNAME/Library/Application Support/Coda/Modes.</p>
]]></content:encoded>
			<wfw:commentRss>http://christophercasper.com/2010/09/less-syntax-highlighting-in-coda/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Google Chrome crashes form submit with auto-fill on.</title>
		<link>http://christophercasper.com/2010/09/google-chrome-crashes-form-submit-with-autofill-on/</link>
		<comments>http://christophercasper.com/2010/09/google-chrome-crashes-form-submit-with-autofill-on/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 22:33:26 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[Web Browser]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://christophercasper.com/?p=15</guid>
		<description><![CDATA[At work today we ran into a unique issue with Google&#8217;s Chrome web browser. With auto-fill turned on, and submitting a web form, it would cause the browser to crash instantly as soon as you pushed the &#8220;red button&#8221; to &#8230; <a href="http://christophercasper.com/2010/09/google-chrome-crashes-form-submit-with-autofill-on/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>At work today we ran into a unique issue with Google&#8217;s Chrome web browser. With auto-fill turned on, and submitting a web form, it would cause the browser to crash instantly as soon as you pushed the &#8220;red button&#8221; to submit the form.</p>
<p>To handle this issue it took some web surfing and a little help with fellow co-workers. Turns out there is a bug with Chrome and the auto-fill functionality in the browser. To combat this problem you have to set a autocompelte attribute on the form input to disable Chrome from even turning on the &#8220;auto-fill&#8221; feature in the first place.</p>
<pre>&lt;input name="input-field" type="text" autocomplete="off"/&gt;</pre>
<p>Once we made this change, no more crashing!</p>
<p>Special thanks goes out to Travis from work.</p>
]]></content:encoded>
			<wfw:commentRss>http://christophercasper.com/2010/09/google-chrome-crashes-form-submit-with-autofill-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

