<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>ChrisSchuld.com</title>
	<atom:link href="http://chrisschuld.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisschuld.com</link>
	<description>why didn't I write that down...</description>
	<pubDate>Sun, 24 Aug 2008 21:58:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>Removing Images from a WordPress Post</title>
		<link>http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/</link>
		<comments>http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 21:58:35 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=47</guid>
		<description><![CDATA[Today I ran across a unique need to remove images from a WordPress post in a specific post loop.  Because there is no way to do a &#8220;read more&#8221; excerpt while taking strict control of the raw content from the_content() I was limited to capturing and manipulating the content from PHP&#8217;s output buffer.  My solution: [...]]]></description>
			<content:encoded><![CDATA[<p>Today I ran across a unique need to remove images from a WordPress post in a specific post loop.  Because there is no way to do a &#8220;<em>read more</em>&#8221; excerpt while taking strict control of the raw content from <strong>the_content()</strong> I was limited to capturing and manipulating the content from PHP&#8217;s output buffer.  My solution: obtain the output from the_content() and remove the image tags from the post using preg_replace().</p>
<p>Here is the solution:</p>
<div class="code"><code></p>
<pre>.
.
.
&lt;?php
   ob_start();
   the_content('Read the full post',true);
   $postOutput = preg_replace('/&lt;img[^&gt;]+./','', ob_get_contents());
   ob_end_clean();
   echo $postOutput;
?&gt;
.
.
.</pre>
<p></code></div>
<p><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Removing the Password on an Apache SSL Certificate</title>
		<link>http://chrisschuld.com/2008/08/removing-the-password-on-an-apache-ssl-certificate/</link>
		<comments>http://chrisschuld.com/2008/08/removing-the-password-on-an-apache-ssl-certificate/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 23:30:33 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=40</guid>
		<description><![CDATA[Every once in a while I run across an SSL Cert with an included password.  Although the security is great automating an environment or an Apache restart with required interaction is problematic.
Here is an example of the interaction with a password included SSL Cert:
 
[root@w2 conf.d]# /etc/init.d/httpd restart
Stopping httpd:      [...]]]></description>
			<content:encoded><![CDATA[<p>Every once in a while I run across an SSL Cert with an included password.  Although the security is great automating an environment or an Apache restart with required interaction is problematic.</p>
<p>Here is an example of the interaction with a password included SSL Cert:</p>
<p><code> </code></p>
<pre>[root@w2 conf.d]# /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: Apache/2.2.8 mod_ssl/2.2.8 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide the pass phrases.

Server chrisschuld.com:443 (RSA)
Enter pass phrase:

OK: Pass Phrase Dialog successful.</pre>
<p>And here is how you remove the password:</p>
<p><code>[root@w2 conf]# openssl rsa -in chrisschuld.com.key -out chrisschuld.com.key.nopass</code></p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2008/08/removing-the-password-on-an-apache-ssl-certificate/feed/</wfw:commentRss>
		</item>
		<item>
		<title>jquery.suggest 1.2</title>
		<link>http://chrisschuld.com/2008/07/jquery-suggest-1-2/</link>
		<comments>http://chrisschuld.com/2008/07/jquery-suggest-1-2/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 18:57:12 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
		
		<category><![CDATA[PHP]]></category>

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

		<guid isPermaLink="false">http://chrisschuld.com/?p=42</guid>
		<description><![CDATA[A few people have contacted in the past about what I did to get IDs to work on Peter’s Script over at vulgarisoips.com (see the original post here).
Peter’s script works great; but for my needs I had to add an ID to the suggestion as a way to relate the selected value back to a [...]]]></description>
			<content:encoded><![CDATA[<p>A few people have contacted in the past about what I did to get IDs to work on Peter’s Script over at <a href="http://vulgarisoips.com">vulgarisoips.com</a> (<a href="http://www.vulgarisoip.com/2007/08/06/jquerysuggest-11/">see the original post here</a>).</p>
<p>Peter’s script works great; but for my needs I had to add an ID to the suggestion as a way to relate the selected value back to a dB entry.</p>
<p>First, I needed a way to tell the script where to add the results to in the DOM instead of having the script add the object automatically.  I created a new option called <strong>attachObject </strong>which allowed me to control the object in the DOM.  This allowed me to do this:</p>
<div class="code">
<pre>$('#name').suggest('/suggest/client',{dataContainer:'#cid', attachObject:'#sresults', onSelect: myFunction );</pre>
</div>
<p>Note how above I use <strong>#sresults</strong> as my object to attach the suggestion results to.  In my edits if you leave out the <strong>attachObject </strong>it will still build the &lt;ul&gt; object for you without any issues.</p>
<p>Next, I needed a way to have the ID go along with the representation values (ex. a hash-like key, value relationship).  To do this I added two other options to the script: one called <strong>dataContainer </strong>and one called dataDelimiter which I set to a default value of tab (\t).  The <strong>dataContainer </strong>is an ID of an input box which holds the database ID of the selected object in the suggest box.  The <strong>dataDelimiter </strong>is the delimiter for the payload which contains the key values pairs separated by the <strong>dataDelimiter</strong>.  (Note: the &#8220;row&#8221; delimiter is still a new line character).</p>
<p>In my XHTML I have this:</p>
<div class="code">
<pre>&lt;input type="hidden" name="cid" id="cid" value="-1"/&gt;
&lt;input type="text" id="name" size="30" maxlength="128"/&gt;
&lt;div id="suggestResults"&gt;&lt;/div&gt;</pre>
</div>
<p>(and I use the script stub above&#8230;)</p>
<p>On the server I have /suggest/client do something similar to this:</p>
<div class="code">
<pre>.
.
.
$stmt-&gt;execute();
foreach( $stmt-&gt;fetchAll(PDO::FETCH_OBJ) as $row ) {
echo "{$row-&gt;displayName}\t{$row-&gt;tmpid}\n";
}</pre>
</div>
<p><strong>NOTE:</strong> I do make an assumption your keys will always be unique; as I append a <strong>s_</strong> to the key to construct the necessary &lt;li&gt; items (need to keep them unique for DOM reasons).</p>
<p>Here is the original version of Peter&#8217;s script: <a href="http://chrisschuld.com/wp-content/uploads/2008/07/suggestoriginal.txt">Original Version 1.1 (in text)</a></p>
<p>Here are my updates (let us call it v1.2):<a href="http://chrisschuld.com/wp-content/uploads/2008/07/suggestupdated.txt">Updated Version 1.2 (in text)</a></p>
<p><em>In hindsight there are definitely better ways to do this but this solution is working great still (this idea and solution go back to August of 2007); and I will always suggest &#8220;working effectively in production&#8221; is always better than how it &#8220;should be.&#8221;</em></p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2008/07/jquery-suggest-1-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to fix the Curl Error: error setting certificate verify locations</title>
		<link>http://chrisschuld.com/2008/07/how-to-fix-the-curl-error-error-setting-certificate-verify-locations/</link>
		<comments>http://chrisschuld.com/2008/07/how-to-fix-the-curl-error-error-setting-certificate-verify-locations/#comments</comments>
		<pubDate>Sat, 12 Jul 2008 00:02:45 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
		
		<category><![CDATA[CentOS5]]></category>

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

		<guid isPermaLink="false">http://chrisschuld.com/?p=41</guid>
		<description><![CDATA[Today I had a new server running CentOS5 have trouble with a known good authorize.net library using curl.  It was producing the following error:
error setting certificate verify locations: CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none
After some research I found it was based on the inability for the apache user to access the ca-bundle.crt file.  You will find [...]]]></description>
			<content:encoded><![CDATA[<p>Today I had a new server running CentOS5 have trouble with a known good authorize.net library using curl.  It was producing the following error:</p>
<pre><code>error setting certificate verify locations: CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none</code></pre>
<p>After some research I found it was based on the inability for the apache user to access the ca-bundle.crt file.  You will find solutions on the web suggesting adding <em>curl_setopt($link, CURLOPT_SSL_VERIFYPEER, FALSE);</em> to your script to disable the peer verification &#8212; I suggest you <strong>not</strong> do this and simply fix the permissions for your CA file.</p>
<p>Execute this:</p>
<pre><code>/bin/chmod 755 /etc/pki/tls/certs</code></pre>
<p>Solved!</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2008/07/how-to-fix-the-curl-error-error-setting-certificate-verify-locations/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Cellpadding and Cellspacing in CSS (part 2)</title>
		<link>http://chrisschuld.com/2008/06/cellpadding-and-cellspacing-in-css-part-2/</link>
		<comments>http://chrisschuld.com/2008/06/cellpadding-and-cellspacing-in-css-part-2/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 16:40:55 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
		
		<category><![CDATA[CSS]]></category>

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

		<guid isPermaLink="false">http://chrisschuld.com/?p=39</guid>
		<description><![CDATA[Here is a follow up to the cellpadding and cellspacing post I made a while back.  The cellpadding and cellspacing can be completely controlled in CSS.  I realized today; I spoke only about collapsing the borders and not creating spacing (or the equivalent of cellspacing equal to something other than 0).

Here are some [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a follow up to the <a href="http://chrisschuld.com/2008/04/cellpadding-and-cellspacing-in-css/">cellpadding and cellspacing post</a> I made a while back.  The cellpadding and cellspacing can be completely controlled in CSS.  I realized today; I spoke only about collapsing the borders and not creating spacing (or the equivalent of cellspacing equal to something other than 0).<br />
<br/><br />
Here are some HTML4 and CSS/XHTML equivalents:</p>
<p><br/><br />
<strong>HTML4</strong>: <code>&lt;table cellspacing="0" cellpadding="0"&gt;</code><br />
<strong> CSS</strong>: <code>table { border-collapse: collapse; } </code><code>table tr td {</code><code> padding: 0px; }</code></p>
<p><br/><br />
<strong>HTML4</strong>: <code>&lt;table cellspacing="2" cellpadding="0"&gt;</code><br />
<strong> CSS</strong>: <code>table { border-collapse: separate; border-spacing: 2px; } </code><code>table tr td {</code><code> padding: 0px; }</code></p>
<p><br/><br />
<strong>HTML4</strong>: <code>&lt;table cellspacing="2" cellpadding="2"&gt;</code><br />
<strong> CSS</strong>: <code>table { border-collapse: separate; border-spacing: 2px; } table tr td {</code><code> padding: 2px; }</code></p>
<p><br/><br />
You may want to place these definitions into a CSS class so you can quickly reference your table definition in XHTML:</p>
<p><br/><br />
<strong>CSS:</strong></p>
<p><code>table.info { border: 1px solid #ccc; border-collapse: separate; border-spacing: 2px; }<br />
table.info tr th { font-weight: normal; text-align: right; }<br />
table.info tr td { font-weight: bold; padding: 2px; }</code></p>
<p><br/><br/><br />
<strong>HTML:</strong></p>
<p><code>&lt;table class="info"&gt;<br />
&lt;tr&gt;&lt;th&gt;First Name:&lt;/th&gt;&lt;td&gt;Chris&lt;/td&gt;&lt;/tr&gt;<br />
</code><code>&lt;tr&gt;&lt;th&gt;Last Name:&lt;/th&gt;&lt;td&gt;Schuld&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;</code></p>
<p><br/><br />
Here is what it will look like:</p>
<table style="border: 1px solid #ccc; border-collapse: separate; border-spacing: 2px;" border="0">
<tbody>
<tr>
<th style="font-weight: normal;text-align: right;">First Name:</th>
<td style="font-weight: bold; padding: 2px;">Chris</td>
</tr>
<tr>
<th style="font-weight: normal;text-align: right;">Last Name:</th>
<td style="font-weight: bold; padding: 2px;">Schuld</td>
</tr>
</tbody>
</table>
<p><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2008/06/cellpadding-and-cellspacing-in-css-part-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Finding symbolic links in linux</title>
		<link>http://chrisschuld.com/2008/05/finding-symbolic-links-in-linux/</link>
		<comments>http://chrisschuld.com/2008/05/finding-symbolic-links-in-linux/#comments</comments>
		<pubDate>Tue, 20 May 2008 22:46:24 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=38</guid>
		<description><![CDATA[I always have to use the man page of find to remember this &#8212; hopefully writing it down will help.  Here is how you find all of the symbolic links in a linux path:
find / -type l

]]></description>
			<content:encoded><![CDATA[<p>I always have to use the man page of find to remember this &#8212; hopefully writing it down will help.  Here is how you find all of the symbolic links in a linux path:</p>
<pre style="margin: 0em;">find / -type l
</pre>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2008/05/finding-symbolic-links-in-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>pdftk for CentOS5 (AccessPDF for CentOS 5)</title>
		<link>http://chrisschuld.com/2008/05/pdftk-for-centos5-accesspdf/</link>
		<comments>http://chrisschuld.com/2008/05/pdftk-for-centos5-accesspdf/#comments</comments>
		<pubDate>Wed, 07 May 2008 17:54:02 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
		
		<category><![CDATA[CentOS5]]></category>

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

		<guid isPermaLink="false">http://chrisschuld.com/?p=35</guid>
		<description><![CDATA[
Today I ran across a project need for pdftk (AccessPDF) for CentOS5.  Adding pdftk to CentOS5 was more of struggle than I would have guessed because it was not available in most of the repos I normally use.  Google did not yield any pre-build RPM files for pdftk for CentOS5 so I built them for [...]]]></description>
			<content:encoded><![CDATA[<p>
Today I ran across a project need for pdftk (<a title="AccessPDF" href="http://www.accesspdf.com/" target="_blank">AccessPDF</a>) for <a title="CentOS" href="http://centos.org/" target="_blank">CentOS5</a>.  Adding pdftk to CentOS5 was more of struggle than I would have guessed because it was not available in most of the repos I normally use.  Google did not yield any pre-build RPM files for pdftk for CentOS5 so I built them for both 32bit and 64bit.
</p>
<p>
You can access it here <a href="http://chrisschuld.com/wp-content/uploads/2008/05/pdftk-112-1i386.rpm">pdftk-112-1i386.rpm (for CentOS5 32bit)</a> and here <a href="http://chrisschuld.com/wp-content/uploads/2008/05/pdftk-112-1x86_64.rpm">pdftk-112-1&#215;86_64.rpm (for CentOS5 64bit)</a>.
</p>
<p><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2008/05/pdftk-for-centos5-accesspdf/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Cellpadding and Cellspacing in CSS</title>
		<link>http://chrisschuld.com/2008/04/cellpadding-and-cellspacing-in-css/</link>
		<comments>http://chrisschuld.com/2008/04/cellpadding-and-cellspacing-in-css/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 18:01:27 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=32</guid>
		<description><![CDATA[Those of us who learned HTML early in the game are familiar with HTML table parameters cellpadding and cellspacing.  In a positive way they were deprecated in HTML4 so you must use CSS to control the padding and spacing now.
Here is how you do it in CSS:
 border-collapse: collapse;
A nice line to place in your [...]]]></description>
			<content:encoded><![CDATA[<p>Those of us who learned HTML early in the game are familiar with HTML table parameters <strong>cellpadding</strong> and <strong>cellspacing</strong>.  In a positive way they were deprecated in HTML4 so you must use CSS to control the padding and spacing now.</p>
<p>Here is how you do it in CSS:</p>
<p><code> border-collapse: collapse;</code></p>
<p>A nice line to place in your global CSS file (if you use one) is:</p>
<p><code>table { border-collapse: collapse; }</code></p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2008/04/cellpadding-and-cellspacing-in-css/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Common Web Banner Sizes</title>
		<link>http://chrisschuld.com/2008/01/common-web-banner-sizes/</link>
		<comments>http://chrisschuld.com/2008/01/common-web-banner-sizes/#comments</comments>
		<pubDate>Thu, 24 Jan 2008 00:01:27 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/2008/01/common-web-banner-sizes/</guid>
		<description><![CDATA[I never can find this information when I need it so I am writing it down:
Here are the common web banner sizes:

Banner - 468px X 60px
Leaderboard - 728px X 90px
Skyscraper - 120px X 600px
Wide Skyscraper - 160px X 600px
Large Rectangle - 336px X 280px
Rectangle - 300px X 250px
Square - 250px X 250px
Small Square - 200px [...]]]></description>
			<content:encoded><![CDATA[<p>I never can find this information when I need it so I am writing it down:</p>
<p>Here are the common web banner sizes:</p>
<ul>
<li>Banner - 468px X 60px</li>
<li>Leaderboard - 728px X 90px</li>
<li>Skyscraper - 120px X 600px</li>
<li>Wide Skyscraper - 160px X 600px</li>
<li>Large Rectangle - 336px X 280px</li>
<li>Rectangle - 300px X 250px</li>
<li>Square - 250px X 250px</li>
<li>Small Square - 200px X 200px</li>
</ul>
<p><small><em>I took the name of these sizes from google as they were kind enough to name them</em></small></p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2008/01/common-web-banner-sizes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Search and Replace in Files</title>
		<link>http://chrisschuld.com/2008/01/search-and-replace-in-files/</link>
		<comments>http://chrisschuld.com/2008/01/search-and-replace-in-files/#comments</comments>
		<pubDate>Tue, 15 Jan 2008 01:36:46 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
		
		<category><![CDATA[Linux]]></category>

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

		<category><![CDATA[Regular Expressions (regex)]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/2008/01/search-and-replace-in-files/</guid>
		<description><![CDATA[Here is how to do a search and replace using Perl regex over a set of files:

perl -pi -e &#8217;s/source/destination/g&#8217; *.ext

]]></description>
			<content:encoded><![CDATA[<p>Here is how to do a search and replace using Perl regex over a set of files:<br />
<br/><br/></p>
<div class="code">perl -pi -e &#8217;s/source/destination/g&#8217; *.ext</div>
<p><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2008/01/search-and-replace-in-files/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
