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

<channel>
	<title>Web Architecture, Web Production, Web Marketing &#187; Misc</title>
	<atom:link href="http://www.usercore.com/category/misc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.usercore.com</link>
	<description>Matt MacDougall - attempting to grok users, management, marketing, linux, subversion, coldfusion, os x and web geekery</description>
	<lastBuildDate>Thu, 03 Jun 2010 16:24:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>X-Cart 4.2 Product Title Only as HTML Title</title>
		<link>http://www.usercore.com/x-cart-4-2-product-title-only-as-html-title/</link>
		<comments>http://www.usercore.com/x-cart-4-2-product-title-only-as-html-title/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 16:24:24 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.usercore.com/?p=79</guid>
		<description><![CDATA[I just wanted to show the product title as the html title for product detail pages in x-cart 4.2.  There is an option for this under general settings, seo options but it is broken.
To fix I needed to look for the variable being set: $html_page_title in /include/func/func.core.php and add an extra foreach loop to only [...]]]></description>
			<content:encoded><![CDATA[<p>I just wanted to show the product title as the html title for product detail pages in x-cart 4.2.  There is an option for this under general settings, seo options but it is broken.</p>
<p>To fix I needed to look for the variable being set: $html_page_title in /include/func/func.core.php and add an extra foreach loop to only add the first location element to the title.  Otherwise the only options for automated titles are reversing the order of all the elements.</p>
<pre>		if ($config['SEO']['page_title_format'] == 'P') {
			foreach ($location as $k =&gt; $v) {
				if($k == 0)
					$tmp[] = strip_tags($v[0]);
			}
		}
		else {
			foreach ($location as $v) {
				$tmp[] = strip_tags($v[0]);
			}
		}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.usercore.com/x-cart-4-2-product-title-only-as-html-title/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manually Purge ColdFusion Client Sessions in Database</title>
		<link>http://www.usercore.com/manually-purge-coldfusion-client-sessions-in-database/</link>
		<comments>http://www.usercore.com/manually-purge-coldfusion-client-sessions-in-database/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 17:16:26 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.usercore.com/?p=73</guid>
		<description><![CDATA[ColdFusion will purge your client sessions for you on a schedule.  This schedule is dependent on when the CF engine starts.  If your purge schedule is OK now, a CF reboot will set a new schedule and cause problems.  if you use a database and your client variables table has hundred of thousands or millions [...]]]></description>
			<content:encoded><![CDATA[<p>ColdFusion will purge your client sessions for you on a schedule.  This schedule is dependent on when the CF engine starts.  If your purge schedule is OK now, a CF reboot will set a new schedule and cause problems.  if you use a database and your client variables table has hundred of thousands or millions of records, this can really kill performance.</p>
<p>I have disabled purge of client sessions in the CF Admin and do my purge during low load hours using a separate schedule.</p>
<p>I run 4 queries in a bash script.  You can write a CF script to run these in windows or any other scripting language that let&#8217;s you connect to your client variable database.</p>
<p>Here&#8217;s the MySQL versions of the queries:</p>
<p><code>delete from CDATA where CFID in (select CFID from CGLOBAL where CGLOBAL.lvisit &lt; date_sub(now(), interval 60 day));</code></p>
<p><code>delete from CGLOBAL where lvisit &lt; date_sub(now(), interval 60 day);</code></p>
<p><code>optimize table CDATA;</code></p>
<p><code>optimize table CGLOBAL;</code></p>
<p>Optimizing your tables after the purge will clean up the empty space in your db file left now that those records are gone.  This is helpful if you delete thousands of records at a time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.usercore.com/manually-purge-coldfusion-client-sessions-in-database/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ANSI OSHA Sign Goodness</title>
		<link>http://www.usercore.com/ansi-osha-sign-goodness/</link>
		<comments>http://www.usercore.com/ansi-osha-sign-goodness/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 01:56:06 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.usercore.com/2008/04/29/ansi-osha-sign-goodness/</guid>
		<description><![CDATA[Do you need to create an ANSI or OSHA compliant sign for your business.? St. Claire Inc. has a tool for you to build your sign and generate a PDF.  Here&#8217;s an important notice I have displayed in the lab.

]]></description>
			<content:encoded><![CDATA[<p>Do you need to create an ANSI or OSHA compliant sign for your business.? St. Claire Inc. <a href="http://www.stclaire.com/safety_sign_builder/asb-panel.php" target="_blank">has a tool</a> for you to build your sign and generate a PDF.  Here&#8217;s an important notice I have displayed in the lab.</p>
<p><img src="/images/must_get_up_before_getting_down.gif" title="danger - must get up before getting down" alt="danger - must get up before getting down" height="518" width="400" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.usercore.com/ansi-osha-sign-goodness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse Monkey Hard Word Wrap or Selection Wrap in Eclipse</title>
		<link>http://www.usercore.com/eclipse-monkey-hard-word-wrap-or-selection-wrap-in-eclipse/</link>
		<comments>http://www.usercore.com/eclipse-monkey-hard-word-wrap-or-selection-wrap-in-eclipse/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 17:24:03 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.usercore.com/2008/03/11/eclipse-monkey-hard-word-wrap-or-selection-wrap-in-eclipse/</guid>
		<description><![CDATA[The word wrap and selection wrap support in Eclipse leaves a bit to be desired.  The biggest problem for me is that I can&#8217;t remember how to do even do it in a default install.  I think there&#8217;s something in the editor config but it&#8217;s difficult to find and I always forget where [...]]]></description>
			<content:encoded><![CDATA[<p>The word wrap and selection wrap support in Eclipse leaves a bit to be desired.  The biggest problem for me is that I can&#8217;t remember how to do even do it in a default install.  I think there&#8217;s something in the editor config but it&#8217;s difficult to find and I always forget where it is.</p>
<p>I recently found this script for <a href="http://www.aptana.com/docs/index.php/Wrapping_selected_text" title="Eclipse Monkey Wrap Text">Wrapping Text using Eclipse Monkey</a>.  It&#8217;s some simple javascript that does hard wrapping around a certain number of characters per line.  It pays attention to words and will insure that your lines never go beyond a particular column width.</p>
<p>This solution works for my particular needs of having to past in some content from Firefox into html files in Eclipse.  Firefox doesn&#8217;t pay attention to the line brakes in the copying process so I end up getting some huge, ugly looking lines in Eclipse.  For html output, the hard wrap of lines, with a return after each line is fine.  If you&#8217;re using the CFEclipse plugin for Eclipse, there&#8217;s an icon in the tool bar that allows for soft wrapping of the text.  This is really the best way to go for non-destructive wrapping.  But that does assume you&#8217;re using CFEclipse and in that view.  Outside of that, this script using the Eclipse Monkey plugin is a big help.</p>
<p><a href="http://www.eclipse.org/dash/" title="Eclipse Monkey - Project Dash">Eclipse Monkey, Project Dash</a> is sweet.  It basically allows you to build plugins into the Eclipse interface using javascript, offering clean menu integration and hotkey support right out of the box.  I&#8217;ve spent all of 10 minutes thusfar with Eclipse Monkey, have installed this word wrap script and already have some other ideas of scripts I could pull off quickly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.usercore.com/eclipse-monkey-hard-word-wrap-or-selection-wrap-in-eclipse/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Flex Camp Chicago 2008</title>
		<link>http://www.usercore.com/flex-camp-chicago-2008/</link>
		<comments>http://www.usercore.com/flex-camp-chicago-2008/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 16:42:09 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.usercore.com/2008/01/18/flex-camp-chicago-2008/</guid>
		<description><![CDATA[I&#8217;m at Flex Camp Chicago right now.  Bob Tierney from Adobe is giving a keynote, reviewing some internal proof of concept flex apps.  While Bob did not specifically mention this, he had an interesting New York Times article on his screen.  This article, Airlines Work on Systems to Reduce Delays has an image of an [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m at Flex Camp Chicago right now.  Bob Tierney from Adobe is giving a keynote, reviewing some internal proof of concept flex apps.  While Bob did not specifically mention this, he had an interesting New York Times article on his screen.  This article, <a href="http://www.nytimes.com/2007/11/15/business/15airlines.html?_r=1&amp;oref=slogin">Airlines Work on Systems to Reduce Delays</a> has an image of an application from American Airlines that is clearly a Flex app.  That&#8217;s a pretty big name company using Flex, particularly for a publicly facing app.</p>
<p>Also this hasn&#8217;t been mentioned yet but I notice the Mate framework for Flex will be <a href="http://www.asfusion.com/blog/entry/speaking-at-cfobjective-and-webmaniacs-conferences" title="Mate Flex Framework">discussed at cfObjective this upcoming May by Laura Arguello</a>.  I haven&#8217;t been able to get my hands on this yet but it sounds interesting.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.usercore.com/flex-camp-chicago-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I would watch Darth Vader make hash browns</title>
		<link>http://www.usercore.com/i-would-watch-darth-vader-make-hash-browns/</link>
		<comments>http://www.usercore.com/i-would-watch-darth-vader-make-hash-browns/#comments</comments>
		<pubDate>Wed, 19 Dec 2007 03:50:24 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[OS X / Unix]]></category>

		<guid isPermaLink="false">http://www.usercore.com/2007/12/18/i-would-watch-darth-vader-make-hash-browns/</guid>
		<description><![CDATA[Random post based on MacBreak ep. 70.
Thanks to Merlin Mann for the title, this should make it into his mannerisms (pdf).  If you&#8217;re someone who would watch Darth Vader make hash browns, you&#8217;ll love the Star Wars Holiday Special from 1978.  Holy smokes.  This could very well be the most wonderfully horrible [...]]]></description>
			<content:encoded><![CDATA[<p>Random post based on MacBreak ep. 70.</p>
<p>Thanks to Merlin Mann for the title, this should make it into <a href="http://twit.tv/merlin.pdf" target="_blank">his mannerisms</a> (pdf).  If you&#8217;re someone who would watch Darth Vader make hash browns, you&#8217;ll love the Star Wars Holiday Special from 1978.  Holy smokes.  This could very well be the most wonderfully horrible bit of video I&#8217;ve seen.  Wow.  Do a search for Star Wars Holiday Special on You Tube for clips.  Or you can find the full special floating around usenet.  Or if you&#8217;re campically challenged but still want to get in on the fun, <a href="http://shop.rifftrax.com/rifftrax/star-wars-holiday-special">check out this version from Rifftrax</a> to have the humor explained for you.</p>
<p>Just ran across this list of <a href="http://menu.jeweledplatypus.org/">OSX menu bar items</a>.  Great collection.  The menu bar app, Caffeine  was pointed out to me.  This great little app allows you to disable and enable your energy saver settings with a single click.  So basically you can be a good little monkey and use efficient energy saver settings most of the time but then if you need it, click the ZZZ in the menu bar to make sure your computer won&#8217;t go to sleep.  If you give a presentation or watch a movie with your laptop unplugged, you know the annoyance of your screen shutting off or your screen saver coming on.  I&#8217;ve enjoyed <a href="http://softbend.free.fr/himmelbar/" title="by SoftBend">HimmelBar</a> but don&#8217;t see a need for it in leopard with the stacks functionality.   If you&#8217;re still using Tiger, check it out.  iDiskMenu looks very cool as well as a menu app to mount and unmount webdav and ftp network shares.  Unfortunately this doesn&#8217;t fire up in Leopard but it gets me wanting something to easily manage network shares.  Also nfs support is a must for me.  I&#8217;ll need to figure that out.  Seems like a perfect job for the <a href="http://rixstep.com">RixStep guys</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.usercore.com/i-would-watch-darth-vader-make-hash-browns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ColdFusion 8 and Plesk 8 on Red Hat ES 4</title>
		<link>http://www.usercore.com/coldfusion-8-and-plesk-8-on-red-hat-es-4/</link>
		<comments>http://www.usercore.com/coldfusion-8-and-plesk-8-on-red-hat-es-4/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 14:18:52 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Server Architecture]]></category>

		<guid isPermaLink="false">http://www.usercore.com/2007/08/29/coldfusion-8-and-plesk-8-on-red-hat-es-4/</guid>
		<description><![CDATA[By default the Plesk control panel does not work with ColdFusion 8 yet.  It sounds like official support will be available in Q1 of &#8216;08.  I couldn&#8217;t wait that long.  I&#8217;ve been able to get Plesk 8 to work with ColdFusion 8 to a degree.
I assume you&#8217;re familiar with how to install [...]]]></description>
			<content:encoded><![CDATA[<p>By default the Plesk control panel does not work with ColdFusion 8 yet.  It sounds like official support will be available in Q1 of &#8216;08.  I couldn&#8217;t wait that long.  I&#8217;ve been able to get Plesk 8 to work with ColdFusion 8 to a degree.</p>
<p>I assume you&#8217;re familiar with how to install both separately so I&#8217;ll just be going over how to get both to play together.</p>
<p>In my world the Plesk control panel is just used simply used so that staff in our small software company can manage websites and not need to use a shell.  No one else even has access to Plesk.  Because of this, separation and security are not primary concerns.  Also, I have no need to let anyone or myself manage CF DSN&#8217;s from within Plesk, being able to do this in CF Admin is fine.</p>
<p>So what I&#8217;ve done is enable the ColdFusion checkbox used when setting up a website so that CF code can be used on a particular website.  Any ColdFusion management capabilities of Plesk are not enabled.</p>
<p><code>[root@yadda]# /usr/local/psa/bin/cfsetting -s /opt/coldfusion8<br />
I/O warning : failed to load external entity "/opt/coldfusion8/runtime/servers/default/SERVER-INF/jrun.xml"<br />
Config not parsed successfully.</code></p>
<p>Running that cfsetting command with the -s switch and the cf root from the commandline showed me an error plesk was running into.  I found jrun.xml in a different place.</p>
<p><code>/opt/coldfusion8/runtime/servers/coldfusion/SERVER-INF/jrun.xml</code></p>
<p>Since I think jrun.xml should be pretty much the same from CF7 to CF8, I&#8217;m going to just try pointing Plesk to the right place with a simlink.</p>
<p><code>cd /opt/coldfusion8/runtime/servers/ &amp;&amp; ln -s coldfusion default</code></p>
<p>Now I run the cfsetting command again.</p>
<p><code>/usr/local/psa/bin/cfsetting -s /opt/coldfusion8</code></p>
<p>Now I notice when starting up Apache that it&#8217;s trying to startup mod_jrun twice.  In my ColdFusion install I selected to build a mod_jrun connector to hook into Apache during the install.  Turns out that this conflicts with Plesk.  It&#8217;s a simple fix.  Just fire up your httpd.conf file and look for all instances of cfm or jrun.  You should see these entries toward the bottom of the file.  Just comment out the whole block of stuff by putting a hash sign in from of the lines.  Or you could always delete this stuff if you want.</p>
<p>For each website that you enable ColdFusion support for you should see this code in the httpd.include file for the site.<br />
<code><br />
JRunConfig Verbose false<br />
JRunConfig Apialloc false<br />
JRunConfig Ignoresuffixmap false<br />
JRunConfig Serverstore /opt/coldfusion8/runtime/lib/wsconfig/psa/jrunserver.store<br />
JRunConfig Bootstrap 127.0.0.1:51800<br />
AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc</code></p>
<p>If you need to do a little troubleshooting, just make sure that you don&#8217;t see code like this in any of the global config files for apache.  As well make sure your jrunserver.store file exists.  And make sure you&#8217;re loading the mod_jrun module somewhere.  Plesk should drop this into zz010_psa_httpd.conf in the conf.d folder.  Make sure that exists: LoadModule jrun_module /opt/coldfusion8/runtime/lib/wsconfig/psa/mod_jrun20.so.  And lastly, double check your jrun.xml file you should see a mention of jrun broadcasting on port 51800 &#8230; you should see that in the jrun.servlet.jrpp.JRunProxyService block of the jrun.xml file.  It&#8217;s possible that jrun is running on a different port, if that&#8217;s the case you&#8217;ll need to change it to 51800.  Or somehow find out how to change the Plesk default.</p>
<p>If you have any troubles, post a comment here and I&#8217;ll see if I can help.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.usercore.com/coldfusion-8-and-plesk-8-on-red-hat-es-4/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>ColorfulTabs for Firefox</title>
		<link>http://www.usercore.com/colorfultabs-for-firefox/</link>
		<comments>http://www.usercore.com/colorfultabs-for-firefox/#comments</comments>
		<pubDate>Thu, 26 Jul 2007 12:50:56 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.usercore.com/2007/07/26/colorfultabs-for-firefox/</guid>
		<description><![CDATA[A recent episode of dl.tv pointed me to the ColorfulTabs firefox extension.  This extension simply colors the background of each new tab you open in a different color.  The color palate is chosen from pastels that allow the black title text in the tab to show up well.  At first when I [...]]]></description>
			<content:encoded><![CDATA[<p>A recent episode of dl.tv pointed me to the <a href="https://addons.mozilla.org/en-US/firefox/addon/1368" title="ColorfulTabs Firefox Extension" target="_blank">ColorfulTabs firefox extension</a>.  This extension simply colors the background of each new tab you open in a different color.  The color palate is chosen from pastels that allow the black title text in the tab to show up well.  At first when I installed it yesterday part of me felt like it was a gimmick.  After using this for the day, I really enjoy it.  When I&#8217;ve got a couple dozen tabs open, I&#8217;m able to find an older one with an obfuscated title name much quicker.  That extra mental association with the color of the tab helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.usercore.com/colorfultabs-for-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello again world!</title>
		<link>http://www.usercore.com/hello-world/</link>
		<comments>http://www.usercore.com/hello-world/#comments</comments>
		<pubDate>Sun, 10 Jun 2007 04:52:48 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I&#8217;m converting usercore from BlogCFC.  Now that my wife is going to start blogging and we&#8217;re going to co-write a blog for my daughter, I have seen it wise to chose a unified more polished platform with smooth edges, doilies and the like.  Foof on &#8230; wordpress, here we come.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m converting usercore from BlogCFC.  Now that my wife is going to start blogging and we&#8217;re going to <a href="http://www.curiousgeorgia.com">co-write a blog for my daughter</a>, I have seen it wise to chose a unified more polished platform with smooth edges, doilies and the like.  Foof on &#8230; wordpress, here we come.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.usercore.com/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple iPhone &#8211; 2 yr minimum</title>
		<link>http://www.usercore.com/apple-iphone-2-yr-minimum/</link>
		<comments>http://www.usercore.com/apple-iphone-2-yr-minimum/#comments</comments>
		<pubDate>Tue, 05 Jun 2007 16:16:00 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.usercore.com/2007/06/05/apple-iphone-2-yr-minimum/</guid>
		<description><![CDATA[I was just taking a look at some of the new iPhone ads and noticed that a 2 yr minimum agreement is required for iPhones.  Ouch.  Of course the phone companies prefer you to sign on for 2 years but you&#8217;d think they&#8217;d give you a break for agreeing to that &#8230; not [...]]]></description>
			<content:encoded><![CDATA[<p>I was just taking a look at some of the new <a href="http://www.apple.com/iphone/ads/">iPhone ads</a> and noticed that a 2 yr minimum agreement is required for iPhones.  Ouch.  Of course the phone companies prefer you to sign on for 2 years but you&#8217;d think they&#8217;d give you a break for agreeing to that &#8230; not 2 years or blow.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.usercore.com/apple-iphone-2-yr-minimum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
