<?xml version="1.0" encoding="utf-8"?>

			<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

			<channel>
			<title>Ruslan Sivak - ColdFusion</title>
			<link>http://www.ruslansivak.com</link>
			<description>This is the development blog.</description>
			<language>en-us</language>
			<pubDate>Tue, 07 Sep 2010 22:44:46 -0400</pubDate>
			<lastBuildDate>Tue, 11 May 2010 19:23:00 -0400</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>russ@ruslansivak.com</managingEditor>
			<webMaster>russ@ruslansivak.com</webMaster>
			<itunes:subtitle></itunes:subtitle>
			<itunes:summary></itunes:summary>
			<itunes:category text="Technology" />
			<itunes:category text="Technology">
				<itunes:category text="Podcasting" />
			</itunes:category>
			<itunes:category text="Technology">
				<itunes:category text="Tech News" />
			</itunes:category>
			<itunes:keywords></itunes:keywords>
			<itunes:author></itunes:author>
			<itunes:owner>
				<itunes:email>russ@ruslansivak.com</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			
			<itunes:explicit>no</itunes:explicit>
			
			
			
			
			
			<item>
				<title>Get rid of the temp files generated by ColdFusion Builder.</title>
				<link>http://www.ruslansivak.com/2010/5/11/Get-rid-of-the-temp-files-generated-by-ColdFusion-Builder</link>
				<description>
				
				When opening an html file with CFBuilder, it was generating a temp file in my workspace - that wasn&apos;t going away when you closed the file.  Digging into the issue, it turns out that Aptana - which is CFBuilder&apos;s HTML editor, does this.  To get rid of this behavior, uncheck the following option:

&lt;code&gt;
Window-&gt;Preferences-&gt;HTML-&gt;Editors-&gt;HTML-&gt;Preview-&gt;Generate temporary files for browser previews. 
&lt;/code&gt;
				
				</description>
				
				
				<category>ColdFusion</category>
				
				<category>CFBuilder</category>
				
				<pubDate>Tue, 11 May 2010 19:23:00 -0400</pubDate>
				<guid>http://www.ruslansivak.com/2010/5/11/Get-rid-of-the-temp-files-generated-by-ColdFusion-Builder</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Railo on Tomcat on Windows x64 - Part III</title>
				<link>http://www.ruslansivak.com/2009/12/3/Railo-on-Tomcat-on-Windows-x64--Part-IV</link>
				<description>
				
				Now that we&apos;ve got Tomcat, Railo and Apache httpd up and running, lets connect Tomcat and Apache.  

For this we will need a mod_jk connector.  The binary can be found &lt;a href=&quot;http://www.trieuvan.com/apache/tomcat/tomcat-connectors/jk/binaries/&quot;&gt;here&lt;/a&gt;.  

There is no x64 connector as there is no x64 official release of Apache httpd, so we will be using the x32 connector.  In my case I downloaded &lt;a href=&quot;http://www.trieuvan.com/apache/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.28/mod_jk-1.2.28-httpd-2.2.3.so&quot;&gt;mod_jk-1.2.28-httpd-2.2.3.so&lt;/a&gt; from the win32 folder.  Download this file and put it in C:\Apache2\modules.   Now rename it to mod_jk.so

Create a file in c:\Apache2\conf\extra called workers.properties and put this into the file
&lt;code&gt;
  # Define 1 real worker using ajp13
  worker.list=worker1
  # Set properties for worker1 (ajp13)
  worker.worker1.type=ajp13
  worker.worker1.host=localhost
  worker.worker1.port=8009
&lt;/code&gt;

Now lets &lt;a href=&quot;http://www.getrailo.org/index.cfm/download/&quot;&gt;download Railo&lt;/a&gt; and lets set it up.  We want to get the custom one, the jars, in my case &quot;railo-3.1.2.001-jars.zip (34 MB)&quot;.  Create a Railo folder in the Tomcat folder, in my case &quot;C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0&quot;.  

