<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>FUblog</title>
			<link>http://developer.fusium.com/fublog/</link>
			<description>Fusium Blog </description>
			<language>en-us</language>
			<pubDate>Wed, 08 Sep 2010 18:16:00 -0400</pubDate>
			<lastBuildDate>Tue, 29 May 2007 00:00:00 -0400</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>info@Fusium.com</managingEditor>
			<webMaster>info@Fusium.com</webMaster>
			
			
			
			
			
			<item>
				<title>Moving On</title>
				<link>http://developer.fusium.com/fublog//2007/5/29/Moving-On</link>
				<description>
				
				As you can see, there&apos;s not much activity here anymore.

You can find more of Nat&apos;s wisdom at &lt;a href=&quot;http://www.webapper.net/&quot;&gt;webapper&lt;/a&gt;. 

Erik is now blogging at &lt;a href=&quot;http://www.psykel.com/blog/&quot;&gt;psykel&lt;/a&gt;. 

Happy Trails,
grumps
				
				</description>
				
				<category>Server</category>
				
				<category>General</category>
				
				<category>CSS</category>
				
				<category>Java</category>
				
				<category>ColdFusion</category>
				
				<category>FUsebox</category>
				
				<category>Minaret</category>
				
				<category>Hardware</category>
				
				<category>Database</category>
				
				<category>CommonSnot</category>
				
				<pubDate>Tue, 29 May 2007 00:00:00 -0400</pubDate>
				<guid>http://developer.fusium.com/fublog//2007/5/29/Moving-On</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>appending an ntext field</title>
				<link>http://developer.fusium.com/fublog//2006/7/13/appending-an-ntext-field</link>
				<description>
				
				Say you want to do something like this:

update table set ntextThing = ntextThing + &apos;!&apos; where id = 1

That&apos;s not going to work.  This does, though:

&lt;code&gt;
DECLARE @ptrval binary(16)
SELECT @ptrval = TEXTPTR(ntextThing) 
FROM item 
WHERE id =1
UPDATETEXT table.ntextthing @ptrval NULL 0 &apos;!&apos;
GO 
&lt;/code&gt;
				
				</description>
				
				<category>Database</category>
				
				<pubDate>Thu, 13 Jul 2006 14:50:00 -0400</pubDate>
				<guid>http://developer.fusium.com/fublog//2006/7/13/appending-an-ntext-field</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Selenium Uses?</title>
				<link>http://developer.fusium.com/fublog//2006/6/25/Selenium-Uses</link>
				<description>
				
				Has anyone used &lt;a href=&quot;http://www.openqa.org/selenium-ide/&quot;&gt;Selenium IDE&lt;/a&gt;? I&apos;m anxious to hear from someone who has used it in practice. Of course it looks cool, but, like LiveHTTPHeaders, it would remain an unused Firefox plugin until that one day when I couldn&apos;t live without it. (Of course now I use LiveHTTPHeaders about once a week.)
				
				</description>
				
				<category>General</category>
				
				<pubDate>Sun, 25 Jun 2006 16:31:00 -0400</pubDate>
				<guid>http://developer.fusium.com/fublog//2006/6/25/Selenium-Uses</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Exporting DTS Packages</title>
				<link>http://developer.fusium.com/fublog//2006/6/24/Exporting-DTS-Packages</link>
				<description>
				
				When you backup and restore an MSSQL database, or use DTS to move schema and/or data between servers, you won&apos;t get the DTS packages that apply to that database. But what if your application relies on those DTS packages? You&apos;re gonna need to DTS the DTS packages. And here&apos;s how you do it.
				 [More]
				</description>
				
				<category>Database</category>
				
				<pubDate>Sat, 24 Jun 2006 12:43:00 -0400</pubDate>
				<guid>http://developer.fusium.com/fublog//2006/6/24/Exporting-DTS-Packages</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>FileZilla aliases</title>
				<link>http://developer.fusium.com/fublog//2006/6/14/FileZilla-aliases</link>
				<description>
				
				Grumpy, Fusium&apos;s Senior FileZilla Administrator (in addition to Junior Arctic Silver Engineer) found out (the hard way) how to add aliases to FileZilla. See, the little helper text on the Alias dialog box is very cryptic. Here&apos;s how you do it.

