Re: Oops! Virtual Directories & Server Errors

2012-06-07 Thread Matthew Small

DON'T DELETE WEB.CONFIGS unless you know exactly what you are doing.

They may be individually configured for each website - some websites have 
different configuration and that's where the differences go.

> I've seen a similar issue, try this:
> 
> Look for web.config in the affected directories.
> 
> Delet all exept the one in root.
> 
> (the error comes from settings in the web.config - but instead of 
> fixing that i found that deleting them also fixed it)
> 
> Mvh
> Helge Hetland
> WebSite as
> 
> 
> Den 5. juni 2012 kl. 15:04 skrev "Rick Root" :
> 
> > 
> > So, we have a web site where we use virtual directories to point 
> back to
> > the root folder, allowing us to have multiple web sites and one code 
> base.
> > 
> > This morning, I removed IIS6 Mgmt Compatability (because CF 9.0.1 
> won't let
> > me reconfig any web server connectors)... and I had to also install 
> the
> > ASP.NET feature before it would let me do it...
> > 
> > Got everything working, reconfigured stuff, and it's all good, 
> right?
> > 
> > Only now, our virtual subdirectories are generating " The page 
> cannot be
> > displayed because an internal server error has occurred. "
> > 
> > And I can't find any logs that tell me WHY.
> > 
> > Nothing in coldfusion's Exception or Application log, nothing in 
> the
> > C:\Jrun4\logs\ folder that would indicate a problem, nothing helpful 
> in the
> > wsconfig/X/logs folder either...
> > 
> > Anyone have any suggestions?
> > 
> > -- 
> > *The beatings will continue until morale improves.*
> > 
> > 
> > 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351472
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Oops! Virtual Directories & Server Errors

2012-06-07 Thread Matthew Small

The System Event log will tell you what's going on with the HTTP 500 error (the 
internal web server error).

The problem likely has something to do with the CF connector - I imagine an 
ISAPI filter of some sort - JRUN.dll, something like that.  It probably can't 
be located.

Post the event when you find it and we can figure it out from there.



> I've seen a similar issue, try this:
> 
> Look for web.config in the affected directories.
> 
> Delet all exept the one in root.
> 
> (the error comes from settings in the web.config - but instead of 
> fixing that i found that deleting them also fixed it)
> 
> Mvh
> Helge Hetland
> WebSite as
> 
> 
> Den 5. juni 2012 kl. 15:04 skrev "Rick Root" :
> 
> > 
> > So, we have a web site where we use virtual directories to point 
> back to
> > the root folder, allowing us to have multiple web sites and one code 
> base.
> > 
> > This morning, I removed IIS6 Mgmt Compatability (because CF 9.0.1 
> won't let
> > me reconfig any web server connectors)... and I had to also install 
> the
> > ASP.NET feature before it would let me do it...
> > 
> > Got everything working, reconfigured stuff, and it's all good, 
> right?
> > 
> > Only now, our virtual subdirectories are generating " The page 
> cannot be
> > displayed because an internal server error has occurred. "
> > 
> > And I can't find any logs that tell me WHY.
> > 
> > Nothing in coldfusion's Exception or Application log, nothing in 
> the
> > C:\Jrun4\logs\ folder that would indicate a problem, nothing helpful 
> in the
> > wsconfig/X/logs folder either...
> > 
> > Anyone have any suggestions?
> > 
> > -- 
> > *The beatings will continue until morale improves.*
> > 
> > 
> > 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351471
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Moving CF8 Std to IIS7 Now Get Blank Screen

2012-03-28 Thread Matthew Small

What is the result of your request in the IIS logs?


> Hi All,
> 
> Moving Servers from Win 2003 Std 32bit to Win 2008 R2 64 bit.  
> Installed CF8 Std without problem.  Able to use Admin area and make 
> all settings.  Set an IIS script to provide 32bit application pool 
> within Win 64.  Able to connect to dbs.
> 
> Moved my first site over.  First page OK, surf to second page, blank 
> screen (so I'm sure CF is throwing some kind of error, URL of page 
> where it is stopped shows in address bar), but I can't see the error 
> message in order to fix.  CF error logs show nothing. I bet it's 
> something inside IIS, but I don't know how to fix.
> 
> Ideas?
> 
> Thanks!
> Mark 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350565
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: JRun grabbing port 443 before IIS can preventing https

2012-03-14 Thread Matthew Small

Make the Macromedia JRun CFusion Server service dependant on the World Wide Web 
Publishing Service - IIS will start before JRun every time.

http://support.microsoft.com/kb/193888

- Matt


> Hi all,
> 
> I have an issue where we have an intranet server that is https for all 
> requests all of the time. Every time the server is rebooted (I hate 
> patch Tuesday) The service "Macromedia JRun CFusion Server" starts up 
> before IIS and grabs hold of port 443. Then IIS starts and gets denied 
> access to port 443. This stops all of our websites on this box from 
> working.
> 
> I should also mention that this is CF8 Enterprise with multiple 
> ColdFusion Instances.
> 
> Can anyone tell me how to let IIS come up first and get the port as it 
> is supposed to before JRun grabs it?
> 
> Thanks,
> Steve

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350438
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: App is hanging on some requests

2012-02-15 Thread Matthew Small

If these stacks are complete, and are the actual hung threads, then it appears 
you're hanging on socket input from the internet, which is typically a 
kernel-level issue.  It's very often that socket issues are caused by 
anti-virus - have you updated the av recently?  We see socket communicatations 
problem very frequently with McAfee.

- Matt Small


>Your error originates in your onRequestStart() Application.cfc, line 85.
> First, I'd try to debug around that line.
>
>If you can't figure it out from there, try opening
>\frameworks\coldbox\3_1\system\FrameworkSupertype.cfc
>and looking around line 364.  This may give you a clue of what the
>framework is doing at the moment it hangs and might help give you a better
>hint about what is going on.
>
>-Cameron
>
>
>
>> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349902
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF 9 with IIS 7

2011-11-30 Thread Matthew Small

The error code is 0x800700c1 which literally means:  "The file is not a valid 
Win32 application".  That happens when you mismatch the bitness of a dll in a 
process.  Since you're using 32-bit CF, change the application pool type to 
32-bit and it should work.





>So I should be able to add a site, All Unassigned IPs, port 81..
>DefaultAppPool and be able to access it by
>http://localhost:81/
>Right?
>
>Thanks!
>
>
>
>
>> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348911
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: TOT... IIS 6 Asp error logs

2011-11-10 Thread Matthew Small

The IIS log files are kep by default in c:\windows\logfiles\W3SVCxxx - you 
look in the configuration for the website to determine which folder.

Classic ASP errors are logged in the IIS Logs as an error status which may or 
may not be helpful.


>all you have is IIS LOGS by default, you need to use additional
>debugging tools and methods to get more info.
>
>here are some tools to help you on your way.
>http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=1200
>http://support.microsoft.com/kb/931370
>http://support.microsoft.com/kb/299986
>
>
>On Thu, Nov 10, 2011 at 8:19 PM, Gerald Guido  wrote:
>> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348579
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ISAPI filters

2010-07-10 Thread Matthew Small

 Instead of using the isapi as a wildcard, try having it be the handler for 
.cfm files and the static files won't be handled by the dll.  I don't know if 
you would need other extensions as well, but you can set those up the same way.






>> I'm trying to set up ColdFusion 9
>
>on IIS7?
>
>> As soon as I add the jrun_iis6_wildcard.dll ISAPI 
>> filter, a call to an HTML file will fail.  As soon as I remove the 
>> filter, it succeeds.
>
>I also await a fix for jrun_iis6_wildcard.dll blocking static file requests.
>
>Thanks!,
>-Aaron Neff 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335223
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfdot.net

2010-06-24 Thread Matthew Small

Wait - so now I have psychological issues?  I didn't attack you, I attacked the 
site based on the fact that *you* said it shows how 1 line of CF code equates 
to 10 lines of ASP.NET and how it was a jab at .NET:

"Unfortunatly the company I work for decided to move away from CF :( and
proceeded to get shot of all the cf devs we had.
I was one of two survivors who they see as legacy application developers grr
even thou I decided to become an MCPD, they still see us a just CF devs.

Anyhoo I did build the following site: www.cfdot.net which shows code
comparisons for most of the common langauge syntax tasks.

If anything it will show how CF achieves in one line what .net does in 
10 ;)
(my little dig back heh)"


Now you say it's something else.  You should stick to one argument and you 
might make sense.  The fact is, your site is dishonest based on your own 
comments and I explained how I thought it so. 

Nobody yet has shown how my analysis was wrong, they just kept saying that I 
called you a dishonest person and set about defending you because you might not 
be very good at programming .NET when you wrote the site and then told me that 
I need to fix your site.  I have no desire to be constructive to fix some 
random site on the internet. My purpose was to call BS when I saw it because it 
feels good to do that. 

This is the very definition of an ad hominem attack.



>@Paul you have hit the nail on the head that is exactly the purpose of the
>site.
>
>@Matthew - The site is NOT dishonest every example provides a solution that
>is viable. I think you have some misguided deeper issues and appear to see
>this as some sort of 'Coldfusion is better that .Net' battle, it;s not! You
>are entitled to your opinion but I cannot just stand by and have you say the
>site is dishonest when it is not.
>
>Maybe instead of being obstructive you should be a bit more constructive,
>
>
>
>
>On Wed, Jun 23, 2010 at 10:40 PM, Bobby Hartsfield 
>wrote:
>
>> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334812
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Odd MySQL error...

2010-06-23 Thread Matthew Small

It sounds like a networking error more than an app error.  You might try 
running Wireshark with a limited-size looping buffer to try to capture a trace 
of the problem.

Also, do you have any other network issues during the time of the issue?


> We have been dealing with a MySQL error for a little while and can't 
> seem to
> figure out what is causing it.
> This error appears on our production server:
> 
> Red Hat Linux Enterprise 64 bit
> MySQL 5.0.77
> CF 9
> 
> This error happens any time, day or night and sometimes in multiple
> occurrences and from different pages. I am guessing that normal site
> operations continues after the user gets this error and refreshes 
> their
> browser as we don't hear any complaints from users about it. The 
> error
> appears in our logs and we would love to get rid of it.
> 
> The main error is:
> *
> **Error Executing Database Query. Communications link failure Last 
> packet
> sent to the server was 0 ms ago. The error occurred on line 6. *
> 
> Stack Trace:
> 
> Message
> 
> Can not read response from server. Expected to read 4 bytes, read 0 
> bytes
> before connection was unexpectedly lost.
> 
> StackTrace
> 
> java.io.EOFException: Can not read response from server. Expected to 
> read 4
> bytes, read 0 bytes before connection was unexpectedly lost. at
> com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2455) at
> com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2906) at
> com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2895) at
> com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3438) at
> com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1951) at
> com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2101) at
> com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2554) at
> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.
> java:1761)
> at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.
> java:1021) at
> coldfusion.server.j2ee.sql.JRunPreparedStatement.
> execute(JRunPreparedStatement.java:91)
> at coldfusion.sql.Executive.executeQuery(Executive.java:1245) at
> coldfusion.sql.Executive.executeQuery(Executive.java:1008) at
> coldfusion.sql.Executive.executeQuery(Executive.java:939) at
> coldfusion.sql.SqlImpl.execute(SqlImpl.java:341) at
> coldfusion.tagext.sql.QueryTag.executeQuery(QueryTag.java:843) at
> coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:533) at
> cfaction2epage2edefault2ecfm19563856._factor4(/var/www/html/action.
> page.default.cfm:6)
> at
> cfaction2epage2edefault2ecfm19563856.runPage(/var/www/html/action.page.
> default.cfm:1)
> at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at
> coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at
> coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at
> cfindex2ecfm500695976.runPage(/var/www/html/index.cfm:56) at
> coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at
> coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at
> coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at
> coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:363) 
> at
> coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.
> java:48)
> at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) 
> at
> coldfusion.filter.PathFilter.invoke(PathFilter.java:87) at
> coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at
> coldfusion.filter.ClientScopePersistenceFilter.
> invoke(ClientScopePersistenceFilter.java:28)
> at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at
> coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at
> coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at
> coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) 
> at
> coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53) at
> coldfusion.CfmServlet.service(CfmServlet.java:200) at
> coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.
> java:89) at
> jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at
> coldfusion.monitor.event.MonitoringServletFilter.
> doFilter(MonitoringServletFilter.java:42)
> at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.
> java:46) at
> jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at
> jrun.servlet.FilterChain.service(FilterChain.java:101) at
> jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at
> jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at
> jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.
> java:286) at
> jrun.servlet.ServletEngineService.dispatch(ServletEngineService.
> java:543) at
> jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.
> java:203)
> at
> jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.
> java:320)
> at
> jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.
> java:428)
> at
> jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadP

Re: cfdot.net

2010-06-23 Thread Matthew Small

Actually, the siute is dishonest, not necessarily the person.  Apologies for 
the harsh wording.

My judgment still stands.  It doesn't matter why it's wrong, it's still 
misrepresenting one side.

No flame wars needed.


>Calling him dishonest is very short sighted on your part (to say the 
>least!).  Has the thought occurred to you that perhaps the reason there 
>was so much extra code in the .Net example was because he's not a 
>seasoned .Net developer?  I know I certainly wouldn't know the absolute 
>best way to do something when just transferring over to a new language.  
>I'm willing to bet there are many seasoned .Net developers who would 
>make plenty of rookie mistakes when just starting out with CF. 
>
>Perhaps instead of jumping to conclusions and making accusations, you 
>should offer to help him clean up his examples so they are more accurate. 
>
>Thanks,
>
>Eric Cobb
>ECAR Technologies, LLC
>http://www.ecartech.com
>http://www.cfgears.com
>
>
>
>Matthew Small wrote:
>> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334777
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfdot.net (was: CF vs. ASP.Net)

2010-06-23 Thread Matthew Small

All language religion aside - it's not a fair comparison, it's biased towards 
CF. You should be more honest in your comparisons if you expect anyone to take 
it seriously.

Example:

CFEXECUTE:

CF:
 



ASP.NET

01.using System; 
02.using System.Drawing; 
03.using System.Collections; 
04.using System.ComponentModel; 
05.using System.Windows.Forms; 
06.using System.Data; 
07.using System.Diagnostics; 
08. 
09.... 
10. 
11.//Declare and instantiate a new process component. 
12.System.Diagnostics.Process process1; 
13.process1= new System.Diagnostics.Process(); 
14.  
15.//Do not receive an event when the process exits. 
16.process1.EnableRaisingEvents = false; 
17.  
18.  
19.//The "/C" Tells Windows to Run The Command then Terminate  
20.string strCmdLine; 
21.strCmdLine = "/C netstat "; 
22.System.Diagnostics.Process.Start("CMD.exe",strCmdLine); 
23.process1.Close(); 



All that is actually needed is:

System.Diagnostics.Process.Start("netstat.exe"); 

All of the other stuff is extraneous.  The need for the "using" statements is 
negated by the fully-qualified name for the method.  The object "process1" 
isn't used at all for the actual execution.  Passing the netstat.exe executable 
to the cmd.exe process is ridiculous - you could do the same with CFEXECUTE. 
Adding in extra string arguments just builds up the amount of code you want to 
display. And FYI: this one line of code can be executed in the .aspx page:

<% System.Diagnostics.Process.Start("netstat.exe") %>

   There are numerous similar examples on your website. It's a dishonest 
misrepresentation.

- Matt Small






>This is pretty sweet Jose.
>
>Thanks for taking the time to create this site! An excellent resource 
>indeed.
>
>Warm regards,
>Jordan Michaels
>Vivio Technologies
>http://www.viviotech.net/
>Open BlueDragon Steering Committee
>Railo Community Distributions
>
>On 06/22/2010 06:47 AM, Jose Diaz wrote:
>> 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334767
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Pathing Problem

