<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>The Baptiste Family</title>
	
	<link>http://baptiste.us</link>
	<description>News and Thoughts from the Baptiste's</description>
	<pubDate>Tue, 17 Jun 2008 12:39:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/TheBaptisteFamily" type="application/rss+xml" /><feedburner:browserFriendly>This is an XML content feed. It is intended to be viewed in a newsreader or syndicated to another site, subject to copyright and fair use.</feedburner:browserFriendly><item>
		<title>A New Home for Xinah4WP</title>
		<link>http://baptiste.us/2007/01/29/a-new-home-for-xinah4wp/</link>
		<comments>http://baptiste.us/2007/01/29/a-new-home-for-xinah4wp/#comments</comments>
		<pubDate>Mon, 29 Jan 2007 23:48:45 +0000</pubDate>
		<dc:creator>Mike Baptiste</dc:creator>
		
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://baptiste.us/2007/01/29/a-new-home-for-xinah4wp/</guid>
		<description><![CDATA[This site was originally meant to be a place to share family news with an update or two about my WordPress plugins, but the plugins have quickly taken it over. So I&#8217;ve decided to move my plugins to their own site with integrated forums, making it easier to track questions and also to find news [...]]]></description>
			<content:encoded><![CDATA[<p>This site was originally meant to be a place to share family news with an update or two about my WordPress plugins, but the plugins have quickly taken it over. So I&#8217;ve decided to move my plugins to their own site with <a href="http://plugins.baptiste.us/forums/">integrated forums</a>, making it easier to track questions and also to find news about each plugin where they will have their own sections and forums.
</p>
<p>So update your bookmarks and links. <a href="http://plugins.baptiste.us/plugins/xinha4wp/">Xinha4WP</a> and any other plugins I write can now be found at:
</p>
<p align="center"><a href="http://plugins.baptiste.us"><strong>http://plugins.baptiste.us</strong></a>
</p>
<p> Hopefully that means this site will return to it&#8217;s original purpose - sharing family news (when I can find the time to post to it!) and not confusing relatives who see Xinha and think I learned a new language!
</p>
<p>I&#8217;ve transferred over all the Xinha posts and pages to the new site. However, I&#8217;m going to leave them here as well along with all the comments that have been posted for future reference. I&#8217;ll just be closing the comments and pointing people to the new site.&nbsp;
</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=ENCjF2RZ"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=ENCjF2RZ" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=NjOB3ZgU"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=NjOB3ZgU" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=PtMi83y9"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=PtMi83y9" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://baptiste.us/2007/01/29/a-new-home-for-xinah4wp/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Xinha4WP and WordPress 2.1 - WORKS</title>
		<link>http://baptiste.us/2007/01/24/xinha4wp-and-wordpress-21-guess-not/</link>
		<comments>http://baptiste.us/2007/01/24/xinha4wp-and-wordpress-21-guess-not/#comments</comments>
		<pubDate>Wed, 24 Jan 2007 21:03:46 +0000</pubDate>
		<dc:creator>Mike Baptiste</dc:creator>
		
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://baptiste.us/2007/01/24/xinha4wp-and-wordpress-21-guess-not/</guid>
		<description><![CDATA[***NOTICE***

 All plugin information has moved to http://plugins.baptiste.us
  Comments are now closed. Please use the new forums instead

 Now that WordPress 2.1 is out, I&#8217;ve had a couple of people note that Xinha4WP breaks after the upgrade. I&#8217;m knee deep in the development of another plugin so I haven&#8217;t had time to setup a [...]]]></description>
			<content:encoded><![CDATA[<p align="center"><font size="3"><strong>***NOTICE***</strong></font>
</p>
<p align="center"> All plugin information has moved to <a href="http://plugins.baptiste.us/"><strong>http://plugins.baptiste.us</strong></a>
  <br /><strong>Comments are now closed. Please <a href="http://plugins.baptiste.us/forums/">use the new forums</a> instead</strong>
</p>
<p> Now that WordPress 2.1 is out, I&#8217;ve had a couple of people note that Xinha4WP breaks after the upgrade. <del>I&#8217;m knee deep in the development of another plugin so I haven&#8217;t had time to setup a 2.1 text environment and work on it. I hope to get a chance to do that this week. So if you rely on Xinha4WP - you may want to hold off on a WordPress 2.1 upgrade for now. I had checked the know gotchas for 2.1 and it didn&#8217;t look like we would hit any. Guess we did.</del>
</p>
<p>OK - I got WordPress 2.1 installed and Xinha4WP worked right out of the box. If you are having trouble with Cinha4WP after upgrading to WordPress 2.1, PLEASE post a comment with as much information as you can collect. Right now, it seems to be working fine for me so I can&#8217;t really tell what might be going on. I&#8217;ve only gotten two reports of problems so I think those may be separate issues.&nbsp;
</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=5EX99tfR"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=5EX99tfR" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=iWyg7PNY"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=iWyg7PNY" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=ERr4nG71"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=ERr4nG71" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://baptiste.us/2007/01/24/xinha4wp-and-wordpress-21-guess-not/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WordPress 2.1 and Xinha4WP</title>
		<link>http://baptiste.us/2006/12/14/wordpress-21-and-xinha4wp/</link>
		<comments>http://baptiste.us/2006/12/14/wordpress-21-and-xinha4wp/#comments</comments>
		<pubDate>Thu, 14 Dec 2006 13:24:16 +0000</pubDate>
		<dc:creator>Mike Baptiste</dc:creator>
		
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://baptiste.us/2006/12/14/wordpress-21-and-xinha4wp/</guid>
		<description><![CDATA[***NOTICE***

 All plugin information has moved to http://plugins.baptiste.us
  Comments are now closed. Please use the new forums instead
 WordPress 2.1 is coming and there are some changes for plugins to deal with. Looking at what is changing and the Xinha4WP code, I don&#8217;t see any reason why Xinha4WP would not work on WordPress 2.1. [...]]]></description>
			<content:encoded><![CDATA[<p align="center"><font size="3"><strong>***NOTICE***</strong></font>
</p>
<p align="center"> All plugin information has moved to <a href="http://plugins.baptiste.us/"><strong>http://plugins.baptiste.us</strong></a>
  <br /><strong>Comments are now closed. Please <a href="http://plugins.baptiste.us/forums/">use the new forums</a> instead</strong>
</p> WordPress 2.1 is coming and there are <a href="http://wordpress.org/development/2006/12/naughty-or-nice/">some changes for plugins to deal with</a>. Looking at what is changing and the <a href="http://baptiste.us/plugins/xinha4wp/">Xinha4WP</a> code, I don&#8217;t see any reason why Xinha4WP would not work on WordPress 2.1. I haven&#8217;t had a chance to install the 2.1 Alpha release and test yet (<a href="http://onthepitch.org/2006/12/14/spam-floods/">too busy fighting the spam floods</a>), but I&#8217;m 99% sure it&#8217;ll be good to go. If any of you happen to be playing with 2.1, let me know if Xinha4WP works for you. I&#8217;d like to <a href="http://codex.wordpress.org/User:Spencerp/2.1alpha3_Plugin_Compatibility">get it listed on the compatible page</a>. <div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=CrBtayVu"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=CrBtayVu" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=ryhNfeWq"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=ryhNfeWq" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=rROfQAhD"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=rROfQAhD" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://baptiste.us/2006/12/14/wordpress-21-and-xinha4wp/feed/</wfw:commentRss>
		</item>
		<item>
		<title>G2Image and Xinha4WP</title>
		<link>http://baptiste.us/2006/12/11/g2image-and-xinha4wp/</link>
		<comments>http://baptiste.us/2006/12/11/g2image-and-xinha4wp/#comments</comments>
		<pubDate>Mon, 11 Dec 2006 15:24:32 +0000</pubDate>
		<dc:creator>Mike Baptiste</dc:creator>
		
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://baptiste.us/2006/12/11/g2image-and-xinha4wp/</guid>
		<description><![CDATA[***NOTICE***

 All plugin information has moved to http://plugins.baptiste.us
  Comments are now closed. Please use the new forums instead

I&#8217;m working on a site that will likely have pictures in a lot of posts. I&#8217;ve installed Gallery2 and the WPG2 WordPress plugin, but what really makes WPG2 useful is the ability to include gallery pictures with [...]]]></description>
			<content:encoded><![CDATA[<p align="center"><font size="3"><strong>***NOTICE***</strong></font>
</p>
<p align="center"> All plugin information has moved to <a href="http://plugins.baptiste.us/"><strong>http://plugins.baptiste.us</strong></a>
  <br /><strong>Comments are now closed. Please <a href="http://plugins.baptiste.us/forums/">use the new forums</a> instead</strong>
</p>
<p>I&#8217;m working on a site that will likely have pictures in a lot of posts. I&#8217;ve installed <a href="http://gallery.menalto.com/">Gallery2</a> and the <a href="http://wpg2.galleryembedded.com/">WPG2 WordPress plugin</a>, but what really makes WPG2 useful is the ability to include gallery pictures with <a href="http://g2image.steffensenfamily.com/index.php?title=Main_Page">G2Image</a>. WPG2 includes the TinyMCE G2Image plugin by default, so you lose that when you use <a href="http://baptiste.us/plugins/xinha4wp">Xinha4WP</a>.
</p>
<p>G2Image was recently setup to be generic so it could be used in other applications. Since Xinha has such a robust plugin architecture, it shouldn&#8217;t be too hard to splice G2Image in. The tricky part won&#8217;t be inserting the WPG2 tags, it&#8217;ll be writing a filter so you SEE the images while editing, yet still save just the WPG2 tag. If I can&#8217;t get that going right away I may use G2Image to insert the actual &lt;img src&gt; HTML. We&#8217;ll see - my JavaScript is pretty rusty.&nbsp;
</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=kLDeTjZf"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=kLDeTjZf" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=UdvPTopD"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=UdvPTopD" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=10EQMDw4"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=10EQMDw4" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://baptiste.us/2006/12/11/g2image-and-xinha4wp/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Blank Pages When Posting Comments in WordPress?</title>
		<link>http://baptiste.us/2006/12/11/blank-pages-when-posting-comments-in-wordpress/</link>
		<comments>http://baptiste.us/2006/12/11/blank-pages-when-posting-comments-in-wordpress/#comments</comments>
		<pubDate>Mon, 11 Dec 2006 15:09:49 +0000</pubDate>
		<dc:creator>Mike Baptiste</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://baptiste.us/2006/12/11/blank-pages-when-posting-comments-in-wordpress/</guid>
		<description><![CDATA[I just resolved a problem on my WordPress blog where anytime a person posted a comment (logged in or not), they got a blank page. I tried all sorts of stuff to fix it. Turned off all the plugins, changed themes, you name it. I quickly discovered that when the comment form was submitted, none [...]]]></description>
			<content:encoded><![CDATA[<p>I just resolved a problem on my WordPress blog where anytime a person posted a comment (logged in or not), they got a blank page. I tried all sorts of stuff to fix it. Turned off all the plugins, changed themes, you name it. I quickly discovered that when the comment form was submitted, none of the form variables were available in the wp-comments-post.php script. When this happens, the post can&#8217;t be queried from the DB and you fail on Line 11 (comment_id_not_found). A quick bit of debug code and I found NONE of the form variables were in $_POST. Not good.
</p>
<p>I figured maybe something was in the theme headers, etc so I created a simple form with a couple variables that would&nbsp; post to wp-comment-post.php and it worked. Hmm. So I tried the other angle and created a comment post test script that dump the form variables and called it from my theme form file. The variables disappeared. Any theme, the variables vanished in my test script.
</p>
<p>This had me totally confused. Why couldn&#8217;t I get basic form data into my form. Google returned a variety of ideas, but none that worked. Finally, I stumbled across a ticket for WordPress searching for &#8216;Blank Page on comments&#8217; and someone had the same problem I did and for the same reason. It&#8217;s a doozy.
</p>
<p>I&#8217;m one of those people who find the &#8216;www&#8217; in URLs redundant. All my sites support them both, but from an SEO point of view, I&#8217;ve started ensuring www.mydomain.com permanently redirects to mydomain.com. When I setup this blog a few years ago, I had put in &#8216;www.baptiste.us&#8217; in the blog configuration. A few months ago, I added a permanent redirect for www.baptiste.us to always go to baptiste.us. Everything worked as far as I could tell and since I don&#8217;t comment on my blog except to respond to new comments, well&#8230; That redirect and the blog settings BROKE the comments and I didn&#8217;t realize it for quite a while (I just figured nobody had anything to say <img src='http://baptiste.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ). Here&#8217;s why.
</p>
<p>In WordPress theme comment files, the form &#8216;action&#8217; variable includes the site url in front of wp-comments-post.php. So for my comment form, the action was set to http://www.baptiste.us/wp-comments-post.php, regardless of the theme I used. The problem is, the Permanent Redirect from www.baptiste.us to baptiste.us WIPES OUT the form variables, even though everything else seems to work. Silently. Now this may be due to session conflicts, etc, I&#8217;m not 100% sure.
</p>
<p>But the solution was easy. I took out the &#8216;www.&#8217; in my blog&#8217;s config so comment posts went to the &#8216;baptiste.us&#8217; domain right away instead of www.baptiste.us and comments started working again.
</p>
<p>Moral of the story - if you have a permanent redirect setup for your WordPress blog, be sure the <em>desired</em> domain is the domain set in the WordPress config. If you want everyone to end up at www.mydomain.com, you better have the &#8216;www&#8217; in your WordPress config. If you want the www to always go away, make sure it&#8217;s not in your config either. Hopefully this post saves someone else the time and aggravation if they stumble into this trap.
  <br />
</p>
<p>So 3 days and nights of debugging on and off and all it took was updating two config variables in WordPress. Problem solved <img src='http://baptiste.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> 
  <br />
</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=yf3XJTJV"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=yf3XJTJV" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=4YZiZlpL"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=4YZiZlpL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=pesfSsSA"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=pesfSsSA" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://baptiste.us/2006/12/11/blank-pages-when-posting-comments-in-wordpress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Comments Fixed</title>
		<link>http://baptiste.us/2006/12/11/comments-fixed/</link>
		<comments>http://baptiste.us/2006/12/11/comments-fixed/#comments</comments>
		<pubDate>Mon, 11 Dec 2006 14:56:37 +0000</pubDate>
		<dc:creator>Mike Baptiste</dc:creator>
		
		<category><![CDATA[Family News]]></category>

		<guid isPermaLink="false">http://baptiste.us/2006/12/11/comments-fixed/</guid>
		<description><![CDATA[I apologize for comments being knocked out on the site for so long. I&#8217;ve fixed the problem - it was pretty obscure. ]]></description>
			<content:encoded><![CDATA[I apologize for comments being knocked out on the site for so long. I&#8217;ve fixed the problem - it was pretty obscure. <div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=zOvJkiVe"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=zOvJkiVe" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=AeeUVG0H"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=AeeUVG0H" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=fWQEHejk"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=fWQEHejk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://baptiste.us/2006/12/11/comments-fixed/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Xinha4WP Beta Available - v1.2b</title>
		<link>http://baptiste.us/2006/11/16/xinha4wp-beta-available-v12b/</link>
		<comments>http://baptiste.us/2006/11/16/xinha4wp-beta-available-v12b/#comments</comments>
		<pubDate>Thu, 16 Nov 2006 15:46:49 +0000</pubDate>
		<dc:creator>Mike Baptiste</dc:creator>
		
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://www.baptiste.us/?p=82</guid>
		<description><![CDATA[***NOTICE***

 All plugin information has moved to http://plugins.baptiste.us
  Comments are now closed. Please use the new forums instead

I&#8217;ve been working on the next release of Xinha 4 WordPress over the past month and figured I&#8217;d release a beta version for folks to try out. I&#8217;ve been using this beta for the past few weeks [...]]]></description>
			<content:encoded><![CDATA[<p align="center"><font size="3"><strong>***NOTICE***</strong></font>
</p>
<p align="center"> All plugin information has moved to <a href="http://plugins.baptiste.us/"><strong>http://plugins.baptiste.us</strong></a>
  <br /><strong>Comments are now closed. Please <a href="http://plugins.baptiste.us/forums/">use the new forums</a> instead</strong>
</p>
<p>I&#8217;ve been working on the next release of Xinha 4 WordPress over the past month and figured I&#8217;d release a beta version for folks to try out. I&#8217;ve been using this beta for the past few weeks on my sites and it has been working well. I still have a few things to add and fix before a final version is released.
</p>
<p>You can download the beta version in <a href="http://baptiste.us/wp-content/downloads/xinha4wp_12b.zip">zip</a> and <a href="http://baptiste.us/wp-content/downloads/xinha4wp_12b.tar.gz">tar</a> format.&nbsp;
</p>
<p>Installation is easy:
</p>
<ol>
  <li>Move your existing xinha4wp plugin directory to something like xinha4wp_old (just in case)</li>
  <li>Unzip/tar the new version into place (/wp-content/plugins/xinha4wp)</li>
  <li>Open the Xinha4WP options screen and look for a successful upgrade message.</li>
  <li>Clear your browser&#8217;s disk cache.&nbsp;</li>
</ol> <span id="more-82"></span>
<p>Here are some important notes about this version:
</p>
<ul>
  <li>It contains a much improved version of Xinha from the Oct 30th nightly build.</li>
  <li>Works with both WordPress and WordPress-MU.
  <br /></li>
  <li>The HTML cleanup feature has a number of new filters you can use. I added options allowing you to set the defaults for each filter (on or off) in the prompt, but I haven&#8217;t been able to get them to work. So for now, all but one of the filters will be enabled when you cleanup by default (you can manually enable/disable them during each check)</li>
  <li>The Image Manager plugin now allows the setting of a custom directory name. The directory <strong>MUST</strong> be a subdirectory of wp-content. It will default to the uploads directory, but this can be overridden in the Post or Comments settings screen at the bottom. If you used an old version of xinha4wp and had the images going into /wp-content/images you <strong>must</strong> set the directory field to &#8216;images&#8217;</li>
  <li><strong>IMPORTANT!</strong> After you install the beta, open the Xinha4WP options screen to upgrade the database schema. Once you do this, follow the instructions in the update message to clear your browsers disk cache. Firefox was caching the old Xinha javascript files, even on restarts, which cause a lot of trouble. One clear way to know if the &#8216;new&#8217; Xinha is being loaded is the HTML Cleanup button. If you still see the old &#8216;W3C&#8217; button, the old code is being loaded. If you see a yellow broom button, the new code is being loaded.</li>
  <li>This version includes a new HTML generation engine which should be disabled by default. I find it generates very clean HTML, making HTML Cleanup rarely necessary. However it has a couple of quirks like including BR tags at the end of paragraphs.</li>
  <li>Xinha4WP no longer checks for Text Control plugin. If your post has linefeeds in it, WordPress will convert them to hard line breaks. The HTML Cleanup button will remove all these extra line feeds, so if you cut and paste often, one HTML Cleanup per post is suggested.</li>
  <li>The new form spellcheck feature in Firefox 2.0 WILL highlight misspelled words. However, Xinha has a context menu plugin and if it is enabled, you won&#8217;t be able to correct spelling with Firefox since Xinha intercepts the right mouse click for its own menu. Use Xinha&#8217;s spell check feature instead.</li>
  <li>It doesn&#8217;t break EventCalendar3 like it used to.
  <br /></li>
</ul>
<p>This version will work with WordPress v1.5.x and v2.0.3 or higher as well as WordPress-MU 1.0.x. If you use this with WordPress v2 or WordPress-MU, you MUST disable the Rich Text Edit option in your global options AND the Admin profile. Otherwise you will see both WYSIWYG editors.
  <br />
</p>
<p>Please post any problems with the beta you have here instead of the main Xinha4WP page.
</p>
<p><strong>NOTE</strong> Poor coders like myself always appreciate donations to keep the tumbler full!
</p>
<div style="text-align: center;">
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="text-align: center;">
    <input name="cmd" value="_s-xclick" type="hidden" />
    <input src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" name="submit" alt="Make payments with PayPal - its fast, free and secure!" border="0" type="image" />
    <input name="encrypted" value="-----BEGIN PKCS7-----MIIHbwYJKoZIhvcNAQcEoIIHYDCCB1wCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYAkOIN5B5FVk4JaD4XEsX2lSvHHDdjQz2ts33VI9WWOd6dN9riiL6dA8Ng6F/yttdziYVnTrLVw7DUMr0FV42tXUnU8B4j0riGCwMPI1vVdEiNGe2ZYIVq2nm6F6OjdFULj1BYQhxEC9fQB7QTJtkF9x3NRaB4J5r8KclERYEHdJjELMAkGBSsOAwIaBQAwgewGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIRPRQONuSx5+Agcgzf5UrkfvSYKK27Y+yoNKEGeR9VuymrGgMST2slxVN58Vcvu13EKDqPgvvoHc+FjakENxxJY0cUMjd4zl81JX8UGFcqqQULiHmTqKqqQBlqkdpPsfKnxmIMmvdXVQ1ZzkuJeb6ixFLE/lLkF8id3yYXCpB5/W22lfGkZeI3fDZPzSUulwnduB76o4zJh7VpEAgOo/YCWU+WRMf0Wdw/qey1jL7WZqG+Mu781JgEeHEy5lSDIULd2ZsRv+M086YvWzbchGaXIa/0aCCA4cwggODMIIC7KADAgECAgEAMA0GCSqGSIb3DQEBBQUAMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbTAeFw0wNDAyMTMxMDEzMTVaFw0zNTAyMTMxMDEzMTVaMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAwUdO3fxEzEtcnI7ZKZL412XvZPugoni7i7D7prCe0AtaHTc97CYgm7NsAtJyxNLixmhLV8pyIEaiHXWAh8fPKW+R017+EmXrr9EaquPmsVvTywAAE1PMNOKqo2kl4Gxiz9zZqIajOm1fZGWcGS0f5JQ2kBqNbvbg2/Za+GJ/qwUCAwEAAaOB7jCB6zAdBgNVHQ4EFgQUlp98u8ZvF71ZP1LXChvsENZklGswgbsGA1UdIwSBszCBsIAUlp98u8ZvF71ZP1LXChvsENZklGuhgZSkgZEwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAgV86VpqAWuXvX6Oro4qJ1tYVIT5DgWpE692Ag422H7yRIr/9j/iKG4Thia/Oflx4TdL+IFJBAyPK9v6zZNZtBgPBynXb048hsP16l2vi0k5Q2JKiPDsEfBhGI+HnxLXEaUWAcVfCsQFvd2A1sxRr67ip5y2wwBelUecP3AjJ+YcxggGaMIIBlgIBATCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA1MTAyMzIyNDYxMlowIwYJKoZIhvcNAQkEMRYEFJ1XjytV4syMblk+7KV8++5rl8t2MA0GCSqGSIb3DQEBAQUABIGAMSbZQ7ocIO7eXnBpaI2O2uGMGWoAEQT7AC2zMaAk07WDcsTq2VGwIrPfeQ3g7MO2F5bAA90y/sqP7mqgWwPRUQotfSHeABmOtUF6j2ghVqPWWtBX6Lq+HerMnSQzsL7VNmOXOKzn3gpLjKUvWziLUlKaB1Rwq8hCN+p6cYTpPyQ=-----END PKCS7-----" type="hidden" />
  </form>
</div><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=a1sjwdLN"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=a1sjwdLN" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=EIEq9bfV"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=EIEq9bfV" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=gobAK7fP"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=gobAK7fP" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://baptiste.us/2006/11/16/xinha4wp-beta-available-v12b/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Optimizing LandingSites for WordPress</title>
		<link>http://baptiste.us/2006/06/06/optimizing-landingsites-for-wordpress/</link>
		<comments>http://baptiste.us/2006/06/06/optimizing-landingsites-for-wordpress/#comments</comments>
		<pubDate>Tue, 06 Jun 2006 07:33:34 +0000</pubDate>
		<dc:creator>Mike Baptiste</dc:creator>
		
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://www.baptiste.us/2006/06/06/optimizing-landingsites-for-wordpress/</guid>
		<description><![CDATA[A new WordPress plugin came out recently that allows people referred to your site from search engines to see a list of related posts in case the original post wasn't what they wanted.]]></description>
			<content:encoded><![CDATA[<p align="center"><font size="3"><strong>***NOTICE***</strong></font>
</p>
<p align="center"> All plugin information has moved to <a href="http://plugins.baptiste.us/"><strong>http://plugins.baptiste.us</strong></a>
  <br /><strong>Comments are now closed. Please <a href="http://plugins.baptiste.us/forums/">use the new forums</a> instead</strong>
</p>
<p>A new WordPress plugin called <a target="_blank" href="http://theundersigned.net/2006/06/landing-sites-11/">LandingSites</a> came out recently that allows people referred to your site from search engines to see a list of related posts in case the original post wasn&#8217;t what they wanted. This is a great feature that has existed on some other CMS products for a while.
</p>
<p>If a user searches for something and clicks on a link to your WordPress site, now you can present them with the linked post and also a list of other posts that are related. This is very similar in functionality to the <a target="_blank" href="http://www.w-a-s-a-b-i.com/archives/2006/02/02/wordpress-related-entries-20/">Related Entries Plugin</a>, except it only takes effect if a user was referred from a search engine. This allows you to only take the related search hit for referred users instead of every user. It also lets you greet new users with a friendly message about what they were searching for and what else might interest them based on their search terms.
</p>
<p>The plugin installed just fine and I was able to add it to my theme fairly easily. However, the code was loaded with substr() calls and other slow functions. A lot of processing was being done, even if a user was not referred to your site (i.e. they were just browsing around). Instead of using a cascade of if(substr = searchengine) calls, I implemented a match array keyed off known search engine hosts that returns the query delimiter immediately. I also condensed the code into a few functions to remove redundant code.
</p>
<p>The updated code can be <a href="http://baptiste.us/wp-content/downloads/landingsites131.zip">downloaded here</a>. <del>Note that if you run WordPress 2.0, uncomment the bottom section where ls_install is. WP 1.5 users need to execute the SQL manually (I may add a WP 1.5 init routine if the spirit moves me). I need to add a version check to make this 100% portable, but I&#8217;m already nodding off&#8230; I may update it tomorrow to add the portability check.</del>
</p>
<p>Enjoy!
</p>
<p><strong>UPDATE:</strong> Now that I got a little sleep, I&#8217;ve updated things a bit to keep me from being embarassed for being lazy! The biggest change is the implimentation of static variables for the terms, delimiter, and referer. Since we call these routines multiple times in template code, it was redundant. Now using a static variable, the values are maintained during a page&#8217;s processing which eliminates a lot of processing. We process once for each value and reuse it every time we are called. I did not cache the database query since I can&#8217;t imagine why you would need to grab the related posts twice in one page.
</p>
<p>I also made the DB schema update portable for WP 1.5 and 2.0 so the schema will be updated for you automagically even if you aren&#8217;t using WP 2.0.x. Anyone with a WP 1.2 install, please check that it works as well. I used a little trickery and a stored option to ensure the DB schema is only checked during admin interface page views, not main page views and can be checked quickly without a DB query (since options are cached already)
</p>
<p>I fixed the problem where SQL queries failed if the post ID wasn&#8217;t available (i.e. you used it on a main page, etc) so you won&#8217;t see a post in the related list when viewing it.
  <br />
</p>
<p> Finally, I added support for search engines like A9 and Excite which include the search term as a URL path instead of in a query variable.
  <br />
</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=4PK5kJoP"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=4PK5kJoP" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=c4oRCIcX"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=c4oRCIcX" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=nORtkofI"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=nORtkofI" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://baptiste.us/2006/06/06/optimizing-landingsites-for-wordpress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What A Shame That Science Is Dying in the US</title>
		<link>http://baptiste.us/2006/06/01/what-a-shame-that-science-is-dying-in-the-us/</link>
		<comments>http://baptiste.us/2006/06/01/what-a-shame-that-science-is-dying-in-the-us/#comments</comments>
		<pubDate>Thu, 01 Jun 2006 13:45:09 +0000</pubDate>
		<dc:creator>Mike Baptiste</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<category><![CDATA[Parenting]]></category>

		<category><![CDATA[Politics]]></category>

		<category><![CDATA[Ramblings]]></category>

		<guid isPermaLink="false">http://www.baptiste.us/?p=80</guid>
		<description><![CDATA[I'm just speechless...]]></description>
			<content:encoded><![CDATA[
<p>Not many people realize how far down into our society some of these &#8217;security&#8217; laws passed after 9/11 are reaching. We all know about not bring nail clippers and cigarette lighters onto airplanes, but now our children are being turned into passive robots who never will be allowed to try anything themselves for fear of &#8216;hurting themselves&#8217;.
</p>
<p>Wired has an <a title="" target="_blank" href="http://wired.com/wired/archive/14.06/chemistry_pr.html">astounding article</a> at the absolute paranoia that has driven government agencies to run background checks and fingerprint model rocket enthusiasts and arrest suppliers of minute quantities of chemicals for home experimentation. I used to fire off model rockets all the time as a kid. I recall Boy Scout camporees that were dedicated to building model rockets with a huge launch on Sunday afternoon. I still have the 32 pad launch system in my basement we build for it. I have reloadable rocket engine shells from a company that has now been forced out of business by the US government.
  <br />
</p>
<p>No matter what your political affiliation - you really need to <a title="" target="_blank" href="http://wired.com/wired/archive/14.06/chemistry_pr.html">read this article</a>. Our children will have no concept of discovery and curiosity outside the Internet. How can we expect our kids to strive to be scientific luminaries if they aren&#8217;t allowed to touch anything until they are in college?
</p>
<p>9/11 was a horrific event, but the aftermath on our society and the utter destruction of our country&#8217;s institutions in the aftermath by our own government is the saddest thing I&#8217;ve ever seen. What kind of message will it send to my children that their father has to be finger printed and have a background check when he wants to show them the excitement of model rocketry.
  <br />
</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=ROM1YXvV"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=ROM1YXvV" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=iV69AyMd"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=iV69AyMd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=tVyhY33e"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=tVyhY33e" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://baptiste.us/2006/06/01/what-a-shame-that-science-is-dying-in-the-us/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Look at that - Xinha4WP works on WordPress 2.0</title>
		<link>http://baptiste.us/2006/05/31/look-at-that-xinha4wp-works-on-wordpress-20/</link>
		<comments>http://baptiste.us/2006/05/31/look-at-that-xinha4wp-works-on-wordpress-20/#comments</comments>
		<pubDate>Wed, 31 May 2006 17:00:49 +0000</pubDate>
		<dc:creator>Mike Baptiste</dc:creator>
		
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://www.baptiste.us/?p=79</guid>
		<description><![CDATA[I still need to tweak a few things to make it truely integrate, but... It works.]]></description>
			<content:encoded><![CDATA[<p align="center"><font size="3"><strong>***NOTICE***</strong></font>
</p>
<p align="center"> All plugin information has moved to <a href="http://plugins.baptiste.us/"><strong>http://plugins.baptiste.us</strong></a>
  <br /><strong>Comments are now closed. Please <a href="http://plugins.baptiste.us/forums/">use the new forums</a> instead</strong>
</p>
<p>OK, I admit that I had hoped to have <a href="http://www.baptiste.us/plugins/xinha4wp/">Xinha4WP</a> ready for <a target="_blank" href="http://wordpress.org">WordPress 2.0</a>, but other projects and life in general kept me from doing that. I had tried out Xinha4WP on Wordpress 2.0.0 and found it would sort of work but it looked like a lot of work was needed.
</p>
<p>I did not have a huge desire to move to WordPress 2.0, mostly because 1.5.x was working for my sites and I had other projects I had to take care of. Well, the time was coming to get to v2.0 - too many cool new things were coming up for 2.0 or higher (<a target="_blank" href="http://mattread.com/projects/wp-plugins/installer-the-plugin/">the Installer plugin</a> is awesome). So I finally found some time to give the Xinha4WP v2.0 changes a go.
</p>
<p>First step was updating my test install to WordPress v2.0.2 and poke around. I&#8217;m not 100% sure, but the way they structured the Post HTML made it seem like TinyMCE wasn&#8217;t so static as it used to be. In fact it was downright gentle. If &#8216;Rich Editing&#8217; was enabled it included some JavaScript for the toolbar, but otherwise the textarea tag was left alone - this is a good thing. So on a hunch, I installed Xinha4WP v1.1 and disabled Rich Editing for all users. The Admin user still had Rich Editing set for it, so I disabled it and hit &#8216;Write&#8217;
</p>
<p>Voila - Xinha4WP came right up and so far seems to be working like a champ! So if you&#8217;ve been wanting to get Xinha4WP working on WordPress v2.0, it looks like you can with WP 2.0.2. I&#8217;m still working on a Xinha4WP v2.0 that will make installation seamless and take care of disabling TinyMCE for you, but for now, try this&#8230;.
</p>
<ol>
  <li>Make sure you have WordPress v2.0.2 installed. </li>
  <li>Disable &#8216;Rich Editing&#8217; under Options-&gt;Writing. Also make sure any users you have created also have it disabled in their profile. </li>
  <li>Ignore the warnings about Text-Control for now. I believe WP 2.0.x is handling the line feed issue better than 1.5.x did - still need to test. </li>
  <li>Try to write a post. Xinha4WP works just fine for me here. How about you? </li>
</ol>
<p><strong>Note:</strong> The built in upload tools will only work if Xinha4WP is in HTML View mode. Since Xinha4WP has its own Image Manipulation plugin, I&#8217;d suggest using that instead. Xinha4WP v2.0 will strip out the image upload stuff from WordPress for simplicity.
</p>
<p>Xinha4WP didn&#8217;t work for comments, but that is theme related. v2.0 will include CSS overrides to prevent the theme based issues with comment posting we&#8217;ve seen before. So it may work for you for comments, it may not.&nbsp;
</p>
<p>So there you have it. It looks like a recent bug fix release of WP made things MUCH easier. I&#8217;m off to code. I&#8217;m REALLY hoping to have something by this weekend for beta testers. Check the <a href="http://www.baptiste.us/plugins/xinha4wp/">Xinha4WP</a> page for updates. Thanks for your patience!
</p>
<p><strong>UPDATE:</strong> Make sure you disable toolbar flow!
  <br />
</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=MbMuaFeb"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=MbMuaFeb" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=C6EKUZxa"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=C6EKUZxa" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=iVZJpiJg"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=iVZJpiJg" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://baptiste.us/2006/05/31/look-at-that-xinha4wp-works-on-wordpress-20/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Building iFolder for x86_64</title>
		<link>http://baptiste.us/2006/04/12/building-ifolder-for-x86_64/</link>
		<comments>http://baptiste.us/2006/04/12/building-ifolder-for-x86_64/#comments</comments>
		<pubDate>Wed, 12 Apr 2006 20:22:29 +0000</pubDate>
		<dc:creator>Mike Baptiste</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.baptiste.us/?p=78</guid>
		<description><![CDATA[iFolder is a slick package that allows for seamless file synchronization between computers and a central server. Having just been open sourced, I'm working to compile RPMs for the x86_64 platform.]]></description>
			<content:encoded><![CDATA[
<p><a title="" target="_blank" href="http://www.ifolder.com/">iFolder</a> is a slick package that allows for seamless file synchronization between computers and a central server. If your computer is offline, you still have access to the files in your iFolder and any changes get synchronized with the server when you get back online. There is a Web Access interface and an easy to use Web Administration interface. iFolder uses SSL/HTTP connections making integration into existing networks and firewalls a snap.
</p>
<p>Having just been <a title="" target="_blank" href="http://cgaisford.blogspot.com/2006/03/ifolder-enterprise-server.html">open sourced</a>, I&#8217;m working to compile iFolder-Server RPMs for the x86_64 platform on <a title="" target="_blank" href="http://fedora.redhat.com/">Fedora Core</a> 4. I&#8217;m using 4 instead of 5 simply because iFolder uses <a title="" target="_blank" href="http://www.mono-project.com/Main_Page">mono</a> and I wasn&#8217;t able to find FC5 rpms (the Fedora Dev RPMs probably would have worked, but I can always upgrade to FC5 later).
</p>
<p>So off we go&#8230;
</p> <span id="more-78"></span>
<p>First off, I needed a server to build and run iFolder on. I currently have a <a title="" target="_blank" href="http://linux-vserver.org/">Linux Virtual Server</a> system running so I decided to setup a new server instance for iFolder. I setup FC4 in the new vserver using <a title="" target="_blank" href="http://linux.duke.edu/projects/yum/">yum</a>. If you attempt this, you&#8217;ll need the usual development packages, gcc, automake, autoconf, m4, make, rpm-build, etc. RPM will spit out any dependencies you need when you first try to build an rpm. You also need mono installed. If you use yum, drop <a title="" target="_blank" href="http://www.go-mono.com/download/fedora-4-x86_64/mono.repo">mono.repo</a> into your /etc/yum.repos.d directory and then install the following mono packages:
</p>
<blockquote>
  <p>yum install mono-core mono-data mono-devel mono-web
    <br />
  </p>
</blockquote>
<p>iFolder depends on two other RPMs: log4net and libflaim. You can find source RPMs <a title="" target="_blank" href="http://forgeftp.novell.com/ifolder/server/3.5/">here</a>. Click into the latest build directory, then &#8216;linux&#8217;, then FEDORA-CORE-4.0-i386, then srpms.
</p>
<p>Building log4net was easy:
</p>
<blockquote>
  <p>rpmbuild &#8211;rebuild log4net-1.2.9-4.src.rpm
  </p>
</blockquote>
<p>It built for me no problem. Next up was libflaim, which iFolder-Server relies on heavily. My first attempt resulted in the following error:
</p>
<blockquote>
  <p>Makefile:141: *** Host operating system could not be determined. Stop.
  </p>
</blockquote>
<p>Interesting. I poked around the net a bit and found <a title="" target="_blank" href="http://www.ifolder.com/index.php/HowTo:Building_iFolder_on_Gentoo">someone who had run into the same thing</a> trying to compile it on Gentoo. Fair enough. Its a hack, not a real fix, but here is how I got it built:
</p>
<blockquote>
  <p>Install the source rpm: rpm -ivh libflaim-4.8.61-1.src.rpm
    <br /> Edit /usr/src/redhat/SPECS/libflaim.spec and change the make and make install lines to:
  </p>
  <p>%build
    <br /> make lib_dir_name=%{_lib} libs HOSTTYPE=x86_64 OSTYPE=Linux
    <br />
    <br /> %install
    <br /> make rpm_build_root=$RPM_BUILD_ROOT install_prefix=%{prefix} lib_dir_name=%{_lib} install HOSTTYPE=x86_64 OSTYPE=Linux
    <br />
  </p>
  <p>I basically hardcoded the values at the end. You probably could have done `uname -s` and `uname -m` but I was lazy.
  </p>
  <p>Now try and build it from /usr/src/redhat/SPECS: rpmbuild -ba ./libflaim.spec
    <br />
  </p>
</blockquote>
<p>Voila! libflaim and libflaim-devel RPMs were sitting in /usr/src/redhat/RPMS/x86_64 waiting to be installed. They installed no problem.
</p>
<p>Now for the real fun, building iFolder-Server. My first attempt gave me an error about libtoolize not existing. So I used yum to install libtool and tried again. The next error complained that /usr/lib/libflaim.a did not exist. This makes sense. x86_64 machines put their 64bit libraries in /usr/lib64. Being lazy again, I went ahead and softlinked /usr/lib64/libflaim.a into /usr/lib. BAD I know. But I wanted to just see if it would work. Sure enough, I got past that error, though I was still seeing this warning:
</p>
<blockquote>
  <p>/bin/sh ../../../../libtool &#8211;tag=CXX &#8211;mode=link g++ -g -O2 -o libFlaimWrapper.la -rpath /usr/lib /usr/lib/libflaim.a libFlaimWrapper_la-CSPObjectIterator.lo libFlaimWrapper_la-CSPropertyIterator.lo libFlaimWrapper_la-CSPStore.lo libFlaimWrapper_la-CSPStoreObject.lo libFlaimWrapper_la-FlaimWrapper.lo
    <br />
    <br /> *** Warning: Linking the shared library libFlaimWrapper.la against the
    <br /> *** static library /usr/lib/libflaim.a is not portable!
    <br /> g++ -shared -nostdlib /usr/lib/gcc/x86_64-redhat-linux/4.0.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.0.2/crtbeginS.o .libs/libFlaimWrapper_la-CSPObjectIterator.o .libs/libFlaimWrapper_la-CSPropertyIterator.o .libs/libFlaimWrapper_la-CSPStore.o .libs/libFlaimWrapper_la-CSPStoreObject.o .libs/libFlaimWrapper_la-FlaimWrapper.o /usr/lib/libflaim.a -L/usr/lib/gcc/x86_64-redhat-linux/4.0.2 -L/usr/lib/gcc/x86_64-redhat-linux/4.0.2/../../../../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.0.2/../../.. -L/lib/../lib64 -L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/4.0.2/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/4.0.2/../../../../lib64/crtn.o -Wl,-soname -Wl,libFlaimWrapper.so.0 -o .libs/libFlaimWrapper.so.0.0.0
    <br />
  </p>
</blockquote>
<p>Which is 100% correct. It is NOT portable! But it kept on compiling.
</p>
<p>Now I&#8217;ve run into an error I&#8217;m not sure how to fix. The build uses somethign called the gSOAP Skeleton Compiler:
</p>
<blockquote>
  <p>** The gSOAP Stub and Skeleton Compiler for C and C++ 2.7.0c
    <br /> ** Copyright (C) 2001-2004 Robert van Engelen, Genivia, Inc.
    <br /> ** All Rights Reserved. This product is provided &#8220;as is&#8221;, without any warranty.
    <br />
  </p>
</blockquote>
<p>which appears to build fine:
</p>
<blockquote>
  <p>Saving envStub.h
    <br /> Saving envH.h
    <br /> Saving envC.c
    <br /> Saving envClient.c
    <br /> Saving envServer.c
    <br /> Saving envClientLib.c
    <br /> Saving envServerLib.c
    <br />
    <br /> Compilation successful
    <br />
  </p>
</blockquote>
<p>but as the build tries to use part of this package, it dies:
</p>
<blockquote>
  <p>gcc -DPACKAGE_NAME=\&#8221;\&#8221; -DPACKAGE_TARNAME=\&#8221;\&#8221; -DPACKAGE_VERSION=\&#8221;\&#8221; -DPACKAGE_STRING=\&#8221;\&#8221; -DPACKAGE_BUGREPORT=\&#8221;\&#8221; -DPACKAGE=\&#8221;simias\&#8221; -DVERSION=\&#8221;1.5\&#8221; -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -I/usr/include/libxml2 -DWITH_NONAMESPACES -DWITH_COOKIES -MT libsimias_la-envC.lo -MD -MP -MF .deps/libsimias_la-envC.Tpo -c envC.c -o libsimias_la-envC.o &gt;/dev/null 2&gt;&amp;1
    <br /> ../../../tools/gsoap/linux-2.7/wsdl2h -c -o libsimias.h ../WebService/Simias.wsdl
    <br /> make[3]: ../../../tools/gsoap/linux-2.7/wsdl2h: Command not found
    <br /> make[3]: *** [libsimias.h] Error 127
    <br /> make[3]: Leaving directory `/usr/src/redhat/BUILD/ifolder3-server-3.5.6102.1/src/core/libsimias&#8217;
    <br /> make[2]: *** [all-recursive] Error 1
    <br /> make[2]: Leaving directory `/usr/src/redhat/BUILD/ifolder3-server-3.5.6102.1/src/core&#8217;
    <br /> make[1]: *** [all-recursive] Error 1
    <br /> make[1]: Leaving directory `/usr/src/redhat/BUILD/ifolder3-server-3.5.6102.1/src&#8217;
    <br /> make: *** [all-recursive] Error 1
    <br />
  </p>
</blockquote>
<p>Bummer. It looks to be a path issue, because the tool DOES exist:
</p>
<blockquote>
  <p>/usr/src/redhat/BUILD/ifolder3-server-3.5.6102.1/tools/gsoap/linux-2.7/wsdl2h
  </p>
</blockquote>
<p>And that&#8217;s where I am at. I&#8217;m going to forward all this to the iFolder folks so the source RPMs can get fixed. Hopefully I can figure out a way to get past this as I&#8217;m really looking forward to firing up iFolder on x86_64. I&#8217;ll update this as I make progress.
</p>
<p><b>UPDATE 1: </b>Here are the bugs I submitted for the above three problems: <a title="" target="_blank" href="https://bugzilla.novell.com/show_bug.cgi?id=165693">165693</a> <a title="" target="" href="https://bugzilla.novell.com/show_bug.cgi?id=165696">165696</a> <a title="" target="" href="https://bugzilla.novell.com/show_bug.cgi?id=165700">165700</a>
</p>
<p><b>UPDATE 2:</b> Here is a <a title="" target="_blank" href="http://www.ifolder.com/index.php/HowTo:Building_iFolder_Enterprise_Server_on_Fedora_Core">HOWTO related to Fedora building</a>. Note the SELinux issues.
</p>
<p><b>UPDATE 3:</b> One thing I forgot to mention was when I used yum to install compat-libstdc++-33, it returned both the i386 and x86_64 versions to be installed. Wanting to keep things x86_64, I said &#8216;N&#8217;o to the install and grabbed the x86_64 version of compat-libstdc++-33 from <a title="" target="_blank" href="http://rpmfind.net">rpmfind.net</a> and installed it manually. Once I did that, all the other dependencies worked.
</p>
<p><b>UPDATE 4:</b> Ah-ha! Its not a missing file. Its another library problem. gsoap seems to expect that ld-linux will be in /lib. Note what happens when I try the failing command manually:
</p>
<blockquote>
  <p>/usr/src/redhat/BUILD/ifolder3-server-3.5.6102.1/src/core/libsimias&gt; ../../../tools/gsoap/linux-2.7/wsdl2h -c -o libsimias.h ../WebService/Simias.wsdl
    <br />bash: ../../../tools/gsoap/linux-2.7/wsdl2h: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
    <br />
  </p>
</blockquote>
<p>Well that makes sense. ld-linux is not in /lib. It&#8217;s in /lib64: /lib64/ld-linux-x86-64.so.2
</p>
<p>That would explain the failure. I&#8217;ll try a link hack again (bad bad I know) and if that works see how this can be fixed properly.&nbsp; Well, if you softlink the library, the same part of the compile says it is trying to access a corrupt shared library. But it has me on the right track. Time to dig into the various Makefiles and see if I can figure out where it is hardcoded&#8230;.
</p>
<p><b>UPDATE 5:</b> Duh - should have figured this out earlier. The iFolder-Server source rpm includes a precompiled version of <a title="" target="_blank" href="http://www.cs.fsu.edu/%7Eengelen/soap.html">gsoap</a> - built on x86 so it fails to run on x86_64. I&#8217;m grabbing the latest gsoap source now and will build it on x86_64 which should allow the build to continue. I hope&#8230;.
</p>
<p><b>UPDATE 6: SUCCESS!!!!!</b> Man that was painful! The ifolder source RPM includes a precompiled version of gsoap 2.7.0 which is an x86 compiled version. I found a gsoap v2.7.2 source RPM which I was able to build. I also was able to create a source RPM for v2.7.7 of gsoap, but the errors I got seemed to indicate soem API changes from 2.7.0. So I decided to just do for x86_64 what had been done for x86. I found v2.7.0f of gsoap (and a couple of patches) and compiled it for x86_64. I then spliced in that version of gsoap into the ifolder source tree. Tarred and zipped it up and put it in /usr/src/redhat/SOURCES and did an rpmbuild -ba off the ifolder SPEC file. And Voila! It Built! And it installed. Be afraid! I&#8217;m beat now, so I&#8217;m going to give it a whirl in the morning to see if it&#8217;ll actually run!
</p>
<p>I&#8217;ll try emailing the developers tomorrow. If they can extract the gsoap dependencies such that the iFolder RPM uses a gsoap RPM, that would be very nice. The gsoap RPMs were somewhat confusing since the v2.7.2 RPM patched the gsoap source to switch from a simple stdsoap2.h to a numebr of headers (dom.h, xml.h, etc) I think gsoap made some major changes from v2.7.0 up through v2.7.7.
</p>
<p>I&#8217;ve now got a buildable ifolder-server source RPM that will build on x86_64 (but since it is precompiled gsoap still it&#8217;ll ONLY build on x86_64) If I&#8217;m able to get iFolder running on x86_64, I&#8217;ll post a link to the src rpm I have.
  <br />
</p>
<blockquote>
  <p>
  </p>
</blockquote> <div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=cruysvY2"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=cruysvY2" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=cSCqYNdV"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=cSCqYNdV" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=foRgQL0R"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=foRgQL0R" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://baptiste.us/2006/04/12/building-ifolder-for-x86_64/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Out Of The Mouths Of Babes</title>
		<link>http://baptiste.us/2006/03/08/out-of-the-mouths-of-babes/</link>
		<comments>http://baptiste.us/2006/03/08/out-of-the-mouths-of-babes/#comments</comments>
		<pubDate>Wed, 08 Mar 2006 13:01:24 +0000</pubDate>
		<dc:creator>Mike Baptiste</dc:creator>
		
		<category><![CDATA[Parenting]]></category>

		<guid isPermaLink="false">http://www.baptiste.us/2006/03/08/out-of-the-mouths-of-babes/</guid>
		<description><![CDATA[Every wondered what water was REALLY for?]]></description>
			<content:encoded><![CDATA[
<p>Ah the joy of 3 year olds. Our 3rd child is sitting at the breakfast table enjoying an Eggo Waffle (from freezer to plate in 30 seconds woohoo!)
</p>
<p><b>Dad:</b> &#8220;Do you want some milk?&#8221;
  <br /> <b>3rd:</b> &#8220;I want some juice please&#8221;
  <br /> <b>Dad:</b> &#8220;No juice this morning. You can have milk or water&#8221;
  <br /> <b>3rd:</b> &#8220;Water is for dogs!&#8221;
</p>
<p>OK then! Milk it is!
</p>
<p>Yes, we have 3 dogs and #3 enjoys filling their water bowl &#8230; and dumping it out &#8230; and filling it again &#8230; and dumping it out&#8230;
  <br />
</p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=Pt2cQFZt"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=Pt2cQFZt" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=saS9y65N"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=saS9y65N" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=1ucKgsWd"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=1ucKgsWd" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://baptiste.us/2006/03/08/out-of-the-mouths-of-babes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Thank You GM &amp; Honda Engineers!</title>
		<link>http://baptiste.us/2006/02/25/thank-you-gm-honda-engineers/</link>
		<comments>http://baptiste.us/2006/02/25/thank-you-gm-honda-engineers/#comments</comments>
		<pubDate>Sat, 25 Feb 2006 21:41:23 +0000</pubDate>
		<dc:creator>Mike Baptiste</dc:creator>
		
		<category><![CDATA[Family News]]></category>

		<category><![CDATA[Ramblings]]></category>

		<guid isPermaLink="false">http://www.baptiste.us/?p=73</guid>
		<description><![CDATA[Here's a shout out to all the engineers, crash testers, and designers responsible for making our cars safer.]]></description>
			<content:encoded><![CDATA[
<p><a href="http://baptiste.us/gallery2/v/2006/Accident/aac.jpg.html" target="_blank">
  <img src="http://baptiste.us/gallery2/d/48-2/aac.jpg" alt="accident" style="margin-left: 5px;" align="right" border="0" /></a>I was involved in an accident yesterday morning that highlighted just how far our cars have come in terms of minimizing injury and absorbing the energy of the impact. As I was stopped to make a left turn into my driveway, I was hit from behind by a driver who was distracted and never saw me stopped. We live in the middle of a very long and flat stretch of road with a 45 MPH speed limit so cars are generally moving at a good clip. The person who hit me never saw that I was stopped, waiting for an oncoming car to pass, and drove right into my trunk. I drive (or rather drove
  <img style="border-style: solid; border-width: 0px; margin: 0px; padding: 0px;" src="http://www.baptiste.us/wp-content/plugins/xinha4wp/xinha_core/plugins/InsertSmiley/smileys/0002.gif" alt="Smiley" align="absmiddle" height="15" width="15" />) a late model Chevy Impala sedan which is classified as a &#8216;Large Sedan&#8217;. It is a heavy car (just under 3500 lbs) and as long as our Windstar mini-van. The car that hit me was a Honda Civic - not a huge car (just over 2500 lbs). You&#8217;d think that in a high-speed accident where a significantly lighter car hits a heavier car, someone is going to get hurt.
</p> <span id="more-73"></span>
<p>When the other car hit, it lifted the back of my car up off the ground a bit and my car angled onto the right front tire (I had begun to turn the wheels left in anticipation of turning as the oncoming car went by). This directed me towards the ditch on my left and tore the tire off the rim. The scary part was my car went right across oncoming traffic. In the morning, since the middle school and high school are a mile or so down the road, traffic is heavy. Amazingly, nobody hit me head on as I flew across the oncoming lane and nobody hit the car that hit me.
</p>
<p><a href="http://baptiste.us/gallery2/v/2006/Accident/aaj.jpg.html" target="_blank">
  <img src="http://baptiste.us/gallery2/d/68-2/aaj.jpg" alt="accident" style="margin-right: 5px;" align="left" border="0" /></a>Needless to say, this was a high speed collision. <a title="" target="_blank" href="http://baptiste.us/gallery2/v/2006/Accident/aaa.jpg.html">Looking at this picture</a>, you see the Honda farther down the road. This is where it stopped after the collision - so a Honda Civic, hitting a stopped and braked Chevy Impala, continued on that far, since in the picture, my car was probably right about where it was on the road during the accident (the picture was taken after the tow truck had pulled it out of the ditch and across the road) Thankfully, both drivers walked away without a scratch. If you ever needed proof that the new safety features being put into cars are worth it, <a title="" target="_blank" href="http://baptiste.us/gallery2/v/2006/Accident/">take a look at these pictures</a>. The other driver had airbags which deployed and did exactly what they were supposed to. My driver&#8217;s seat absorbed a far amount of the jolt, <a title="" target="_blank" href="http://baptiste.us/gallery2/v/2006/Accident/aaf.jpg.html">however it gave a bit</a>. I didn&#8217;t get a shot of it, but the seat frame actually twisted some (I weigh 200 lbs so the seat experienced a LOT of force). The seat giving way a bit and twisting some probably helped absorb some shock to my body as well. I make sure the headrest is always extended since I&#8217;m over 6&#8242; 2&#8243; so my head was supported. As I write this the next morning - I&#8217;m not even sore, which I expected to be. Thankfully my body was accelerated forward evenly by the seat and my head did not snap back &#8230; much (my ball cap did end up in the back seat though!).
</p>
<p>An interesting thing - if you&#8217;ve been in an Impala, there is a deep compartment behind the ashtray under the radio and AC controls. I had set my <a title="" target="_blank" href="http://sirus.com/">Sirius</a> satellite radio receiver down there. Now the receiver isn&#8217;t the heaviest thing in the world - weighs maybe a pound. My car jerked forward so quickly that the receiver flew out of the deep compartment, hit me, and bounced into the passenger seat footwell. Thus a 3500 lb vehicle moved forward so quickly that a 1 pound device got &#8216;left standing still&#8217; and thus appeared to fly towards me and hit me. Ah physics.
</p>
<p><a href="http://baptiste.us/gallery2/v/2006/Accident/aal.jpg.html" target="_right">
  <img src="http://baptiste.us/gallery2/d/74-2/aal.jpg" alt="accident" style="margin-left: 5px;" align="right" border="0" /></a>The trunk of my car totally collapsed. The <a title="" target="_blank" href="http://baptiste.us/gallery2/v/2006/Accident/aab.jpg.html">white rectangle at the center of the impact in this picture</a> is MY license plate. That&#8217;s how far the car traveled into my trunk when it hit, <a title="" target="_blank" href="http://baptiste.us/gallery2/v/2006/Accident/aac.jpg.html">which this shot illustrates</a>. Note how the rear part of the frame pushed downward, &#8216;catching&#8217; the oncoming car, and directing the impact upward a bit, protecting the gas tank. This ensured that the other car did not shove under my car, driving the rear of my car into their windshield. There were no gas leaks after this accident which amazed me. The <a title="" target="_blank" href="http://baptiste.us/gallery2/v/2006/Accident/aaj.jpg.html">front end of the other car disintegrated</a>, but the rest of the car was amazingly intact. The passenger compartment of the other car was fine - there was no compression from the engine into the passenger area. Most of the debris on the roadway was the heavy duty foam filler from the bumpers which also absorbed much energy.
</p>
<p>Thankfully I had just dropped my kids off at school and they weren&#8217;t in the car when this happened. But you can see that even though the trunk crumpled severely, <a title="" target="_blank" href="http://baptiste.us/gallery2/v/2006/Accident/aag.jpg.html">the back seats were intact and did not buckle</a>.
</p>
<p>So I want to send a huge thank you to the engineers at GM and Honda who worked so hard to improve the safety of passengers and the ability of newer cars to handle high speed collisions. While there was plenty of luck involved (no oncoming traffic hit me, the car that hit me was a car, not an SUV or truck, etc), the aftermath of the accident made it clear that certain design decisions played a huge role in how the collision progressed. I also am thankful for the folks at the <a title="" target="_blank" href="http://www.iihs.org/">Insurance Institute for Highway Safety</a> who have done so much to raise concerns over bad vehicle designs that can&#8217;t handle reasonable collisions. Interestingly, the <a title="" target="_blank" href="http://www.iihs.org/ratings/head_restraints/head_chevrolet.html">rating on my car for rear collision head injuries</a> was &#8216;Poor&#8217; due to the geometry of the head rest. The Honda&#8217;s front crash ratings were <a title="" target="_blank" href="http://www.iihs.org/ratings/rating.aspx?id=34">good across the board</a>.
</p>
<p>We&#8217;ll hear more regarding the car and repairs next week, but given the damage, I can&#8217;t imagine it&#8217;s repairable. Not sure what I&#8217;ll try to replace it with.
  <br />
</p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=yeHI3mAy"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=yeHI3mAy" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=zQu9V8IF"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=zQu9V8IF" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=9Own4tdG"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=9Own4tdG" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://baptiste.us/2006/02/25/thank-you-gm-honda-engineers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Lemme OUT!!!</title>
		<link>http://baptiste.us/2006/01/02/lemme-out/</link>
		<comments>http://baptiste.us/2006/01/02/lemme-out/#comments</comments>
		<pubDate>Tue, 03 Jan 2006 01:02:43 +0000</pubDate>
		<dc:creator>Mike Baptiste</dc:creator>
		
		<category><![CDATA[Family News]]></category>

		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://baptiste.us/?p=72</guid>
		<description><![CDATA[Living in the country is always an adventure, especially when furry woodland creatures decide to come in for a visit.]]></description>
			<content:encoded><![CDATA[
<p><a href="http://baptiste.us/wp-content/images/posts/P10206281.JPG" target="_blank">
  <img alt="Chewed Window" src="http://baptiste.us/wp-content/images/posts/P1020628_Thumb.JPG" style="padding-left: 5px;" align="right" border="0" height="150" width="200" /></a>I&#8217;ve lived in the country most of my life and the houses have always backed up to woods. So I often appreciate when nature pays a visit. I often walk out our side door and find deer hanging out near the driveway or roaming through the back woods. OK, I&#8217;ll admit that the copperhead&#8217;s I&#8217;ve encountered have met the sharp end of my hoe, but besides that, nature and I get along. But usually our encounters are OUTdoors.
  <br />
</p>
<p>Many people have had birds fly into their homes and getting them out is always exciting. But you haven&#8217;t had TRUE natural fun until a furry woodland creature comes over to visit. A few years ago a squirrel managed to come down a chimney and got stuck in our living room fireplace (which had glass doors on it) You want to talk about one pissed off rodent! We tried coaxing him into a pillowcase with a broom and very heavy gloves but he wasn&#8217;t biting (yet) So we opened all the doors and swatted him out of the fireplace. Man can those suckers move. He jumped along the walls (gouging them quite nicely in a few places) and finally dove out the door. Right into our yellow lab. I&#8217;m not sure whose heart almost stopped first - the squirrel or our dog who wasn&#8217;t expecting a pissed off rodent to come flying out our doorway. My wife &amp; I were rolling on the floor as our lab recovered and chased the squirrel up a tree.
  <br />
</p>
<p>Well today we discovered that we have another &#8216;guest&#8217; and whatever it is, it wants to check out <i><b>NOW</b></i>. It decided to try and chew its way out through a bedroom window. The disconcerting thing is, well, it didn&#8217;t quite succeed. It destroyed the window for sure, but didn&#8217;t quite get out. So needless to say we have a live animal trap set and ready so we can help our furry friend out the door since we can&#8217;t find the little sucker ANYwhere. I expect we&#8217;ll be sleeping downstairs tonight since the door to the room with the stairs stays closed - so it&#8217;s still up there. Here&#8217;s hoping it doesn&#8217;t decide to chew its way out anything valuable - replacing a window is going to be expensive enough! No clue what it is - though if you click the thumbnail to view the picture fullsize, you&#8217;ll see what looks like a paw print on the left pane of glass.
 <br />
</p>
<p>
  <a href="/wp-content/images/posts/captured.jpg" target="_blank"><img style="margin-right: 5px;" alt="captured_thumb.jpg" src="/wp-content/images/posts/captured_thumb.jpg" align="left" height="125" width="200" border="0" /></a><b>Update:</b> Only took 12 hours to catch the sucker. He sprang the trap once without getting caught, but a mix of dry cat food and bird seed was too much temptation. In just under 24 hours he totally destroyed two windows (we found he had chewed the top sashes too behind the shades) and took a chuck out of the cherry vanity (he almost got gassed over that) Good thing the windows are due to be replaced during our upcoming renovations or I&#8217;m not sure he would have had such a joyful reunion with the wild! Squirrels make the funniest sound when they&#8217;re annoyed. He was NOT a happy camper! Now I&#8217;m off to seal the fireplace flu since it&#8217;s never used except by furry guests. Ah the fun of an old house!
  <br />
</p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=DQh5qAin"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=DQh5qAin" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=rjMT6G9j"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=rjMT6G9j" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=Ne4wpX4t"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=Ne4wpX4t" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://baptiste.us/2006/01/02/lemme-out/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Speedup WP-Stattraq</title>
		<link>http://baptiste.us/2005/12/08/speedup-wp-stattraq/</link>
		<comments>http://baptiste.us/2005/12/08/speedup-wp-stattraq/#comments</comments>
		<pubDate>Fri, 09 Dec 2005 03:03:32 +0000</pubDate>
		<dc:creator>Mike Baptiste</dc:creator>
		
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://baptiste.us/?p=62</guid>
		<description><![CDATA[I use WP-Stattraq on my blogs, but after a while the pages started to load really slow - I finally figured out why...]]></description>
			<content:encoded><![CDATA[<p align="center"><font size="3"><strong>***NOTICE***</strong></font>
</p>
<p align="center"> All plugin information has moved to <a href="http://plugins.baptiste.us/"><strong>http://plugins.baptiste.us</strong></a>
  <br /><strong>Comments are now closed. Please <a href="http://plugins.baptiste.us/forums/">use the new forums</a> instead</strong>
</p>
<p>I&#8217;ve used <a target="_blank" href="http://randypeterman.com/StatTraq/">WP-Stattraq</a> on various blogs I host in addition to <a target="_blank" href="http://awstats.sourceforge.net/">AWStats</a>. Stattraq gives a nice compact view of what&#8217;s being hit and from where. However as my sites drew more traffic, the Stattraq pages were taking a long time to load. On a hunch, I poked around the database structure and found that certain fields that were being searched by often (time, etc) were not indexed.
  <br />
</p>
<p>I added indexes to the wp_stattraq table for the following fields: ip_address, article_id, and access_time. I used <a target="_blank" href="http://www.phpmyadmin.net/">phpMyAdmin</a>, but you can also do it by logging into the mysql console client on your server:
</p>
<p style="font-weight: bold;">bash&gt;mysql -u (wordpress_db_user) -p -D (wordpress database) -h (database host if not local)
</p>
<p><strong>mysql&gt;<span class="syntax_alpha syntax_alpha_reservedWord">ALTER</span> <span class="syntax_alpha syntax_alpha_reservedWord">TABLE</span> <span class="syntax_quote syntax_quote_backtick">`wp_stattraq`</span> <span class="syntax_alpha syntax_alpha_reservedWord">ADD</span> <span class="syntax_alpha syntax_alpha_reservedWord">INDEX</span> <span class="syntax_punct syntax_punct_bracket_open_round">(</span> <span class="syntax_quote syntax_quote_backtick">`ip_address`</span> <span class="syntax_punct syntax_punct_bracket_close_round">);</span></strong>
  <br /> <strong>mysql&gt;<span class="syntax_alpha syntax_alpha_reservedWord">ALTER</span> <span class="syntax_alpha syntax_alpha_reservedWord">TABLE</span> <span class="syntax_quote syntax_quote_backtick">`wp_stattraq`</span> <span class="syntax_alpha syntax_alpha_reservedWord">ADD</span> <span class="syntax_alpha syntax_alpha_reservedWord">INDEX</span> <span class="syntax_punct syntax_punct_bracket_open_round">(</span> <span class="syntax_quote syntax_quote_backtick">`article_id`</span> <span class="syntax_punct syntax_punct_bracket_close_round">);
  <br /> </span></strong> <strong>mysql&gt;<span class="syntax_alpha syntax_alpha_reservedWord">ALTER</span> <span class="syntax_alpha syntax_alpha_reservedWord">TABLE</span> <span class="syntax_quote syntax_quote_backtick">`wp_stattraq`</span> <span class="syntax_alpha syntax_alpha_reservedWord">ADD</span> <span class="syntax_alpha syntax_alpha_reservedWord">INDEX</span> <span class="syntax_punct syntax_punct_bracket_open_round">(</span> <span class="syntax_quote syntax_quote_backtick">`access_time`</span> <span class="syntax_punct syntax_punct_bracket_close_round">);</span></strong>
</p>
<p>I&#8217;m not 100% sure if MySQL will build the index from all existing records when you create one or if you need to force it. To be safe, I optimized the table:
</p>
<p style="font-weight: bold;"><span class="syntax_alpha syntax_alpha_reservedWord">mysql&gt;OPTIMIZE</span> <span class="syntax_alpha syntax_alpha_reservedWord">TABLE</span> <span class="syntax_quote syntax_quote_backtick">`wp_stattraq`;</span>
</p>
<p>Now your WP-Stattraq pages should load much faster. For me the difference was amazing. I did this for all my sites a few months ago and have been meaning to blog about it, but never got around to it. I dropped by Randy&#8217;s site to see if anything was new, and <a target="_blank" href="http://randypeterman.com/StatTraq/?p=25">he posted about the problem and fix</a> as well a couple of days ago. It&#8217;ll be included in the next version of WP-Stattraq.
</p>
<p>Now if I can just figure out why v1.0b won&#8217;t peg hits for individual pages.
</p>
<p><strong>UPDATE: </strong>Via <a target="_blank" href="http://nate.podzone.net/blog/2006/02/12/stattraq-speedups/">Paperback Writer</a>, I also found another nice speedup for StatTraq - that will make your pages load faster for viewers. At <a target="_blank" href="http://boakes.org/stattraq-turbo">boakes.org</a>, he suggests you delay the insertion of the &#8216;hit&#8217;. This is a great tweak. Simply change your stattraq.php plugin file by finding the &#8216;INSERT INTO&#8217; database SQL and change it to INSERT DELAYED INTO. This tell the script to hit the database and not to wait for confirmation of a successful insert, which is good if you care about the data, but these are hit stats. If a DB problem arose, losing a couple hit ticks would be fine.
  <br />
</p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=dhXvCLog"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=dhXvCLog" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=srNWbwBv"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=srNWbwBv" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/TheBaptisteFamily?a=sfzfj20G"><img src="http://feeds.feedburner.com/~f/TheBaptisteFamily?i=sfzfj20G" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://baptiste.us/2005/12/08/speedup-wp-stattraq/feed/</wfw:commentRss>
		</item>
	<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetFeedData?uri=TheBaptisteFamily</feedburner:awareness></channel>
</rss>