Go to User management, then pick the user, then shared folders.

Then enter the path to the target of the alias in the left column (via the folder browser popup), then dbl-click the white area to the right of it (under the Alias column), then type in the full path to an imaginary folder based on the ftp user&apos;s home directory. So if the user&apos;s home directory is c:\ftproot\user and you want them to be able to cd to c:\somedir, you enter c:\ftproot\user\somedir as the alias. But don&apos;t actually make that folder on the file system.

Goofy, but now it&apos;s documented for the next time we need to add an alias.
				
				</description>
				
				<category>Server</category>
				
				<category>General</category>
				
				<pubDate>Wed, 14 Jun 2006 15:39:00 -0400</pubDate>
				<guid>http://developer.fusium.com/fublog//2006/6/14/FileZilla-aliases</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Nested Query Loops - Worst code ever</title>
				<link>http://developer.fusium.com/fublog/?mode=entry&amp;entry=6F453555-B754-F0CF-180CE879AB8F2E0D</link>
				<description>
				
				I had no idea how bad nested query loops are.  But oh man, they are BAD.  

I came across this &quot;technique&quot; this week when a very busy site started resonding extremely slowly - like 30 seconds per request, sometimes more.  I didn&apos;t write the code, but I &quot;got&quot; to fix it.

Check this out, if you have a strong stomach:
				 [More]
				</description>
				
				<category>ColdFusion</category>
				
				<pubDate>Thu, 25 May 2006 22:44:00 -0400</pubDate>
				<guid>http://developer.fusium.com/fublog/?mode=entry&amp;entry=6F453555-B754-F0CF-180CE879AB8F2E0D</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>SeeFusion really saved our asses</title>
				<link>http://developer.fusium.com/fublog/?mode=entry&amp;entry=6EDA996C-BB3F-25D7-AD82570344BBA33E</link>
				<description>
				
				This past Sunday, the 21st of May &apos;06, DNS transferred over to our servers for a big client site we rebuilt. Monday was sketchy with uptime declining, our server monitors beeping pretty much all day and us pulling our hair out trying to figure out the problem. Since then, we&apos;ve been locked in a fight-to-the-death for the last few days with our monster server.
				 [More]
				</description>
				
				<category>Server</category>
				
				<category>ColdFusion</category>
				
				<category>Hardware</category>
				
				<pubDate>Thu, 25 May 2006 20:54:00 -0400</pubDate>
				<guid>http://developer.fusium.com/fublog/?mode=entry&amp;entry=6EDA996C-BB3F-25D7-AD82570344BBA33E</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Keep it scalable, kids</title>
				<link>http://developer.fusium.com/fublog/?mode=entry&amp;entry=60112D48-E181-5AD2-0C090CD206032902</link>
				<description>
				
				We had a lot of trouble today with some really bad code that looked to be written about 10 years ago.

It was simply horrible.  Nested loops, tons of CFIFs, you name it.  Opening and editing this one CF file felt kinda like fixing a leaky pipe in my crawlspace.  Dusty air, spiders all over the place, dark, no room to move...yuck.

Anyway this one page suddenly became very popular, and was definately NOT scalable.  I rewrote it so the server would stop crashing (!) and it is now seriously about 100 times faster than before.

If, by chance, you are a person looking for web development services, be sure to get someone who knows what they&apos;re doing.  

If, by chance, you are a developer, make your code scalable.  Most of you know this, but I&apos;ll say it anyway -- Just because your code runs well on your dev box, it doesn&apos;t mean it will perform the same way when it&apos;s hit by 50 concurrent users.  And if you have to write nasty slow code, at least cache it.