2010-06-21 Thread Matthew Small

1) Create a virtual directory in IIS that points to e:\images.  Call it 
whatever you like, but for this case we will call it "eImages".

2) Ensure that the identity that is running the application pool of the 
website/web application has read folder contents to the path e:\images.  This 
is the "Network Service" account by default for IIS 6.  

3) If you are using anonymous authentication, the identity of the anonymous 
user must also have read privileges to the e:\images location.  This is usually 
"IUSR_"

4) Finally, when referring to the images in your webpage, it is 
"http://website.com/eImages/image.jpg";, or just "/eImages/image.jpg".



>Make sure that the user that the web server is running has access to the E
>drive. If you remote into the box and you have access to it doesn't mean
>that the user running the server has access to it.
>
>Paul
>
>Our images reside on a separate drive e:/images. Our website is on
>c:\inetpub\wwwroot.
>
>How do I show the images on the e drive?
>
>Adding a virtual directory "images" in IIS and having img src in our code
>point to  e:\images doesn't seem to work. 
>
>Thanks in advance. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334679
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Securing an IIS7 development server

2010-06-21 Thread Matthew Small

You need to add in Basic and/or Integrated Windows Auth as modules for IIS 7 in 
"Windows Features" (Vista/Win7) or "Server Manager" (WS2008).

> Ok, Anonymous authentication has been disabled. However there is no 
> Basic or Windows authentication in the Authentication window. 
> 
> Instead there is:
> Anonymous
> ASP.net Impersonation
> Forms authentication
> 
> Forms authentication is expecting a login.aspx file that is not 
> anywhere on the server.
> 
> Please let me know what I'm missing here.
> Thanks!
> 
> 
> >> Right click on the website in IIS, select properties
> >> and click the Directory Security tab. Click Edit under
> >> Authentication and access control.
> >
> >In IIS7 it's the same principle, but in a slightly different place.  
> Select
> >the site (or server) to get the options in the main window.  Open 
> the
> >Authentication icon.  Select Anonymous and disable it, then enable 
> either
> >Basic or Windows authentication depending on how you plan to log in.
> >
> >
> >-Justin Scott 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334677
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF on IIS and 405 error

2010-06-21 Thread Matthew Small

Are you using Windows XP or 2000 as the webserver?  If so, then this applies. 
http://support.microsoft.com/kb/216493

>Thanks Bobby,
>Just tried that, same result.
>
>Cheers,
>Kris
>
>
>> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334676
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: 32-bit / 64-bit COM object issues in ColdFusion 9

2010-06-09 Thread Matthew Small

Mark is correct.  This is not a CF limitation but a part of Windows, which is 
probably why you're finding the info on the Adobe site.  32-bit DLLs will not 
load in a 64-bit process. You can run a 32-bit IIS process on Windows 2008 x64 
alongside x64 IIS processes but you will also have to run 32-bit CF as well for 
the 32-bit IIS process.


>Laurie,
>
>You will need a 64bit version of the COM. Moreover, Win2003 to Win2008 is a
>fairly substantial move where COM is largely deprecated in favor of .NET.
>
>-Mark
>
>
>Mark A. Kruger, MCSE, CFG
>(402) 408-3733 ext 105
>Skype: markakruger
>www.cfwebtools.com
>www.coldfusionmuse.com
>www.necfug.com
>
>
>
>We're in the process of upgrading a client site from ColdFusion MX 7 on
>Windows 2003 to ColdFusion 9 on Windows 2008.  For the most part,
>everything's gone smoothly, but we're having issues with a COM object
>they've been using since before we took over management of their site in
>2005.  The error we get is: 
>
>An exception occurred when instantiating a COM object.
>The cause of this exception was that: java.lang.RuntimeException: Can not
>use native code: Initialisation failed. 
>
>In scouring the 'net for almost 8 hours yesterday I found a few posts on
>message boards or in comments on blogs which claim that ColdFusion 9 running
>in 64-bit will not work with a 32-bit COM object.  But I've picked through
>the Adobe site and haven't been able to find any concrete proof of this.
>
>If this is in fact true, it's going to cause a whole host of headaches and
>additional costs for the client, so I'm looking for some confirmation.  Can
>anyone confirm this is the case, or -- even better -- provide a link to
>someplace where Adobe confirms it?
>
>Thanks in advance!
>
>-laurie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334427
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Has anyone ever successfully changed an AD password through CFLDAP?!

2010-05-27 Thread Matthew Small

I see this is an older post but I just saw it.  Did you see that the new 
password in the working (Java) example has a symbol (!) at the end, whereas the 
CF version does not?  If the AD requires a symbol as part of the password, it 
will certainly reject the new CF password.   

I hope you already figured this out though.

- Matt Small

>I've read everything I can find on the internet about using CFLDAP to
>reset/change an Active Directory password, and every thread trails off with
>no success.
>
>I've been working on this for the last several days, and I've come to be
>convinced that its impossible to reset a user's password in AD through
>CFLDAP.
>
>I've confirmed that I've properly installed the certificate, and that I'm
>successfully communicating over SSL, and that the user I'm binding as has
>privileges to reset a user's password, but I still, no matter what I try,
>get the error:
>
>LDAP: error code 53 - 001F: SvcErr: DSID-031A0FC0, problem 5003
>(WILL_NOT_PERFORM), data 0
>
>I've written some java code that uses the same credentials and settings, and
>it is able to change the password, but CFLDAP fails.
>
>I think the issue is with the formatting of the replacement password, but
>that's just my latest guess.
>
>So, has anybody ever actually succeeded in this?
>
>Can anybody from Adobe confirm or deny that this is actually possible?
>
>For completeness, here's my test code that fails:
>
>
>charsetEncode(charsetDecode('"'&new_password&'"','UTF-16LE'),'UTF-8')>
>
> modifyType="replace"
>attributes="unicodePwd=#a#"
>dn="CN=Ed Test, OU=Users, OU=Development, OU=IB, dc=ad2003-dev, dc=com"
>server="someLDAPServer.somedomain.com"
>port="636"
>username="CN=Administrator, CN=Users, dc=ad2003-dev, dc=com"
>password="someSecretPasswordString"
> secure="CFSSL_BASIC">
>
>My password formatting is based on looking at the verbose JNDI logging
>between the Java that works and the CF that doesn't work.
>
>There's a discrepancy that may be the issue in the way that CFLDAP's
>handling the final UTF-16LE encoded double-quote - that java's showing a
>"22 00" byte pair, but the CFLDAP's dropping the 2nd byte of the character:
>
>Java (works):
>0050: 0A 01 02 30 2E 04 0A 75   6E 69 63 6F 64 65 50 77  ...0...unicodePw
>0060: 64 31 20 04 1E 22 00 6E   00 65 00 77 00 50 00 61  d1 ..".n.e.w.P.a
>0070: 00 73 00 73 00 77 00 6F   00 72 00 64 00 31 00 21  .s.s.w.o.r.d.1.!
>0080: 00 22 00 A0 1B 30 19 04   17 32 2E 31 36 2E 38 34  ."...0...2.16.84
> ^
>
>CFLDAP (fails):
>0050: 0A 01 02 30 2B 04 0A 75   6E 69 63 6F 64 65 50 77  ...0+..unicodePw
>0060: 64 31 1D 04 1B 22 00 6E   00 65 00 77 00 50 00 61  d1...".n.e.w.P.a
>0070: 00 73 00 73 00 77 00 6F   00 72 00 64 00 31 00 22  .s.s.w.o.r.d.1."
> ^^
>0080: A0 1B 30 19 04 17 32 2E   31 36 2E 38 34 30 2E 31  ..0...2.16.840.1
>  ^^
>
>So I'm suspecting AD's not liking the password.  Nothing I do gets that
>double-quote right - seems to be deep inside the CFLDAP tag.
>
>Anyway, any input, or confirmation (and code) on how to do this would be
>greatly appreciated.
>
>Thanks in Advance!
>
>Edward Smith
>Principal Architect
>Internet Broadcasting. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334072
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Force SSL

2010-05-20 Thread Matthew Small

In IIS > Website Properties > Directory Security > Secure Communications > Edit 
> Check "Require Secure Channel"

In IIS > Website Properties > Custom Errors > Find 403.4 (that's SSL required 
error page).  Change the page it directs to to a custom-written CFM page that 
does a replace of HTTP to HTTPS in the URL and then redirect to that URL.

- Matt Small




> Does anyone know of a way to force SSL for all files in a web site?  
> This solution should handle non-Coldfusion pages such as PDF files as 
> well.  I am using Windows 2003 with IIS.
> 
> Thanks,
> 
> Donnie 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333831
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Setting windows directory security with ColdFusion

2010-03-05 Thread Matthew Small

I was under the impression that CF could do .NET interop.  If that's the case, 
then instantiating a .NET System.IO.Directory class could acheive this for you 
quite easily.


>On 3/4/2010 9:45 AM, Dave Watts wrote:
>> That said, you could do this using CFEXECUTE and the command-line
>> cacls/xcacls/icacls tools.
>>
>
>Thanks Dave, I had a strong feeling it was going to be something that 
>tapped the command-line through CFEXECUTE.  But having never done 
>directory security before with the command-line I didn't really know 
>what would do it.  Thanks for the name of some relevant tools to help me 
>search up the appropriate syntax. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331379
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Why, oh why won't my batch file run via cfexecute?

2010-03-02 Thread Matthew Small

Run ProcMon while making the request.
http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx


>If all else fails, it may be worth trying the System Command contribution on
>Ria.
>
>http://systemcommand.riaforge.org/
>
>That way you can get the error returned to the output.
> 
>
>-- 
>/Kevin Pepperman
>
>"They who can give up essential liberty to obtain a little temporary safety,
>deserve neither liberty nor safety." - Benjamin Franklin 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331257
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Serious, intermittent problem with CF Web Service

2010-02-20 Thread Matthew Small

You can try running Process Monitor 
(http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) while the 
application is in the bad state. Once you reproduce the error, check the log 
for the location that the app is trying to load the class and ensure it looks 
correct.  If you don't see anything amiss, you may have to fire up a Java 
debugger to figure out what might be causing the FNF exception.  You could also 
open up a support case with Adobe and work with them to figure it out. 


- Matt Small


> Howdy, CFers! We've got an incredibly frustrating situation with a CF 
> Web Services-based API that we wrote and maintain. We had an API in 
> place for years that was stable and working happily with Ruby, PHP, 
> and ColdFusion clients. Then this year a .NET client came along, and 
> we found that our web service was not interoperable with 
> statically-typed languages due to our extensive use of structs.
> 
> We eventually realized we had to re-write the API without structs, and 
> we've done so. It now uses scaler values, arrays, and CFCs (which get 
> translated to SOAP complexTypes). The .NET client is happy, and we 
> wrote proof-of-concept clients in about 6 different languages to 
> ensure that we'd be interoperable this time around.
> 
> To our great dismay, it appears that our ColdFusion 7 servers can't 
> serve the new API reliably. It works for about a day or so after 
> restarting, then the clients start getting errors like:
 
> 
> Error: coldfusion.xml.rpc.CFCInvocationException 
> [java.lang.ClassNotFoundException : tafkan.remote_api.pfapi.v.trunk.
> rsp_pf_survey_status_array]
> 
> and
> 
> java.lang.NoClassDefFoundError: 
> tafkan/remote_api/pfapi/v/trunk/pf_unit
> 
> 
> Restarting the CF instances is the only way to make the problem go 
> away. A lot of time and money was put into rebuilding the API, so 
> everyone is really at wit's end about this.
> 
> We've noticed that the WEB-INF/cfc-skeletons directories of our CF 
> instances eventually seem to have two copies of the classes for each 
> of the CFCs used by the API. For example: 
> 
> -rw-r--r--  Feb 17 09:15 remote_api.pfapi.v.trunk.pf_datum.class
> -rw-r--r--  Feb  3 12:20 tafkan.remote_api.pfapi.v.trunk.pf_datum.
> class
> 
> It seems like the errors are coming from a namespace or class search 
> path problem, so we tried switching all CFC references to be 
> fully-qualified (dot notation starting with a mapping) instead of just 
> simple references to CFCs in the current directory. This seemed 
> promising, but the problem came back within 24 hours.
> 
> Environment:
> ColdFusion 7,0,2,142559 with hf702-70523, 2-instance cluster
> Sun Java 1.4.2_13 
> Apache 2.0.52
> Centos 4.5 32-bit
> 
> Maybe upgrading one of these venerable pieces of software would help? 
> Maybe upgrading just AXIS?
> 
> We need help! I'm sure that there is someone out there with more 
> CF/AXIS/SOAP experience than us that can help us get this problem 
> resolved. Adobe support doesn't seem to be an option, as CF7 is EOL'ed 
> and in extended-extended support (and that just for a few more days). 
> We will pay the right person good money to help us figure this out. If 
> you're that person, or think you might know who they are, please 
> contact me ASAP!
> 
> Thanks for reading this mega-post!
> Leon 


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330986
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ColdFusion & Windows Authentication

2010-02-06 Thread Matthew Small

I think some important questions are :  how are you calling the SRS system?  Is 
there a hyperlink straight to the report, or are you expecting the report to 
come back through the CF front-end? Is the client logged into the machine using 
domain credentials when the request is made to the SRS?  

- Matt Small


>Right, what Dave said.  If the website is set to allow Anonymous Access, 
>then the CGI vars that are tracked by the web server will not be set. 
>
>> When I was dumping the CGI variables on the page most of them were empty, 
>including auth_password and auth_user and from
>> what I've read CGI variables are read-only so how do these get set?
>
>They get set by the web server, when a user authenticates against that
>web server using HTTP Basic or NTLM Authentication.
>
>Dave Watts, CTO, Fig Leaf Software
>http://www.figleaf.com/
>http://training.figleaf.com/
>
>Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
>GSA Schedule, and provides the highest caliber vendor-authorized
>instruction at our training centers, online, or onsite. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330451
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 / Windows 7 - ODBC services not starting

2009-12-08 Thread Matthew Small

What does the event viewer say about this error?


> I'm getting the "The service started then stopped" error when I try to 
> start my CF 8 ODBC services in Windows 7 32-bit.  I've done a lot of 
> searching for this issue, and have found a number of people who have 
> had issues with ODBC on Windows Server 2008 64-bit, but nothing really 
> on a 32-bit system.  Obviously, this isn't a server enviroment, this 
> is my development PC so it's running the developer version of CF8.
> 
> Do other people have this running?  If so, do I need to do something 
> special to get it to work, or is my problem unique? 


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328975
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 / IIS7 / ColdFusion.Ajax.submitForm/errorhandler not working

2009-12-08 Thread Matthew Small

No, there are different 500 errors returned per application server.  CF could 
handle any processing problems and return an HTTP 500 with its own custom 
messages if it wanted to, which would still be a normal processed request 
routed through IIS.  An IIS 500 would be returned if the CF engine or some 
other component were to encounter an unhandled exception which prevents the 
full execution of the the component.  That's why I ask if the 500 is a CF 500 
or an IIS 500.  

> > That begs the question - is this an IIS 500 or a CF 500?  I imagine 
> they look a lot different.
> 
> I think that it's the job of the application server to provide error
> information, generally, so 500 errors will depend on the specific
> application server. If you just have static content, you don't get 
> 500
> errors, so I don't think there's really an "IIS" 500 error. There are,
> 
> of course, standard error messages for ASP.NET and "classic" ASP 500
> errors.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> 
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more 
information

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328970
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 / IIS7 / ColdFusion.Ajax.submitForm/errorhandler not working

