<?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>John Congdon</title>
	<atom:link href="http://www.johncongdon.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johncongdon.com</link>
	<description>My life as an IT &#34;Professional&#34;</description>
	<lastBuildDate>Wed, 04 Jan 2012 13:26:19 +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>Solved: vBulletin Quick Reply Not Working (ckeditor.js unable to get value of the property &#8216;label&#8217;)</title>
		<link>http://www.johncongdon.com/solved-vbulletin-quick-reply-not-working-ckeditor-js-unable-to-get-value-of-the-property-label/</link>
		<comments>http://www.johncongdon.com/solved-vbulletin-quick-reply-not-working-ckeditor-js-unable-to-get-value-of-the-property-label/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 13:26:19 +0000</pubDate>
		<dc:creator>John Congdon</dc:creator>
				<category><![CDATA[PHP Snippets]]></category>
		<category><![CDATA[Programmer's Mindset]]></category>

		<guid isPermaLink="false">http://www.johncongdon.com/?p=608</guid>
		<description><![CDATA[I have a vBulletin board that I manage and while recently had users complain about the Quick Reply not working.  They had to go into the advanced editor to make it work. Doing my due diligence as an IT professional quickly narrowed it down to&#8230;. IE of course.  I spent hours digging, using a debugger [...]]]></description>
			<content:encoded><![CDATA[<p>I have a vBulletin board that I manage and while recently had users complain about the Quick Reply not working.  They had to go into the advanced editor to make it work.</p>
<p>Doing my due diligence as an IT professional quickly narrowed it down to&#8230;. IE of course.  I spent hours digging, using a debugger I kept getting the error in the title of this post.  I kept going through the Call Stack trying to figure out what was going on, but the javascript is minified very tightly, so following it became daunting.</p>
<p>Two days later another user complained about not being able to update their profile.  While debugging this, both problems became very clear.</p>
<p>I had recently put in some rewrite rules to make the forum more SEO friendly.  However there are a couple situations where the rewrite rules broke down.  I was missing the two lines colored in green below.</p>
<p style="padding-left: 30px;">RewriteEngine On<br /> RewriteRule ^/videos.html /forums/36-Bowling-Videos-amp-Pictures<br /> <span style="color: #339966;">RewriteRule ^/threads/ckeditor.php /ckeditor.php?t=$1 [L]<br /> </span>RewriteRule ^/threads/(.*) /showthread.php?t=$1 [L]<br /> RewriteRule ^/forums/(.*) /forumdisplay.php?$1 [L]<br /> RewriteRule ^/entries/(.*) /entry.php?$1 [L]<br /> RewriteRule ^/blogs/(.*) /blog.php?$1 [L]<br /><span style="color: #339966;"> RewriteRule ^/members/ajax.php /ajax.php?$1 [L]<br /></span> RewriteRule ^/members/(.*) /member.php?$1 [L]<br /> RewriteRule ^/list/(.*) /list.php?$1 [L]<br /> RewriteRule ^/list/author/(.*) /list.php?$1 [L]<br /> RewriteRule ^/$ <a href="http://www.bowlingboards.com/forum.php " rel="nofollow">http://www.bowlingboards.com/forum.php </a> [R,L]</p>
<p>It was that simple.  I am sure I am missing some other rules, and will try to get them corrected in due time.</p>
<p> </p>]]></content:encoded>
			<wfw:commentRss>http://www.johncongdon.com/solved-vbulletin-quick-reply-not-working-ckeditor-js-unable-to-get-value-of-the-property-label/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Just had my first GitHub pull request put&#8230;</title>
		<link>http://www.johncongdon.com/just-had-my-first-github-pull-request-put/</link>
		<comments>http://www.johncongdon.com/just-had-my-first-github-pull-request-put/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 19:09:24 +0000</pubDate>
		<dc:creator>John Congdon</dc:creator>
				<category><![CDATA[status]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.johncongdon.com/just-had-my-first-github-pull-request-put/</guid>
		<description><![CDATA[Just had my first GitHub pull request put into a project. Happy to contribute, even in small ways. https://github.com/EmilStenstrom/jQuery-animate_from_to]]></description>
			<content:encoded><![CDATA[<p>Just had my first GitHub pull request put into a project.  Happy to contribute, even in small ways.</p>
<p><a href="https://github.com/EmilStenstrom/jQuery-animate_from_to" rel="nofollow">https://github.com/EmilStenstrom/jQuery-animate_from_to</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.johncongdon.com/just-had-my-first-github-pull-request-put/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Mobile Select Box Not Showing Up</title>
		<link>http://www.johncongdon.com/jquery-mobile-select-box-not-showing-up/</link>
		<comments>http://www.johncongdon.com/jquery-mobile-select-box-not-showing-up/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 19:12:55 +0000</pubDate>
		<dc:creator>John Congdon</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[jQuery Mobile]]></category>

		<guid isPermaLink="false">http://www.johncongdon.com/jquery-mobile-select-box-not-showing-up/</guid>
		<description><![CDATA[jQuery Mobile is a great framework with lots of great out-of-the-box magic. I am in the middle of converting a site over from a full website to a mobile version. I was really frustrated when I tried to click on a select box and nothing would happen. If my header/footer were fixed, they would just [...]]]></description>
			<content:encoded><![CDATA[<p>jQuery Mobile is a great framework with lots of great out-of-the-box magic.</p>
<p>I am in the middle of converting a site over from a full website to a mobile version.  I was really frustrated when I tried to click on a  select box and nothing would happen.  If my header/footer were fixed, they would just toggle on and off.  I assumed it was the fixed positioning, and I was wrong.</p>
<p>Through some FireBug debugging, I found the problem.  It probably won&#8217;t affect many people, but it&#8217;s worth pointing out.  I had a set a width through CSS on the select item for the desktop version.  When I ported into the mobile version, I left the CSS width in there.  So if I happened to click on the very far left of the button, it worked.  </p>
<p>I removed the width and all is right in the world again.  <img src='http://www.johncongdon.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>]]></content:encoded>
			<wfw:commentRss>http://www.johncongdon.com/jquery-mobile-select-box-not-showing-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running Apache Benchmark (ab) and receiving apr_socket_recv: Connection reset by peer (54)</title>
		<link>http://www.johncongdon.com/running-apache-benchmark-ab-and-receiving-apr_socket_recv-connection-reset-by-peer-54/</link>
		<comments>http://www.johncongdon.com/running-apache-benchmark-ab-and-receiving-apr_socket_recv-connection-reset-by-peer-54/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 17:12:38 +0000</pubDate>
		<dc:creator>John Congdon</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[ab]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.johncongdon.com/running-apache-benchmark-ab-and-receiving-apr_socket_recv-connection-reset-by-peer-54/</guid>
		<description><![CDATA[I was having this issue and was getting quite frustrated. All of my researched turned up nothing. Finally I decided to run this from another machine instead of my Mac, and it worked just fine. So this had nothing to do with my server, it was a client side related issue. I still don&#8217;t know [...]]]></description>
			<content:encoded><![CDATA[<p>I was having this issue and was getting quite frustrated.  All of my researched turned up nothing.  Finally I decided to run this from another machine instead of my Mac, and it worked just fine.  So this had nothing to do with my server, it was a client side related issue.</p>
<p>I still don&#8217;t know what caused it.  I was just able to identify the issue and thus find a work around.</p>]]></content:encoded>
			<wfw:commentRss>http://www.johncongdon.com/running-apache-benchmark-ab-and-receiving-apr_socket_recv-connection-reset-by-peer-54/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google +1 Button Shows Zero (0) Count When Not Logged Into Google Account</title>
		<link>http://www.johncongdon.com/google-1-button-shows-zero-0-count-when-not-logged-into-google-account/</link>
		<comments>http://www.johncongdon.com/google-1-button-shows-zero-0-count-when-not-logged-into-google-account/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 14:09:01 +0000</pubDate>
		<dc:creator>John Congdon</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[+1]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://www.johncongdon.com/google-1-button-shows-zero-0-count-when-not-logged-into-google-account/</guid>
		<description><![CDATA[I had a situation that my boss pointed out yesterday that was very confusing. He was on a competitor&#8217;s website and their +1 button was showing a count. However, the same product on our website was showing 0. I knew that I had +1&#8242;d it. So I go to my machine and I see (3) [...]]]></description>
			<content:encoded><![CDATA[<p>I had a situation that my boss pointed out yesterday that was very confusing.</p>
<p>He was on a competitor&#8217;s website and their +1 button was showing a count.  However, the same product on our website was showing 0.  I knew that I had +1&#8242;d it.</p>
<p>So I go to my machine and I see (3) +1&#8242;s.  I logout of Google and sure enough the 3 went away.  ?!?!?!?</p>
<p>I was so confused that I went as far as copying the +1 code from the competitor&#8217;s site and theirs showed a number and ours still did not until I logged in.  My mind was boggled.</p>
<p>Next step: ask another person in the office to create a Google Profile and +1 our product.  Bringing our +1&#8242;s up to 4.  There you have it, it showed whether I was logged in or out of Google.</p>
<p>I hope this save someone else time from searching hours for an answer.  It was ridiculously confusing.  Why is 4 the magic number?</p>]]></content:encoded>
			<wfw:commentRss>http://www.johncongdon.com/google-1-button-shows-zero-0-count-when-not-logged-into-google-account/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I am coining a new term &#8220;Arsonistic Firefighter&#8221;</title>
		<link>http://www.johncongdon.com/i-am-coining-a-new-term-arsonistic-firefighter/</link>
		<comments>http://www.johncongdon.com/i-am-coining-a-new-term-arsonistic-firefighter/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 15:55:13 +0000</pubDate>
		<dc:creator>John Congdon</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.johncongdon.com/i-am-coining-a-new-term-arsonistic-firefighter/</guid>
		<description><![CDATA[I find myself putting out fires in my code base all the time. The problem is, I set the fires to begin with.]]></description>
			<content:encoded><![CDATA[<p>I find myself putting out fires in my code base all the time.  The problem is, I set the fires to begin with.  <img src='http://www.johncongdon.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>]]></content:encoded>
			<wfw:commentRss>http://www.johncongdon.com/i-am-coining-a-new-term-arsonistic-firefighter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lazy Loading Images with JQuery</title>
		<link>http://www.johncongdon.com/lazy-loading-images-with-jquery/</link>
		<comments>http://www.johncongdon.com/lazy-loading-images-with-jquery/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 12:17:54 +0000</pubDate>
		<dc:creator>John Congdon</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.johncongdon.com/lazy-loading-images-with-jquery/</guid>
		<description><![CDATA[I am trying to speed up a website every way that I can. I decided to look into lazy loading which I have read about numerous times. Lazy loading is basically not wasting time loading images that are off the screen, or out of the viewport. This got me thinking, why do the browsers not [...]]]></description>
			<content:encoded><![CDATA[<p>I am trying to speed up a website every way that I can.  I decided to look into lazy loading which I have read about numerous times. </p>
<p>Lazy loading is basically not wasting time loading images that are off the screen, or out of the viewport.</p>
<p>This got me thinking, why do the browsers not do this for us?  They would be better equipped to handle this than a JS developer.  Especially since the browser is doing the rendering, it knows what it needs in order to display the screen.</p>]]></content:encoded>
			<wfw:commentRss>http://www.johncongdon.com/lazy-loading-images-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git Flow Bump Version Script</title>
		<link>http://www.johncongdon.com/git-flow-bump-version-script/</link>
		<comments>http://www.johncongdon.com/git-flow-bump-version-script/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 19:29:56 +0000</pubDate>
		<dc:creator>John Congdon</dc:creator>
				<category><![CDATA[post]]></category>

		<guid isPermaLink="false">http://www.johncongdon.com/?p=596</guid>
		<description><![CDATA[I wrote a simple bump version PHP script that does quite a bit of lifting for me. It maintains my version number, very basic It takes an argument on whether I need my templates updated due to CSS/JS changes. If necessary, creates a new assets directory based on version number to fix caching issues Pulls [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote a simple bump version PHP script that does quite a bit of lifting for me.</p>
<ul>
<li>It maintains my version number, very basic</li>
<li>It takes an argument on whether I need my templates updated due to CSS/JS changes.
<ul>
<li>If necessary, creates a new assets directory based on version number to fix caching issues</li>
<li>Pulls latest css/js into that directory</li>
<li>Updates template to new assets directory</li>
<li>Adds and commits new template</li>
</ul>
</li>
<li>Optional second argument overrides the version #</li>
<li>Starts a new release branch</li>
<li>Opens my RELEASE notes for editing</li>
<li>Adds and commits my release notes</li>
<li>Finishes my release branch</li>
</ul>
<p>Below is specific to my situation.  PATH_TO_TEMPLATE_FILE would need to be changed, as well as the preg_replace lines to suite your needs.</p>
<p><code><br /> <!--?php</p--> </code></p>
<p><code>if (!in_array($argv[1], array('y', 'n'))) {<br /> print "Usage: {$argv[0]} (y/n) [version]\n   y=update css/js\n   n=no update\n";<br /> exit;<br /> }</code></p>
<p><code>
<p>if ($argv[2] &amp;&amp; !preg_match('#v\d\.\d*\.\d*#', $argv[2])) {<br /> print "Invalid version (should be v\d.\d.\d)\nUsage: $0 (y/n) [version]\n   y=update css/js\n   n=no update\n";<br /> exit;<br /> }</p>
<p>chdir(dirname(__FILE__));</p>
<p>$fileName = '.Version';</p>
<p>$v = file_get_contents($fileName);<br /> $a = explode('.', $v);<br /> $minor = $a[2]+1;<br /> $v = "{$a[0]}.{$a[1]}.$minor";<br /> $fh = fopen($fileName, 'w');<br /> fputs($fh, $v);<br /> fclose($fh);<br /> `git add $fileName`;<br /> `git commit -m "Increased version to $v"`;<br /> echo "Version updated to $v and added to git\n";</p>
<p>if ($argv[1] == 'y') {<br /> $asset = "assets/v{$a[1]}.$minor";<br /> mkdir($asset);<br /> chdir($asset);<br /> `sh ../../update_css_js.sh`;<br /> `git add .`;<br /> `git commit -m "Increased css/js version to v{$a[1]}.$minor"`;</p>
<p>chdir('../../');<br /> $template = file_get_contents('PATH_TO_TEMPLATE_FILE');<br /> $template = preg_replace('#data-style="sI" href=".*?" media#', 'data-style="sI" href="/assets/v'.$a[1].'.'.$minor.'/style.css" media', $template);<br /> $template = preg_replace('#jQuery.getScript\(".*?" \+ pluginPack#', 'jQuery.getScript("/assets/v'.$a[1].'.'.$minor.'/" + pluginPack', $template);<br /> $fh = fopen('PATH_TO_TEMPLATE_FILE', 'w');<br /> fputs($fh, $template);<br /> fclose($fh);</p>
<p>`git add PATH_TO_TEMPLATE_FILE`;<br /> `git commit -m "Increased css/js version to v{$a[1]}.$minor"`;<br /> }</p>
<p>`git flow release start $v`;<br /> $date = date('Y-m-d');<br /> $command = &lt;&lt; /tmp/out &amp;&amp; mv /tmp/out RELEASE<br /> EOF;</p>
<p>system($command);<br /> system("vim RELEASE &gt; `tty`");</p>
<p>`git add RELEASE`<br /> `git commit -m "Updated RELEASE notes"`</p>
<p>system("git flow release finish $v &gt; `tty`");</p>
<p> </code></p>
<p> </p>]]></content:encoded>
			<wfw:commentRss>http://www.johncongdon.com/git-flow-bump-version-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making WAVs play in Chrome for Mac</title>
		<link>http://www.johncongdon.com/making-wavs-play-in-chrome-for-mac/</link>
		<comments>http://www.johncongdon.com/making-wavs-play-in-chrome-for-mac/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 17:04:34 +0000</pubDate>
		<dc:creator>John Congdon</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.johncongdon.com/making-wavs-play-in-chrome-for-mac/</guid>
		<description><![CDATA[I was really frustrated that our voicemail was not working in Chrome. All it said was Missing Plug-in. Through some research, I found that the voicemail system was loading the files via ajax to a PHP script. Because the extension was not .wav, Chrome was confused. How did I solve? Well, this is an internal [...]]]></description>
			<content:encoded><![CDATA[<p>I was really frustrated that our voicemail was not working in Chrome.  All it said was Missing Plug-in.</p>
<p>Through some research, I found that the voicemail system was loading the files via ajax to a PHP script.  Because the extension was not .wav, Chrome was confused.</p>
<p>How did I solve?</p>
<p>Well, this is an internal box with very little traffic and I have complete control of it.</p>
<p>I first told Apache to treat all .php.wav files as PHP.  In httpd.conf of php.conf you will see<br />
AddHandler php5-script .php</p>
<p>Add this right below it.<br />
AddHandler php5-script .php.wav</p>
<p>Restart Apache.</p>
<p>Then I symlinked the .php file to a .php.wav file.  So that they were identical.  Then in the file that pulled in this php file, I changed the filename there as well.</p>
<p>Fixed my issue.  <img src='http://www.johncongdon.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>]]></content:encoded>
			<wfw:commentRss>http://www.johncongdon.com/making-wavs-play-in-chrome-for-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Parse error:  syntax error, unexpected $end in</title>
		<link>http://www.johncongdon.com/php-parse-error-syntax-error-unexpected-end-in/</link>
		<comments>http://www.johncongdon.com/php-parse-error-syntax-error-unexpected-end-in/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 01:56:27 +0000</pubDate>
		<dc:creator>John Congdon</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.johncongdon.com/php-parse-error-syntax-error-unexpected-end-in/</guid>
		<description><![CDATA[I was receiving this error and did a quick Google search to figure out why. Most posts referred to a missing curly brace &#8220;}&#8221;. I went through about 3-4 posts when it hit me. My code was from an older server that allowed the short tag]]></description>
			<content:encoded><![CDATA[<p>I was receiving this error and did a quick Google search to figure out why.  Most posts referred to a missing curly brace &#8220;}&#8221;.  </p>
<p>I went through about 3-4 posts when it hit me.  My code was from an older server that allowed the short tag <? vs the standard <?php.</p>
<p>I know it&#8217;s not recommended, but to fix the error, I just changed php.ini.</p>
<p>Change this link from Off to On, and restart Apache.<br />
short_open_tag = On</p>]]></content:encoded>
			<wfw:commentRss>http://www.johncongdon.com/php-parse-error-syntax-error-unexpected-end-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