Thanks, I&apos;m going to bed now.
				
				</description>
				
				<category>General</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Mon, 22 May 2006 23:55:00 -0400</pubDate>
				<guid>http://developer.fusium.com/fublog/?mode=entry&amp;entry=60112D48-E181-5AD2-0C090CD206032902</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>International Characters</title>
				<link>http://developer.fusium.com/fublog/?mode=entry&amp;entry=1F1FA316-AEB6-0AB7-4A7E7B8473D63AB2</link>
				<description>
				
				Every now and then you get a little job that seems simple and straight forward, but is anything but.  I just encountered one of those.

I recently inherited an old CF application, written in CF 4.5 or 5.0.

The cfml templates have Japanese characters simply pasted in the file, with a meta tag in the HEAD section of the HTML that sets the character set to x-sjis (shift japanese).
				 [More]
				</description>
				
				<category>ColdFusion</category>
				
				<pubDate>Tue, 21 Mar 2006 15:07:00 -0400</pubDate>
				<guid>http://developer.fusium.com/fublog/?mode=entry&amp;entry=1F1FA316-AEB6-0AB7-4A7E7B8473D63AB2</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>SES can cause trouble if you&apos;re not careful</title>
				<link>http://developer.fusium.com/fublog/?mode=entry&amp;entry=09BD6C62-9535-39A9-AF1FC6B2DC0010FE</link>
				<description>
				
				So I recently deployed some SES URL code to a big site we did.  One thing I forgot to do was adjust a layout file that is used by sort of sister site - same content, different layouts.

Anyway, I did not add the BASE HREF tag to this layout file.  The layout file uses about 50 images or so, all called via a virtual directory.  

&lt;div class=&quot;code&quot;&gt;&lt;FONT COLOR=NAVY&gt;&lt;FONT COLOR=PURPLE&gt;&amp;lt;img src=&lt;FONT COLOR=BLUE&gt;&quot;myDir/whatever.gif&quot;&lt;/FONT&gt;&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/div&gt;

Since I forgot to add a BASE HREF, each image call was preceded with the entire SES url:

&lt;div class=&quot;code&quot;&gt;&lt;FONT COLOR=NAVY&gt;&lt;FONT COLOR=PURPLE&gt;&amp;lt;img src=&lt;FONT COLOR=BLUE&gt;&quot;&lt;A TARGET=&quot;_blank&quot; HREF=&quot;http://www.example.com/one/two/three/myDir/whatever.gif&quot;&gt;http://www.example.com/one/two/three/myDir/whatever.gif&lt;/A&gt;&quot;&lt;/FONT&gt;&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/div&gt;

So each image request actually called a page of the site!  Worse yet, the code took MYDIR as a url parameter, which caused the code to throw an error (an unexpected value).

So each page request was throwing about 50 or so errors, each of which resulted in a robust error report sent to my inbox.  I&apos;m still getting email messages 30 minutes later.  Ugh.
				
				</description>
				
				<category>General</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Fri, 17 Mar 2006 11:36:00 -0400</pubDate>
				<guid>http://developer.fusium.com/fublog/?mode=entry&amp;entry=09BD6C62-9535-39A9-AF1FC6B2DC0010FE</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>SES lives on</title>
				<link>http://developer.fusium.com/fublog/?mode=entry&amp;entry=095FF786-059E-B566-621280162E01617F</link>
				<description>
				
				I&apos;ve done a lot of work with SES, (Search Engine Safe) URLS in the past.  I new project has recently required I use them again.  

This client knows a lot about Google placement so it&apos;s quite interesting.  We&apos;ll see how they work.

Changes will probably be made to the &lt;a href=&quot;http://www.redvipersystems.com&quot;&gt;red viper systems&lt;/a&gt; and &lt;a href=&quot;http://www.greenvipersystems.com&quot;&gt;green viper systems&lt;/a&gt; websites based on the lessons learned here.