2009-12-07 Thread Matthew Small

That begs the question - is this an IIS 500 or a CF 500?  I imagine they look a 
lot different.


> >    I haven't done any CF server configuration in years, but I don't 
> think that IIS is catching the throw that you're performing.  A
> > CFTHROW ought to be caught by the CF ISAPI or whatever is driving it 
> these days, and CF should show a CF error message
> > which IIS will send back to the client as an HTTP 200 - otherwise CF 
> custom error handling wouldn't work at all.
> >   If this is not the case, then it's a bug or poor design feature in 
> CF - IIS doesn't hijack stuff unless something goes wrong in the
> > processing of the CF ISAPI, which it will then catch the error and 
> issue the 500.
> 
> CF errors are no longer returned as 200 by default. They are now
> returned as 500. This has been the case since at least CF 6.x, I
> believe. The CF error message can be shown by the browser with a 500
> error message, though, unless you're using IE with the "show friendly
> HTTP error messages" option enabled.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> 
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more 
informat

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328941
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 / IIS7 / ColdFusion.Ajax.submitForm/errorhandler not working

2009-12-07 Thread Matthew Small

Hi Steve,
I haven't done any CF server configuration in years, but I don't think that 
IIS is catching the throw that you're performing.  A CFTHROW ought to be caught 
by the CF ISAPI or whatever is driving it these days, and CF should show a CF 
error message which IIS will send back to the client as an HTTP 200 - otherwise 
CF custom error handling wouldn't work at all.
   If this is not the case, then it's a bug or poor design feature in CF - IIS 
doesn't hijack stuff unless something goes wrong in the processing of the CF 
ISAPI, which it will then catch the error and issue the 500.
   
- Matt


> Matt,
 
> Thanks for responding. My issue isn't so much that the internal server 
> error is being raised in fact Im the one that is raising it by using 
> CFTHROW. My issue is that IIS7 intercepts my error message and 
> replaces it with its own where IIS6 did not. For the life of me I 
> cannot determine the correct configuration to make it stop hijacking 
> my application specific error messages. 
> 
> I'll try tracing the logs and see if that shows me anything though.
> Thanks again,
> Steve
> 
> > Hi Steve,

> 
> > "Internal Server Error" usually manifests itself in IIS as an HTTP 
> 500 
> > - you can check the IIS logs to see if that's what you're getting.  
> If 
> > that's the case, you will usually find some clue to the root cause 
> by 
> > investigating the system and application event logs - depending on 
> > what CF logs in there.

> 
> > Additionally, you can enable FREB logging to get an overview of the 
> 
> > request as it passes through the IIS request pipeline.  Just bing it 
> 
> > or go to http://iis.net to see how to enable freb logging.
> > 
> > - Matt
> > 


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328939
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 / IIS7 / ColdFusion.Ajax.submitForm/errorhandler not working

2009-12-07 Thread Matthew Small

Hi Steve,
"Internal Server Error" usually manifests itself in IIS as an HTTP 500 - 
you can check the IIS logs to see if that's what you're getting.  If that's the 
case, you will usually find some clue to the root cause by investigating the 
system and application event logs - depending on what CF logs in there.
Additionally, you can enable FREB logging to get an overview of the request 
as it passes through the IIS request pipeline.  Just bing it or go to 
http://iis.net to see how to enable freb logging.

- Matt

> We make use of ColdFusion.Ajax.submitForm to do the login for our site. 
> If the user/password provided is not found I do a cfthrow with a 
> custom error message that gets picked up by the errorHandler and 
> updates the screen with the message "User not found". This worked fine 
> till we upgraded the server to IIS7. Now all I get is the "Internal 
> Server Error."
> 
> I have googled the issue and searched these forums and found various 
> threads about changing the errorMode or setting the existingResponse 
> to passthrough in the IIS7 config. I have tried these and still not 
> gotten anything to work. The only change I get is if I update the 
> coldfusion config to not pass in the HTTP error codes but in that case 
> my error message simply becomes "OK". Not too helpful of a message.
> 
> My question is. Has anyone else run into these issues on IIS7 with 
> Coldfusion 8 and if so, how did you configure the server to stop 
> blocking the custom errors? Any help would be appreciated. At this 
> point I just want to hit IIS7 with blunt objects,not that it would 
> help.
> 
> Thanks in advance. 


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328926
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Suddenly can not connect to our Acitive Directory server.

2009-11-02 Thread Matthew Small

The first thing to do is to look in the system and security event logs of the 
webserver for symptoms of the problem.  Since your code has beenworking for a 
long time, it's probably going to be an identity related issue.  Given that the 
AD is still up and running, you could be running into Kerberos-related problems 
- either the SPNs are messed up (unlikely if no changes have occurred), or even 
maybe that the Kerberos token is too large.  The security events which describe 
the login for the identity of the CF server on the AD server will give you the 
most information.


>First, ask everyone in the IT department if they made any changes, or
>applied any updates, over the weekend.
>
>Make sure the credentials, in the CFLDAP tag, can be used to log in to
>Active Directory.  Use those credentials to attempt a login to a
>workstation.  If that works, it rules out a bad/disabled username and
>password.
>
>Thanks,
>Mike
>
>ColdFusion code that was running fine this last Friday, for nearly two
>years before then, is suddenly throwing this error today "Connection to
>LDAP server failed".  The Active Directory is up and responding to pings
>and all normal windows logons are being preformed properly.  But neither
>ColdFusion nor my Softerra LDAP Browser can make a connection with
>multiple user names.
>
>Can anybody provide a short list of what could have been changed that
>would of started this problem? 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327908
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: methods other than GET or POST

2009-09-25 Thread Matthew Small

Just a word of warning - PUT will in fact place a file on the webserver if 1) 
WRITE access is enabled in IIS for the folder and 2) The account used 
(IUSR_MACHINENAME for anonymous is default) has NTFS permissions to write to 
the folder.  No coding necessary - just add the PUT header, a filename, and 
some content.  I haven't tried with delete, but I assume it's the same way.



>> But I see many other types of requests
>> ( http://www.askapache.com/online-tools/request-method-scanner/ )
>> including MOVE, COPY or DELETE!
>
>These are used by WebDAV. If your server isn't configured to support
>WebDAV, it should ignore those HTTP verbs.
>
>> My question: is: it safe to allow only GET and POST?
>
>Yes, if you're not using WebDAV.
>
>> What is the best practice in CF?
>
>I don't know if there really is one. CF will, by default, respond to
>any HTTP request made to a CF URL, but it won't actually handle PUT or
>DELETE unless you explicitly write code to make it do so. You can
>typically configure CF to only support specific HTTP request verbs at
>the web server.
>
>Dave Watts, CTO, Fig Leaf Software
>http://www.figleaf.com/
>
>Fig Leaf Software provides the highest caliber vendor-authorized
>instruction at our training centers in Washington DC, Atlanta,
>Chicago, Baltimore, Northern Virginia, or on-site at your location.
>Visit http://training.figleaf.com/ for more information! 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326646
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: methods other than GET or POST

2009-09-25 Thread Matthew Small

Hi Claude,
Yes, it is safe to allow only GET and POST verbs.  Be aware, limiting 
yourself to these verb may have unintended consequences, such as when trying 
execute a remote debugging session against the server (I don't know how many 
CFers do that).  You can limit the verbs via the ISAPI Extensions list in IIS:

IIS Manager > Right-click the website > Properties > Home Directory tab > 
Configuration Button > Mappings > Find .cfm, .cfc and any other extensions that 
you are worried about for CF > Edit > Verbs: "Limit to" ...

Matt Small 
Microsoft IIS Engineer





~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326643
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cffile cannot access network drive

2009-01-21 Thread Matthew Small
This is Windows, right? As these are not domain machines, create an account on 
the machine whic has permissions necessary to run CF, and set that as your CF 
account.  Create an account on the remote machine with the same username and 
password that has permission to access the remote share.  The credentials wil 
be passed from the server to the remote share and hopefully, you'll get in.  Be 
sure to use UNC names rather that mapped drives - mapped drives are kept in 
user profiles and are not available across the entire system to all machines.  

HTH,
Matt Small


>>So I take it these servers aren't on a domain...
>>
>>.:.:.:.:.:.:.:.:.:.:.
>>Bobby Hartsfield
>>http://acoderslife.com
>>http://cf4em.com
>>
>correct.. only for development and pre-production test
>
>Sam 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318275
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Possible to get NT domain user without cfntauthenticate?

2009-01-15 Thread Matthew Small
You have to force some sort of login against the domain to guarntee this 
infomration (I suggest Integrated Windows Authentication (assuming IIS... other 
webservers probably have IWA as well)) .  Given IE and if the domain name 
either does not contain dots (as in myserver.com) or if it's added to the local 
intranet zone, the authenitcation credentials will be automatically passed to 
the webserver.  You can then grab the infomration however you need to do it - 
perhaps from the CGI vars, but maybe there are other ways to do it as as well...

I'm not a CF expert, but I know IIS very well.



>I'm building an intranet application.  Users will not necessarily be
>logged in, but there are things that I need to track; all users are
>logged into the NT domain on their computers, is it possible to get
>the username that the person is logged into their PC as?  Using
>cfntauthenticate isn't an option, the sysadmins won't allow this app
>to interface with the domain controller in any way.
>
>Thanks
>
>Pete 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318034
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: (ot) Ionic's Isapi Rewrite Filter and Site Crash

2009-01-08 Thread Matthew Small
It sounds as though the IIS Worker Process does not have permissions to access 
the ISAPI filter.  I believe you're actually running IIS 6 due to the 
descriptions you've given.  Check the identity of the application pool 
executing the website, and then give that identity read and execute permission 
to the ISAPI filter file.  If that doesn't do it, let me know.

- Matt Small


>If anybody is familiar with Ionic's Isapi Rewrite Filter...
>
>I have asked folks over on the Ionic's forum about this, but there's not 
>much traffic there and I *bet* somebody here can answer before I get 
>replies. Sorry for the OT, but I need to figure this out sooner than later!
>
>First, I'm *not* a server administrator. I know just enough to make 
>small tweaks and get myself into trouble. So be kind!
>
>Trying to set up my first rewrite:
>
>RewriteRule  ^/attorney/([^/]+)$   /lawyers/get-bio.cfm?attorney=$1
>
>Should rewrite: "www.mysite.com/attorney/bob_smith" to 
>"www.mysite.com/lawyers/get-bio.cfm?attorney=bob_smith". Correct? The 
>code above is the *only* thing in the .ini file. Do I need anything else?
>
>I placed the .dll and .ini file in a folder on the server. Went into the 
>IIS Admin (IIS 7 I think...) and added the.dll to the ISAPI filters. 
>Didn't do anything else. Was planning on restarting the server late this 
>evening when site activity was quite.However, the site immediately went 
>down. "There's a problem with the resource you're trying to access 
>500 error...'
>
>I removed the filter from the ISAPI filter window, and the site was back 
>up. Tried a second time just to be sure. Yup - site went down 
>immediately. No stop/start IIS.
>
>OK, now I'm afraid to do anything else. I can't afford to take the site 
>down again by mistake.
>
>I'll happily attempt to list other settings or stuff from log files if 
>needed to help me figure what I've got wrong. You *might* have to tell 
>me where to look though...
>
>The site in question is a Coldfusion site, but sections are .net. There 
>are two aspnet_filters listed already. Possible conflict?
>
>Log file shows: "The HTTP Filter DLL 
>C:\Windows\System32\IsapiRewrite\IsapiRewrite4.dll failed to load.  The 
>data is the error."
>
>Not sure what to do next. Help? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317624
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: IIS Application Pools and ColdFusion

2008-12-01 Thread Matthew Small
Any shutdown in an IIS application pool is a process crash and needs to be 
debugged with a post-mortem userdump.  My recommendation is that you open a 
support ticket with Microsoft to identify the root cause.  Be aware, however, 
that in 90% of the cases we see, the cause is in a 3rd party component (meaning 
the JRUN ISAPI dll or something else, not an IIS problem in itself) acting up 
and we will only be able to go so far with the root cause analysis.  However, 
when we identify the issue, we ought to be able to more properly direct you to 
the right place to get the next level of support.

Regards,
Matt Small


>I don't know about MS 2003 too much, but in 2008 the app pools have two
>related "Rapid-fail protection" settings that we had to tweak: the
>"maximum failures" and "failure interval".  It appears that app pools
>can be set up to shut themselves down when IIS sees too many errors
>within a given amount of time.  The defaults are 5 errors in 5 minutes,
>which is not very forgiving. (We were generating http error responses on
>purpose and this triggered a shutdown until we figured out what was
>going on.)
>
>We have recently migrated all of our applications to a new MS 2003
>server.  Ever since the applications kept going down even though the
>server was still up and functioning normally.  Eventually we figured out
>that it was the application pool that went down.  We separated the
>applications out to another application pool and eventually identified
>one application as the source of the problem.  So now all other
>applications are up but this one application keeps going down.  But now
>what? we have no clues how to fix this.  It is an old fusebox 3
>application and we are using wsconfig to connect between IIS and JRUN.
>What kind of activities in the site that can possibly bring down the
>application pool? We have an upload feature, but I don't think it is
>used extensively.  Please help!
>
>Johnny 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316087
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: How do you import data from Informix to MS-SQL tables?

2008-11-19 Thread Matthew Small
Not sure if this is what you already tried, but SQL Server 2005 has a DTS Wizrd 
located here:

C:\Program Files\Microsoft SQL Server\90\DTS\Binn\DTSWizard.exe 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315533
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: url rewrite question

2008-10-26 Thread Matthew Small
Instead of messing with rewrite, you could use ADSI to script the IIS metabase 
to create all of the vdirs.

http://msdn.microsoft.com/en-us/library/ms525389.aspx



>So I want to set up multiple web site subdirectories that all use the same 
>code.
>
>www.somedomain.com/site01/
>www.somedomain.com/site02/
>www.somedomain.com/site03/
>www.somedomain.com/site04/
>
>when accessing these sites, the URL should never really change, and
>coldfusion should see #cgi.script_name# as /site01/index.cfm
>/site02/index.cfm etc..
>
>I can do this with IIS virtual directories, but we will have thousands
>of web sites.
>
>I wondered if ISAPI Rewrite can allow me to rewrite *ANY* subdirectory
>call to another subdirectory...
>
>ie, rewrite /.*?/ to /site/ ... but still have CF know that the URL
>was /site01/ /site02/ etc...
>
>-- 
>Rick Root
>New Brian Vander Ark Album, songs in the music player and cool behind
>the scenes video at www.myspace.com/brianvanderark 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314391
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Absolutely Stumped - Reallu Urgent

2008-10-23 Thread Matthew Small
A simple thing to do would be to write a .NET webservice that takes a number of 
parameters that matches the set of properties that the SurveyDataObject 
requires, create a SurveyDataObject, sets its properties to the parameters, and 
then submit it to the Post.SurveyPost() method.  After it's written, call that 
webservice from CF after getting the correct values from a CF form.  It's not 
necessary to understand the internals of the .NET code if you can access its 
methods.


>Toby,
>To me, who is a novice at .NET, it looks like that code is doing a simple
>lookup and insert into the db using the information from the form.  It is
>using the e-mail as the item to match on and then inserting the answers from
>the survey into the DB using the methods written in .NET (this is just a
>sub-sample of the entire application as it is calling some other methods)
>
>But what it is clearly stating, is that it is expecting either a 0 or a 1
>for whether or not the respondent likes ice cream, and that the numerical
>values for hair color need to be inserted instead of the actual name.  Also
>looks to be validating and formating the Postal Code correctly, but all in
>all pretty straight forward stuff.  Do you need to write CF to interact with
>the .NET or just to replace what it is doing?
>
>Rob
>
>On Thu, Oct 23, 2008 at 8:37 AM, Toby King <[EMAIL PROTECTED]> wrote:
>
>> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314305
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfexecute, Windows 2003 and runas

2008-09-23 Thread Matthew Small
You also might want to run Process Monitor on the server while executing this 
and see if it gives you any clue.

- Matt Small

> I know this exact issue has been a problem since CF 6.x. I've always 
> thought it was a permissions problem, but to be honest I've never used 
> cfexecute. We're just not allowed to =\
> 
> Is your CF install running as local system? If it's running as a 
> specific user, you could try making the user starting the service a 
> local/domain admin and see quick if it runs then. Obviously if it does, 
> CF is lacking a permission to run it correctly.
> 
> If you browse livedocs you'll see your exact issue wa back in 6.1
> http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p25.htm
> 
> There are a couple workarounds those people tried with varying success. 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312959
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfexecute, Windows 2003 and runas

2008-09-23 Thread Matthew Small
Are you referring to 812614?

Jochem - What would be interesting to see is why the batch file is in a hang 
condition.  You can inspect the condition of the process by getting a hang dump 
of the process and examine it's callstack (I assume there's only one thread).  
Follow these steps and provide a place for me to download the dump from, I'll 
look at it if you like:
   