Now open up the railo zip file and put the jar files from the railo-3.1.2.001-jars into the railo folder we just created.  

Now edit the catalina.properties file that was in Tomcat conf folder, in my case &quot;C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\conf&quot;.   Find the line that says &quot;common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar&quot; and edit it to say &quot;common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/railo/*.jar&quot;

Now open tomcat-users.xml and change the encoding to utf-8.  
At the top where it says &quot;&amp;lt;?xml version=&apos;1.0&apos; encoding=&apos;cp1252&apos;?&amp;gt;&quot; and change it to &quot;&amp;lt;?xml version=&apos;1.0&apos; encoding=&apos;utf-8&apos;?&amp;gt;&quot;  This is needed due to some weird Tomcat bug on windows.  

Now lets open web.xml in the Tomcat&apos;s conf directory.  Just before the &quot;Built In Servlet Mappings&quot; add the following: 

&lt;code&gt;
&lt;servlet&gt;
   &lt;servlet-name&gt;RailoCFMLServlet&lt;/servlet-name&gt;
   &lt;description&gt;CFML runtime Engine&lt;/description&gt;
   &lt;servlet-class&gt;railo.loader.servlet.CFMLServlet&lt;/servlet-class&gt;
   &lt;init-param&gt;
&lt;param-name&gt;configuration&lt;/param-name&gt;
&lt;param-value&gt;/WEB-INF/railo&lt;/param-value&gt;
&lt;description&gt;Configuration directory&lt;/description&gt;
&lt;/init-param&gt;   
   &lt;!-- init-param&gt;
&lt;param-name&gt;railo-server-root&lt;/param-name&gt;
&lt;param-value&gt;.&lt;/param-value&gt;
&lt;description&gt;directory where railo root directory is stored&lt;/description&gt;
&lt;/init-param --&gt;
   &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
&lt;/servlet&gt;   
&lt;servlet&gt;
   &lt;servlet-name&gt;RailoAMFServlet&lt;/servlet-name&gt;
   &lt;description&gt;AMF Servlet for flash remoting&lt;/description&gt;
   &lt;servlet-class&gt;railo.loader.servlet.AMFServlet&lt;/servlet-class&gt;
   &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
&lt;/servlet&gt;   
&lt;servlet&gt;
   &lt;servlet-name&gt;RailoFileServlet&lt;/servlet-name&gt;
   &lt;description&gt;File Servlet for simple files&lt;/description&gt;
   &lt;servlet-class&gt;railo.loader.servlet.FileServlet&lt;/servlet-class&gt;
   &lt;load-on-startup&gt;2&lt;/load-on-startup&gt;
&lt;/servlet&gt;
&lt;/code&gt;

Now at the end of the servlet mapping section, add the following 

&lt;code&gt;
&lt;servlet-mapping&gt;
   &lt;servlet-name&gt;RailoCFMLServlet&lt;/servlet-name&gt;
   &lt;url-pattern&gt;*.cfm&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;servlet-mapping&gt;
   &lt;servlet-name&gt;RailoCFMLServlet&lt;/servlet-name&gt;
   &lt;url-pattern&gt;*.cfml&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;servlet-mapping&gt;
   &lt;servlet-name&gt;RailoCFMLServlet&lt;/servlet-name&gt;
   &lt;url-pattern&gt;*.cfc&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;servlet-mapping&gt;
   &lt;servlet-name&gt;RailoAMFServlet&lt;/servlet-name&gt;
   &lt;url-pattern&gt;/flashservices/gateway/*&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;servlet-mapping&gt;
   &lt;!-- could be RailoFileServlet --&gt;
   &lt;servlet-name&gt;default&lt;/servlet-name&gt;
   &lt;url-pattern&gt;/&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;/code&gt;

Now open up server.xml and at the end of the file inside the Engine tag, we&apos;ll add a new host definition.  
&lt;code&gt;
&lt;Host name=&quot;railotest&quot; appBase=&quot;webapps&quot; unpackWARs=&quot;true&quot; autoDeploy=&quot;true&quot; xmlValidation=&quot;false&quot; xmlNamespaceAware=&quot;false&quot;&gt;
            &lt;Context path=&quot;&quot; docBase=&quot;c:/websites/railotest&quot; /&gt;
&lt;/Host&gt;
&lt;/code&gt;

Now lets go back to our httpd-vhosts.conf Apache file.  We need to add the following (I do this outside of any virtualhost definitions. 

&lt;code&gt;
# Load mod_jk module
LoadModule    jk_module  modules/mod_jk.so
# Where to find workers.properties
JkWorkersFile conf/extra/workers.properties
# Where to put jk shared memory
JkShmFile     logs/mod_jk.shm
# Where to put jk logs
JkLogFile     logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel    info
# Select the timestamp log format
JkLogStampFormat &quot;[%a %b %d %H:%M:%S %Y] &quot;
&lt;/code&gt;

We also need to add the following to the VirtualHost definition

&lt;code&gt;
	# Send requests for cfm files to worker named worker1
	JkMount  /*.cfm 	worker1
&lt;/code&gt;

The full virtualhost definition should look like

&lt;code&gt;
&lt;VirtualHost *:80&gt;
	DocumentRoot &quot;C:/websites/railotest&quot;
	ServerName railotest
	ErrorLog &quot;logs/railotest.com-error.log&quot;
	CustomLog &quot;logs/railotest-access.log&quot; common
	# Send requests for cfm files to worker named worker1
	JkMount  /*.cfm 	worker1
&lt;/VirtualHost&gt;

&lt;/code&gt;

Now if we restart Tomcat and Apache we should be able to hit http://railotest in our browser and see the debugging info.  We will also see a WEB-INF folder created inside c:\websites\railotest.  

Now lets put in an alias for the railo-context so that we can get to the admin.  Inside the virtual host add 

&lt;code&gt;
Alias /railo-context C:\websites\railotest\WEB-INF\railo\context
&lt;/code&gt;

Now restart Apache and we should be able to get to the Web Administrator for this host by going to http://railotest/railo-context/admin.cfm
				
				</description>
				
				
				<category>Windows x64</category>
				
				<category>Windows 2003</category>
				
				<category>ColdFusion</category>
				
				<category>Railo</category>
				
				<pubDate>Thu, 03 Dec 2009 21:58:00 -0400</pubDate>
				<guid>http://www.ruslansivak.com/2009/12/3/Railo-on-Tomcat-on-Windows-x64--Part-IV</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Railo on Tomcat on Windows x64 - Part II</title>
				<link>http://www.ruslansivak.com/2009/12/2/Railo-on-Tomcat-on-Windows-x64--Part-III</link>
				<description>
				
				In the previous two parts we installed Tomcat. Now lets set up Apache httpd server.  

I suggest downloading Apache from  &lt;a href=&quot;http://www.apachelounge.com/download/&quot;&gt;Apache Lounge&lt;/a&gt;.  The nice thing about Apache Lounge&apos;s builds is that they include mod_rewrite and mod_ssl.  

The latest version at the time of this writing is 2.2.14.  Download httpd-2.2.14-win32-x86-ssl.zip and open it in your favorite archiver (mine is &lt;a href=&quot;http://www.rarlab.com/download.htm&quot;&gt;WinRar&lt;/a&gt;).

I recommend taking the Apache2 folder inside the zip file and placing it on c:\.  After you&apos;ve done this you should have a c:\Apache2 folder with many files and subfolders in it.  

Open c:\Apache2\conf\httpd.conf file in your favorite text editor.  I recommend &lt;a href=&quot;http://www.textpad.com/download/index.html&quot;&gt;Textpad&lt;/a&gt;. 

I usually change a few things from the defaults.   Your configuration may differ.  

Change &lt;code&gt;ServerAdmin admin@example.com&lt;/code&gt; to your email address. 

Uncomment the following modules: 
&lt;code&gt;
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule rewrite_module modules/mod_rewrite.so
&lt;/code&gt;
by removing the # sign in front of the line.  

Find the line that says &lt;code&gt;&lt;Directory &quot;c:/Apache2/htdocs&quot;&gt;&lt;/code&gt;

After closing directory tag lets add one allowing access to our web root.  I usually set up a folder or a new drive for it.  Lets say we set up a webroot of &quot;c:\websites&quot;.  Create a folder websites on c: and then inside it create another folder called railotest.  We will use this to set up our test site.  

After the closing &lt;/directory&gt; tag, add a new one allowing access to our web root.  
&lt;code&gt;
&lt;Directory &quot;c:/websites&quot;&gt;
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
&lt;/Directory&gt;
&lt;/code&gt;

This will allow Apache to serve from anywhere inside c:\websites.  Alternatively, you can set up a new directory entry for every site that you create, but I find that this makes things easier without significantly impacting security.  

Find the line that says 

&lt;code&gt;
    DirectoryIndex index.html
&lt;/code&gt;

and add index.cfm to that list

&lt;code&gt;
    DirectoryIndex index.html index.cfm
&lt;/code&gt;

Uncomment the line that says &lt;code&gt;#Include conf/extra/httpd-vhosts.conf&lt;/code&gt; by removing the # sign.  

Now open up httpd-vhosts.conf file that is located in &quot;C:\Apache2\conf\extra&quot;.  

There are two sample virtual hosts defined.  Lets comment them both out.  Alternatively you can just delete them. 

&lt;code&gt;
&lt;VirtualHost *:80&gt;
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot &quot;c:/Apache2/docs/dummy-host.example.com&quot;
    ServerName dummy-host.example.com
    ServerAlias www.dummy-host.example.com
    ErrorLog &quot;logs/dummy-host.example.com-error.log&quot;
    CustomLog &quot;logs/dummy-host.example.com-access.log&quot; common
&lt;/VirtualHost&gt;

&lt;VirtualHost *:80&gt;
    ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot &quot;c:/Apache2/docs/dummy-host2.example.com&quot;
    ServerName dummy-host2.example.com
    ErrorLog &quot;logs/dummy-host2.example.com-error.log&quot;
    CustomLog &quot;logs/dummy-host2.example.com-access.log&quot; common
&lt;/VirtualHost&gt;
&lt;/code&gt;
should look like this:

&lt;code&gt;
#&lt;VirtualHost *:80&gt;
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot &quot;c:/Apache2/docs/dummy-host.example.com&quot;
#    ServerName dummy-host.example.com
#    ServerAlias www.dummy-host.example.com
#    ErrorLog &quot;logs/dummy-host.example.com-error.log&quot;
#    CustomLog &quot;logs/dummy-host.example.com-access.log&quot; common
#&lt;/VirtualHost&gt;
#
#&lt;VirtualHost *:80&gt;
#    ServerAdmin webmaster@dummy-host2.example.com
#    DocumentRoot &quot;c:/Apache2/docs/dummy-host2.example.com&quot;
#    ServerName dummy-host2.example.com
#    ErrorLog &quot;logs/dummy-host2.example.com-error.log&quot;
#    CustomLog &quot;logs/dummy-host2.example.com-access.log&quot; common
#&lt;/VirtualHost&gt;
&lt;/code&gt;

Now lets add a new entry for our test server
&lt;code&gt;
&lt;VirtualHost *:80&gt;
    DocumentRoot &quot;C:/websites/railotest&quot;
    ServerName railotest
    ErrorLog &quot;logs/railotest.com-error.log&quot;
    CustomLog &quot;logs/railotest-access.log&quot; common
&lt;/VirtualHost&gt;
&lt;/code&gt;

Now save the files and lets try running apache and see if it worked. Open up command prompt (Start -&gt; Run -&gt; cmd.exe)

&lt;code&gt;
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator&gt;cd \apache2\bin

C:\Apache2\bin&gt;httpd
httpd: Could not reliably determine the server&apos;s fully qualified domain name, using xxx.xxx.xxx.xxx for ServerName
&lt;/code&gt;
We can ignore that warning since we don&apos;t care about the default configuration.  

Now we will need to define a host called railotest using windows hosts file.  Open up &quot;C:\windows\system32\drivers\etc\hosts&quot; file in your favorite text editor.  

After a bunch of comments, you should see 
&lt;code&gt;
127.0.0.1       localhost
&lt;/code&gt;

Lets add an entry for railotest

&lt;code&gt;
127.0.0.1       railotest
&lt;/code&gt;

Now this computer knows that railotest points to 127.0.0.1.  

Lets put a test cfm file in the webroot for railotest.  Create a new file called index.cfm and put it in c:\websites\railotest.  

Inside the file lets put some basic cf code

&lt;code&gt;
&lt;cfdump var=&quot;#server#&quot;&gt;
&lt;/code&gt;

If you still have apache running and put in http://railotest in your browser you should see the code being output.  It is not being interpreted yet because we have not hooked up Apache httpd to Railo.  We will do this in Part IV.  

For now lets set up apache to run as a service. 

First stop the httpd that you ran earlier by entering ctrl-c and do the following.
&lt;code&gt;
C:\Apache2\bin&gt;httpd -k install
Installing the Apache2.2 service
The Apache2.2 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
httpd: Could not reliably determine the server&apos;s fully qualified domain name, using xxx.xxx.xxx.xxx for ServerName
&lt;/code&gt;

The Apache service is now installed.  I recommend also adding the &quot;Apache Monitor&quot; app to your startup folder.  

Click Start-&gt;All Programs and right click on Startup.  Now click &quot;Explore All Users&quot;.  In another explorer window open up C:\Apache2\Bin and right drag ApacheMonitor.exe to the Startup folder.  Let go of the right mouse button and select &quot;Create shortcut here&quot;. 

Double click on the shortcut and the monitor App should appear in your taskbar next to the clock and next to Tomcat&apos;s icon.  

Double click it to open it and click start.  Now you have a working Apache installation that will start as a service.

If you enter http://railotest in your browser, you should see the code we wrote earlier.  This will persist across reboots.  

In the next part, we&apos;ll hook it up to Railo and be able to actually execute this code.
				
				</description>
				
				
				<category>Windows x64</category>
				
				<category>Windows 2003</category>
				
				<category>ColdFusion</category>
				
				<category>Tomcat</category>
				
				<category>Railo</category>
				
				<pubDate>Wed, 02 Dec 2009 17:47:00 -0400</pubDate>
				<guid>http://www.ruslansivak.com/2009/12/2/Railo-on-Tomcat-on-Windows-x64--Part-III</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Railo on Tomcat on Windows x64 - Part I</title>
				<link>http://www.ruslansivak.com/2009/12/2/Railo-on-Tomcat-on-Windows-x64</link>
				<description>
				
				I tried following &lt;a href=&quot;http://corfield.org/blog/index.cfm/do/blog.entry/entry/Railo_for_Dummies_Part_III&quot;&gt;Sean Corfield&apos;s excellent post&lt;/a&gt; on how to get Railo running on Tomcat, but ran into a few snags on my x64 windows system.

First download &lt;a href=&quot;http://tomcat.apache.org/download-60.cgi&quot;&gt;Tomcat 6&lt;/a&gt; from the Apache Foundation.  I picked the &quot;Windows Service Installer&quot; of the Core.

Start up the installer and hit next a few times until you get to the &quot;Choose Components&quot; section. Select Full install and then uncheck the Examples item as we won&apos;t be needing it.

Pick the installation folder, and the default port, and set a password for the administrator.  At the next step it will ask for a path to a J2SE 5.0 JRE installation.  Finding this on Sun&apos;s site is a bit of a pain, so here is a link to the &lt;a href=&quot;http://java.sun.com/javase/downloads/5u22/jre&quot;&gt;J2SE 5.0 Update 22&lt;/a&gt;, which is the latest as of this writing.  

Download it, install it and make a note of what folder it installs in.  In my case it was &quot;C:\Program Files\Java\jre1.5.0_22&quot;.  This is the path I provided to Tomcat installer.  

Finish the tomcat installation and you will see that the service is installed, but will not start.  This is because we need the &lt;a href=&quot;https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/res/procrun/amd64/&quot;&gt;64bit service wrapper&lt;/a&gt;

The only file that should be in there is tomcat6.exe.  Download it and replace the one in your tomcat&apos;s installation bin folder.  In my case that folder is &quot;C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\bin&quot;.  

Now if you go to &quot;http://localhost:8080/&quot;, you should see The Tomcat default start page.  

In part II, we will cover getting setting up Apache.
				
				</description>
				
				
				<category>Windows x64</category>
				
				<category>ColdFusion</category>
				
				<category>Railo</category>
				
				<pubDate>Wed, 02 Dec 2009 16:15:00 -0400</pubDate>
				<guid>http://www.ruslansivak.com/2009/12/2/Railo-on-Tomcat-on-Windows-x64</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>CFEclipse 1.3.1.5 on Eclipse 3.3 (Europa) Line Number workaround</title>
				<link>http://www.ruslansivak.com/2007/7/9/CFEclipse-1315-on-Eclipse-33-Europa-Line-Number-workaround</link>
				<description>
				
				&lt;a href=&quot;http://www.cfeclipse.org/index.cfm?event=page&amp;page=download&quot;&gt;CFEclipse 1.3.1.5&lt;/a&gt; was recently &lt;a href=&quot;http://www.markdrew.co.uk/blog/index.cfm/2007/7/4/CFEclipse-1315-now-for-Eclipse-33&quot;&gt;released &lt;/a&gt; and it works with &lt;a href=&quot;http://www.eclipse.org/downloads/&quot;&gt;Eclipse 3.3 (Europa)&lt;/a&gt;.  It seems that some of the people using it can&apos;t seem to get the line number feature to work.  

It looks like in order to get line numbers working properly, you will need to go to Window-&gt;Preferences-&gt;CFEclipse-&gt;Editor and check off &quot;Show line numbers&quot;.  The little menu that comes up when clicking on the gutter in the editor doesn&apos;t seem to work, and I&apos;m guessing that Mark Drew just forgot to override/implement that menu in CFEclipse for 3.3.  Hopefully he will fix it soon.
				
				</description>
				
				
				<category>ColdFusion</category>
				
				<pubDate>Mon, 09 Jul 2007 17:49:00 -0400</pubDate>
				<guid>http://www.ruslansivak.com/2007/7/9/CFEclipse-1315-on-Eclipse-33-Europa-Line-Number-workaround</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Getting IIS and Apache to run side by side on Windows 2003</title>
				<link>http://www.ruslansivak.com/2007/3/12/Getting-IIS-and-Apache-to-run-side-by-side-on-Windows-2003</link>
				<description>
				
				Getting IIS and Apache running side by side is not as easy as telling IIS to listen on one IP and Apache on the other.  You will need to tell IIS to not be greedy and stop listening on all IPs.  In order to do that, you will need the &lt;a href=&quot;http://download.microsoft.com/download/3/e/4/3e438f5e-24ef-4637-abd1-981341d349c7/WindowsServer2003-KB892777-SupportTools-x86-ENU.exe&quot;&gt;Windows 2003 SP1 Support Tools&apos;&lt;/a&gt; httpcfg.exe utility to set the IP&apos;s that IIS listens on.  

&lt;code&gt;httpcfg set iplisten -i xxx.xxx.x.x&lt;/code&gt;

You would need to run this command once for each IP that you&apos;re using.  If using a lot of IP&apos;s, I suggest writing a simple batch script.  

Once you have done this, and restarted IIS, you can use the IP that you have not included in the IP list above for your Apache server.
				
				</description>
				
				
				<category>Windows 2003</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Mon, 12 Mar 2007 14:45:00 -0400</pubDate>
				<guid>http://www.ruslansivak.com/2007/3/12/Getting-IIS-and-Apache-to-run-side-by-side-on-Windows-2003</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>ColdFusion Var Bug</title>
				<link>http://www.ruslansivak.com/2006/8/17/ColdFusion-Var-Bug</link>
				<description>
				
				Now we all know why we should var our variables in CFC methods.  If you don&apos;t, the variables you create will bleed into other functions, and can wreak havoc on your application, especially if you cache your CFCs.  

Suppose you have a component called MyComponent.cfc. 

&lt;pre&gt;
&lt;code&gt;
&lt;component name=&quot;MyComponent&quot;&gt;
    &lt;cffunction name=&quot;method1&quot;&gt;
       &lt;cfset var myQry=&quot;&quot;&gt;
       &lt;cfquery name=&quot;myQry&quot; datasource=&quot;myDSN&quot;&gt;
            insert into table (somefield) values (1)
       &lt;/cfquery&gt;
       &lt;cfquery name=&quot;myQry&quot; datasource=&quot;myDSN&quot;&gt;
          select * from table where somefield=1
       &lt;/cfquery&gt;
    &lt;/cffunction&gt;
    &lt;cffunction name=&quot;method2&quot;&gt;
       &lt;cfdump var=&quot;#myQry#&quot;&gt;   
    &lt;/cffunction&gt;
&lt;/component&gt;
&lt;/code&gt;
&lt;/pre&gt;

Now lets say you have a test file that looks something like this:

&lt;code&gt;
&lt;cfobject name=&quot;application.myComponent&quot; component=&quot;myComponent&quot;&gt;
&lt;cfinvoke component=&quot;#application.myComponent#&quot; method=&quot;method1&quot;&gt;
&lt;cfinvoke component=&quot;#application myComponent#&quot; method=&quot;method2&quot;&gt;
&lt;/code&gt;

What do you expect the output to be?  It &lt;strong&gt;should&lt;/strong&gt; just throw an error when you call method2, saying that myQry is not defined.  What will happen is you will see the dump of myQry, which has bled out from the other method. 

Apparently, what happens is when the first query runs, it doesn&apos;t return anything, and the myQry variable gets erased. (If you try dumping it right afterwards, you will see that it&apos;s not defined).  

When the second query runs, it will create the myQry variable in the standard scope, which is local to the CFC.  There are workarounds, but hopefully Adobe will fix it in their next updater.  

One such workaround is to use a struct for the local variables, like this:

&lt;pre&gt;
&lt;code&gt;
&lt;component name=&quot;MyComponent&quot;&gt;
    &lt;cffunction name=&quot;method1&quot;&gt;
       &lt;cfset var local=StructNew()&gt;
       &lt;cfquery name=&quot;local.myQry&quot; datasource=&quot;myDSN&quot;&gt;
            insert into table (somefield) values (1)
       &lt;/cfquery&gt;
       &lt;cfquery name=&quot;local.myQry&quot; datasource=&quot;myDSN&quot;&gt;
          select * from table where somefield=1
       &lt;/cfquery&gt;
    &lt;/cffunction&gt;
    &lt;cffunction name=&quot;method2&quot;&gt;
       &lt;cfdump var=&quot;#local.myQry#&quot;&gt;   
    &lt;/cffunction&gt;
&lt;/component&gt;
&lt;/code&gt;
&lt;/pre&gt;

Now if you try running the same code, you will get an error saying that &quot;local.myQry&quot; is not defined.
				
				</description>
				
				
				<category>ColdFusion</category>
				
				<pubDate>Thu, 17 Aug 2006 09:53:00 -0400</pubDate>
				<guid>http://www.ruslansivak.com/2006/8/17/ColdFusion-Var-Bug</guid>
				
				
			</item>
			
		 	
			</channel></rss>