See &lt;a href=&quot;http://www.fusium.com/go/ses&quot;  target=&quot;_blank&quot;&gt;here&lt;/a&gt; for our sesConverter stuff, or &lt;a href=&quot;http://developer.fusium.com/tools/sesDemo/&quot; target=&quot;_blank&quot;&gt; see it in action&lt;/a&gt;.
				
				</description>
				
				<category>General</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Fri, 17 Mar 2006 10:00:00 -0400</pubDate>
				<guid>http://developer.fusium.com/fublog/?mode=entry&amp;entry=095FF786-059E-B566-621280162E01617F</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>base href breaks javascript form submit</title>
				<link>http://developer.fusium.com/fublog/?mode=entry&amp;entry=095DBBF9-F83F-222F-15FB46926245C2AB</link>
				<description>
				
				I placed a BASE HREF tag in my application the other day.  To my dismay, it somehow screwed up all of my links that submit a form.  For example:

&lt;div class=&quot;code&quot;&gt;&lt;FONT COLOR=GREEN&gt;&amp;lt;a href=&lt;FONT COLOR=BLUE&gt;&quot;#&quot;&lt;/FONT&gt; onclick=&lt;FONT COLOR=BLUE&gt;&quot;document.theForm.submit();&quot;&lt;/FONT&gt;&amp;gt;&lt;/FONT&gt;&lt;/div&gt;

I still am not sure what the issue is.  I worked around it fairly easily so I guess I&apos;ll put off investigation for when I have the time.

But it&apos;s a very irritating little problem that took a while to diagnose.
				
				</description>
				
				<category>General</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Fri, 17 Mar 2006 09:56:00 -0400</pubDate>
				<guid>http://developer.fusium.com/fublog/?mode=entry&amp;entry=095DBBF9-F83F-222F-15FB46926245C2AB</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Steal all the links on a page with JavaScript</title>
				<link>http://developer.fusium.com/fublog/?mode=entry&amp;entry=FB38EBEB-FFF3-4EFC-542740F1DD6DB7DD</link>
				<description>
				
				Today I had a bitchy requirement from a client. He had a particular form on which he kept forgetting to click the save button to submit the form. He would make some changes, scroll around a bit then click off the form - maybe to another tab, maybe another nav link on the site - and lose his form changes.

The most straightforward solution would be to modify all the links on the page to set a hidden &quot;nexturl&quot; value on the form, then submit() the form instead of going to their designated URLs. But there were 27 links on the page, some in nav headers, many on includes, nested layouts, etc. Not gonna happen. I&apos;m not putting code like this in every link on the whole site.

&lt;div class=&quot;code&quot;&gt;&lt;FONT COLOR=GREEN&gt;&amp;lt;a href=&lt;FONT COLOR=BLUE&gt;&quot;&lt;FONT COLOR=MAROON&gt;&amp;lt;cfif attributes.fuseaction is &quot;&lt;/FONT&gt;admin.bigform&lt;FONT COLOR=BLUE&gt;&quot;&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;javascript:setvalue(&quot;&lt;/FONT&gt;index.cfm?fa=main.foo&lt;FONT COLOR=BLUE&gt;&quot;);theform.submit()&lt;FONT COLOR=MAROON&gt;&lt;br&gt;&amp;lt;cfelse&amp;gt;&lt;/FONT&gt;index.cfm?fa=main.foo&lt;FONT COLOR=MAROON&gt;&amp;lt;/cfif&amp;gt;&lt;/FONT&gt;&quot;&lt;/FONT&gt;&amp;gt;Main&lt;FONT COLOR=GREEN&gt;&amp;lt;/a&amp;gt;&lt;/FONT&gt;&lt;/div&gt;

The answer lies in the document.links JavaScript array. I was able to rewrite every link using the following code:

&lt;div class=&quot;code&quot;&gt;&lt;FONT COLOR=NAVY&gt;&lt;FONT COLOR=MAROON&gt;&amp;lt;script  language=&lt;FONT COLOR=BLUE&gt;&quot;javascript&quot;&lt;/FONT&gt;&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;for(i=0;i&lt;FONT COLOR=NAVY&gt;&amp;lt;document.links.length;i++){&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;document.links[i].href = &lt;FONT COLOR=BLUE&gt;&quot;javascript:document.requestform.nexturl.value=&apos;&quot;&lt;/FONT&gt; + &lt;br&gt;document.links[i].href + &lt;FONT COLOR=BLUE&gt;&quot;&apos;;document.requestform.submit();&quot;&lt;/FONT&gt;;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br&gt;
&lt;FONT COLOR=MAROON&gt;&amp;lt;/script&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/div&gt;

Good luck!
				
				</description>
				
				<category>General</category>
				
				<pubDate>Tue, 14 Mar 2006 15:59:00 -0400</pubDate>
				<guid>http://developer.fusium.com/fublog/?mode=entry&amp;entry=FB38EBEB-FFF3-4EFC-542740F1DD6DB7DD</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>&amp;lt;TBODY&amp;gt; is handy</title>
				<link>http://developer.fusium.com/fublog/?mode=entry&amp;entry=DDAD7CC8-E933-3CAE-6225549DDD9F44AB</link>
				<description>
				
				TBODY?  I never used it before.  I thought it was just something Dreamweaver put in HTML for some reason.

But the other day, TBODY came in handy.  I used it to make a quick and dirty blowout user interface like this:

&lt;script language=&quot;Javascript&quot;&gt;
function toggle(theID) {
foo = document.getElementById(theID);
if (foo.style.display == &apos;none&apos;) foo.style.display = &apos;&apos;;
else foo.style.display = &apos;none&apos;;
return;
}
&lt;/script&gt;

&lt;table&gt;
&lt;tr&gt;
&lt;Td&gt;
&lt;A href=&quot;javascript:toggle(&apos;thing1&apos;)&quot;&gt;[+]&lt;/A&gt;
Thing 1
&lt;/td&gt;
&lt;/tr&gt;
&lt;tbody style=&quot;display:none;&quot; id=&quot;thing1&quot;&gt;
&lt;tr&gt;&lt;td&gt;Sub Thing 1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Sub Thing 2&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;


The code is very simple - and I got to finally use TBODY:
				 [More]
				</description>
				
				<category>General</category>
				
				<category>CSS</category>
				
				<pubDate>Wed, 08 Mar 2006 22:12:00 -0400</pubDate>
				<guid>http://developer.fusium.com/fublog/?mode=entry&amp;entry=DDAD7CC8-E933-3CAE-6225549DDD9F44AB</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>RegEx Backreferences</title>
				<link>http://developer.fusium.com/fublog/?mode=entry&amp;entry=DC472FEF-C945-82A2-F5A8E0915AFA7B81</link>
				<description>
				
				Backreferences are cool, but I&apos;ve never needed to use them before.  

I just ran into something where they were quite handy.

I had to manipulate a string like the following:
&lt;div class=&quot;code&quot;&gt;TNF S/S VENT POLY SHIRT W&lt;/div&gt;

The end goal was to see if the string had either a S/S or L/S in it, along with SHIRT.  If both substrings were found, remove SHIRT and move the S/S or L/S to the end of the string.

It&apos;s not hard, but a one liner kind of is.  Backreferences really helped out here.
				 [More]
				</description>
				
				<category>General</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Wed, 08 Mar 2006 15:47:00 -0400</pubDate>
				<guid>http://developer.fusium.com/fublog/?mode=entry&amp;entry=DC472FEF-C945-82A2-F5A8E0915AFA7B81</guid>
				
			</item>
			
		 	
			</channel></rss>
	