1) Download, install, and launch the DebugDiag v1.1 tool.  You can get it from 
the Microsoft website
2) Launch your CFM template that creates the batch process
3) On the processes tab, find the batch process, right click on "Create Full 
Userdump"
4) Zip it up and put it on an FTP or web site and tell me how to get it.

- Matt Small



> I believe there are 6 items in the mmc you need to give that user, 
> including run as service. If I remember right, one was the batch 
> process one. Lemme go see if I can dig up the MS KB article. We have 
> to do this all the time, and it ends up being a pain! 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312941
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: sharepoint authentication

2008-08-13 Thread Matthew Small
You also might have some luck with this blog entry:

http://blogs.msdn.com/david.wang/archive/2006/02/05/HOWTO_Sharepoint_and_CustomAuth_Part_1_Soliciting_Questions.aspx

>So I have a general query.  My boss has asked me to see if its  
>possible and the degree of difficulty on basically being able to take  
>login information and authenticate the credentials against the active  
>directory server and then if its true, then to pass all that info to a  
>sharepoint server to automatically log them into the sharepoint  
>server.  The problem is the CF server is not sitting on the same  
>server as the Sharepoint server.  I'm guessing there will be some use  
>of web services involved but I'm not familiar enough with sharepoint  
>to understand if there's a possibility to talk to the API via CF or not.
>
>Does that make any sense?  If so, does anyone have any advice or code  
>samples?
>
>-Phi 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310922
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: sharepoint authentication

2008-08-13 Thread Matthew Small
You're going to have to use a cookie-based authentication method on the 
sharepoint server to get around the need to pass credentials explicitly.  
Microsoft has one in the "IIS Resource Kit" that you can use for free.  I can't 
give you to the full details on how this works at the moment, but I have seen 
this exact idea (Single-sign on) work using this method.

- Matt Small

>So I have a general query.  My boss has asked me to see if its  
>possible and the degree of difficulty on basically being able to take  
>login information and authenticate the credentials against the active  
>directory server and then if its true, then to pass all that info to a  
>sharepoint server to automatically log them into the sharepoint  
>server.  The problem is the CF server is not sitting on the same  
>server as the Sharepoint server.  I'm guessing there will be some use  
>of web services involved but I'm not familiar enough with sharepoint  
>to understand if there's a possibility to talk to the API via CF or not.
>
>Does that make any sense?  If so, does anyone have any advice or code  
>samples?
>
>-Phi 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310921
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Submit ASP form using CFHTTP

2008-08-12 Thread Matthew Small
You can't pass these values directly... think of it as a series of steps.  
Request the page, parse out the necessary information (viewstate, event 
validation), pass them into the next request.  

Get a fiddler trace of an actual request that you make in a browser, and use 
the event target, event argument values from that trace to pass in your second 
request.



>I want to submit a zipcode to a form on another website and then manipulate
>the results using cfhttp.filecontent. When I run the code below, it churns
>for awhile and then gives me an ASP runtime error.
> 
>http://www.thesite.com/default.aspx"; resolveurl="yes"
>method="post">
> 
> 
>value="/wEPDwULLTIwMjUyMTc5NjdkZA==" encoded="no">
> 
> 
> value="/wEWBwLBnPWtDgLJr7rmBQK7v+jaBALM9PumDwKGyM+UAgLI5IvWAQLTq+asCA=="
>type="formfield" encoded="no">
>
> 
>#cfhttp.FileContent#
> 
>I copied the values for  __VIEWSTATE and __EVENTVALIDATION form fields from
>the 'view source', but they seem to be server-generated values aimed at
>preventing what I'm trying to do. Is there any way around this?
> 
>I don't think that __EVENTTARGET and __EVENTARGUMENT are required.
> 
> 
>Billy Cox
>Old World Spices
>[EMAIL PROTECTED] 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310892
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ColdFusion/IIS7

2008-08-12 Thread Matthew Small
It sounds like you're running into a Kerberos double-hop issue.  Just use 
search that term and you'll get a lot of information that will help.

> Hello, I am running Windows Server 2008 and I get this Error when I 
> test the connection (under Basic Settings)
> The server is configured to use pass-through authentication with a 
> built-in account to access the specified physical path. However, IIS 
> Manager cannot verify whether the built-in account has access. Make 
> sure that the application pool identity has Read access to the 
> physical path. If this server is joined to a domain, and the 
> application pool identity is NetworkService or LocalSystem, verify 
> that \$ has Read access to the physical path. 
> Then test these settings again.
> 
> Now the site works fine, except some URL when navigated to throw an 
> Internal Server 500 Error. However, when I use the IE that is on 
> Windows Server I can navigate to the Url and everything works so 
> obviously it is a Permission Error. I spent 3 days on the problem 
> trying every possible permission to the accounts and nothing works. It 
> is a public website and not an intranet. Anyone know how to fix it or 
> if there is a guide. 
> 
> 
> 
  


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310891
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Transfering files from Non-coldfusion IIS Server to a CF Webservice

2008-08-04 Thread Matthew Small
It's important to know the environment of the Windows application.  Is it .NET, 
VB6.0 or C++?

If .NET, you would use the System.Net.HTTPRequest namespace and formulate a web 
request similar to what CF_HTTP does.

VB 6.0 would instantiate the MSXML2.ServerXMLHTTP.4.0 object as you've already 
discovered:

Server.CreateObject("Msxml2.ServerXMLHTTP.4.0")

C++ applications... I have no idea what the native implementations are offhand. 
 You could always open up a socket to the webservice and pass the SOAP, but 
that would be *really* nasty.  

- Matt



> We have an application on a remote server where customers enter images 
> (the images are located on their machine).
> 
> We want to do a "form post" from within their windows application.  I 
> am at a loss on it ... I have been reading on MSXML2.ServerXMLHTTP.4.0, 
> but I am not sure if that is the right solution.
> 
> We have a coldfusion webservice that is listening for a filename and 
> path destination in FORM format.The remote server again, doesn't 
> have coldfusion just IIS ... how can we post this form from within the 
> Windows Application (which we have access to write additional code in).  
> and transfer the image file to the webservice?
> 
> Thanks in advance.
> 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310187
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF8 on a 64-bit Windows 2003 Server

2008-03-21 Thread Matthew Small
The two issues that we encountered, after getting .NET 2.0 installed and 
setting IIS to 32-bit were:

1) The CF install changed the IUSR permissions to the wwwroot folder to remove 
read/execute.  Why is that necessary?  I understand the explicit deny write, 
but the anonymous account must have read to do anything.

2) The install did not give the W3WP process account (in this case, Network 
Service, the default) read/execute permission to the location of the CF files, 
which contains the wildcard ISAPI extension, necessary for the execution of CF. 
 This resulted in a 401.3- ACL denied problem until we fixed it.  This is a big 
oversight in my opinion.

- Matt Small

>> We are currently working with .NET 2.0 and CF8 running on IIS 
>> 6.0 in 32-bit mode on a 2003 Windows 64-bit server. Part of 
>> the problem appears to have been with the CF8 installation, 
>> which did not give the IUSR_xxx accounts permission to access 
>> the COLDFUSION8 file directors, and caused ACL errors when 
>> attempting to access web sites. When these permission were 
>> manually added to the CF8 directories, everything seemed to 
>> have started working ok.
>
>Just as a heads-up, the CF install doesn't set permissions on any files for
>any account other than the one used to install CF. It's always up to the
>server administrator to set permissions appropriately.
>
>Dave Watts, CTO, Fig Leaf Software
>http://www.figleaf.com/
>
>Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
>http://training.figleaf.com/
>
>WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
>http://www.webmaniacsconference.com/ 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301735
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF8 on a 64-bit Windows 2003 Server

2008-03-19 Thread Matthew Small
>I just wanted to pass on some interesting findings. We have been
>attempting to run both .NET and CF8 on a 64-bit Windows 2003 server. It
>is not working out too well.
>
>So far, it turns out that .NET will only run in 64-bit mode IIS on this
>server. It also turns out the CF8 will only currently run in 32-bit mode
>on IIS 6. Therefore, they are incompatible. You can run one or the
>other, but not both.
>
>We are thinking about running a VM with CF8 only, but then we need to
>buy another OS license for the virtual server; and, I am wary about
>running a first time Windows virtual server in production mode.
>
>Let the buyer beware ...
>

>Richard Colman
>Computing Director
>CODA Genomics, Inc.
>www.codagenomics.com
>949-305-5298
>949-228-0736

".NET will only run in 64-bit mode IIS"
That's simply incorrect.  Install .NET v2.0 on x64, then change the bitness of 
IIS in the metabase:  

c:\inetpub\adminscripts>cscript adsutil.vbs set Enable32BitAppOnWin64 true

Then install .NET on IIS:
c:\windows\microsoft.net\framework\v2.0.50727>aspnet_regiis -i

That will run 32-bit .NET on a 32-bit IIS worker process on Windows Server 2003 
x64.

- Matt Small 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301579
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: IIS Application Pools and ColdFusion

2007-11-01 Thread Matthew Small
So it's an ISAPI extension... it sounds like you said that the CF processing 
does not take place within the w3wp.exe process?  If not, where?  Is the JVM 
also loaded in the w3wp.exe process?

- Matt

>> What is the "web server integration module"?  How does a 
>> request get passed from IIS to CF?
>
>The web server integration module is the piece of software that passes
>requests from your web server to CF. It's installed using wsconfig.jar. In
>the case of IIS, wsconfig.jar installs a DLL or two that get loaded into the
>IIS memory space as ISAPI filters/extensions/wildcard extensions (depending
>on the versions of IIS and CF in question).
>
>Dave Watts, CTO, Fig Leaf Software
>http://www.figleaf.com/
>
>Fig Leaf Software provides the highest caliber vendor-authorized
>instruction at our training centers in Washington DC, Atlanta,
>Chicago, Baltimore, Northern Virginia, or on-site at your location.
>Visit http://training.figleaf.com/ for more information! 

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292508
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: IIS Application Pools and ColdFusion

2007-11-01 Thread Matthew Small
What is the "web server integration module"?  How does a request get passed 
from IIS to CF?

- Matt Small

>> Do the IIS application pools have any affect on ColdFusion.  
>> Is there any reason to configure them one way or another to 
>> aid the performance of an Windows 2003 server run ColdFusion 
>> 8 Enterprise in Multi-home mode.  We plan to have several IIS 
>> websites configured to use different instances of ColdFusion. 
>>  Is there any advantage or disadvantage to also configuring 
>> multiple application pools?
>
>No, all these affect is the web server integration module, which shouldn't
>cause you any problems anyway. IIS (ASP/.NET) applications often run in the
>IIS memory space, so for them it can make a significant difference.
>
>Dave Watts, CTO, Fig Leaf Software
>http://www.figleaf.com/
>
>Fig Leaf Software provides the highest caliber vendor-authorized
>instruction at our training centers in Washington DC, Atlanta,
>Chicago, Baltimore, Northern Virginia, or on-site at your location.
>Visit http://training.figleaf.com/ for more information! 

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292491
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: IIS Application Pools and ColdFusion

2007-11-01 Thread Matthew Small
What is the "web server integration module"?  How does a request make it from 
IIS to CF?

- Matt Small

>> Do the IIS application pools have any affect on ColdFusion.  
>> Is there any reason to configure them one way or another to 
>> aid the performance of an Windows 2003 server run ColdFusion 
>> 8 Enterprise in Multi-home mode.  We plan to have several IIS 
>> websites configured to use different instances of ColdFusion. 
>>  Is there any advantage or disadvantage to also configuring 
>> multiple application pools?
>
>No, all these affect is the web server integration module, which shouldn't
>cause you any problems anyway. IIS (ASP/.NET) applications often run in the
>IIS memory space, so for them it can make a significant difference.
>
>Dave Watts, CTO, Fig Leaf Software
>http://www.figleaf.com/
>
>Fig Leaf Software provides the highest caliber vendor-authorized
>instruction at our training centers in Washington DC, Atlanta,
>Chicago, Baltimore, Northern Virginia, or on-site at your location.
>Visit http://training.figleaf.com/ for more information! 

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292492
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: fixing outofmemoryerror: java heap space

2007-10-23 Thread Matthew Small
Hi Jessica,
   What I'm about to say isn't CF-specific, but it true for all web apps.
   Simply testing the application on a server does not indicate that it's going 
to run fine in a production environment.  The fact that you know of a large 
amount of variables indicates that you already know that there's a basic 
problem in the application.
Additiona

> Hi, I am running a coldfusion page that calculates a large volume of 
> variables, which has thus far not been a problem.  The pages have 
> worked fine (maybe taken a while to load) on my testing server & on 
> some web space I have.  However, I uploaded the file to  its "final 
> resting place" on a semi-dedicated server, and I am now getting an 
> error 500- outofmemoryerror: java heap space.  I have just set up this 
> server-- so I am hoping there is some value I can tweak that will 
> allow this page to run... it is vitally important to the website that 
> it works... does anybody know what I could do?  Thanks! 


~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291874
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: fixing outofmemoryerror: java heap space

2007-10-23 Thread Matthew Small
Hi Jessica,
   What I'm about to say isn't CF-specific, but it true for all web apps.
   Simply testing the application on a server does not indicate that it's going 
to run fine in a production environment.  The fact that you know of a large 
amount of variables indicates that you already know that there's a basic 
problem in the application.
Additiona

> Hi, I am running a coldfusion page that calculates a large volume of 
> variables, which has thus far not been a problem.  The pages have 
> worked fine (maybe taken a while to load) on my testing server & on 
> some web space I have.  However, I uploaded the file to  its "final 
> resting place" on a semi-dedicated server, and I am now getting an 
> error 500- outofmemoryerror: java heap space.  I have just set up this 
> server-- so I am hoping there is some value I can tweak that will 
> allow this page to run... it is vitally important to the website that 
> it works... does anybody know what I could do?  Thanks! 


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291872
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: fixing outofmemoryerror: java heap space

2007-10-23 Thread Matthew Small
Hi Jessica,
   What I'm about to say isn't CF-specific, but it true for all web apps.
   Simply testing the application on a server does not indicate that it's going 
to run fine in a production environment.  The fact that you know of a large 
amount of variables indicates that you already know that there's a basic 
problem in the application.
Additiona

> Hi, I am running a coldfusion page that calculates a large volume of 
> variables, which has thus far not been a problem.  The pages have 
> worked fine (maybe taken a while to load) on my testing server & on 
> some web space I have.  However, I uploaded the file to  its "final 
> resting place" on a semi-dedicated server, and I am now getting an 
> error 500- outofmemoryerror: java heap space.  I have just set up this 
> server-- so I am hoping there is some value I can tweak that will 
> allow this page to run... it is vitally important to the website that 
> it works... does anybody know what I could do?  Thanks! 


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291873
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: fixing outofmemoryerror: java heap space

2007-10-23 Thread Matthew Small
Hi Jessica,
   What I'm about to say isn't CF-specific, but it true for all web apps.
   Simply testing the application on a server does not indicate that it's going 
to run fine in a production environment.  The fact that you know of a large 
amount of variables indicates that you already know that there's a basic 
problem in the application.
   Additionally, consider that you're running this in a hosting space with 
other applications that are also consuming resources.  If you use too many 
objects and/or objects that are "pinned" in memory, you will quickly run out of 
memory space on the heap.  
   Keep in mind, there's no "fix my problem" registry key for everything.  You 
have a basic memory leak problem, and the resolution is to fix the code that 
causing the memory leak.

- Matt Small

> Hi, I am running a coldfusion page that calculates a large volume of 
> variables, which has thus far not been a problem.  The pages have 
> worked fine (maybe taken a while to load) on my testing server & on 
> some web space I have.  However, I uploaded the file to  its "final 
> resting place" on a semi-dedicated server, and I am now getting an 
> error 500- outofmemoryerror: java heap space.  I have just set up this 
> server-- so I am hoping there is some value I can tweak that will 
> allow this page to run... it is vitally important to the website that 
> it works... does anybody know what I could do?  Thanks! 


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291875
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Moving from CF to .Net - need training advice/direction

2007-10-19 Thread Matthew Small
You will typically either learn VB.NET or C#.  There are other languages that 
run the .NET framework but they are not in general usage, nor supported by 
Microsoft as languages.

To respond to Alan's comment, there is in fact such a thing as ASP.NET, 
although his insight is understood.  ASP.NET encompasses the .NET programming 
that is done primarily within the System.Web namespace, with additional classes 
from the System.Net and System.Data namespaces making up the main thrust of 
ASP.NET.

Objects that are unique to web programming and familiar to you as a CF 
developer (Sessions, Cookies, URLs, etc) are present and will be useful to you 
in .NET as they are in CF.  What you will see in .NET that you don't get in CF 
(without the benefit of a CF framework) are event-driven applications.

There is a lot more to know about and a lot less done for you.  Things that 
seemed very easy in CF will be made ridiculously tough in ASP.NET.
If you're a good programmer, you'll come to realize that the set of tools 
you're given can be parsed down to a select few for ease of use.  Also, you can 
start writing libraries of your own code that will also make the transistion 
easier.

ASP.NET is never going to be as simple or quick as CF.  There are substantial 
basic differences in the tools.  CF is principally for Web dev, although people 
have pushed it further than that. ASP.NET is part of the larger .NET effort 
that is taking over the Windows operating system. You'll see much more of it in 
Windows 2008.  

Just a few new benefits of ASP.NET/IIS 7 in Windows 2008...
Ability to programmatically administer the web server
ASP.NET modules that affect the processing pipeline of IIS 7 just like ISAPIs
Add your own UI modules to IIS 7 - meaning that you can change IIS to do 
exactly what you need it to do
Newly rewritten FTP service - including FTPS.

I would recommend that you get started by downloading the free tool Visual Web 
Developer at http://msdn2.microsoft.com/en-us/express/aa700797.aspx.  Install 
SQL Server 2005 Express along with it and you'll be writing the same sort of 
thing you've been doing all along, except in ASP.NET.

For a forum, try http://.asp.net.  For IIS issues, try http://www.iis.net.

When was learning .NET, I started with the Dummies books (I don't recommend 
them for .NET... at least, not the ones from 5 years ago) and loved the 
Microsoft Press books.  I found them easy to use.

- Matt Small






>It lookos like we may be making the move away from CF to .Net so the
>boss has tasked me to get going on .Net training.  Can anyone recommend
>good "on site" training places near Boston, Southern New Hampshire?  
>
>Also, what's the best book out there for ASP.Net?  Am I going to have to 
>learn C # as well?
>
>Thanks for any initial insight.
>
>D 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291553
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: import excel

2007-10-01 Thread Matthew Small
You could use the Excel ODBC driver, or import directly into Access and then 
work some magic.

I'm assuming you're working in Windows since we're talking aobut Excel.

- Matt





>You could try this: http://www.bennadel.com/projects/poi-utility.htm 
>
>-- Andrew
>
>What is the best way to handle taking in an excel sheet from a person.
>Then importing it into a database?
>
>I have a client that their data starts on excel and I don't want them to
>re-type it into our web app.  It would be nice to import the data from
>excel directly into the database.
>
>Is this possible with   to read in the excel sheet and make it
>some kind of query object that I can loop over and insert into the
>database?
>
>Any ideas would be appreciated!
>Thanks,
>Chad 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289859
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: ISAPI ReWrite and Jrun

2007-08-22 Thread Matthew Small
Go into the IIS manager, right-click on the "Web Sites" folder> 
properties>ISAPI Filters.  Move up or down.  Be sure that there's a green arrow 
next it, ensuring that it's "up and running".  It it has a red arrow pointing 
down, there's a problem with the filter.

- Matt Small





>I have installed ISAPI ReWrite and need to figure out how to give it a
>higher priortiy than the JRun connector. Can anyone give me step by step
>instructions on how to do this?



~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286859
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Building a Web Proxy with Authentication

2007-04-09 Thread Matthew Small
Hi Hatton,
   (I was in the middle of formulating my thoughts with the previous post when 
I accidentally posted, please ignore it)

   What you can do in this instance is intercept all incoming requests for a 
site. On the first request from any client, you can request username/password 
and then store that somewhere in memory.
When any request for a site comes in, if the site requires authentication, 
you can simply pass those credentials to the requesting site. However, you'll 
have to work out the issues regarding authentication/session cookies as it 
pertains to each client - after all, each authentication request is going to 
require some way to keep track of the logged-in user.
   You can work around the Sharepoint Intergrated Windows Authentication prompt 
by forcing Forms authentication with an ISAPI filter.  Microsoft has has a 
sample ISAPI filter application called CustomAuth that does exactly this.  
I don't think this is terribly diffcult to program, but I think that ISA 
Server might already do all of this.

- Matt Small



~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274832
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Building a Web Proxy with Authentication

2007-04-09 Thread Matthew Small
Hi Hatton,




problems with what you're doing is that these authentication schemes typically 
keep an auth cookie in the browser.  When making an authentication request from 
another server, that cookie stays on the requesting entity - the server itself. 
 You would have to pass the contents of that authentication cookie from the 
proxy to the client browser.
This is easily done when you know the contents of that cookie.  However, in 
Integrated Windows Authentication (IWA), you'll only get a hash of the password 
that cookie.  The username/password 






>So my boss comes to me the other day and says, "I want to provide our
>clients with a unified login for all the various web based tools we
>provide."  I said that I could.
>
>We're building a new front-end that is going to accept a client login
>and then provide links to the various tools we offer.  My thought is
>to tie the unified login via a database to the login credentials for
>the other sites.  There is going to be a "proxy page" that will handle
>the HTTP calls to the other sites so session consistency won't be an
>issue.
>
>My big issue now is how to call a page that uses Windows (or
>windows-like) authentication.  Is it as simple as passing the username
>and password parameters for a CFHTTP call?  The sites that I'm going
>to be linking to use either the IIS authentication or web form
>authentication.
>
>I know I can fudge the login for the web form with a CFHTTP post...
>has anyone else built a web proxy like this?
>
>Thanks!

~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274831
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Building a Web Proxy with Authentication

2007-04-09 Thread Matthew Small
Hi Hatton,




problems with what you're doing is that these authentication schemes typically 
keep an auth cookie in the browser.  When making an authentication request from 
another server, that cookie stays on the requesting entity - the server itself. 
 You would have to pass the contents of that authentication cookie from the 
proxy to the client browser.
This is easily done when you know the contents of that cookie.  However, in 
Integrated Windows Authentication (IWA), you'll only get a hash of the password 
that cookie.  The username/password 






>So my boss comes to me the other day and says, "I want to provide our
>clients with a unified login for all the various web based tools we
>provide."  I said that I could.
>
>We're building a new front-end that is going to accept a client login
>and then provide links to the various tools we offer.  My thought is
>to tie the unified login via a database to the login credentials for
>the other sites.  There is going to be a "proxy page" that will handle
>the HTTP calls to the other sites so session consistency won't be an
>issue.
>
>My big issue now is how to call a page that uses Windows (or
>windows-like) authentication.  Is it as simple as passing the username
>and password parameters for a CFHTTP call?  The sites that I'm going
>to be linking to use either the IIS authentication or web form
>authentication.
>
>I know I can fudge the login for the web form with a CFHTTP post...
>has anyone else built a web proxy like this?
>
>Thanks!

~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274830
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Debugging Server Lock-Up

2007-02-08 Thread Matthew Small
Hi Adrian,



>Hi all,
> 
>We are running the following system
> 
>Windows Server 2003 Enterprise Edition, SP1
>ColdFusion 7.02 Enterprise Multiserver Edition, JRun 4
>FarCry 3.01
>MSSQL 6.01
> 
>Since we migrated from CF6 to CF7 server stability in general became
>much better. However, we recently had a few situations where the server
>would 'lock-up', i.e. the site would not respond anymore. When checking
>we realized that the machine was on a very high level of RAM usage. The
>only thing we can do is restarting the JRun instance for that particular
>site.
> 
>I'm currently having a look at seefusion and fusion-reactor. The
>problem I see is, that eventually the tool won't help me, because if I
>can't access the site anymore, I won't be able to access
>seefusion/fusion-reactor either - how could I determine what's causing
>the problem then? Or is there a way around this  with those tools? If
>not, how would you recommend a 'lock-up debugging'?
> 
>Thanks for any hints and tips.
> 
>Adrian

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269139
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Debugging Server Lock-Up

2007-02-08 Thread Matthew Small
>Hi all,
> 
>We are running the following system
> 
>Windows Server 2003 Enterprise Edition, SP1
>ColdFusion 7.02 Enterprise Multiserver Edition, JRun 4
>FarCry 3.01
>MSSQL 6.01
> 
>Since we migrated from CF6 to CF7 server stability in general became
>much better. However, we recently had a few situations where the server
>would 'lock-up', i.e. the site would not respond anymore. When checking
>we realized that the machine was on a very high level of RAM usage. The
>only thing we can do is restarting the JRun instance for that particular
>site.
> 
>I'm currently having a look at seefusion and fusion-reactor. The
>problem I see is, that eventually the tool won't help me, because if I
>can't access the site anymore, I won't be able to access
>seefusion/fusion-reactor either - how could I determine what's causing
>the problem then? Or is there a way around this  with those tools? If
>not, how would you recommend a 'lock-up debugging'?
> 
>Thanks for any hints and tips.
> 
>Adrian

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269137
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Debugging Server Lock-Up

2007-02-08 Thread Matthew Small
Hi Adrian,



>Hi all,
> 
>We are running the following system
> 
>Windows Server 2003 Enterprise Edition, SP1
>ColdFusion 7.02 Enterprise Multiserver Edition, JRun 4
>FarCry 3.01
>MSSQL 6.01
> 
>Since we migrated from CF6 to CF7 server stability in general became
>much better. However, we recently had a few situations where the server
>would 'lock-up', i.e. the site would not respond anymore. When checking
>we realized that the machine was on a very high level of RAM usage. The
>only thing we can do is restarting the JRun instance for that particular
>site.
> 
>I'm currently having a look at seefusion and fusion-reactor. The
>problem I see is, that eventually the tool won't help me, because if I
>can't access the site anymore, I won't be able to access
>seefusion/fusion-reactor either - how could I determine what's causing
>the problem then? Or is there a way around this  with those tools? If
>not, how would you recommend a 'lock-up debugging'?
> 
>Thanks for any hints and tips.
> 
>Adrian

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269138
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF vs. .NET presentations?

2006-09-29 Thread Matthew Small
Sorry to chime in late, and after Mike said not to... I haven't been on this 
list in a long time either.  However, this isn't about .NET vs. CF.  It's to 
respond to Dave's comments.

I know that Dave works in the DC area (please correct me if I'm wrong) and DC 
is strong into CF with all of the government agencies.  That's great, it's a 
good place to be becuase CF might be cheaper for a government agency to produce 
website or intranets.  I know that they use Solaris a lot, so CF is a good 
place to be.

However, it's simply absurd to suggest that Microsoft is not strong in the 
enterprise segment. I currently work in Premier technical support for Microsoft 
supporting ASP.NET and IIS.  The list of companies that use ASP.NET reads 
basically the same as the Fortune 500. I know because I've supported their 
technical issues, and they do some crazy programming tricks that CF simply 
isn't capable of, nor can Java do it either. It's not because CF is inferior at 
what it does, but because, as someone pointed out earlier, .NET can interact 
with the entire OS.  Yes, these features are very important at the enterprise 
level.  Event logging to the System and Application event logs, or a custom 
log; multiple session state stores; HTTPHandlers that can intercept incoming 
requests and modify them;  .NET remoting; Native support for XML data 
transformation from the SQL database; interoperability between classes written 
in different languages; and most of all, enterprise support at a level that 
cannot be matched by anybody.

One of the biggest things that can be said about MS products is that they are 
supported, constantly.   When you have a crash, we can tell you how to capture 
a memory dump and then tell you exactly the line of code that caused it.  When 
you have a memory leak, we can pick out the exact object that the dev decided 
there should be millions of and how to work around it.  When you need to secure 
your intranet applications to particular groups of users that exist on your 
corporate intranet, we use integrated windows authentication with a single sign 
on and your code can be protected using NTFS permissions.

Yes, all of these things are more expensive overall than a guy writing some CF 
and deploying it to a server.  But be assured that the enterprise is where MS 
is entrenched.  Millions of dollars are spent by big companies on our 
contracts, and it's because they know when something goes wrong, MS will be 
there to back it up 100%, and we can fix it.  There's no level of support like 
that from anybody else.

But even better, we have professional support for the little guy. When you 
write you own memory leak (and believe me, it can be done using JRUN and CF) we 
can tell you why that exists as well.  Our professional support costs some 
money ($245) but that's cheap when you have a seriously important application 
that needs to be fixed NOW. 

Here are a few companies that I've had cases for, recently:
Johnson & Johnson
Fidelity Financial
ExxonMobil
Federal Reserve Back
State Government of Masschusettes
Parliament of Canada 
AARP


We don't need a list like Ben Forta's.  We're big time enterprise, way bigger 
than Dave would have you believe.  We don't count the number of companies using 
.NET, we don't have to.  Just search for the numbers of jobs available, that 
will tell you all you need to know.


- Matt Small

>It's always a bit unsettling for me to hear Microsoft products and
>"enterprise" in the same sentence, even though I've long believed that they
>can work in the enterprise. And yes, you can build mobile, web and desktop
>applications with .NET - I'm a big fan of the .NET Compact Framework,
>myself. But you're not building one application at that point, you're
>building three applications. Those applications might share some common
>components, and even some of the same presentation logic, but they'll still
>be three distinct applications. And, aside from the web portions, your
>Microsoft applications will only run on Microsoft products - you'll have a
>heck of a time deploying your .NET CF apps to Blackberries.
>
>Right now, the enterprise runs Java. CF integrates nicely with Java. You
>will simply not find too much .NET in enterprise environments yet. I'm a big
>fan of MS products, generally, and I think they're often better than they're
>credited to be, but unless you buy into the idea of the "Microsoft stack",
>where everything you use comes from Microsoft, you don't really have viable
>solutions. Most enterprises have not bought into that idea yet. I don't know
>if they ever will.
>
>Enterprise products are, and have always been, expensive. I strongly suspect
>that Adobe would have difficulty selling CF as an enterprise product if they
>lowered the price.






~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to

RE: Spaces in cfexecute on Windows machine

2005-11-07 Thread Matthew Small
Put quotes around your filename. Escape them.  Chr(34)

- Matt Small

-Original Message-
From: Adrian Showater [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 07, 2005 4:39 PM
To: CF-Talk
Subject: Spaces in cfexecute on Windows machine

I am having a problem using cfexecute on a windows. machine. A file name
that I am calling in the arguments has a space in it, and it isn't finding
the file for that reason.  Is there some way to excape the space so that
windows recognizes the file name with the space in it?

For example: C:\program files\directory\file.ext

How do I get around the space in "program files?"
It works just fine on locations without spaces.

Adrian Showalter
Software Developer
Holmes BizNet
www.HolmesBizNet.com 
330.893.3901 ext 102


-Original Message-
From: CF-Talk [mailto:[EMAIL PROTECTED]
Sent: Monday, November 07, 2005 12:02 PM
To: CF-Talk
Subject: CF-Talk: Digest every 4 hours


CF-Talk  07-Nov-05 Issue:5037
In this issue:
 "Limit" or "Top" and mySQL Question
 (OT) server rebooting after virus
 (OT) server rebooting after virus
 [SPAM : 8.1] Re: Rumors from Max..
 [SPAM : 8.1] Re: Rumors from Max..
 [SPAM : 8.1] Re: Rumors from Max..
 [SPAM : 8.1] Re: Rumors from Max..
 [SPAM : 8.1] Re: Rumors from Max..
 ActiveX Image Control
 ActiveX Image Control
 Bday boy needs some left outer join help
 cfxpdf performance issues
 ColdFusion Reseller Accounts
 Create an XML - Feed
 Cumulative Hotfix 1 - Remove old Hotfixes?
 Cumulative Hotfix 1 - Remove old Hotfixes?
 eclpise and dw playing together
 eclpise and dw playing together
 Maybe OT, MySQL install problem
 New to Multi Server installation/Jrun
 SOAP or .NET Remoting Quesitons.
 SOAP or .NET Remoting Quesitons.
 Special Characters (Unicode?)
 Using SQL Server JDBC Drivers with MX7?
 Using SQL Server JDBC Drivers with MX7?
 Weird Database Issue with Memo field
 Weird Database Issue with Memo field
 what do you use instead of cfx_openimage?





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223488
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Consuming a .NET webservice from CF

2005-11-07 Thread Matthew Small
I'm going to take a stab in the dark with this one...

Is it possible that they have overloaded some of the methods in the .NET
code, which is breaking the WSDL?

- Matt Small


-Original Message-
From: Russ [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 07, 2005 1:49 PM
To: CF-Talk
Subject: Consuming a .NET webservice from CF

This is our first time using webservices, and apparently the other vendor's
first time setting up a webservice.  We've been giving a url to their wdsl
and we've been trying to consume the webservice, except we keep getting an
error when trying to contruct the webservice object.  We are currently on
CFMX 6.1, but got the same error when testing on CF 7.  Here is the code
that crashes. 

 

http://206.132.30.245/ngpapi/ApiService.asmx?WSDL
")>

 

I get the following error:

 



Could not generate stub objects for web service invocation. 

 

Name: http://206.132.30.245/ngpapi/ApiService.asmx?WSDL. WSDL:
http://206.132.30.245/ngpapi/ApiService.asmx?WSDL.
java.lang.IllegalArgumentException: Duplicate operation with
name=processRequest, found in portType
'{http://tempuri.org/NGPAPIWebService/APIService}APIServiceSoap'.
It is recommended that you use a web browser to retrieve and examine the
requested WSDL document for correctness. If the requested WSDL document
can't be retrieved or it is dynamically generated, it is likely that
the target web service has programming errors. 

 

 

Does anyone have any idea on what's going on here?  Am I invoking it wrong
somehow, or is the webservice itself actually incorrect?  I do notice that
they have overloaded processRequest method several times.  Is this not part
of the standard?  Is there a WSDL validator somewhere that can help me test
their WSDL?

 

Russ





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223466
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Consuming CF Webservice from .NET

2005-11-07 Thread Matthew Small
I know this isn't strictly CF, but I know it will help some people.

 

Every now on this list I've seen somebody that needs to be able to consume a
CF webservice that returns a Query from ASP.NET, and that person runs into
problems trying to figure out how to use the returned data.  I've written a
small .NET utility that converts the returned data to a dataset.  Download
it from my blog.

 

http://matthewsmall.blogspot.com  

 

HTH.

 

- Matt Small



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223465
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: SOLUTION: CF webservice consumed via .NET

2005-11-04 Thread Matthew Small
I'll write it, but it'll be next week before I can get to it.  You should be
able to use the simple code I've posted to get ahead with your work.

I'll send it to you when I'm finished with it.

- Matt Small

-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 04, 2005 4:06 PM
To: CF-Talk
Subject: Re: SOLUTION: CF webservice consumed via .NET 

Matt if you write that class and hand it off I will give ya a great big 
squishy hug (not sayin yer squishy) ;-)

It would solve a major PITA I'm having right now

Thanks Matt.

I knew about the QueryBean and figured it must be parseable (as I've seen 
SOAP Testing clients parse it)but all I've seen is .NET posters saying 
it isn't "standard" and being lazy and not tryingthanks for the effort 
Matt.

As I understand itCF query objects are thge only PITA returntype for 
other languages...structs, arrays, and simple datatypes are just fine.

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 




~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223288
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


SOLUTION: CF webservice consumed via .NET

2005-11-04 Thread Matthew Small
Hi Bryan,
I just figured something out that I think has been a problem for the
CF community for a while, or at least, I didn't know there was a fix for
this problem.  I think this will help you out a lot.

I just now wrote a CF web service that returns a query.  I then
created a proxy service in .NET that refers to the CF webservice.  What I
noticed was that the datatype the webservice returns to .NET is called a
Querybean.  The Querybean contains two properties - columnList and data.

Querybean.columnList is an array of strings that, obviously,
contains the list of columns in the dataset.  Here's an example of
displaying the column names.

foreach (string S in Q.columnList)
{
Response.Write("Column: " + S + "");
}

The second property, Querybean.data, happens to be an array of arrays.  The
outer array is a row, while the inner array represents a field in that row.

Each array contains generic "objects", but each must be cast differently in
order to read them.

Here's an example of displaying the data:

foreach (object O in Q.data)
{
foreach (object P in (System.Array) O)
{
Response.Write (P.ToString() + "");
}
}


All this means is that is it possible to pass a query directly from
ColdFusion to .NET without any intermediary steps, such as converting to
XML.

I'm going to write a small .NET class that will allow you to pass in a
Querybean and it will return a Datatable object, hopefully with datatypes
included.

Does this help anybody else out there?  I think I may be also able to
determine how to interpret complex objects passed from CF.

- Matt Small

-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 04, 2005 2:48 PM
To: CF-Talk
Subject: Re: CF webservice consumed via .NET

BINGO! Mattthat would do the trick.  The bummer is I can't use it given 
the application structure I'm working withbut for the future...that 
would work nicely (like the very next project).

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223275
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CF webservice consumed via .NET

2005-11-04 Thread Matthew Small
I know next to nothing about Oracle, but here's an interesting thing I found
via Google:

http://www.oracle.com/technology/oramag/oracle/03-may/o33xml.html


- Matt Small

-Original Message-
From: Jim Davis [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 04, 2005 2:28 PM
To: CF-Talk
Subject: RE: CF webservice consumed via .NET

> -Original Message-
> From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 04, 2005 1:48 PM
> To: CF-Talk
> Subject: Re: CF webservice consumed via .NET
> 
> > Which database are you using?
> >
> > Might it not be fastest to construct the XML as part of the query
> itself?
> >
> > You can format your results using string parsing in most DBs, but some
> > modern ones may be able to do the XML conversion themselves (SQL Server
> > 2005
> > touts this for example).
> >
> > In other words why fetch, convert and send?  Just fetch and send.
> >
> > Jim Davis
> 
> DOH!there's a damn fine idea Jim ;-)
> 
> It's Oracle 9i...any idea if it will return XML...and example would be
> great?

Sorry - I've not actually DONE this (and I don't have any experience with
Oracle)... it was just a thought.

I know that I could do it SQL Server using string concatenation (just
building the XML manually) - I assume the same is true for Oracle.  In SQL
Server you can also use COM objects or (in 2005) built SPs using JavaScript,
perhaps you can do the same (or similar) in Oracle?

Now that I'm thinking about it maybe I should work on a YODEL serializer for
SQL Server 2005...

Jim Davis






~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223253
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CF webservice consumed via .NET

2005-11-04 Thread Matthew Small
Serialization is just another term for conversion to XML.

>From Wikipedia:
"Serialization involves taking a data structure or object and encoding it
into a regular and usually architecture-independent form..."

However, on this note, perhaps there's a faster way to serialize using the
underlying java engine, using something like stringbuilder rather than
looping in CF. Anyone out there know?  Maybe this would be an incredibly
useful custom tag?

Even better, I know that a WDDX add-in for .NET exists, I've not used it
though.  Is there a chance that CFWDDX tag would be faster?

- Matt Small

-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 04, 2005 1:04 PM
To: CF-Talk
Subject: Re: CF webservice consumed via .NET

> Looping over thousands of records to pass over a webservice is probably
> going to be slow anyway, isn't it?

If you have to pass the result as an XML stringthen yes the above is 
true and why I'm asking for alternative solutions (like why the hell can't 
CF return something useful to languages other than CF) ;-)

>
> I ran into this exact same situation - I serialized about 14000 records
> returned from the DB into XML to pass to a .NET webservice.  It took 
> forever
> to process.  I was never sure whether it was the fact that I was 
> serializing
> it, or the fact that I was passing 14000 records across the network to a
> webservice to process.  Perhaps you could send each row, one at a time?
> Might that be faster than serialization/deserialization?

I'm curious what you mean by "serialized"?  are you using a  function to do 
this (if so it's looping anyways)? or looping and converting each row to 
XML?

BTW..in my tests...the conversion of a query to an XML string was 100% the 
cause of major slow down (like 5 times slower than just returning the query)

Thans Matt

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223236
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CF webservice consumed via .NET

2005-11-04 Thread Matthew Small
Looping over thousands of records to pass over a webservice is probably
going to be slow anyway, isn't it?

I ran into this exact same situation - I serialized about 14000 records
returned from the DB into XML to pass to a .NET webservice.  It took forever
to process.  I was never sure whether it was the fact that I was serializing
it, or the fact that I was passing 14000 records across the network to a
webservice to process.  Perhaps you could send each row, one at a time?
Might that be faster than serialization/deserialization?

I was going to quote Joe Rinehart on doing this kind of stuff, but I think
you'd be better of reading it yourself.

http://webservices.sys-con.com/read/47199.htm

- Matt Small;


-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 04, 2005 11:50 AM
To: CF-Talk
Subject: Re: CF webservice consumed via .NET

> I *think* if you were to create a .NET object that mirrors the structure 
> of
> the query object, .NET would probably be able to use the query type 
> returned
> from CF.
>
> However, it would probably be easiest to serialize the output of the query
> into an XML string and just pass it via the webservice as a string, which
> could easily be read by .NET.
>
> - Matt Small

Thanks Matt...

I'm trying to avoid looping over the query to convert it to an XML 
stringwhen you return thousands of records it sure slows down the 
service ;-)

I'll do it if I have to though.

Anybody else have 2 cents to addI know you're out there and I know 
you've bumped into thiswhere's Barney B. and Dave W.?? ;-)

How about structures returned from CF web servicesdoes .NET choke on 
those as well?

TIA

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223234
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: [SPAM : 8.1] Re: Rumors from Max..

2005-11-04 Thread Matthew Small
I think the solution to that is to allow at most one single connection to an
Access Db.   Mikey used to run this on Access, (I'm not sure if he switched
or not) and he had a lot of success doing so.

Using Access is fine, that's why there's a driver for it.

- Matt Small



-Original Message-
From: Snake [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 04, 2005 12:13 PM
To: CF-Talk
Subject: RE: [SPAM : 8.1] Re: Rumors from Max..

Our CF5 server needs restarting much less often than the CFMX servers.
Whenever a site using an Access databases gets a lot of traffic and
overloads the database with too many connections, CFMX just falls over. CF5
doesn't.

Russ 

-Original Message-
From: Adrocknaphobia [mailto:[EMAIL PROTECTED] 
Sent: 04 November 2005 15:58
To: CF-Talk
Subject: Re: [SPAM : 8.1] Re: Rumors from Max..

Yes, perhaps he lives in a parallel dimension where everything is opposite
our reality. CF5... stable... that was a joke right?

-Adam

On 11/4/05, Snake <[EMAIL PROTECTED]> wrote:
> Perhaps because his CF5 server is stable and doesn't fallover nearly 
> as much as CFMX.
>
>
> -Original Message-
> From: Adrocknaphobia [mailto:[EMAIL PROTECTED]
> Sent: 04 November 2005 15:03
> To: CF-Talk
> Subject: Re: [SPAM : 8.1] Re: Rumors from Max..
>
> If you can't see a reason to move to MX from 5, then you may be 
> hoplessly lost.
>
> -Adam
>
> On 11/3/05, Terry Troxel <[EMAIL PROTECTED]> wrote:
> > If you are basically a scripter why would you think a move to java 
> > is A good thing, especially with all the problems it seems come up 
> > with The java odbc conectivity issues and the ms breaking my java setup.
> > I love CF5 and just am reluctant to go to 6.1 or 7. C'mon guys 
> > convince me.
> >
> > Terry
> >
> > -Original Message-
> > From: Jeff Small [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, November 03, 2005 9:13 AM
> > To: CF-Talk
> > Subject: Re: [SPAM : 8.1] Re: Rumors from Max..
> >
> > > Why exactly was CFMX6 needed to save the product from CF5,
> > if that's
> > > what you meant?
> > > Just curious as I am still in love with 5.0
> > >
> > > Terry Troxel
> >
> > I think he's referring to the move to Java.
> >
> >
> > 
> >
> >
> >
>
>
>
> 





~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223233
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CF webservice consumed via .NET

2005-11-04 Thread Matthew Small
My thoughts -

I *think* if you were to create a .NET object that mirrors the structure of
the query object, .NET would probably be able to use the query type returned
from CF.

However, it would probably be easiest to serialize the output of the query
into an XML string and just pass it via the webservice as a string, which
could easily be read by .NET.

- Matt Small


-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 03, 2005 4:58 PM
To: CF-Talk
Subject: CF webservice consumed via .NET

Hey All,

I've read lots of old posts saying the WDSL datatype of "QueryBean" (which
is what CF queries get passed as from CF web services).  I can't find
anything recent..

One old post says nothing but CF can convert that datatype back into a
query

So...can .NET consume CF web service that returns a query?  If so...please
shed some light ;-)

TIA

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223178
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: new next primary key value in Oracle

2005-11-03 Thread Matthew Small
One idea, if it's possible - pass all of this information at once into a
stored procedure, which would know the newly created row id know what number
to use.

- Matt Small

-Original Message-
From: Cornillon, Matthieu (Consultant)
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 03, 2005 1:52 PM
To: CF-Talk
Subject: OT: new next primary key value in Oracle

Hi, everyone.  I have been doing something for years that works, but
feels darned silly.  I have a table called WIDGETS.  I have a sequence
set to increment by 1 up to some ridiculous number called WIDGETS_PKSEQ.
When I add a new row to WIDGETS, I put WIDGETS_PKSEQ.NEXTVAL into
WIDGETS.pkWIDG, the primary key for the table.  Often, immediately after
creating a new row in WIDGETS, I want to create a row in another table
that references that new row in WIDGETS: for example,
ORDERS.fkORD_pkWIDG refers to WIDGETS.pkWIDG.  But to do that, I need to
get that new WIDGETS.pkWIDG value, which has never actually appeared on
the ColdFusion side of the transaction; it's all in Oracle.  So, I do
this ridiculous thing where I generate a random (and safely unique
value), write it to some row in WIDGETS on the new row creation, look it
up to get the new pk, then overwrite that row with the appropriate value
it should have had in the first place, and then continue, now that
ColdFusion has the new pk value known.  There's got to be a better way!
I know I am missing something easy.

Any thoughts?

Matthieu



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223061
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Force PDF Download

2005-11-02 Thread Matthew Small
I think you should remove the "attachment;filename=ebook.pdf" part.  I'm not
sure what should go there, but I think that's causing the problem.

- Matt Small

-Original Message-
From: Aldon Moore [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 02, 2005 11:54 AM
To: CF-Talk
Subject: Force PDF Download

Hello People!

I need to force download a pdf file but my code is trying to download the
page that contains the script!




but this code fails.

Is there a better solution??

Aldon




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222916
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: WAY OT: Configuring FCKEditor

2005-10-28 Thread Matthew Small
Thanks man
I figured a solution to my problem.  I needed to have image upload on one
domain, but the files displayed on another.  I ended up mapping virtual
directory and that solved my problem.

Thanks for your help,
Matt Small


-Original Message-
From: Jay Greer [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 28, 2005 2:39 PM
To: CF-Talk
Subject: Re: WAY OT: Configuring FCKEditor

(for versiion 2.1.1)

/FCKEditor/editor/filemanager/browser/default/connectors/cfm/config.cfm

Lines 9 & 11

Good Luck!



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222601
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


WAY OT: Configuring FCKEditor

2005-10-28 Thread Matthew Small
I need to configure FCKEditor to upload images into a non-default folder,
but I have no idea where to change this setting.  I've looked on the support
website, but I can't find it.  Might anybody here know where I can do this?

 

(sorry for the OT and the cross post)

 

Thanks

 

Matt Small



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222593
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Inline frames a good alternative for creating web applications?

2005-10-27 Thread Matthew Small
I don't know your programming experience, but if you're a traditional
programmer, Javascript is far easier to learn than Flash.  I've also done
Flash, it's not intuitive for people who think linearly like myself.

Flash deals with timelines, Javascript is procedural/OO/not Timeline.  It's
a terrific skill to know, it can be incredibly fun to integrate your CF into
as well.  I would recommend you learn it just for fun if nothing else.  I
think it's easier than you are worried about and you get to work with AJAX
if that's your goal.

- Matt Smalll

-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 27, 2005 4:18 PM
To: CF-Talk
Subject: RE: Inline frames a good alternative for creating web applications?

Possibly...but that's definitely not true when it comes to Flash
and Actionscript...I've tried working with Flash through the last
3 or 4 versions, including the latest, but I don't like working with
the Flash timeline (and I'm familiar with timelines, because I do
video editing every day with one, including animation)...Flash is
just too much buck (work) for the bang...client's (at least mine)
don't want to pay for that much work...besides, I don't like it anyway.

Now about AJAX...I don't know...could be easier or not...but my
research to this point tells me a lot harder...inline frames are easy
to understand.

I just don't think the tools are ready for Rich Client apps that I require
for working with them...I want them to be easier...nothing wrong with that.
Right now, it seems that Rich Clients and AJAX technology are still
too much in their early stages for me.  They still look like they're trying
to "frankenstein" technologies together that weren't originally meant to
work that way.  Perhaps I need to wait until AJAX 4.0 comes out and
by that time there will be AJAX tools available to make it easier...

I may be missing the boat and my perspective may be totally skewed,
so feel free to correct me...this is research time...

Rick


> -Original Message-
> From: Matthew Small [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 27, 2005 3:56 PM
> To: CF-Talk
> Subject: RE: Inline frames a good alternative for creating web
> applications?
>
>
> Seems like you're doing more work trying to avoid work.
>
> - Matt Small
>
> -Original Message-
> From: Rick Faircloth [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 27, 2005 3:50 PM
> To: CF-Talk
> Subject: RE: Inline frames a good alternative for creating web
> applications?
>
> Thanks for the insights, Barney...
>
> Question:  Can an inline frame be setup to trigger another
> iframe when some action is performed that triggers it?
>
> Not clear, I know...so...a scenario...
>
> Three iframes on a page...click on a link in first frame, second
> frame responds, and causes third frame to respondlike a chain
> reaction.  If so, would this substitute for concurrency?
>
> Rick
>
>
>
> > -Original Message-
> > From: Barney Boisvert [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, October 27, 2005 3:38 PM
> > To: CF-Talk
> > Subject: Re: Inline frames a good alternative for creating web
> > applications?
> >
> >
> > The biggest problem with using frames is concurrency.  You can't do
> > more than one thing at a time (unless you have two frames, then it's
> > two things at a time), which can be very troubling.  With Flash and JS
> > remoting you can perform multiple concurrent actions, which is very
> > useful.  You also get the capability to pass complex data fairly
> > easily, and move a lot of your UI logic to the client-side, which
> > results in a far better user experience.
> >
> > And don't think you can use inline frames without JS.  When the frame
> > loads, you have to parse out the content that you need, and then
> > rebuild the visible document with that new content.
> >
> > cheers,
> > barneyb
> >
> > On 10/27/05, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> > > Hi, all...
> > >
> > > I've been interested in building web applications that don't require
> > > a page refresh for a few years now.  First Iooked at Flash...didn't
> > > like it a few versions ago...and still don't.  Don't want to work with
> > > the Flash GUI or learn ActionScript.
> > >
> > > Now, along comes AJAX...everyone's excited.  But upon further
> > > examination, to use it I've got to learn Javascript and other
> > technologies
> > > about which I know virtually nothing.  (And no...I don't have a marke

RE: Inline frames a good alternative for creating web applications?

2005-10-27 Thread Matthew Small
Seems like you're doing more work trying to avoid work.

- Matt Small

-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 27, 2005 3:50 PM
To: CF-Talk
Subject: RE: Inline frames a good alternative for creating web applications?

Thanks for the insights, Barney...

Question:  Can an inline frame be setup to trigger another
iframe when some action is performed that triggers it?

Not clear, I know...so...a scenario...

Three iframes on a page...click on a link in first frame, second
frame responds, and causes third frame to respondlike a chain
reaction.  If so, would this substitute for concurrency?

Rick



> -Original Message-
> From: Barney Boisvert [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 27, 2005 3:38 PM
> To: CF-Talk
> Subject: Re: Inline frames a good alternative for creating web
> applications?
>
>
> The biggest problem with using frames is concurrency.  You can't do
> more than one thing at a time (unless you have two frames, then it's
> two things at a time), which can be very troubling.  With Flash and JS
> remoting you can perform multiple concurrent actions, which is very
> useful.  You also get the capability to pass complex data fairly
> easily, and move a lot of your UI logic to the client-side, which
> results in a far better user experience.
>
> And don't think you can use inline frames without JS.  When the frame
> loads, you have to parse out the content that you need, and then
> rebuild the visible document with that new content.
>
> cheers,
> barneyb
>
> On 10/27/05, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> > Hi, all...
> >
> > I've been interested in building web applications that don't require
> > a page refresh for a few years now.  First Iooked at Flash...didn't
> > like it a few versions ago...and still don't.  Don't want to work with
> > the Flash GUI or learn ActionScript.
> >
> > Now, along comes AJAX...everyone's excited.  But upon further
> > examination, to use it I've got to learn Javascript and other
> technologies
> > about which I know virtually nothing.  (And no...I don't have a market
> > at this time that would justify the effort)
> >
> > My question is this...why not just use inline frames (as someone
> > mentioned recently as their method for building applications)
> to simulate
> > "non-page refreshing" apps?
> >
> > I've used them a little, but not a lot, so I'd like some feedback on
> > what the drawbacks are to building apps using inline frames...I
> can stick
> > to Cold Fusion and HTML alone...no Javascript, no Actionscript...sounds
> > good to me.
> >
> > Can anyone point me to some online examples of significant inline frames
> > usage
> > to build apps?
> >
> > What am I missing?
> >
> > Thanks for any feedback and guidance...
> >
> > Rick
> >
> >
>
> --
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.com/
>
> Got Gmail? I have 100 invites.
>
> 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222459
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


CF-Administrator CFMX 6.1 - Schedule a task for every two weeks

2005-10-26 Thread Matthew Small
I don't see how to schedule a task to run every two weeks, rather than every
week, in the CFAdmin.  Can I set the task to run daily, every 288 hours?

 

Thanks,

Matt Small



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222350
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Credit card verification

2005-10-24 Thread Matthew Small
You should be able to "authorize" the charge.  This is typically done at gas
stations - they authorize up to $75, then cancel the transaction.  It should
never show up unless you actually charge the amount or if you forget to
remove the authorization. 
 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 24, 2005 1:32 PM
To: CF-Talk
Subject: Credit card verification

Is there a way to verify that a credit card exists and is assigned to a
person short of charging them? In the past we had to set a refundable dollar
to do this but I'm hoping that there is a new solution, maybe using paypal.
Thanks



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222084
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: A timeout alert

2005-10-18 Thread Matthew Small
You'll need to use server-side validation as well to be sure.  The alert
won't work, but that's just the way it is.
 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-Original Message-
From: Ken [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 3:14 PM
To: CF-Talk
Subject: Re: A timeout alert

Yes, it does work. Thanks. However, is there a way to make sure it always
works, even if the browser doesn't have javascript enabled?

On 10/18/05, Matthew Small <[EMAIL PROTECTED]> wrote:
>
> Yeah, it works. I just tried it.
>
> Matthew Small
> Web Developer
> American City Business Journals
> 704-973-1045
> [EMAIL PROTECTED]
>
>
> -Original Message-
> From: Matthew Small [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 18, 2005 2:52 PM
> To: CF-Talk
> Subject: RE: A timeout alert
>
> Use CF to find the difference from now until your time in milliseconds,
> then
> use the following code to execute it. Say your time is five minutes from
> now:
> 5 minutes * 60 seconds * 1000 milliseconds = 30 milliseconds
>
> 
> function TimeExpired()
> {
> alert ("Your time is up!");
> window.location.href = "<a  rel="nofollow" href="http://server.com/somepage.html"">http://server.com/somepage.html"</a>;;
> }
> 
>
> mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 18, 2005 2:29 PM
> To: CF-Talk
> Subject: Re: A timeout alert
>
> I need some help with that javascript, please.
>
> Thanks.
>
> On 10/18/05, Bobby Hartsfield <[EMAIL PROTECTED]> wrote:
> >
> > You've got the time you need in the database so you can get the
> difference
> > of now and that time then use that as your count down value in js
> >
> >
> > ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
> > Bobby Hartsfield
> > http://acoderslife.com
> >
> > -Original Message-
> > From: Ken [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, October 18, 2005 1:55 PM
> > To: CF-Talk
> > Subject: A timeout alert
> >
> > Hi. I am working on a forum application. There is a fixed time to
> respond
> > to
> > each posting. I want the user responding to a posting to get an alert,
> > even
> > if he is typing at the last minute, saying: "Sorry, this posting has
> > reached
> > its expiration time, you are being taken to the home page now."
> > There's a db field that holds the expiration time for each posting.
> That's
> > what we will compare the current time to. Or maybe start a timer as soon
> > as
> > the user comes to the page, and display an alert at the end of the
> timer.
> > Any ideas how to do this in CF? Code examples will help.
> >
> > Thanks,
> > Ken
> >
> >
> >
> >
> >
>
>
>
>
>
> 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221368
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: A timeout alert

2005-10-18 Thread Matthew Small
Yeah, it works. I just tried it.
 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-Original Message-
From: Matthew Small [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 2:52 PM
To: CF-Talk
Subject: RE: A timeout alert

Use CF to find the difference from now until your time in milliseconds, then
use the following code to execute it.  Say your time is five minutes from
now:
5 minutes * 60 seconds * 1000 milliseconds = 30 milliseconds


function TimeExpired()
{
alert ("Your time is up!");
window.location.href = "<a  rel="nofollow" href="http://server.com/somepage.html"">http://server.com/somepage.html"</a>;;
}


mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 2:29 PM
To: CF-Talk
Subject: Re: A timeout alert

I need some help with that javascript, please.

Thanks.

On 10/18/05, Bobby Hartsfield <[EMAIL PROTECTED]> wrote:
>
> You've got the time you need in the database so you can get the difference
> of now and that time then use that as your count down value in js
>
>
> ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
> Bobby Hartsfield
> http://acoderslife.com
>
> -Original Message-
> From: Ken [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 18, 2005 1:55 PM
> To: CF-Talk
> Subject: A timeout alert
>
> Hi. I am working on a forum application. There is a fixed time to respond
> to
> each posting. I want the user responding to a posting to get an alert,
> even
> if he is typing at the last minute, saying: "Sorry, this posting has
> reached
> its expiration time, you are being taken to the home page now."
> There's a db field that holds the expiration time for each posting. That's
> what we will compare the current time to. Or maybe start a timer as soon
> as
> the user comes to the page, and display an alert at the end of the timer.
> Any ideas how to do this in CF? Code examples will help.
>
> Thanks,
> Ken
>
>
>
>
> 





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221365
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: A timeout alert

2005-10-18 Thread Matthew Small
Use CF to find the difference from now until your time in milliseconds, then
use the following code to execute it.  Say your time is five minutes from
now:
5 minutes * 60 seconds * 1000 milliseconds = 30 milliseconds


function TimeExpired()
{
alert ("Your time is up!");
window.location.href = "http://server.com/somepage.html";;
}


mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 2:29 PM
To: CF-Talk
Subject: Re: A timeout alert

I need some help with that javascript, please.

Thanks.

On 10/18/05, Bobby Hartsfield <[EMAIL PROTECTED]> wrote:
>
> You've got the time you need in the database so you can get the difference
> of now and that time then use that as your count down value in js
>
>
> ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
> Bobby Hartsfield
> http://acoderslife.com
>
> -Original Message-
> From: Ken [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 18, 2005 1:55 PM
> To: CF-Talk
> Subject: A timeout alert
>
> Hi. I am working on a forum application. There is a fixed time to respond
> to
> each posting. I want the user responding to a posting to get an alert,
> even
> if he is typing at the last minute, saying: "Sorry, this posting has
> reached
> its expiration time, you are being taken to the home page now."
> There's a db field that holds the expiration time for each posting. That's
> what we will compare the current time to. Or maybe start a timer as soon
> as
> the user comes to the page, and display an alert at the end of the timer.
> Any ideas how to do this in CF? Code examples will help.
>
> Thanks,
> Ken
>
>
>
>
> 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221364
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: A timeout alert

2005-10-18 Thread Matthew Small
Sounds like a job for javascript.

Matthew Small
 
-Original Message-
From: Ken [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 1:55 PM
To: CF-Talk
Subject: A timeout alert

Hi. I am working on a forum application. There is a fixed time to respond to
each posting. I want the user responding to a posting to get an alert, even
if he is typing at the last minute, saying: "Sorry, this posting has reached
its expiration time, you are being taken to the home page now."
There's a db field that holds the expiration time for each posting. That's
what we will compare the current time to. Or maybe start a timer as soon as
the user comes to the page, and display an alert at the end of the timer.
Any ideas how to do this in CF? Code examples will help.

Thanks,
Ken




~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221356
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Loop through a structure of structures

2005-10-12 Thread Matthew Small
Reference each query through the structure perhaps?

Does this work?






But this begs the question, why are there 17 recordsets? Might a single
query do the job?
 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-Original Message-
From: Andy Mcshane [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 12, 2005 11:21 AM
To: CF-Talk
Subject: Loop through a structure of structures

Hi all, I think I have been looking at this for too long and cannot figure
out how to loop through and output a structure of query results.

I have a CFC that will return multiple recordsets. I figured that the only
way that I could return multiple recordsets from a CFC was to return them
within a structure. My query runs inside my CFC and returns 17 individual
recordsets. I create a structure and add each of these recordsets to it so
my structure now looks like this;

RSStructure
RS1   query - Rows 2
AGE   ID   NAME
  1  221   Wibble
  2  212   Wobble
RS2   query - Rows 3
AGE   ID   NAME
  1  223   Wibble
  2  214   Wobble
  3  305   Woo
RS3   query - Rows 3
AGE   ID   NAME
  1  346   Wibble
  2  237   Wobble
  3  338   Woo

This continues until I have 17 recordsets within my structure. I then return
this structure to my calling page. Now I must be having a really brain dead
day because for the life of me I cannot remeber how to reference each of my
recordsets within this structure so that I can output the data, it must be
simple but then again so must I be at the moment! Can anybody help this
flagging programmer?




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220804
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: DAOs, objects, structs, or strings

2005-10-11 Thread Matthew Small
Yes, I thought so.  The terms are have very similar meanings and it's kind
of ambiguous when talking about this.
 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-Original Message-
From: Tanguy Rademakers [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 11, 2005 3:18 PM
To: CF-Talk
Subject: Re: DAOs, objects, structs, or strings

>Sorry, maybe our terms are different?  My Data Access Object (DAO) that 
>works with the DB returns only a query object. My DataGateway (DG) 
>creates the object from the query and returns it, or passes it to the 
>DAO in primitives.  Then I have the Data Object itself.  Three parts to 
>this equation for me.  The DAO does not have knowledge of the objects 
>because it deals only in database terms.  The DG is the 
>translator/mapper from table to object.

Our terms are, in fact, almost exactly opposite ;)

For me, a gateway deals in queries and a DAO deals in objects.



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220754
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: DAOs, objects, structs, or strings

2005-10-11 Thread Matthew Small
Sorry, maybe our terms are different?  My Data Access Object (DAO) that
works with the DB returns only a query object. My DataGateway (DG) creates
the object from the query and returns it, or passes it to the DAO in
primitives.  Then I have the Data Object itself.  Three parts to this
equation for me.  The DAO does not have knowledge of the objects because it
deals only in database terms.  The DG is the translator/mapper from table to
object.

 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-Original Message-
From: Tanguy Rademakers [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 11, 2005 3:06 PM
To: CF-Talk
Subject: Re: DAOs, objects, structs, or strings

>I use 3 because then the DAO shouldn't have knowledge of the Widget object.

It's a WidgetDAO - it exists to load and persist Widgets. By your logic,
your WidgetDAO shouldn't return Widgets either, just a struct (or maybe even
a query) of a given widget's information... 



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220751
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: DAOs, objects, structs, or strings

2005-10-11 Thread Matthew Small
I use 3 because then the DAO shouldn't have knowledge of the Widget object.

 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-Original Message-
From: Paul [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 11, 2005 2:46 PM
To: CF-Talk
Subject: DAOs, objects, structs, or strings

I'm curious about the best way to pass data to and from DAO CFCs.

 

If I am updating a Widget, I have seen three ways to pass its data to
WidgetDAO.update():

 

1.   create a Widget object, then pass object -
WidgetDAO.update(WidgetBean).  The update() function then uses
arguments.WidgetBean.getValue().

2.   create a Widget object, then pass struct -
WidgetDAO.update(WidgetBean.getInstance()).  The update() function uses
arguments.widgetStruct.value.

3.   pass many string arguments to the update function -
WidgetDAO.update(widgetID, widgetValue, widgetValue.).  The update()
function uses arguments["widgetValue"] etc.

 

What is typical, and what are the ramifications of the choice?  I am
inclined towards one of the first two but I just noticed some code from
someone smarter than I that uses method 3 and wonder if I'm overlooking
something.

 

Thanks,

 

paul

 

 





~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220747
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cutting: aabbcc0000

2005-10-11 Thread Matthew Small
That's cool, I didn't know regex enough to know the 0+$ means trailing 0s. 
 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-Original Message-
From: Munson, Jacob [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 11, 2005 9:55 AM
To: CF-Talk
Subject: RE: cutting: aabbcc

Uew,

One of these removes all zeros from the string, the other removes all zeros
at the end of a string:





#removeTrailingZeros##removeAllZeros# 

> -Original Message-
> From: Uwe Degenhardt [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 11, 2005 6:25 AM
> To: CF-Talk
> Subject: cutting: aabbcc
> 
> Hi list I
> have a value in a db-field like
> "aabbcc"
> and I always want
> to cut the leading nulls
> on the right to get: "aabbcc", but only the four nulls, how can I do 
> this ?
> There must be a regular expression
> for this, but I can't remember.
> Uwe








[INFO] -- Access Manager:
This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law.  If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format.  Thank you.   A2





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220724
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cutting: aabbcc0000

2005-10-11 Thread Matthew Small
Rtrim only applies to spaces. 

 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-Original Message-
From: Dave Francis [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 11, 2005 10:39 AM
To: CF-Talk
Subject: RE: cutting: aabbcc

Won't Rtrim() work?



-Original Message-
From: Matthew Small [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 11, 2005 10:00 AM
To: CF-Talk
Subject: RE: cutting: aabbcc


Also, one caveat - if the string itself has a length of 0, it will throw an
error.


Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]


-Original Message-
From: Matthew Small [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 11, 2005 9:52 AM
To: CF-Talk
Subject: RE: cutting: aabbcc

str = "aabbcc"


#reverse(right(reverse(str),len(str)-(ReFind("0[^0]",reverse(str)#

This will remove all nulls from the right.

Perhaps there's a more elegant way, but I don't know it.


Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]


-Original Message-
From: Uwe Degenhardt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 11, 2005 8:25 AM
To: CF-Talk
Subject: cutting: aabbcc

Hi list I
have a value in a db-field like
"aabbcc"
and I always want
to cut the leading nulls
on the right to get: "aabbcc", but only the four nulls, how can I do this ?
There must be a regular expression
for this, but I can't remember.
Uwe











~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220697
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cutting: aabbcc0000

2005-10-11 Thread Matthew Small
Also, one caveat - if the string itself has a length of 0, it will throw an
error.

 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-Original Message-
From: Matthew Small [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 11, 2005 9:52 AM
To: CF-Talk
Subject: RE: cutting: aabbcc

str = "aabbcc"


#reverse(right(reverse(str),len(str)-(ReFind("0[^0]",reverse(str)#

This will remove all nulls from the right. 

Perhaps there's a more elegant way, but I don't know it.

 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-Original Message-
From: Uwe Degenhardt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 11, 2005 8:25 AM
To: CF-Talk
Subject: cutting: aabbcc

Hi list I
have a value in a db-field like
"aabbcc"
and I always want
to cut the leading nulls
on the right to get: "aabbcc", but only the four nulls, how can I do this ?
There must be a regular expression
for this, but I can't remember.
Uwe







~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220662
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cutting: aabbcc0000

2005-10-11 Thread Matthew Small
str = "aabbcc"


#reverse(right(reverse(str),len(str)-(ReFind("0[^0]",reverse(str)#

This will remove all nulls from the right. 

Perhaps there's a more elegant way, but I don't know it.

 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-Original Message-
From: Uwe Degenhardt [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 11, 2005 8:25 AM
To: CF-Talk
Subject: cutting: aabbcc

Hi list I
have a value in a db-field like
"aabbcc"
and I always want
to cut the leading nulls
on the right to get: "aabbcc", but only the four nulls, how can I do this ?
There must be a regular expression
for this, but I can't remember.
Uwe





~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220657
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Carriage returns

2005-10-10 Thread Matthew Small
Replace the carriage returns with "". 


 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-Original Message-
From: Webmaster at FastTrack On Line
[mailto:[EMAIL PROTECTED] 
Sent: Monday, October 10, 2005 9:19 AM
To: CF-Talk
Subject: Carriage returns

I'm using a form text area inout to store data into an ms sql nvartext
field.

My problem is that when the field is displayed all of the carriage returns
are lost and it ends up one big blob of hard to read text.  Is there some
way I can format so that the carriage returns work, please?

Jenny






~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220534
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Image manipulation - Why Macromedia?!

2005-10-07 Thread Matthew Small
I agree, that's a fair question.  CF's whole purpose is "RAD" and inclusion
of things that make development far easier.  CFGRID is one of those things,
CFGRAPH is one, there could easily be CFIMAGE.  All MM/Adobe needs to do is
buy something like the ImageCR product and integrate it.  I imagine it would
be a great reason in favor up upgrading to the next version.
 
Matthew Small
 

-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 07, 2005 11:12 AM
To: CF-Talk
Subject: RE: Image manipulation - Why Macromedia?!

I'm not asking CF to provide everything. But this is something that almost
every needs at one point or another. How many people us cfchart compared to
the number of people that would want to manipulate images?



-Original Message-
From: Russ [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 10:08 AM
To: CF-Talk
Subject: RE: Image manipulation - Why Macromedia?!


It is available in your own language.  ColdFusion is really java, and there
has been code posted in java to do image manipulation.  Anything that could
be done in java could be done in ColdFusion.  If you need something that
performs better, then you go pay for it.  ColdFusion can't possibly include
everything.

Russ

-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 11:00 AM
To: CF-Talk
Subject: Image manipulation - Why Macromedia?!

Okay...

This is related to my original post about image manipulation, but is NOT
asking about a specific program.

My question is that since SO MANY people look for image manipulation in
their programming language, why don't more developers add this feature into
their language. Even PHP doesn't have this stuff natively (that I know of)
but does allow you to add it in via extra libraries.

So consider this an open letter to Macromedia/Adobe. Why isn't something
which is so desired by so many people added into your language? I could go
and pay $75 for an excellent codebase (Alagad's Image Component) but doesn't
it make sense to include this into the language itself? I just don't
understand it.

Can anyone enlighten me on this?










~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220350
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: MOD

2005-10-06 Thread Matthew Small




Check my syntax to make sure it's right.
 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 
-Original Message-
From: Orlini, Robert [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 06, 2005 9:01 AM
To: CF-Talk
Subject: MOD

I know this is an old one and very easy one, but I lost the code...how do I
do a dynamic alternate row of color?

 I remember it was with the MOD command.

Thanks as always.

Robert O.
HW


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.9/118 - Release Date: 10/3/2005
 




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220200
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFHTTP

2005-10-05 Thread Matthew Small
Perhaps you could replace the html angle brackets with escape characters and
then sort into columns.  That would save you needing to parse the file,
 
Matthew Small
 
-Original Message-
From: Matthew Blatchley [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 05, 2005 2:56 PM
To: CF-Talk
Subject: Re: CFHTTP

exactly what I'm not wanting to have to do. Thanks for the $0.02 though  :)

- Original Message - 
From: "Jordan Michaels" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Wednesday, October 05, 2005 1:53 PM
Subject: Re: CFHTTP


> Matthew Blatchley wrote:
>
>>some has html other records don't
>>
>>
>>
> Perhaps that's the problem.
>
> Maybe a better way to do this would be to simply read the file into a
> variable then parse the contents manually. CFHTTP has the potential to
> be a useful tool, but I've noticed it's pretty particular at times (IE:
> if the file format is not consistent).  If you're stuck with this file
> format, there may not be a better way.
>
> My $0.02.
>
> -- 
> Warm regards,
> Jordan Michaels
> Vivio Technologies
> http://www.viviotech.net/
> [EMAIL PROTECTED]
>
> 



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220150
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: image manipulation in coldfusion?

2005-10-05 Thread Matthew Small
Yes, yes, yes - use ImageCR3 if you have the chance.  I was going to
recommend it myself.  I'm sure I haven't seen them all, but ImageCR3 looks
FAR better than any other resizing tag out there.  I don't know how they do
it, but they do it well.

 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 04, 2005 6:03 PM
To: CF-Talk
Subject: Re: image manipulation in coldfusion?

ImageCR3:
  http://efflare.com/products/cfx_imagecr/

Personal licenses for $75:
  http://efflare.com/purchase/?personal

We never gave it away for free, but we have plenty
of happy customers. It is optimized native code,
like important parts of Java. High quality output
and extensive image format support.

If CF user groups want a license, send me a mail.

-- 
 CrystalM

> So I'm wondering what some of you use to manipulate images in CF. I've
been
> wanting something like this for a while but it's always gotten put off.
> 
> At the very least I need to be able to resize images and get their height
> and width. More than that would be nice, but not necessary.
> 
> Can anyone offer any suggestions?
> 
>  andy matthews
> web developer
> ICGLink, Inc.
> [EMAIL PROTECTED]
> 615.370.1530 x737
> --//->



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220112
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Content-Type

2005-10-04 Thread Matthew Small
Awesome, that worked awesome.

I set a content-disposition header with "attachment" and a filename, then
sent my unnamed file in binary format - it worked like a charm.

Thanks for your help.
 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-Original Message-
From: RADEMAKERS Tanguy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 04, 2005 4:05 PM
To: CF-Talk
Subject: RE: Content-Type

IIRC, you need to look into the "content-disposition" header, iso the
"content-type" one



/t



>-Original Message-
>Subject: Content-Type
>From: Matt Robertson <[EMAIL PROTECTED]>
>Date: Tue, 4 Oct 2005 12:19:48 -0700
>Thread: 
>http://www.houseoffusion.com/cf_lists/index.cfm/method=messages
>&threadid=42580&forumid=4#220053
>
>Assuming you save the file somewhere yourself on your server, there
>used to be a way to do this but its no longer reliable.
>
>You push the file to the client with cfcontent, set the mime type to
>application/unknown and set the type to 'attachment'.  In the olden
>days before security tightened up this would give you a save dialog no
>matter what.  I would be real careful about any attempt to delete it
>immediately afterwards as you'll probably delete a file still in
>transmission to the client.
>
>IIRC default Windows firewall settings now prohibit acceptance of
>application/unknown MIME types like this.
>
>--
>--mattRobertson--
>Janitor, MSB Web Systems
>mysecretbase.com



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220070
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Content-Type

2005-10-04 Thread Matthew Small
Thanks for your help and thanks to Dave. I've decided to save my PDF on the
server and will provide a link in my application that will allow my user to
download and/or open.

 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-Original Message-
From: Matt Robertson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 04, 2005 3:20 PM
To: CF-Talk
Subject: Re: Content-Type

Assuming you save the file somewhere yourself on your server, there
used to be a way to do this but its no longer reliable.

You push the file to the client with cfcontent, set the mime type to
application/unknown and set the type to 'attachment'.  In the olden
days before security tightened up this would give you a save dialog no
matter what.  I would be real careful about any attempt to delete it
immediately afterwards as you'll probably delete a file still in
transmission to the client.

IIRC default Windows firewall settings now prohibit acceptance of
application/unknown MIME types like this.

--
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.com



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220055
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


  1   2   3   4   >