Re: Verity on Linux

2003-10-28 Thread Johan Steenkamp
Tom

We have done nothing specific other than install RH9 and run up2date to ensure latest patches are in place. Testing of Verity site on this server against others gives same results so not seeing and problems with RH9/Verity.

For the record I do not have an RH 7.3 install so not sure how what the problem is or how it manifests itself. Other server is 7.2 and that is fine.

Regards

Johan
- Original Message - 
From: Tom Jordahl 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 10:32 AM
Subject: RE: Verity on Linux

This comes as news to me...

Is there something in the latest RH9 patches that 'fixes' things back to their pre-7.3 'working' state?

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: Johan Steenkamp [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 19, 2003 2:48 AM
To: CF-Talk
Subject: Re: Verity on Linux

Hi Chris

Explain - nothing specific - we have it running on RH7.2 and noted in the Macromedia release notes that there were problems an RH7.3+. 

We tried with RH9 (with all latest updates) and it works fine - works the same as on our earlier 7.2 version.

Johan
 - Original Message - 
 From: Chris Kief 
 To: CF-Talk 
 Sent: Sunday, October 19, 2003 9:58 AM
 Subject: RE: Verity on Linux

 Can you explain how you got Verity running?

 Macromedia issue number 50943 states Verity cannot index documents on
 RedHat Linux versions 7.3 and later.
 (http://www.macromedia.com/support/coldfusion/releasenotes/mx/mx61_known_pro
 blems.html#verity)

 chris

 
 From: Johan Steenkamp [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, October 18, 2003 1:42 PM
 To: CF-Talk
 Subject: Re: Verity on Linux

 Yves

 We have Verity, CF MX 6.1 running as normal on RedHat 9.x (with latest
 patches).

 Johan
 www.assetnow.com

- Original Message - 
From: Yves Arsenault 
To: CF-Talk 
Sent: Sunday, October 19, 2003 4:26 AM
Subject: Verity on Linux

Hello,

I've been looking at the live docs and see that the Verity engine in
CFMX doesn't run on any recent RH system and also doesn't on Suze..

Does anyone run MX on Linux with the Verity engine working well?

Also, I have been looking into Lucene
(http://jakarta.apache.org/lucene/docs/index.html).

Are there any other solutions out there?

TIA,

Yves Arsenault
Carrefour Infotech
5, Acadian Dr.
Charlottetown, PEI
C1C 1M2
[EMAIL PROTECTED]
(902)368-1895 ext.242

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.528 / Virus Database: 324 - Release Date: 16/10/2003

 

 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CFMX 6.1 Session problems - help

2003-10-28 Thread Thomas Chiverton
On Monday 27 Oct 2003 19:05 pm, Mark W. Breneman wrote:
 Can anyone confirm that they have no problems with session vars in CFMX?

I'd like you to meet a friend of mine, Mr. Godel, he has a quaint theory about 
decideability :-)
(i.e. proving something isn't there is hard, nee impossible)

OTOH, we store a fair whack of structures in the session scope, in MX6.1 on 
weblogic, with no issues at all.

-- 
Tom Chiverton 
Advanced ColdFusion Programmer

Tel: +44(0)1749 834997
email: [EMAIL PROTECTED]
BlueFinger Limited
Underwood Business Park
Wookey Hole Road, WELLS. BA5 1AF
Tel: +44 (0)1749 834900
Fax: +44 (0)1749 834901
web: www.bluefinger.com
Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple
Quay, BRISTOL. BS1 6EG.
*** This E-mail contains confidential information for the addressee
only. If you are not the intended recipient, please notify us
immediately. You should not use, disclose, distribute or copy this
communication if received in error. No binding contract will result from
this e-mail until such time as a written document is signed on behalf of
the company. BlueFinger Limited cannot accept responsibility for the
completeness or accuracy of this message as it has been transmitted over
public networks.***

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Calvin Ward
From the previously referenced page: http://www.macromedia.com/support/coldfusion/ts/documents/tn18235.htm

Although it is no longer necessary to worry about your server crashing, it is still important to avoid race conditions in your application code. Race condition is a term that is not specific to ColdFusion programming, but refers to a common issue that needs to be taken into consideration when programming in any multithreaded environment. Simply put, a race condition occurs anytime two threads (in this case, page requests) try to write to the same data at the same time. The following is an example:
 cfset session.cartTotal = session.cartTotal + currentPrice

If two requests to the page that includes this code are made at the same time, it is possible that in the time between the right-hand side read of the session.cartTotal, and the left-hand-side write for the second page request to execute and modify session.cartTotal. The result is corrupt data. Developers should always ensure that they mitigate or prevent corrupt data when writing application code. Using the cflock tag in this case will prevent the race condition:

- Calvin

- Original Message - 
From: Samuel R. Neff 
To: CF-Talk 
Sent: Monday, October 27, 2003 8:56 PM
Subject: RE: Scope Locking (RE: Blue Dragon and Fusebox)

Care to clarify why?

 -Original Message-
 From: Calvin Ward [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 27, 2003 1:09 PM
 To: CF-Talk
 Subject: Re: Scope Locking (RE: Blue Dragon and Fusebox)
 
 I would opine that locking shared scope variables is still a 
 best practice and not locking shared scope variables is a bad 
 practice, regardless of CF version.
 
 - Calvin


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




OT: Book to learn MS SQL 2000

2003-10-28 Thread Hawkes, Keith A CIV
 -Original Message-
 From: Andy Ousterhout [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 27, 2003 6:22 PM
 To: CF-Talk
 Subject: OT: Book to learn MS SQL 2000


 What books do folks recommend to learn MS SQL 2000.Looking for basics at
 this point.

 Thanks,
 Andy

The SAMS Learn SQL 2000 in 21 days has been an invaluable source for both db
administration and writing useful queries.As well, there is a SQL Digest
such as this one:

http://www.sunbelt-software.com/sql_list_charter.htm

Having only had one 5-day course in Sybase SQL, I came to this job as a DB
Admin and have done more swimming than sinking with these two sources.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Raymond Camden
But you said locking should always be used. This clearly states that you
should use locks to avoid race conditions, not that you should use it
100% of the time. 


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Samuel R. Neff
So you're saying lock everything because you don't understand what a race
condition is and how to detect when a variable might be subject to one?

 :-)

Sam

---
Blog: http://www.rewindlife.com
Charts: http://www.blinex.com/products/charting
---

 -Original Message-
 From: Calvin Ward [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 28, 2003 1:29 AM
 To: CF-Talk
 Subject: Re: Scope Locking (RE: Blue Dragon and Fusebox)
 
 From the previously referenced page: 
 http://www.macromedia.com/support/coldfusion/ts/documents/tn18235.htm
 
 Although it is no longer necessary to worry about your server 
 crashing, it is still important to avoid race conditions in 
 your application code. Race condition is a term that is not 
 specific to ColdFusion programming, but refers to a common 
 issue that needs to be taken into consideration when 
 programming in any multithreaded environment. Simply put, a 
 race condition occurs anytime two threads (in this case, page 
 requests) try to write to the same data at the same time. The 
 following is an example:
 cfset session.cartTotal = session.cartTotal + currentPrice
 
 If two requests to the page that includes this code are made 
 at the same time, it is possible that in the time between the 
 right-hand side read of the session.cartTotal, and the 
 left-hand-side write for the second page request to execute 
 and modify session.cartTotal. The result is corrupt data. 
 Developers should always ensure that they mitigate or prevent 
 corrupt data when writing application code. Using the cflock 
 tag in this case will prevent the race condition:
 
 - Calvin
 
- Original Message -
From: Samuel R. Neff
To: CF-Talk
Sent: Monday, October 27, 2003 8:56 PM
Subject: RE: Scope Locking (RE: Blue Dragon and Fusebox)
 
Care to clarify why?
 
 -Original Message-
 From: Calvin Ward [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 27, 2003 1:09 PM
 To: CF-Talk
 Subject: Re: Scope Locking (RE: Blue Dragon and Fusebox)

 I would opine that locking shared scope variables is still a
 best practice and not locking shared scope variables is a bad
 practice, regardless of CF version.

 - Calvin
 
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: browser converting dashes to underscores?

2003-10-28 Thread Kelly Tetterton
Nope -- this is definitely something happening outside the code.

-Original Message-
From: Jim Davis [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 4:47 PM
To: CF-Talk
Subject: RE: browser converting dashes to underscores?

I'm not sure why this would happen automatically, but many people
convert the dashes to underscores as a matter of course (on the program
side).For my purposes I do this and prepend the string with an x so
that it becomes a valid CF variable name.

Could code like this have been added by accident?

Jim Davis

-Original Message-
From: Kelly Tetterton [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 27, 2003 4:46 PM
To: CF-Talk
Subject: OT: browser converting dashes to underscores?

We use UUIDs quite a bit, and I got an error message this morning that
seems to have been generated by a browser that converted the dashes in
the url for the UUID to underscores.

Has anyone run into this before? or know what might cause this?

Relevant error info below; thanks in advance for any info --



PATH_INFO =
/index.cfm/fuseaction/publications.detail/object_id/9b5e26e0_f045_4735_8
cb0_FFD55c6aeba9/keyemplymentlegislationsignedateleventhhour.cfm
query_string = 
HTTP_USER_AGENT = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x
4.90) 

Kelly Tetterton 
duo | Technical Lead 
One Web Company. 
Twice the Results. 

312.224.9650 | main 
312.224.9648 | direct 
312.224.9651 | fax 

[EMAIL PROTECTED] 
www.duodesign.com 

duoDesign is a Web development and marketing firm that combines 
expertise in design, technology and online promotion to help businesses 
and organizations use the Internet marketing channel to greatest
advantage. 

_

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Scheduled Tasks executing at wrong time

2003-10-28 Thread Heald, Tim
Hey kids,

Anyone know of scheduled task problems caused by daylights savings time?
The server clock set it self correctly but my tasks are still running an
hour early.Not sure what to do. Has anyone run into this before?I
recreated the tasks and they are still running to soon.

Weird.Guess I could just set them for an hour later.

Timothy Heald
Information Systems Manager
Overseas Security Advisory Council
U.S. Department of State
571.345.2319

The opinions expressed here do not necessarily reflect those of the U.S.
Department of State or any affiliated organization(s).Nor have these
opinions been approved or sanctioned by these organizations. This e-mail is
unclassified based on the definitions in E.O. 12958.

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: cfloop question

2003-10-28 Thread Tony Weeg
I suppose ;)

...tony

tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337

-Original Message-
From: Mosh Teitelbaum [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 27, 2003 5:06 PM
To: CF-Talk
Subject: RE: cfloop question

Hey, you never know, right?8^)

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 942-5378
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 4:36 PM
To: CF-Talk
Subject: RE: cfloop question

come on man, I know that, that was just for demo purposes :)

but thanks anyway.

...tony

tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337

-Original Message-
From: Mosh Teitelbaum [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 4:31 PM
To: CF-Talk
Subject: RE: cfloop question

Tony:

Put pound signs around your queryName.recordCount in the CFLOOP tag as in:

CFLOOP ... TO=#queryName.recordCount# ...

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 942-5378
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 4:18 PM
To: CF-Talk
Subject: cfloop question

cfloop from = 1 to = queryName.recordCount index = i

#queryName.currentRow[i]# #queryName.address[i]#

/cfloop

#get.currentRow[i]# for some reason doesn't parse. it errors and tells me to
scalarize myself (well, not really) but shouldn't that works just like im
getting the other one to parse fine?

thanks.

...tony

tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337



 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Calvin Ward
Sam,

What specifically did you find in my previous email that showed lack of understanding on race conditions?

- Calvin

- Original Message - 
From: Samuel R. Neff 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 11:14 AM
Subject: RE: Scope Locking (RE: Blue Dragon and Fusebox)

So you're saying lock everything because you don't understand what a race
condition is and how to detect when a variable might be subject to one?

:-)

Sam

---
Blog: http://www.rewindlife.com
Charts: http://www.blinex.com/products/charting
---

 -Original Message-
 From: Calvin Ward [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 28, 2003 1:29 AM
 To: CF-Talk
 Subject: Re: Scope Locking (RE: Blue Dragon and Fusebox)
 
 From the previously referenced page: 
 http://www.macromedia.com/support/coldfusion/ts/documents/tn18235.htm
 
 Although it is no longer necessary to worry about your server 
 crashing, it is still important to avoid race conditions in 
 your application code. Race condition is a term that is not 
 specific to ColdFusion programming, but refers to a common 
 issue that needs to be taken into consideration when 
 programming in any multithreaded environment. Simply put, a 
 race condition occurs anytime two threads (in this case, page 
 requests) try to write to the same data at the same time. The 
 following is an example:
 cfset session.cartTotal = session.cartTotal + currentPrice
 
 If two requests to the page that includes this code are made 
 at the same time, it is possible that in the time between the 
 right-hand side read of the session.cartTotal, and the 
 left-hand-side write for the second page request to execute 
 and modify session.cartTotal. The result is corrupt data. 
 Developers should always ensure that they mitigate or prevent 
 corrupt data when writing application code. Using the cflock 
 tag in this case will prevent the race condition:
 
 - Calvin
 
- Original Message -
From: Samuel R. Neff
To: CF-Talk
Sent: Monday, October 27, 2003 8:56 PM
Subject: RE: Scope Locking (RE: Blue Dragon and Fusebox)
 
Care to clarify why?
 
 -Original Message-
 From: Calvin Ward [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 27, 2003 1:09 PM
 To: CF-Talk
 Subject: Re: Scope Locking (RE: Blue Dragon and Fusebox)

 I would opine that locking shared scope variables is still a
 best practice and not locking shared scope variables is a bad
 practice, regardless of CF version.

 - Calvin
 
 


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




CFMX 6.1 - false file not found error.

2003-10-28 Thread Bosky, Dave
I came into work yesterday morning to find a specific '.cfm' page missing
from our intranet.
The page was displaying a 404 find not found error msg even though the file
was there in the proper location 
As it has been for the last year. I restarted CFMX and suddenly it found the
page again.

What the hell is going on? We are currently halting our cfm development and
moving towards JSP because of
Unexplained issues like this that seem to occur on a regular basis.

Thank You.
Dave


HTC Disclaimer:The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer.Thank you.

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




webserve.ca hosting woes

2003-10-28 Thread Gabriel Robichaud
Hey Guys

 
I recently signed up with webserve.ca for some CF hosting...Has anyone
here experience problems with them setting up DSN's for CF.I spent 3 days
(I wish I was joking) with their tech support explaining that a ODBC DSN is
not the same as creating one in cf!They claim that I can just create and
ODBC DSN in my control panel (what they call the interface to administrate
my site) and call that from Coldfusion cfm pages... well that doesn't work.
They did some tinkering, and they got 1 of my ODBC DSNs to work, but if I
create new ones, (of course) they don't work.Can anyone shed any light on
this?I only signed a 3 month hosting thing because well, I am not stupid
and CF hosting is expensive and my requirement is to host this in Canada, so
anyone know of any GOOD CF hosts in Canada?

 
TIA!
Gabriel

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Samuel R. Neff
Calvin, I'm really confused.In your first post you said that it is your
opinion that people should always lock every shared variable access (fine,
everyone is entitled to their opinion).But in justification, you quoted
the technote that says to use locks around race conditions only.

So if you agree with the technote, why would you lock everything?

Best regards,

Sam

---
Blog: http://www.rewindlife.com
Charts: http://www.blinex.com/products/charting
---

 -Original Message-
 From: Calvin Ward [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 28, 2003 5:32 AM
 To: CF-Talk
 Subject: Re: Scope Locking (RE: Blue Dragon and Fusebox)
 
 Sam,
 
 What specifically did you find in my previous email that 
 showed lack of understanding on race conditions?
 
 - Calvin
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Exellent Book

2003-10-28 Thread lee
I first ran across Robert Vieira's Professional SQL Server 2000 Programming (WROX press) when a DBA recommened it to me.

I have since been recommending it to anyone who will listen.

It has some basics and some advanced, but all is covered in a very well-written, light but detailed manner. The book is almost readable, as opposed to many (of my favorite) tech books - Vieira has a good sense of humor and is not above stating, very clearly, his opinions of coding methods and so on.

For example, he trashes SQL Server in a couple of instances (I can't remember what) for MS attempting to make something easy for newbies but could lead to serious code/security issues. And since he's a SQL Server guru - and trying to sell his book, obviously - that's refreshing. 

In other words, the book is full of good info and is balanced. I like that.

Are you talking administration or writing sql?
 

-Original Message-
From: Andy Ousterhout [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 27, 2003 6:22 PM
To: CF-Talk
Subject: OT: Book to learn MS SQL 2000


What books do folks recommend to learn MS SQL 2000.Looking for basics at
this point.

Thanks,
Andy


_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: webserve.ca hosting woes

2003-10-28 Thread Peter Tilbrook
Check out AFPWebworks (www.afpwebworks.com) - he knows what he is doing at
least.
-Original Message-
From: Gabriel Robichaud [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 29 October 2003 12:46 AM
To: CF-Talk
Subject: webserve.ca hosting woes

Hey Guys

I recently signed up with webserve.ca for some CF hosting...Has anyone
here experience problems with them setting up DSN's for CF.I spent 3
days
(I wish I was joking) with their tech support explaining that a ODBC DSN
is
not the same as creating one in cf!They claim that I can just create and
ODBC DSN in my control panel (what they call the interface to administrate
my site) and call that from Coldfusion cfm pages... well that doesn't
work.
They did some tinkering, and they got 1 of my ODBC DSNs to work, but if I
create new ones, (of course) they don't work.Can anyone shed any light
on
this?I only signed a 3 month hosting thing because well, I am not stupid
and CF hosting is expensive and my requirement is to host this in Canada,
so
anyone know of any GOOD CF hosts in Canada?

TIA!
Gabriel


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: webserve.ca hosting woes

2003-10-28 Thread Brook Davies
Pacificonline.com are good Canadian CF hosts. They run CFMX 6.1

http://www.pacificonline.com/services/hosting/plan1.aspx

Brook

At 05:46 AM 10/28/2003, you wrote:
Hey Guys


I recently signed up with webserve.ca for some CF hosting...Has anyone
here experience problems with them setting up DSN's for CF.I spent 3 days
(I wish I was joking) with their tech support explaining that a ODBC DSN is
not the same as creating one in cf!They claim that I can just create and
ODBC DSN in my control panel (what they call the interface to administrate
my site) and call that from Coldfusion cfm pages... well that doesn't work.
They did some tinkering, and they got 1 of my ODBC DSNs to work, but if I
create new ones, (of course) they don't work.Can anyone shed any light on
this?I only signed a 3 month hosting thing because well, I am not stupid
and CF hosting is expensive and my requirement is to host this in Canada, so
anyone know of any GOOD CF hosts in Canada?


TIA!
Gabriel

--
[
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




How can it be done ?

2003-10-28 Thread Chris
Good afternoon everyone,

I have a small quetion, may be one of you skilled guys can help me out.

I have a login page, when the users logs in an ID is pulled from a database with CFQUERY.
After logging in, a download is started, which will install additional software on the users computer.

Important is that the ID can be reused after the download, so I must find a way to remember that ID somewhere
or pass it with the download.

Cookies are out of the question.

Users have complete control over their browser settings, and I know that some have cookies out, other users are behind a firewall which will not allow ActiveX.

Anyone has any ideas ?

Thanks,

Chris
Germany.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread Tangorre, Michael
pass the ID in the url.

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 9:52 AM
To: CF-Talk
Subject: How can it be done ?

Good afternoon everyone,

I have a small quetion, may be one of you skilled guys can help me out.

I have a login page, when the users logs in an ID is pulled from a database
with CFQUERY.
After logging in, a download is started, which will install additional
software on the users computer.

Important is that the ID can be reused after the download, so I must find a
way to remember that ID somewhere
or pass it with the download.

Cookies are out of the question.

Users have complete control over their browser settings, and I know that
some have cookies out, other users are behind a firewall which will not
allow ActiveX.

Anyone has any ideas ?

Thanks,

Chris
Germany. 
_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Couple of error in CFMX 6.1

2003-10-28 Thread Robert Everland III
I'm having a couple of issues with CFMX 6.1 and I'm writing to see if anyone gets these and/or has a fix for them.

I keep getting this in the application.log 
File not found: /CFIDE/main/ide.cfm The specific sequence of files included or processed is: D:\Inetpub\wwwroot\CFIDE\main\ide.cf

I looked everywhere for this file, but no dice. I also have cfmx installed on my local machine and that file isn't there.

The other issue which is the bigger of the two is that I keep getting a server error. JRun closed connection. I do not know what I keep getting this. There is nothing in the logs that would help me to explain it. Anyone have any help. The only way to fix it now is with a start and stop of the ColdFusion service.

Bob Everland
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: How can it be done ?

2003-10-28 Thread Chris
Good idea,

though after the installation, there is a reboot, page is gone.
- Original Message - 
From: Tangorre, Michael 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 3:50 PM
Subject: RE: How can it be done ?

pass the ID in the url.

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 9:52 AM
To: CF-Talk
Subject: How can it be done ?

Good afternoon everyone,

I have a small quetion, may be one of you skilled guys can help me out.

I have a login page, when the users logs in an ID is pulled from a database
with CFQUERY.
After logging in, a download is started, which will install additional
software on the users computer.

Important is that the ID can be reused after the download, so I must find a
way to remember that ID somewhere
or pass it with the download.

Cookies are out of the question.

Users have complete control over their browser settings, and I know that
some have cookies out, other users are behind a firewall which will not
allow ActiveX.

Anyone has any ideas ?

Thanks,

Chris
Germany. 
 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread d.a.collie
or use session vars and pass the cfid and cftoken (or jsessionid) in the
url and the user can't muck about with the userid

	-Original Message-
	From: Tangorre, Michael [mailto:[EMAIL PROTECTED] 
	Sent: 28 October 2003 14:51
	To: CF-Talk
	Subject: RE: How can it be done ?
	
	
	pass the ID in the url.
	
	-Original Message-
	From: Chris [mailto:[EMAIL PROTECTED] 
	Sent: Tuesday, October 28, 2003 9:52 AM
	To: CF-Talk
	Subject: How can it be done ?
	
	Good afternoon everyone,
	
	I have a small quetion, may be one of you skilled guys can help
me out.
	
	I have a login page, when the users logs in an ID is pulled from
a database
	with CFQUERY.
	After logging in, a download is started, which will install
additional
	software on the users computer.
	
	Important is that the ID can be reused after the download, so I
must find a
	way to remember that ID somewhere
	or pass it with the download.
	
	Cookies are out of the question.
	
	Users have complete control over their browser settings, and I
know that
	some have cookies out, other users are behind a firewall which
will not
	allow ActiveX.
	
	Anyone has any ideas ?
	
	Thanks,
	
	Chris
	Germany. 
	_
	
	
_

	
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread John Stanley
can you store the users ip address and associate it with the id?

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 9:56 AM
To: CF-Talk
Subject: Re: How can it be done ?

Good idea,

though after the installation, there is a reboot, page is gone.
- Original Message - 
From: Tangorre, Michael 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 3:50 PM
Subject: RE: How can it be done ?

pass the ID in the url.

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 9:52 AM
To: CF-Talk
Subject: How can it be done ?

Good afternoon everyone,

I have a small quetion, may be one of you skilled guys can help me out.

I have a login page, when the users logs in an ID is pulled from a
database
with CFQUERY.
After logging in, a download is started, which will install additional
software on the users computer.

Important is that the ID can be reused after the download, so I must find
a
way to remember that ID somewhere
or pass it with the download.

Cookies are out of the question.

Users have complete control over their browser settings, and I know that
some have cookies out, other users are behind a firewall which will not
allow ActiveX.

Anyone has any ideas ?

Thanks,

Chris
Germany. 
 _

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: How can it be done ?

2003-10-28 Thread Bruce Sorge
So why not have them log in again and pass the ID in the URL string?

- Original Message - 
From: Chris 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 8:56 AM
Subject: Re: How can it be done ?

Good idea,

though after the installation, there is a reboot, page is gone.
 - Original Message - 
 From: Tangorre, Michael 
 To: CF-Talk 
 Sent: Tuesday, October 28, 2003 3:50 PM
 Subject: RE: How can it be done ?

 pass the ID in the url.

 -Original Message-
 From: Chris [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 28, 2003 9:52 AM
 To: CF-Talk
 Subject: How can it be done ?

 Good afternoon everyone,

 I have a small quetion, may be one of you skilled guys can help me out.

 I have a login page, when the users logs in an ID is pulled from a database
 with CFQUERY.
 After logging in, a download is started, which will install additional
 software on the users computer.

 Important is that the ID can be reused after the download, so I must find a
 way to remember that ID somewhere
 or pass it with the download.

 Cookies are out of the question.

 Users have complete control over their browser settings, and I know that
 some have cookies out, other users are behind a firewall which will not
 allow ActiveX.

 Anyone has any ideas ?

 Thanks,

 Chris
 Germany. 
_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Invalid character

2003-10-28 Thread Janine Jakim
Ok can someone help here. I'm getting the following error in my cf
application log:

Error,1344,10/28/03,09:46:08,,ODBC Error Code = 22005 (Error in
assignment)P [Microsoft][ODBC SQL Server Driver]Invalid character value
for cast specificationPP SQL = storeproc_SaveComment
Error,1344,10/28/03,09:46:08,,172.16.91.52, Mozilla/4.0
(compatible; MSIE 5.17; Mac_PowerPC), ODBC Error Code = 22005 (Error in
assignment)PP [Microsoft][ODBC SQL Server Driver]Invalid character value
for cast specificationPPpThe error occurred while processing an
element with a general identifier of (CFSTOREDPROC), occupying document
position (13:1) to (13:73)./ppThe error occurred while processing an
element with a general identifier of (CFRETHROW), occupying document
position (246:11) to (246:21)./pPPDate/Time: 10/28/03
09:46:08BRBrowser: Mozilla/4.0 (compatible; MSIE 5.17;
Mac_PowerPC)BRRemote Address: 172.16.91.52BRHTTP Referrer:
http://k12.org/Grades.cfm?Fuseaction=RC.Comments String:
fuseaction=RC.SaveCommentP

Sounds like a simple invalid character situation- but I figure out how to
fix it.
This stored procedure/query has 2 fields.The cf code looks like this:
CFTRANSACTION
CFSTOREDPROC PROCEDURE=storeproc_SaveComment
DATASOURCE=#Request.maindsn#
CFPROCPARAM TYPE=IN CFSQLTYPE=CF_SQL_INTEGER DBVARNAME=@ComID
VALUE=#Attributes.ComID#
CFPROCPARAM TYPE=IN CFSQLTYPE=CF_SQL_VARCHAR DBVARNAME=@Comment
VALUE=#PreserveSingleQuotes(Attributes.Comment)#
/CFSTOREDPROC
/CFTRANSACTION

AND then the actual stored proc is:
CREATE PROCEDURE storeproc_SaveComment
@ComID INTEGER,
@Comment varchar(2000)=Null
 AS
UPDATE tbl_StudentComments
SET [EMAIL PROTECTED]
WHERE [EMAIL PROTECTED]
GO

I can't reproduce the error but it looks like one or two users had their
information cut off. And not at an obvious place (ie: where the apostrophe
is)
Any ideas?I'm stumped.
Thanks in advance!
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread Kennerly, Rick H CIV
HmmmI'm trying to imagine getting around the reboot.I'd think about
either storing the id in a new field in the login database or setting a
flag, depending on your design, that would be pulled down after the reboot
and re-log-in.

 
Rick

-Original Message-
From: John Stanley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 28 October, 2003 10:59
To: CF-Talk
Subject: RE: How can it be done ?

can you store the users ip address and associate it with the id?

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 9:56 AM
To: CF-Talk
Subject: Re: How can it be done ?

Good idea,

though after the installation, there is a reboot, page is gone.
- Original Message - 
From: Tangorre, Michael 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 3:50 PM
Subject: RE: How can it be done ?

pass the ID in the url.

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 9:52 AM
To: CF-Talk
Subject: How can it be done ?

Good afternoon everyone,

I have a small quetion, may be one of you skilled guys can help me out.

I have a login page, when the users logs in an ID is pulled from a
database
with CFQUERY.
After logging in, a download is started, which will install additional
software on the users computer.

Important is that the ID can be reused after the download, so I must find
a
way to remember that ID somewhere
or pass it with the download.

Cookies are out of the question.

Users have complete control over their browser settings, and I know that
some have cookies out, other users are behind a firewall which will not
allow ActiveX.

Anyone has any ideas ?

Thanks,

Chris
Germany. 
 _

_

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CFMX 6.1 - false file not found error.

2003-10-28 Thread Tom Kitta
Happen to me once or twice, I have no clue why, but I am sure that strange behavior is not limited to MM products alone (having worked a bit with MS I sort of run into things ;)

TK
- Original Message - 
From: Bosky, Dave 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 8:39 AM
Subject: CFMX 6.1 - false file not found error.

I came into work yesterday morning to find a specific '.cfm' page missing
from our intranet.
The page was displaying a 404 find not found error msg even though the file
was there in the proper location 
As it has been for the last year. I restarted CFMX and suddenly it found the
page again.

What the hell is going on? We are currently halting our cfm development and
moving towards JSP because of
Unexplained issues like this that seem to occur on a regular basis.

Thank You.
Dave

HTC Disclaimer:The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer.Thank you.


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Please verify this timezone block on linux machine

2003-10-28 Thread Bryan F. Hogan
Can someone verify that the following code block returns the correct information on a linux machine? Maybe people from out of
US too?

cfscript
	myTime=reverse((-1*iif(GetTimeZoneInfo().isDSTOn, (((GetTimeZoneInfo().utcTotalOffset/60)/60)+1),
((GetTimeZoneInfo().utcTotalOffset/60)/60))*100));
	myTimeMinute=iif(reverse(left(myTime, 2)) eq '50', '30', '00');
	myTimeHour=reverse(mid(myTime, 3, len(myTime)));
	myTime=numberFormat(myTimeHour, '+00')':'myTimeMinute;
/cfscript
cfdump var=#Variables#

Thanks
Bryan


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: How can it be done ?

2003-10-28 Thread Chris
No such thing.

IP-address is out of the question as some users use dynamic IP.
Fact is that after the installation and reboot a html page is called in which the ID is filled out in a form.
So... I need to get that ID from somewhere on the client's computer.

- Original Message - 
From: John Stanley 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 3:58 PM
Subject: RE: How can it be done ?

can you store the users ip address and associate it with the id?

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 9:56 AM
To: CF-Talk
Subject: Re: How can it be done ?

Good idea,

though after the installation, there is a reboot, page is gone.
 - Original Message - 
 From: Tangorre, Michael 
 To: CF-Talk 
 Sent: Tuesday, October 28, 2003 3:50 PM
 Subject: RE: How can it be done ?

 pass the ID in the url.

 -Original Message-
 From: Chris [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 28, 2003 9:52 AM
 To: CF-Talk
 Subject: How can it be done ?

 Good afternoon everyone,

 I have a small quetion, may be one of you skilled guys can help me out.

 I have a login page, when the users logs in an ID is pulled from a
database
 with CFQUERY.
 After logging in, a download is started, which will install additional
 software on the users computer.

 Important is that the ID can be reused after the download, so I must find
a
 way to remember that ID somewhere
 or pass it with the download.

 Cookies are out of the question.

 Users have complete control over their browser settings, and I know that
 some have cookies out, other users are behind a firewall which will not
 allow ActiveX.

 Anyone has any ideas ?

 Thanks,

 Chris
 Germany. 
_

 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread Robertson-Ravo, Neil (RX)
hmmmtricky especially since there is a reboot...if cookies are a no go,
then I am not sure how you will keep state etc? you could write a file
with the userid to the hard drive (as you are allowing a download). but
even that will require a user to accept the download.


_

From: Chris [mailto:[EMAIL PROTECTED] 
Sent: 28 October 2003 14:52
To: CF-Talk
Subject: How can it be done ?

Good afternoon everyone,

I have a small quetion, may be one of you skilled guys can help me out.

I have a login page, when the users logs in an ID is pulled from a database
with CFQUERY.
After logging in, a download is started, which will install additional
software on the users computer.

Important is that the ID can be reused after the download, so I must find a
way to remember that ID somewhere
or pass it with the download.

Cookies are out of the question.

Users have complete control over their browser settings, and I know that
some have cookies out, other users are behind a firewall which will not
allow ActiveX.

Anyone has any ideas ?

Thanks,

Chris
Germany. 
_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Calvin Ward
Sam,

I think that a number of people don't understand race conditions. So tell me, what would you not lock?

- Calvin
- Original Message - 
From: Samuel R. Neff 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 12:21 PM
Subject: RE: Scope Locking (RE: Blue Dragon and Fusebox)

Calvin, I'm really confused.In your first post you said that it is your
opinion that people should always lock every shared variable access (fine,
everyone is entitled to their opinion).But in justification, you quoted
the technote that says to use locks around race conditions only.

So if you agree with the technote, why would you lock everything?

Best regards,

Sam

---
Blog: http://www.rewindlife.com
Charts: http://www.blinex.com/products/charting
---

 -Original Message-
 From: Calvin Ward [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 28, 2003 5:32 AM
 To: CF-Talk
 Subject: Re: Scope Locking (RE: Blue Dragon and Fusebox)
 
 Sam,
 
 What specifically did you find in my previous email that 
 showed lack of understanding on race conditions?
 
 - Calvin
 


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Raymond Camden
 Sam,
 
 I think that a number of people don't understand race 
 conditions. So tell me, what would you not lock?
 

Ok, so I'm not Sam, but I'm going to respond anyway. Is your contention
that since most people don't understand race conditions, then they
should lock everything? If so, that is a perfectly valid reason, just
not one I agree with. You never stated this was your reason, and now we
know.

As it stands, I think it would be MUCH easier to explain race
conditions, then to describe code like so:

cflock scope=application type=readOnly timeout=3
	cfif not isDefined(application.init)
		cfset needInit = true
	/cfif
/cflock

cfif isDefined(needInit)
	cflock scope=application type=exclusive timeout=3
		cfif not isDefined(application.init)
			bunch of sets
			cfset application.init = true
		/cfif
	/cflock
/cfif


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Dave Watts
 I think that a number of people don't understand race 
 conditions. So tell me, what would you not lock?

Well, not to butt in between you and Sam, but in my experience, most of the
memory variables within an application are unlikely to encounter integrity
issues caused by concurrency (which is all that a race condition is,
really), or if they are, you might not even care about their integrity in
the first place.

For example, it's common to load lots of stuff into the Application scope
for the application as a whole when the application is first run, and
perhaps to load each Session in a similar manner. In either case, race
conditions are unlikely, and if there were a race condition, it would be
unlikely to matter, since this data is essentially just being cached. So,
for those things, locking strikes me as being largely unnecessary.

In addition, you might have variables which just aren't that important. For
example, in the official Macromedia courseware, race conditions are
discussed and an example is provided. That example uses a variable to store
the number of users who have logged into the application. But in real life,
do you really care so much whether a user thinks he's the 53rd user or the
54th?

Finally, rather than recommending a blanket use of locking on all memory
variables rather than just identifying race conditions that you actually
care about, I'd recommend learning about concurrency and synchronization
issues - it's part of the necessary set of knowledge for writing multi-user
applications. On the other hand, if you think you might ever deploy your
application on CF 5 or earlier, it might make sense to just lock everything
anyway.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: How can it be done ?

2003-10-28 Thread Chris
Been thinking of wrting a file to the HD, though that is a second download for the user.
Should all be done in 1 download.
Anyway of writing into the registry with CF, if so what about security limitations ?
- Original Message - 
From: Robertson-Ravo, Neil (RX) 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:08 PM
Subject: RE: How can it be done ?

hmmmtricky especially since there is a reboot...if cookies are a no go,
then I am not sure how you will keep state etc? you could write a file
with the userid to the hard drive (as you are allowing a download). but
even that will require a user to accept the download.

 _

From: Chris [mailto:[EMAIL PROTECTED] 
Sent: 28 October 2003 14:52
To: CF-Talk
Subject: How can it be done ?

Good afternoon everyone,

I have a small quetion, may be one of you skilled guys can help me out.

I have a login page, when the users logs in an ID is pulled from a database
with CFQUERY.
After logging in, a download is started, which will install additional
software on the users computer.

Important is that the ID can be reused after the download, so I must find a
way to remember that ID somewhere
or pass it with the download.

Cookies are out of the question.

Users have complete control over their browser settings, and I know that
some have cookies out, other users are behind a firewall which will not
allow ActiveX.

Anyone has any ideas ?

Thanks,

Chris
Germany. 
 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread Ricky Fritzsching
I do agree with Neil, but another option before CFMX would be to write
the information into the registry
by using the cfregistry tag. Just another option for you.

_

From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 9:09 AM
To: CF-Talk

hmmmtricky especially since there is a reboot...if cookies are a no
go,
then I am not sure how you will keep state etc? you could write a
file
with the userid to the hard drive (as you are allowing a download).
but
even that will require a user to accept the download.

_

From: Chris [mailto:[EMAIL PROTECTED] 
Sent: 28 October 2003 14:52
To: CF-Talk
Subject: How can it be done ?

Good afternoon everyone,

I have a small quetion, may be one of you skilled guys can help me out.

I have a login page, when the users logs in an ID is pulled from a
database
with CFQUERY.
After logging in, a download is started, which will install additional
software on the users computer.

Important is that the ID can be reused after the download, so I must
find a
way to remember that ID somewhere
or pass it with the download.

Cookies are out of the question.

Users have complete control over their browser settings, and I know that
some have cookies out, other users are behind a firewall which will not
allow ActiveX.

Anyone has any ideas ?

Thanks,

Chris
Germany. 
_

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Raymond Camden
 In addition, you might have variables which just aren't that 
 important. For example, in the official Macromedia 
 courseware, race conditions are discussed and an example is 
 provided. That example uses a variable to store the number of 
 users who have logged into the application. But in real life, 
 do you really care so much whether a user thinks he's the 
 53rd user or the 54th?

I'd just like to +1 this and add another example. Imagine you want to
know when an application started up. You could do:

cfif not isDefined(application.startuptime)
	cfset application.startuptime = now()
/cfif

Technically, you should lock this, but honestly, do you really care if N
threads access this code at the same time, and your startuptime ends up
being 5-10 miliseconds off? 


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: How can it be done ?

2003-10-28 Thread Chris
Thanks Ricky,

I think that writing to the registry will be the best solution for this.
- Original Message - 
From: Ricky Fritzsching 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:27 PM
Subject: RE: How can it be done ?

I do agree with Neil, but another option before CFMX would be to write
the information into the registry
by using the cfregistry tag. Just another option for you.

 _

From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 9:09 AM
To: CF-Talk

hmmmtricky especially since there is a reboot...if cookies are a no
go,
then I am not sure how you will keep state etc? you could write a
file
with the userid to the hard drive (as you are allowing a download).
but
even that will require a user to accept the download.

 _

From: Chris [mailto:[EMAIL PROTECTED] 
Sent: 28 October 2003 14:52
To: CF-Talk
Subject: How can it be done ?

Good afternoon everyone,

I have a small quetion, may be one of you skilled guys can help me out.

I have a login page, when the users logs in an ID is pulled from a
database
with CFQUERY.
After logging in, a download is started, which will install additional
software on the users computer.

Important is that the ID can be reused after the download, so I must
find a
way to remember that ID somewhere
or pass it with the download.

Cookies are out of the question.

Users have complete control over their browser settings, and I know that
some have cookies out, other users are behind a firewall which will not
allow ActiveX.

Anyone has any ideas ?

Thanks,

Chris
Germany. 
 _

 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: How can it be done ?

2003-10-28 Thread Nick de Voil
 I think that writing to the registry will be the best solution for this.

cfregistry writes to the server's registry, not the client's.

Nick


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: How can it be done ?

2003-10-28 Thread Chris
Oops, that is out of the question then...
- Original Message - 
From: Nick de Voil 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:34 PM
Subject: Re: How can it be done ?

 I think that writing to the registry will be the best solution for this.

cfregistry writes to the server's registry, not the client's.

Nick


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread John Stanley
what about having the program write to a text file on the client machine,
then when the user comes back up, read from that text file.

-Original Message-
From: Nick de Voil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:34 AM
To: CF-Talk
Subject: Re: How can it be done ?

 I think that writing to the registry will be the best solution for this.

cfregistry writes to the server's registry, not the client's.

Nick

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: How can it be done ?

2003-10-28 Thread Chris
Writing to a text file is another download, can only be one download (to keep it simple for the user)

- Original Message - 
From: John Stanley 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:37 PM
Subject: RE: How can it be done ?

what about having the program write to a text file on the client machine,
then when the user comes back up, read from that text file.

-Original Message-
From: Nick de Voil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:34 AM
To: CF-Talk
Subject: Re: How can it be done ?

 I think that writing to the registry will be the best solution for this.

cfregistry writes to the server's registry, not the client's.

Nick

 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread Greg Luce
In a closed group of users (non-public) like this sounds, I would prefer
users allow cookies for your specific domain if they are set to restrict
cookies accross the board. For this I would code for modern IE, and in
internet options-privacy you can override cookie handling for individual
websites. Wouldn't this be best?

 
Greg

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 11:46 AM
To: CF-Talk
Subject: Re: How can it be done ?

Oops, that is out of the question then...
- Original Message - 
From: Nick de Voil 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:34 PM
Subject: Re: How can it be done ?

 I think that writing to the registry will be the best solution for
this.

cfregistry writes to the server's registry, not the client's.

Nick

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: How can it be done ?

2003-10-28 Thread Chris
That would indeed be the best that I have some control over the browser (like IE), though this is not the case here;(
Has to be multi-platform, multi-preference, multi-settings coded
- Original Message - 
From: Greg Luce 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 3:44 PM
Subject: RE: How can it be done ?

In a closed group of users (non-public) like this sounds, I would prefer
users allow cookies for your specific domain if they are set to restrict
cookies accross the board. For this I would code for modern IE, and in
internet options-privacy you can override cookie handling for individual
websites. Wouldn't this be best?

Greg

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 11:46 AM
To: CF-Talk
Subject: Re: How can it be done ?

Oops, that is out of the question then...
 - Original Message - 
 From: Nick de Voil 
 To: CF-Talk 
 Sent: Tuesday, October 28, 2003 4:34 PM
 Subject: Re: How can it be done ?

  I think that writing to the registry will be the best solution for
this.

 cfregistry writes to the server's registry, not the client's.

 Nick

 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread Tangorre, Michael
If a cookie is not set, and you can not use the IP, I can not think of
another way..

-Original Message-
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 10:09 AM
To: CF-Talk
Subject: RE: How can it be done ?

hmmmtricky especially since there is a reboot...if cookies are a no go,
then I am not sure how you will keep state etc? you could write a file
with the userid to the hard drive (as you are allowing a download). but
even that will require a user to accept the download.

_

From: Chris [mailto:[EMAIL PROTECTED] 
Sent: 28 October 2003 14:52
To: CF-Talk
Subject: How can it be done ?

Good afternoon everyone,

I have a small quetion, may be one of you skilled guys can help me out.

I have a login page, when the users logs in an ID is pulled from a database
with CFQUERY.
After logging in, a download is started, which will install additional
software on the users computer.

Important is that the ID can be reused after the download, so I must find a
way to remember that ID somewhere
or pass it with the download.

Cookies are out of the question.

Users have complete control over their browser settings, and I know that
some have cookies out, other users are behind a firewall which will not
allow ActiveX.

Anyone has any ideas ?

Thanks,

Chris
Germany. 
_

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread John Stanley
 

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:50 AM
To: CF-Talk
Subject: Re: How can it be done ?

Writing to a text file is another download, can only be one download (to
keep it simple for the user)

- Original Message - 
From: John Stanley 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:37 PM
Subject: RE: How can it be done ?

what about having the program write to a text file on the client machine,
then when the user comes back up, read from that text file.

-Original Message-
From: Nick de Voil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:34 AM
To: CF-Talk
Subject: Re: How can it be done ?

 I think that writing to the registry will be the best solution for this.

cfregistry writes to the server's registry, not the client's.

Nick

 _

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread John Stanley
could the first download place a copy of the text file that is looked for
when the user logs back in?

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:50 AM
To: CF-Talk
Subject: Re: How can it be done ?

Writing to a text file is another download, can only be one download (to
keep it simple for the user)

- Original Message - 
From: John Stanley 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:37 PM
Subject: RE: How can it be done ?

what about having the program write to a text file on the client machine,
then when the user comes back up, read from that text file.

-Original Message-
From: Nick de Voil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:34 AM
To: CF-Talk
Subject: Re: How can it be done ?

 I think that writing to the registry will be the best solution for this.

cfregistry writes to the server's registry, not the client's.

Nick

 _

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread Robertson-Ravo, Neil (RX)
I think you are on a hiding to nothing on this one.. :-(sounds like
you are trying to do something which the web was not designed to do..
if you get a good resolutionthen post it though!

_

From: Chris [mailto:[EMAIL PROTECTED] 
Sent: 28 October 2003 15:50
To: CF-Talk
Subject: Re: How can it be done ?

Writing to a text file is another download, can only be one download (to
keep it simple for the user)

- Original Message - 
From: John Stanley 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:37 PM
Subject: RE: How can it be done ?

what about having the program write to a text file on the client machine,
then when the user comes back up, read from that text file.

-Original Message-
From: Nick de Voil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:34 AM
To: CF-Talk
Subject: Re: How can it be done ?

 I think that writing to the registry will be the best solution for this.

cfregistry writes to the server's registry, not the client's.

Nick

 _

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: How can it be done ?

2003-10-28 Thread Chris
Can be done, although snall problem then :
The ID comes from the atabase, the downloaded file is a zip-file, means unzip, run, reboot.

If I only could make the following download.zip?ID=5656565 with the zip-file
- Original Message - 
From: John Stanley 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:52 PM
Subject: RE: How can it be done ?

could the first download place a copy of the text file that is looked for
when the user logs back in?

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:50 AM
To: CF-Talk
Subject: Re: How can it be done ?

Writing to a text file is another download, can only be one download (to
keep it simple for the user)

 - Original Message - 
 From: John Stanley 
 To: CF-Talk 
 Sent: Tuesday, October 28, 2003 4:37 PM
 Subject: RE: How can it be done ?

 what about having the program write to a text file on the client machine,
 then when the user comes back up, read from that text file.

 -Original Message-
 From: Nick de Voil [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 28, 2003 10:34 AM
 To: CF-Talk
 Subject: Re: How can it be done ?

  I think that writing to the registry will be the best solution for this.

 cfregistry writes to the server's registry, not the client's.

 Nick

_

 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: How can it be done ?

2003-10-28 Thread Chris
Will keep working on this, and will post what I've done
I also think it is one way street with a roadblock in the begining on this, although
any ideas are welcome.

Chris
- Original Message - 
From: Robertson-Ravo, Neil (RX) 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:50 PM
Subject: RE: How can it be done ?

I think you are on a hiding to nothing on this one.. :-(sounds like
you are trying to do something which the web was not designed to do..
if you get a good resolutionthen post it though!

 _

From: Chris [mailto:[EMAIL PROTECTED] 
Sent: 28 October 2003 15:50
To: CF-Talk
Subject: Re: How can it be done ?

Writing to a text file is another download, can only be one download (to
keep it simple for the user)

 - Original Message - 
 From: John Stanley 
 To: CF-Talk 
 Sent: Tuesday, October 28, 2003 4:37 PM
 Subject: RE: How can it be done ?

 what about having the program write to a text file on the client machine,
 then when the user comes back up, read from that text file.

 -Original Message-
 From: Nick de Voil [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 28, 2003 10:34 AM
 To: CF-Talk
 Subject: Re: How can it be done ?

  I think that writing to the registry will be the best solution for this.

 cfregistry writes to the server's registry, not the client's.

 Nick

_

 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread Jeff Beer
If they have to login, just associate the login with the provided ID.
When the login occurs, retrieve the appropriate ID.

 -Original Message-
 From: Chris [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 28, 2003 9:52 AM
 To: CF-Talk
 Subject: How can it be done ?
 
 
 Good afternoon everyone,
 
 I have a small quetion, may be one of you skilled guys can 
 help me out.
 
 I have a login page, when the users logs in an ID is pulled 
 from a database with CFQUERY. After logging in, a download is 
 started, which will install additional software on the users computer.
 
 Important is that the ID can be reused after the download, so 
 I must find a way to remember that ID somewhere or pass it 
 with the download.
 
 Cookies are out of the question.
 
 Users have complete control over their browser settings, and 
 I know that some have cookies out, other users are behind a 
 firewall which will not allow ActiveX.
 
 Anyone has any ideas ?
 
 Thanks,
 
 Chris
 Germany. 
 
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread DURETTE, STEVEN J (AIT)
If the user has to log in and then gets an id number from a database, why
don't you create another table that stores the users login info and the id
that matches up to it?That way you just check when they login if they
already have an id number, if no assign one.

 
Steve

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:58 AM
To: CF-Talk
Subject: Re: How can it be done ?

Will keep working on this, and will post what I've done
I also think it is one way street with a roadblock in the begining on this,
although
any ideas are welcome.

Chris
- Original Message - 
From: Robertson-Ravo, Neil (RX) 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:50 PM
Subject: RE: How can it be done ?

I think you are on a hiding to nothing on this one.. :-(sounds like
you are trying to do something which the web was not designed to do..
if you get a good resolutionthen post it though!

 _

From: Chris [mailto:[EMAIL PROTECTED] 
Sent: 28 October 2003 15:50
To: CF-Talk
Subject: Re: How can it be done ?

Writing to a text file is another download, can only be one download (to
keep it simple for the user)

 - Original Message - 
 From: John Stanley 
 To: CF-Talk 
 Sent: Tuesday, October 28, 2003 4:37 PM
 Subject: RE: How can it be done ?

 what about having the program write to a text file on the client
machine,
 then when the user comes back up, read from that text file.

 -Original Message-
 From: Nick de Voil [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 28, 2003 10:34 AM
 To: CF-Talk
 Subject: Re: How can it be done ?

  I think that writing to the registry will be the best solution for
this.

 cfregistry writes to the server's registry, not the client's.

 Nick

_

 _

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Andre Turrettini
Ray, 
I'm interpreting your statment that if indeed a race condition occurs and
that a variable is overwritten at the same time as its being written, that
it simply uses the second value??I havent seen anyting to suggest this
anywhere(do you have more info?).

 
The problem would seem to me to be more severe as indeed macromedia has made
the statment that you should avoid this by spending time to lock the
variable.

 
Assuming the worst case (because of lack of evidence to the contrary), the
variable gets corrupted by this action.I would think that the server might
be negatively affected by such an occurence and indeed might crash.Cf5
would crash when its variables became corrupted.So, perhaps it might be
somewhat important?Of course I'm fairly java clueless so I cant make a
better guess.

 
DRE

-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 8:28 AM
To: CF-Talk
Subject: RE: Scope Locking (RE: Blue Dragon and Fusebox)

 In addition, you might have variables which just aren't that 
 important. For example, in the official Macromedia 
 courseware, race conditions are discussed and an example is 
 provided. That example uses a variable to store the number of 
 users who have logged into the application. But in real life, 
 do you really care so much whether a user thinks he's the 
 53rd user or the 54th?

I'd just like to +1 this and add another example. Imagine you want to
know when an application started up. You could do:

cfif not isDefined(application.startuptime)
cfset application.startuptime = now()
/cfif

Technically, you should lock this, but honestly, do you really care if N
threads access this code at the same time, and your startuptime ends up
being 5-10 miliseconds off? 

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




re: re: Continued thread...uploading/downloading from server to PC?

2003-10-28 Thread Bushy
Hi all,

I've been searching on the net for something that would allow me to ftp files from the server to my PC and visa-versa. Does anyone have any snippet that would do this?

Can it be done with cffile?

Help!!!


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Custom tags in CFMX

2003-10-28 Thread chad
I have recently upgraded my CF server from 5 to MX 6.1. In doing so one of my Java CFX tags is now not working. When I try to run this tag, it errors out because it applies an extra CFX_ to the tag name. So what used to be CFX_Tagname is now CFX_CFX_Tagname and because of this it no longer works.. When I log into my CF admin and go to Custom Tag Paths I have two, D:\CFusion\CustomTags and D:\CFusionMX\CustomTags. I do have 4 other CFX tags that are working properly.

Any help would be greatly appreciated. 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread Tangorre, Michael
How about on the page that presents the download you givea popup window in
German (or another non English language... the intent here is deceive) that
when they respond to you add the current URL with ID in it inside their
favorites and make it their homepage so next time they launch their browser,
you have their ID and they are at the URL you need them to be at!!!

 
:-)

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 10:56 AM
To: CF-Talk
Subject: Re: How can it be done ?

Can be done, although snall problem then :
The ID comes from the atabase, the downloaded file is a zip-file, means
unzip, run, reboot.

If I only could make the following download.zip?ID=5656565 with the
zip-file
- Original Message - 
From: John Stanley 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:52 PM
Subject: RE: How can it be done ?

could the first download place a copy of the text file that is looked for
when the user logs back in?

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:50 AM
To: CF-Talk
Subject: Re: How can it be done ?

Writing to a text file is another download, can only be one download (to
keep it simple for the user)

 - Original Message - 
 From: John Stanley 
 To: CF-Talk 
 Sent: Tuesday, October 28, 2003 4:37 PM
 Subject: RE: How can it be done ?

 what about having the program write to a text file on the client
machine,
 then when the user comes back up, read from that text file.

 -Original Message-
 From: Nick de Voil [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 28, 2003 10:34 AM
 To: CF-Talk
 Subject: Re: How can it be done ?

  I think that writing to the registry will be the best solution for
this.

 cfregistry writes to the server's registry, not the client's.

 Nick

_

 _

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Raymond Camden
 I'm interpreting your statment that if indeed a race 
 condition occurs and that a variable is overwritten at the 
 same time as its being written, that it simply uses the 
 second value??I havent seen anyting to suggest this 
 anywhere(do you have more info?).

Well, wouldn't it make sense that if you set X to FOO at 1:00 PM, and
another thread sets it to GOO at one milisecond afterwards, then GOO
will be the final value? As it stands, my point was, do you _need_ to
care? Using both Dave's example, and mine, the answer is probably no.

 The problem would seem to me to be more severe as indeed 
 macromedia has made the statment that you should avoid this 
 by spending time to lock the variable.

I respectfully disagree with their statement. Or, actually, I don't
disagree. If you want to prevent a race condition, use locking. That is
100% true. However, what Dave has said, and I'm agreeing with, is that
you should ask yourself if a race condition is that big of a deal.

 Assuming the worst case (because of lack of evidence to the 
 contrary), the variable gets corrupted by this action.I 

Define corrupted. If you REALLY need a value to be written once, then
yes, not locking it will cause corruption. If it's ok if it gets set
more than once, then there is nothing to worry about.

 would think that the server might be negatively affected by 
 such an occurence and indeed might crash.Cf5 would crash 
 when its variables became corrupted.So, perhaps it might be 
 somewhat important?Of course I'm fairly java clueless so I 
 cant make a better guess.


This is NOT the case in MX however. You can overwrite values willynilly
and you should not get a crash as you would prior to MX.


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: FTP; non-techies using

2003-10-28 Thread Adam Wayne Lehman
Right, however, there are a number of issues with that method which make
it a little less than desirable. First the user is limited to the number
of input I choose to display on the form. Secondly there is no way to
monitor file upload progress. Most users would assume that something is
wrong if they have to wait 10 minutes while the browser uploads the file
in the background without a page refresh or progress bar.

 
Basically I want the user to be able to upload an entire directory at a
time and have some sort of idea of how long it's going to take and
whatnot.

 
Is my only option here a java applet?

 
Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division

 
-Original Message-
From: Dan Phillips (CFXHosting.com) [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 27, 2003 4:26 PM
To: CF-Talk
Subject: RE: FTP; non-techies using

 
I seem to remember a tag that could do this in the MM Exchange. 

Making a form page to upload multiple files should be easy though. 

-Original Message-
From: Adam Wayne Lehman [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 27, 2003 4:19 PM
To: CF-Talk
Subject: RE: FTP; non-techies using

How does everyone handle uploading multiple files at once?

Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division

-Original Message-
From: Rafael Bleiweiss [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 27, 2003 5:00 PM
To: CF-Talk
Subject: RE: FTP; non-techies using

Just to clarify,

On those sites, the client DOES have CFFile capability, as I do
build that into every ecommerce site I create as part of the
Add and Modify Product pages.

It's just that when they upload fifty or 100 products at a shot using my
web based data entry system, (data entry is fast)
having to browse for ever Thumbnail, every larger view image ,
then wait for these to upload before moving on to the next product
and so forth is a HUGE pain in their butt.

So I don't have any problem offering them FTP as well as the cffile
function (with restrictions and contractual coverage).

Offering BOTH where it makes sense, with my previous caveats,
is the only way to go from a professional perspective that covers
your needs and theirs.

Take it a step further, check the file dimensions and auto-downsize
on the fly if it's too big for the wonderful front end you'll design.
Custom Cold Fusion tags in the tag gallery - gotta love em!

At 02:44 PM 10/27/03, you wrote:
Good point Rafael.

-Original Message-
From: Rafael Bleiweiss [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 4:36 PM
To: CF-Talk
Subject: Re: FTP; non-techies using

Very good question - some long term experience here:

I have half a dozen clients who maintain ecommerce sites with hundreds
or
thousands of products - each one having at least a Thumbnail and a
larger
view image...Two of them wanted FTP and a new client also wants this
(he's also going to be uploading MP3 sound track samples - music store
site)...

Here's the challenge - what naming convention, file size restrictions
and
image dimension parameters do you have set up?I provide the specific
info
in writing to them.

I also as was previously suggested, limit them to a special
subdirectory

that the front end site points to.In that sub, there's a directory
for

Thumbnails, one for Larger View images, etc...

Because they're not using cffile, I cant guarantee the image name will
match ona field in the database, so I've informed them that if they
post
an image and it's not showing up, it's on their dime if I need to
Figure
it
Out or Fix it.

HERE's one - Client owns a Luggage site.Gets his images on CD from
each
of his manufacturers.SOME are JPG already, some are GIF, and some
are

TIFF.
OH YEAH - Some of those JPG files - they're not RGB / Web enabled Jpgs,
they're CMYK JPGs so some browsers dont display them at all , some do,
and
some display only half the layering.

Guess who had to figure that out, and then TRAIN the client on
conversion?I did, for a FEE.Yep.

Oh yeah - File sizes - if you say they cant make them bigger than
200x160,
and they violate that, the front end looks like Crapola...SO I then
needed to teach that client how to do Batch Resizing of files in
Photoshop.Again, for a fee.

AND to be extra sure it was as visitor friendly as possible, I run a
CFDirectory on their upload directory on the fly to be sure the photo
is

there before I call it... for which I got a fee.

So, they can pay you now, or if you cover your ass with instructions
AND

written agreement that somthing doesnt work on Their process,and if
you

fix it you get a fee then you're pretty much covered.

OH YEAH - Better run Antivirus on that directory...and Limit the file
type uploads as well...

At 01:22 PM 10/27/03, you wrote:
 Has anybody had experience with having a non-techie upload files (in
this
 case photos) to their website?
 
 quote
 I will tfp.Just show 

Re: How can it be done ?

2003-10-28 Thread Chris
Good ideas, though cannot be done.

The login occurs, the id is being retrieved, download started, reboot occurs and immediately (without login) a html-page
is started containing a form with the ID filled out.
The user does not have to login again.
- Original Message - 
From: Jeff Beer 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:58 PM
Subject: RE: How can it be done ?

If they have to login, just associate the login with the provided ID.
When the login occurs, retrieve the appropriate ID.

 -Original Message-
 From: Chris [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 28, 2003 9:52 AM
 To: CF-Talk
 Subject: How can it be done ?
 
 
 Good afternoon everyone,
 
 I have a small quetion, may be one of you skilled guys can 
 help me out.
 
 I have a login page, when the users logs in an ID is pulled 
 from a database with CFQUERY. After logging in, a download is 
 started, which will install additional software on the users computer.
 
 Important is that the ID can be reused after the download, so 
 I must find a way to remember that ID somewhere or pass it 
 with the download.
 
 Cookies are out of the question.
 
 Users have complete control over their browser settings, and 
 I know that some have cookies out, other users are behind a 
 firewall which will not allow ActiveX.
 
 Anyone has any ideas ?
 
 Thanks,
 
 Chris
 Germany. 
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Consuming MX 6.1 Web services with .NET

2003-10-28 Thread Jim Campbell
Hi -

I'm looking for any old threads or articles (or advice) on passing 
complex datatypes from MX 6.1 to a .NET desktop app via SOAP.The app 
doesn't seem to be able to read things like structs from MX, and I was 
wondering if there was a method to do this, or if there was a straight 
Java structure that would be better suited to this?A search of HOF 
archives hasn't turned up much yet.Thanks in advance.

- Jim

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: How can it be done ?

2003-10-28 Thread Chris
Thanks Michael,

That opens up a new perspective.
Now, one thing that the page being called after reboot is started automatically.
I would have to put it in the Startup Page of their browser, copy the old one first, start up browser and then after the page has been called put back the old startpage.
Can that be done ?
- Original Message - 
From: Tangorre, Michael 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 5:27 PM
Subject: RE: How can it be done ?

How about on the page that presents the download you givea popup window in
German (or another non English language... the intent here is deceive) that
when they respond to you add the current URL with ID in it inside their
favorites and make it their homepage so next time they launch their browser,
you have their ID and they are at the URL you need them to be at!!!

:-)

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 10:56 AM
To: CF-Talk
Subject: Re: How can it be done ?

Can be done, although snall problem then :
The ID comes from the atabase, the downloaded file is a zip-file, means
unzip, run, reboot.

If I only could make the following download.zip?ID=5656565 with the
zip-file
 - Original Message - 
 From: John Stanley 
 To: CF-Talk 
 Sent: Tuesday, October 28, 2003 4:52 PM
 Subject: RE: How can it be done ?

 could the first download place a copy of the text file that is looked for
 when the user logs back in?

 -Original Message-
 From: Chris [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 28, 2003 10:50 AM
 To: CF-Talk
 Subject: Re: How can it be done ?

 Writing to a text file is another download, can only be one download (to
 keep it simple for the user)

- Original Message - 
From: John Stanley 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:37 PM
Subject: RE: How can it be done ?

what about having the program write to a text file on the client
machine,
then when the user comes back up, read from that text file.

-Original Message-
From: Nick de Voil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:34 AM
To: CF-Talk
Subject: Re: How can it be done ?

 I think that writing to the registry will be the best solution for
this.

cfregistry writes to the server's registry, not the client's.

Nick

_

_

 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread Tangorre, Michael
You are talking about setting client's system level parameters to launch
their browser and open a specific page after a reboot... well beyond the
capabilities of a web application unless you get into some very advanced
concepts which you have already said can not be used: ActiveX for one...

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 11:32 AM
To: CF-Talk
Subject: Re: How can it be done ?

Good ideas, though cannot be done.

The login occurs, the id is being retrieved, download started, reboot occurs
and immediately (without login) a html-page
is started containing a form with the ID filled out.
The user does not have to login again.
- Original Message - 
From: Jeff Beer 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:58 PM
Subject: RE: How can it be done ?

If they have to login, just associate the login with the provided ID.
When the login occurs, retrieve the appropriate ID.

 -Original Message-
 From: Chris [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 28, 2003 9:52 AM
 To: CF-Talk
 Subject: How can it be done ?
 
 
 Good afternoon everyone,
 
 I have a small quetion, may be one of you skilled guys can 
 help me out.
 
 I have a login page, when the users logs in an ID is pulled 
 from a database with CFQUERY. After logging in, a download is 
 started, which will install additional software on the users computer.
 
 Important is that the ID can be reused after the download, so 
 I must find a way to remember that ID somewhere or pass it 
 with the download.
 
 Cookies are out of the question.
 
 Users have complete control over their browser settings, and 
 I know that some have cookies out, other users are behind a 
 firewall which will not allow ActiveX.
 
 Anyone has any ideas ?
 
 Thanks,
 
 Chris
 Germany. 
 

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Continued thread...uploading/downloading from server to PC?

2003-10-28 Thread d.a.collie
could you not use a FTP program like cuteFTP or something?

	-Original Message-
	From: Bushy [mailto:[EMAIL PROTECTED] 
	Sent: 28 October 2003 16:26
	To: CF-Talk
	Subject: re: Continued thread...uploading/downloading from
server to PC?
	
	
	Hi all,
	
	I've been searching on the net for something that would allow me
to ftp files from the server to my PC and visa-versa. Does anyone have
any snippet that would do this?
	
	Can it be done with cffile?
	
	Help!!! 
	
	
_

	
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Andre Turrettini
Ray, i believe what macromedia is refering to is the variable being written
and overwritten at the same time.Not a variable being written, then
overwritten after its set.

 
See the note:
Race condition is a term that is not specific to ColdFusion programming, but
refers to a common issue that needs to be taken into consideration when
programming in any multithreaded environment. Simply put, a race condition
occurs anytime two threads (in this case, page requests) try to write to the
same data at the same time. The following is an example:
 cfset session.cartTotal = session.cartTotal + currentPrice



If two requests to the page that includes this code are made at the same
time, it is possible that in the time between the right-hand side read of
the session.cartTotal, and the left-hand-side write for the second page
request to execute and modify session.cartTotal. The result is corrupt data.

see where it says corrupt data?

DRE

-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 9:31 AM
To: CF-Talk
Subject: RE: Scope Locking (RE: Blue Dragon and Fusebox)

 I'm interpreting your statment that if indeed a race 
 condition occurs and that a variable is overwritten at the 
 same time as its being written, that it simply uses the 
 second value??I havent seen anyting to suggest this 
 anywhere(do you have more info?).

Well, wouldn't it make sense that if you set X to FOO at 1:00 PM, and
another thread sets it to GOO at one milisecond afterwards, then GOO
will be the final value? As it stands, my point was, do you _need_ to
care? Using both Dave's example, and mine, the answer is probably no.

 The problem would seem to me to be more severe as indeed 
 macromedia has made the statment that you should avoid this 
 by spending time to lock the variable.

I respectfully disagree with their statement. Or, actually, I don't
disagree. If you want to prevent a race condition, use locking. That is
100% true. However, what Dave has said, and I'm agreeing with, is that
you should ask yourself if a race condition is that big of a deal.

 Assuming the worst case (because of lack of evidence to the 
 contrary), the variable gets corrupted by this action.I 

Define corrupted. If you REALLY need a value to be written once, then
yes, not locking it will cause corruption. If it's ok if it gets set
more than once, then there is nothing to worry about.

 would think that the server might be negatively affected by 
 such an occurence and indeed might crash.Cf5 would crash 
 when its variables became corrupted.So, perhaps it might be 
 somewhat important?Of course I'm fairly java clueless so I 
 cant make a better guess.


This is NOT the case in MX however. You can overwrite values willynilly
and you should not get a crash as you would prior to MX.

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Nick de Voil
I could well be wrong here, but I think maybe people are being misled by the
statement in the MM doc:

Simply put, a race condition occurs anytime two threads (in this case, page
requests) try to write to the same data at the same time. 

That doesn't fully describe what's happening in their example

 cfset session.cartTotal = session.cartTotal + currentPrice

The point about this example is not just that it's writing to a shared scope
variable - it's reading from it and writing to it in one operation. That's
the problem, as I understand it - the reading and writing actions in two
different threads could combine with unpredictable results - hence the need
for locking. I don't think a simple CFSET could cause a problem in MX
because, as someone said, the shared scope structure objects are now
synchronized which is Java-speak for single-threaded.

So if you said

 cfset session.cartTotal = 100

for example, that couldn't cause a problem. Except for the shopper's credit
rating.

Maybe?

Nick


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Continued thread...uploading/downloading from server to PC?

2003-10-28 Thread Bushy
The idea is to create an interface that is idiot proof for users to use in-house.

They get too confused with ftp, telnet clients etc.

--Original Message Text---
From: [EMAIL PROTECTED]
Date: Tue, 28 Oct 2003 16:48:14 -

could you not use a FTP program like cuteFTP or something?

-Original Message-
From: Bushy [mailto:[EMAIL PROTECTED] 
Sent: 28 October 2003 16:26
To: CF-Talk
Subject: re: Continued thread...uploading/downloading from
server to PC?

Hi all,

I've been searching on the net for something that would allow me
to ftp files from the server to my PC and visa-versa. Does anyone have
any snippet that would do this?

Can it be done with cffile?

Help!!! 

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread Tangorre, Michael
No way... you can ASK them to set their homepage by clicking ok when the
setHomePage method throws the confirmation box up, but you can not force
them. Additionally, that functionality only works in IE I think...

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 11:35 AM
To: CF-Talk
Subject: Re: How can it be done ?

Thanks Michael,

That opens up a new perspective.
Now, one thing that the page being called after reboot is started
automatically.
I would have to put it in the Startup Page of their browser, copy the old
one first, start up browser and then after the page has been called put back
the old startpage.
Can that be done ?
- Original Message - 
From: Tangorre, Michael 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 5:27 PM
Subject: RE: How can it be done ?

How about on the page that presents the download you givea popup window
in
German (or another non English language... the intent here is deceive)
that
when they respond to you add the current URL with ID in it inside their
favorites and make it their homepage so next time they launch their
browser,
you have their ID and they are at the URL you need them to be at!!!

:-)

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 10:56 AM
To: CF-Talk
Subject: Re: How can it be done ?

Can be done, although snall problem then :
The ID comes from the atabase, the downloaded file is a zip-file, means
unzip, run, reboot.

If I only could make the following download.zip?ID=5656565 with the
zip-file
 - Original Message - 
 From: John Stanley 
 To: CF-Talk 
 Sent: Tuesday, October 28, 2003 4:52 PM
 Subject: RE: How can it be done ?

 could the first download place a copy of the text file that is looked
for
 when the user logs back in?

 -Original Message-
 From: Chris [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 28, 2003 10:50 AM
 To: CF-Talk
 Subject: Re: How can it be done ?

 Writing to a text file is another download, can only be one download (to
 keep it simple for the user)

- Original Message - 
From: John Stanley 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:37 PM
Subject: RE: How can it be done ?

what about having the program write to a text file on the client
machine,
then when the user comes back up, read from that text file.

-Original Message-
From: Nick de Voil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:34 AM
To: CF-Talk
Subject: Re: How can it be done ?

 I think that writing to the registry will be the best solution for
this.

cfregistry writes to the server's registry, not the client's.

Nick

_

_

 _

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: How can it be done ?

2003-10-28 Thread Chris
hmmm

I believe this dead end, I will keep you guys updated on this.
- Original Message - 
From: Tangorre, Michael 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 5:45 PM
Subject: RE: How can it be done ?

No way... you can ASK them to set their homepage by clicking ok when the
setHomePage method throws the confirmation box up, but you can not force
them. Additionally, that functionality only works in IE I think...

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 11:35 AM
To: CF-Talk
Subject: Re: How can it be done ?

Thanks Michael,

That opens up a new perspective.
Now, one thing that the page being called after reboot is started
automatically.
I would have to put it in the Startup Page of their browser, copy the old
one first, start up browser and then after the page has been called put back
the old startpage.
Can that be done ?
 - Original Message - 
 From: Tangorre, Michael 
 To: CF-Talk 
 Sent: Tuesday, October 28, 2003 5:27 PM
 Subject: RE: How can it be done ?

 How about on the page that presents the download you givea popup window
in
 German (or another non English language... the intent here is deceive)
that
 when they respond to you add the current URL with ID in it inside their
 favorites and make it their homepage so next time they launch their
browser,
 you have their ID and they are at the URL you need them to be at!!!

 :-)

 -Original Message-
 From: Chris [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 28, 2003 10:56 AM
 To: CF-Talk
 Subject: Re: How can it be done ?

 Can be done, although snall problem then :
 The ID comes from the atabase, the downloaded file is a zip-file, means
 unzip, run, reboot.

 If I only could make the following download.zip?ID=5656565 with the
 zip-file
- Original Message - 
From: John Stanley 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:52 PM
Subject: RE: How can it be done ?

could the first download place a copy of the text file that is looked
for
when the user logs back in?

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:50 AM
To: CF-Talk
Subject: Re: How can it be done ?

Writing to a text file is another download, can only be one download (to
keep it simple for the user)

- Original Message - 
From: John Stanley 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:37 PM
Subject: RE: How can it be done ?

what about having the program write to a text file on the client
 machine,
then when the user comes back up, read from that text file.

-Original Message-
From: Nick de Voil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:34 AM
To: CF-Talk
Subject: Re: How can it be done ?

 I think that writing to the registry will be the best solution for
 this.

cfregistry writes to the server's registry, not the client's.

Nick

 _

_

_

 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread Jeff Beer
What is the software you are downloading and installing?How are you
installing it?

The only way to do something like this that I can think of is to write
an application that performs all these tasks for you.

It might be easiest to use InstallShield (or similar) and create a
custom install script.You can modify the registry on the client
machine to hold the ID, and tell it to run IE to a specified URL one
time at startup (runOnce).That url, stored in the registry, would
contain the ID.InstallShield is very scriptable, and you can do things
like check to see if the install went correctly and take corrective
action if it did not, etc.

It's certainly possible, without getting into all the political issues
that this kind of forcing a user to install software brings up, but it's
not entirely trivial.You can't do this with Coldfusion (or any other
web/scripting language) alone.

Good luck!

Jeff

 -Original Message-
 From: Tangorre, Michael [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 28, 2003 11:36 AM
 To: CF-Talk
 Subject: RE: How can it be done ?
 
 
 You are talking about setting client's system level 
 parameters to launch their browser and open a specific page 
 after a reboot... well beyond the capabilities of a web 
 application unless you get into some very advanced concepts 
 which you have already said can not be used: ActiveX for one...


 
 -Original Message-
 From: Chris [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 28, 2003 11:32 AM
 To: CF-Talk
 Subject: Re: How can it be done ?
 
 
 Good ideas, though cannot be done.
 
 The login occurs, the id is being retrieved, download 
 started, reboot occurs and immediately (without login) a 
 html-page is started containing a form with the ID filled 
 out. The user does not have to login again.
- Original Message - 
From: Jeff Beer 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 4:58 PM
Subject: RE: How can it be done ?
 
If they have to login, just associate the login with the 
 provided ID.
When the login occurs, retrieve the appropriate ID.
 
 -Original Message-
 From: Chris [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 28, 2003 9:52 AM
 To: CF-Talk
 Subject: How can it be done ?
 
 
 Good afternoon everyone,
 
 I have a small quetion, may be one of you skilled guys can 
 help me out.
 
 I have a login page, when the users logs in an ID is pulled 
 from a database with CFQUERY. After logging in, a download is 
 started, which will install additional software on the 
 users computer.
 
 Important is that the ID can be reused after the download, so 
 I must find a way to remember that ID somewhere or pass it 
 with the download.
 
 Cookies are out of the question.
 
 Users have complete control over their browser settings, and 
 I know that some have cookies out, other users are behind a 
 firewall which will not allow ActiveX.
 
 Anyone has any ideas ?
 
 Thanks,
 
 Chris
 Germany. 
 
 
_
 
 
 
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Continued thread...uploading/downloading from server to PC?

2003-10-28 Thread d.a.collie
thinking along these lines...

 
you would need to put files from client to server with cffile
and use cfcontent to push files out from server to client

 
no snippets available... osz

	-Original Message-
	From: Bushy [mailto:[EMAIL PROTECTED] 
	Sent: 28 October 2003 16:48
	To: CF-Talk
	Subject: RE: Continued thread...uploading/downloading from
server to PC?
	
	
	The idea is to create an interface that is idiot proof for users
to use in-house.
	
	They get too confused with ftp, telnet clients etc.
	
	--Original Message Text---
	From: [EMAIL PROTECTED]
	Date: Tue, 28 Oct 2003 16:48:14 -
	
	could you not use a FTP program like cuteFTP or something?
	
	-Original Message-
	From: Bushy [mailto:[EMAIL PROTECTED] 
	Sent: 28 October 2003 16:26
	To: CF-Talk
	Subject: re: Continued thread...uploading/downloading from
	server to PC?
	
	Hi all,
	
	I've been searching on the net for something that would allow me
	to ftp files from the server to my PC and visa-versa. Does
anyone have
	any snippet that would do this?
	
	Can it be done with cffile?
	
	Help!!! 
	
	_
	
	
_

	
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Raymond Camden
 Ray, i believe what macromedia is refering to is the variable 
 being written and overwritten at the same time.Not a 
 variable being written, then overwritten after its set.

 See the note:
 Race condition is a term that is not specific to ColdFusion 
 programming, but refers to a common issue that needs to be 
 taken into consideration when programming in any 
 multithreaded environment. Simply put, a race condition 
 occurs anytime two threads (in this case, page requests) try 
 to write to the same data at the same time. The following is 
 an example:cfset session.cartTotal = session.cartTotal + 
 currentPrice

 
 If two requests to the page that includes this code are made 
 at the same time, it is possible that in the time between the 
 right-hand side read of the session.cartTotal, and the 
 left-hand-side write for the second page request to execute 
 and modify session.cartTotal. The result is corrupt data.

But what you describe above _is_ a setting of 2 values at _different
times. Not the same time. 

 see where it says corrupt data?

Right, but again the point is, is your data corrupt if two different
threads set the value? Look at the example Dave used, and mine. Our
point (if I can speak for Dave ;) is that YOU make the decision if the
data is corrupt or not. If you don't care that the value of X is set
twice because two or more threads hit the code at the same time, then
you don't need to lock.


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Dave Watts
 The problem would seem to me to be more severe as indeed 
 macromedia has made the statment that you should avoid this 
 by spending time to lock the variable.

You are certainly safer if you follow that approach, in the sense that you
no longer have to think about concurrency as much, but I'd generally
recommend that learning about concurrency is a better approach than using
locks unnecessarily. Locks are, by their very nature, bottlenecks in a
multi-user environment, and shouldn't be used if they're not needed.

 Assuming the worst case (because of lack of evidence to the 
 contrary), the variable gets corrupted by this action. I 
 would think that the server might be negatively affected by 
 such an occurence and indeed might crash. Cf5 would crash 
 when its variables became corrupted. So, perhaps it might be
 somewhat important?

The worst case with CFMX, according to Macromedia, is that you may have the
wrong value in your variable as a result of a race condition. This is
essentially a logical error, rather than a real error that causes CF to
stop processing your code. Obviously, if you're concerned about having the
wrong value in your variable, you'd want to synchronize access to that
variable in a controlled way, and that's what the CFLOCK tag is for.

The same issues arise in any multi-user environment, such as a relational
database. That's why most relational databases lock data by default during a
transaction, and why understanding transactional processing, locking, and
isolation levels is so important to database programmers. But there are
cases where locking might not be that important even within a relational
database, such as reporting. Competent database programmers - and, of
course, that includes competent CF programmers - should understand
concurrency issues well enough to decide on a case-by-case basis whether to
lock or not.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How can it be done ?

2003-10-28 Thread Adam Reynolds
Just email them the link they should run.

Keeps it simple
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: 28 October 2003 16:52
To: CF-Talk
Subject: Re: How can it be done ?

hmmm

I believe this dead end, I will keep you guys updated on this.
 - Original Message -
 From: Tangorre, Michael
 To: CF-Talk
 Sent: Tuesday, October 28, 2003 5:45 PM
 Subject: RE: How can it be done ?

 No way... you can ASK them to set their homepage by clicking ok when
the
 setHomePage method throws the confirmation box up, but you can not force
 them. Additionally, that functionality only works in IE I think...

 -Original Message-
 From: Chris [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 28, 2003 11:35 AM
 To: CF-Talk
 Subject: Re: How can it be done ?

 Thanks Michael,

 That opens up a new perspective.
 Now, one thing that the page being called after reboot is started
 automatically.
 I would have to put it in the Startup Page of their browser, copy the
old
 one first, start up browser and then after the page has been called put
back
 the old startpage.
 Can that be done ?
- Original Message -
From: Tangorre, Michael
To: CF-Talk
Sent: Tuesday, October 28, 2003 5:27 PM
Subject: RE: How can it be done ?

How about on the page that presents the download you givea popup
window
 in
German (or another non English language... the intent here is deceive)
 that
when they respond to you add the current URL with ID in it inside
their
favorites and make it their homepage so next time they launch their
 browser,
you have their ID and they are at the URL you need them to be at!!!

:-)

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:56 AM
To: CF-Talk
Subject: Re: How can it be done ?

Can be done, although snall problem then :
The ID comes from the atabase, the downloaded file is a zip-file,
means
unzip, run, reboot.

If I only could make the following download.zip?ID=5656565 with the
zip-file
- Original Message -
From: John Stanley
To: CF-Talk
Sent: Tuesday, October 28, 2003 4:52 PM
Subject: RE: How can it be done ?

could the first download place a copy of the text file that is
looked
 for
when the user logs back in?

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:50 AM
To: CF-Talk
Subject: Re: How can it be done ?

Writing to a text file is another download, can only be one download
(to
keep it simple for the user)

 - Original Message -
 From: John Stanley
 To: CF-Talk
 Sent: Tuesday, October 28, 2003 4:37 PM
 Subject: RE: How can it be done ?

 what about having the program write to a text file on the client
machine,
 then when the user comes back up, read from that text file.

 -Original Message-
 From: Nick de Voil [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 28, 2003 10:34 AM
 To: CF-Talk
 Subject: Re: How can it be done ?

  I think that writing to the registry will be the best solution
for
this.

 cfregistry writes to the server's registry, not the client's.

 Nick

_

 _

_

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Continued thread...uploading/downloading from server to PC?

2003-10-28 Thread Matt Robertson
http://mysecretbase.com/page_1145.html

This sample template covers file uploads.It has file size and mime
type checking.

You'll need cfdirectory to list the file contents, and users can
download from that list via a link to a custom tag that uses cfcontent
to push down the file to them.

This version of that tag will send anything down with a save/open
dialog:

cfparam name=attributes.FilePath default= TYPE=string
cfparam name=attributes.FileName default= TYPE=string
cfif Len(attributes.FileName)
	cfset
variables.FileToPush=attributes.FilePathattributes.FileName
	cfif FileExists(variables.FileToPush)		
		cfheader 
			name=Content-Disposition 
			value=attachment;
filename=#attributes.FileName#
		cfcontent 
			type=application/unknown 
			file=#variables.FileToPush#
	cfelse
		centerh1Sorry, File Does Not Exist/h1/center
		cfabort
	/cfif
cfelse
	centerh1No File Selected/h1/center
	cfabort
/cfif

This one, almost identical, will open a PDF in the browser (in a
non-infringing manner, I might add)

cfparam name=attributes.FilePath default= TYPE=string
cfparam name=attributes.FileName default= TYPE=string
cfif Len(attributes.FileName)
	cfset
variables.FileToPush=attributes.FilePathattributes.FileName
	cfif FileExists(variables.FileToPush)		
		cfheader
			name=content-disposition 
			value=inline; filename=#attributes.FileName#
		cfcontent 
			type=application/pdf 
			file=#variables.FileToPush#
	cfelse
		centerh1Sorry, File Does Not Exist/h1/center
		cfabort
	/cfif
cfelse
	centerh1No File Selected/h1/center
	cfabort
/cfif

Hope this helps,


 Matt Robertson [EMAIL PROTECTED] 
 MSB Designs, Inc.http://mysecretbase.com


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Samuel R. Neff
Actually, it's not just expressions that are race conditions that need to be
locked but any shared scope variable that may be subject to a race condition
in your application.

Since cartTotal may be incremented at some point, then all accesses to it
need to be locked.

HTH,

Sam

 -Original Message-
 From: Nick de Voil [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 28, 2003 8:46 AM
 To: CF-Talk
 Subject: Re: Scope Locking (RE: Blue Dragon and Fusebox)
 
(snip)
 
 So if you said
 
 cfset session.cartTotal = 100
 
 for example, that couldn't cause a problem. Except for the 
 shopper's credit rating.
 
 Maybe?
 
 Nick
 
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Samuel R. Neff
Andre,

Java automatically provides it's own internal synchronization to prevent the
variable from being accessed at the exact same time.Two sets to a variable
will always be sequential, it's just a matter of what's second.

The issue is with a statement like this:

cfset session.count = session.count + 1

This is a read and then a write.You're reading count, adding one to it,
and writing it back.If after you read the original value someone
incremented the value and you write back your own calculated based on the
original read, you've lost one increment.

This is a race condition.If it's critical that you have the correct
number, then use cflock to prevent against it.

If the count is not really all that critical, then you can safely ignore,
which is what Ray and Dave said.

If you're counting users, then it's safe to ignore.If you're working on
back account balances, then you need locking.

Sam

---
Blog: http://www.rewindlife.com
Charts: http://www.blinex.com/products/charting
---

 -Original Message-
 From: Andre Turrettini [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 28, 2003 8:47 AM
 To: CF-Talk
 Subject: RE: Scope Locking (RE: Blue Dragon and Fusebox)
 
 Ray, i believe what macromedia is refering to is the variable 
 being written and overwritten at the same time.Not a 
 variable being written, then overwritten after its set.

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




getting query results

2003-10-28 Thread Greg.Morphis
I'm making a dynamic select statement.. 
Where you have an open form on one page
you type in any query you want and it processes the 
query on the next.
The problem I'm running into is on the select statement

Say for example you have
SELECT a, c FROM alpha
	WHERE c = 700

how would I grab the foo, goo so I could generate table columns for them?
Also any help in the actual generating the table would be helpful.


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Requests going for 900 seconds!

2003-10-28 Thread Jamie Jackson
[CFMX 6.1 Linux/Apache]

A few times a day, I'm getting these terribly long-running requests,
which hose my staging servers:


Thread: jrpp-106, processing template: myPath/index.cfm, completed in
962 seconds, exceeding the 10 second warning limit


As a stopgap measure, I tried timing out long-running requests after
45 seconds, but the above continues to happen. Am I misinterpreting
the meaning of the following, in the CF admin?

=
Timeout Requests after ( seconds )__45__
When checked, requests that take longer than the specified time are
terminated. This prevents unusually long requests from occupying
server resources and impairing the performance of other requests.
=

One more question: Is there any way to relate thread jrpp-106 to a
request, so I can find out what query string was requested, etc.? BTW,
this is a Fusebox 3 app, so the fact that the log points to the
index.cfm template doesn't do me much good.

Thanks,
Jamie
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Dynamic CFCs

2003-10-28 Thread Bryan Stevenson
Hey All,

OK...I've dynamically named variables many many times before, but now I'm
trying to figure out if it's doable with CFCs.

The scenario:

This is postal/zip code validation and I want to use the appropriate
function depending on the user's country.So I want to call my validation
CFC with the name of the function being dynamic (i.e.
Validation.dynamicFunctionName(argumentVar)).The problem I'm having is the
argument.It doesn't need to be evaluated, but the dynamicFunctionName
does.

Hope that made some senseif it's possible to do this like it is with
dynamic varsa code sample would be lovely ;-)

TIA

Cheers

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

-
Macromedia Associate Partner
www.macromedia.com
-
Vancouver Island ColdFusion Users Group
Founder  Director
www.cfug-vancouverisland.com

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Dynamic CFCs

2003-10-28 Thread Tom Kitta
I done it once or twice before, I think the following would work (If my memory serves me well):

cfset result = evaluate(Validation.  dynamicFunctionName  (argumentVar))

Anyways if above doesn't work, there is a solution, you just have to play around with it as I do remember doing above in CFMX.

TK
- Original Message - 
From: Bryan Stevenson 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 11:24 AM
Subject: Dynamic CFCs

Hey All,

OK...I've dynamically named variables many many times before, but now I'm
trying to figure out if it's doable with CFCs.

The scenario:

This is postal/zip code validation and I want to use the appropriate
function depending on the user's country.So I want to call my validation
CFC with the name of the function being dynamic (i.e.
Validation.dynamicFunctionName(argumentVar)).The problem I'm having is the
argument.It doesn't need to be evaluated, but the dynamicFunctionName
does.

Hope that made some senseif it's possible to do this like it is with
dynamic varsa code sample would be lovely ;-)

TIA

Cheers

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

-
Macromedia Associate Partner
www.macromedia.com
-
Vancouver Island ColdFusion Users Group
Founder  Director
www.cfug-vancouverisland.com


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Dynamic CFCs

2003-10-28 Thread Raymond Camden
Why not make the CFC worry about which function to call based on the
user's country? Ie, you would do:

cfif theCFC.validate(myzip, mycountry)

This puts the work inside the CFC, not on your end.


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Dynamic CFCs

2003-10-28 Thread Bryan F. Hogan
Why not just create a function that calls the correct function based on the
supplied argument?

cffunction name=validateZip
 cfargument name=country
 cfargument name=zip

 cfswitch case=#Arguments.country#
cfcase value=US
cfset validatethezip(Arguments.zip)
/cfcase
 /cfswitch
/cffunction

cffunction name=validatethezip
 cfargument name=zip

 cfset var something=''
 cfset var validatethezipreturn=false

 cfif arguments.zip is something
cfset validatethezipreturn=true
 /cfif
 cfreturn validatethezipreturn
/cffunction


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




re: Passing input selections to another template?

2003-10-28 Thread Bushy
Hi,

I have a form with multiple input checkboxes. How can I pass the results of all the check boxes that were checked to my other template.cfm?


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Passing input selections to another template?

2003-10-28 Thread Tony Weeg
are they all the same name? 

...tony

tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337

-Original Message-
From: Bushy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 12:49 PM
To: CF-Talk
Subject: re: Passing input selections to another template?

Hi,

I have a form with multiple input checkboxes. How can I pass the results
of all the check boxes that were checked to my other template.cfm?


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Dynamic CFCs

2003-10-28 Thread Bryan Stevenson
Thanks All ;-)

Ray/Bryan...

Yup...will probably head that route (using IsZip and IsZIpCA from cflib now), but wanted to see if it was doable.There's usually a few approaches (as in how to buiold the stuff to evaluate) when using Evaluate() (is that Ray cringing...hehe), so I asked...and as always...got great answers ;-)

Cheers

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

-
Macromedia Associate Partner
www.macromedia.com
-
Vancouver Island ColdFusion Users Group
Founder  Director
www.cfug-vancouverisland.com
- Original Message - 
From: Bryan F. Hogan 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 9:45 AM
Subject: RE: Dynamic CFCs

Why not just create a function that calls the correct function based on the
supplied argument?

cffunction name=validateZip
cfargument name=country
cfargument name=zip

cfswitch case=#Arguments.country#
 cfcase value=US
cfset validatethezip(Arguments.zip)
 /cfcase
/cfswitch
/cffunction

cffunction name=validatethezip
cfargument name=zip

cfset var something=''
cfset var validatethezipreturn=false

cfif arguments.zip is something
 cfset validatethezipreturn=true
/cfif
cfreturn validatethezipreturn
/cffunction


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Passing input selections to another template?

2003-10-28 Thread Bushy
You're referring to the name of the input checkboxes?

If so, yes they are all the same name.

--Original Message Text---
From: Tony Weeg
Date: Tue, 28 Oct 2003 12:50:08 -0500

are they all the same name? 

...tony

tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337

-Original Message-
From: Bushy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 12:49 PM
To: CF-Talk
Subject: re: Passing input selections to another template?

Hi,

I have a form with multiple input checkboxes. How can I pass the results
of all the check boxes that were checked to my other template.cfm?


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Dynamic CFCs

2003-10-28 Thread Tom Kitta
- Original Message - 
From: Bryan F. Hogan 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 12:45 PM
Subject: RE: Dynamic CFCs

Why not just create a function that calls the correct function based on the
supplied argument?

How about having dynamic evaluation inside the CFC? If you have 20 similarly named functions cfswitch seams a waste of time.

TK


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Andre Turrettini
Thanks for the info Sam(and someone else who mentioned that
synchronization), I interpreted corrupt from the docs as different than just
wrong but this clears it up!

DRE

-Original Message-
From: Samuel R. Neff [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 1:18 PM
To: CF-Talk
Subject: RE: Scope Locking (RE: Blue Dragon and Fusebox)

Andre,

Java automatically provides it's own internal synchronization to prevent the
variable from being accessed at the exact same time.Two sets to a variable
will always be sequential, it's just a matter of what's second.

The issue is with a statement like this:

cfset session.count = session.count + 1

This is a read and then a write.You're reading count, adding one to it,
and writing it back.If after you read the original value someone
incremented the value and you write back your own calculated based on the
original read, you've lost one increment.

This is a race condition.If it's critical that you have the correct
number, then use cflock to prevent against it.

If the count is not really all that critical, then you can safely ignore,
which is what Ray and Dave said.

If you're counting users, then it's safe to ignore.If you're working on
back account balances, then you need locking.

Sam

---
Blog: http://www.rewindlife.com http://www.rewindlife.com 
Charts: http://www.blinex.com/products/charting
http://www.blinex.com/products/charting 
---

 -Original Message-
 From: Andre Turrettini [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 28, 2003 8:47 AM
 To: CF-Talk
 Subject: RE: Scope Locking (RE: Blue Dragon and Fusebox)
 
 Ray, i believe what macromedia is refering to is the variable 
 being written and overwritten at the same time.Not a 
 variable being written, then overwritten after its set.

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Passing input selections to another template?

2003-10-28 Thread Bryan F. Hogan
If they are checked they are available in the form structure on the response
page, if they where not checked they do not exist in the form structure.

input type=checkbox name=check1 value=1

cfif StructKeyExists(FORM, 'check1')
 check 1 was checked
cfelse
 check 1 was not checked
/cfif


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Passing input selections to another template?

2003-10-28 Thread Tony Weeg
it will come to you as a string,

value,value,value,value

listToArray()

you then can turn that to an array, or structure, and get values out
accordingly 

...tony

tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337

-Original Message-
From: Bushy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 12:55 PM
To: CF-Talk
Subject: RE: Passing input selections to another template?

You're referring to the name of the input checkboxes?

If so, yes they are all the same name.

--Original Message Text---
From: Tony Weeg
Date: Tue, 28 Oct 2003 12:50:08 -0500

are they all the same name? 

...tony

tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337

-Original Message-
From: Bushy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 12:49 PM
To: CF-Talk
Subject: re: Passing input selections to another template?

Hi,

I have a form with multiple input checkboxes. How can I pass the results
of all the check boxes that were checked to my other template.cfm?


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Dynamic CFCs

2003-10-28 Thread Bryan F. Hogan
You can do it anyway you like. I just posted an example. I'm not aware of a
way to dynamically call a specific function.

i.e. cfset myCFC['myDynamicFunction'].validate() I haven't tried it but I
doubt that this example works.
-Original Message-
From: Tom Kitta [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 12:56 PM
To: CF-Talk
Subject: Re: Dynamic CFCs

 - Original Message -
 From: Bryan F. Hogan
 To: CF-Talk
 Sent: Tuesday, October 28, 2003 12:45 PM
 Subject: RE: Dynamic CFCs

 Why not just create a function that calls the correct function based on
the
 supplied argument?

 How about having dynamic evaluation inside the CFC? If you have 20
similarly named functions cfswitch seams a waste of time.

 TK


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Passing input selections to another template?

2003-10-28 Thread Tangorre, Michael
then the form.checkboxname will contain a comma delimited list of all the
checkbox values that were selected...

 
input type=checkbox name=state value=MD
input type=checkbox name=state value=NY
input type=checkbox name=state value=PA

 
when you evaluate form.state you will see this:MD,NY,PAassuming you
checked all three and submitted the page.

-Original Message-
From: Bushy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 12:55 PM
To: CF-Talk
Subject: RE: Passing input selections to another template?

You're referring to the name of the input checkboxes?

If so, yes they are all the same name.

--Original Message Text---
From: Tony Weeg
Date: Tue, 28 Oct 2003 12:50:08 -0500

are they all the same name? 

...tony

tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337

-Original Message-
From: Bushy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 12:49 PM
To: CF-Talk
Subject: re: Passing input selections to another template?

Hi,

I have a form with multiple input checkboxes. How can I pass the results
of all the check boxes that were checked to my other template.cfm?

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: getting query results

2003-10-28 Thread DURETTE, STEVEN J (AIT)
well

 
assuming that you meant:
select a as foo, c as goo
from alpha
where c = 700

 
when done inside a cfquery a variable is returned with a list of the column
names.The variable is: query_name.columnList

 
so...
cfquery name=myQuery datasource=myDatasource
select a as foo, c as goo
from alpha
where c = 700
/cfquery

 
would return the query plus myQuery.columnList = foo,goo

 
Steve

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 12:20 PM
To: CF-Talk
Subject: getting query results

I'm making a dynamic select statement.. 
Where you have an open form on one page
you type in any query you want and it processes the 
query on the next.
The problem I'm running into is on the select statement

Say for example you have
SELECT a, c FROM alpha
WHERE c = 700

how would I grab the foo, goo so I could generate table columns for them?
Also any help in the actual generating the table would be helpful.

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Calvin Ward
It appears to me that there is/was some confusion over the meaning and impact of 'corrupt data'.

- Calvin
- Original Message - 
From: Raymond Camden 
To: CF-Talk 
Sent: Tuesday, October 28, 2003 11:58 AM
Subject: RE: Scope Locking (RE: Blue Dragon and Fusebox)

 Ray, i believe what macromedia is refering to is the variable 
 being written and overwritten at the same time.Not a 
 variable being written, then overwritten after its set.

 See the note:
 Race condition is a term that is not specific to ColdFusion 
 programming, but refers to a common issue that needs to be 
 taken into consideration when programming in any 
 multithreaded environment. Simply put, a race condition 
 occurs anytime two threads (in this case, page requests) try 
 to write to the same data at the same time. The following is 
 an example:cfset session.cartTotal = session.cartTotal + 
 currentPrice

 
 If two requests to the page that includes this code are made 
 at the same time, it is possible that in the time between the 
 right-hand side read of the session.cartTotal, and the 
 left-hand-side write for the second page request to execute 
 and modify session.cartTotal. The result is corrupt data.

But what you describe above _is_ a setting of 2 values at _different
times. Not the same time. 

 see where it says corrupt data?

Right, but again the point is, is your data corrupt if two different
threads set the value? Look at the example Dave used, and mine. Our
point (if I can speak for Dave ;) is that YOU make the decision if the
data is corrupt or not. If you don't care that the value of X is set
twice because two or more threads hit the code at the same time, then
you don't need to lock.


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




date convert

2003-10-28 Thread Robert Orlini
How can I convert this date: 20031028 into a month, day, year format with the dateformat command?
I tried: #dateformat((votedate),mmm dd, )#, but it does not display anything.
Thanks in advance.

Robert O.
HWW

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Passing input selections to another template?

2003-10-28 Thread Bushy
OK...Maybe I'm missing something or most likely didn't explain it properly.

For example I have the following:

form action="" method=Post target=right

input type=submit name=download value=Execute

cfdirectory...
cfloop...

input type=checkbox name=submit value=download
a href="">
/cfloop

/form

The above would produce something like this:

[] filename1.txt
[] filename2.txt
[] filename3.txt
[] filename4.txt
[] filename5.txt
[] filename6.txt...etc.

If I clicked on the following how can I pass all the item checked to my action-template.cfm?

[X] filename1.txt
[] filename2.txt
[X] filename3.txt
[X] filename4.txt
[] filename5.txt
[X] filename6.txt...etc.

--Original Message Text---
From: Bryan F. Hogan
Date: Tue, 28 Oct 2003 13:00:00 -0500

If they are checked they are available in the form structure on the response
page, if they where not checked they do not exist in the form structure.

input type=checkbox name=check1 value=1

cfif StructKeyExists(FORM, 'check1')
 check 1 was checked
cfelse
 check 1 was not checked
/cfif


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Scope Locking (RE: Blue Dragon and Fusebox)

2003-10-28 Thread Dave Watts
 It appears to me that there is/was some confusion over the 
 meaning and impact of 'corrupt data'.

I think it's useful to consider data integrity within the relational
database world as a guide. When a transaction is processed, all kinds of bad
things can happen without locking - dirty reads, phantom records and
nonrepeatable reads, for example. You can have similar issues within any
multi-user environment, including CF.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Passing input selections to another template?

2003-10-28 Thread Bryan F. Hogan
Off the top of my head

cfloop...
input type=hidden name=totalcount value=#totalcount#
input type=checkbox name=submit#idx# value=download
a href="">
/cfloop

action

cfloop from=1 to=#form.totalcount# index=idx
cfif structKeyExists(FORM, 'submit'idx)
 submit #idx# exists
/cfif
/cfloop

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: date convert

2003-10-28 Thread Philip Arnold
first make it into a date that CF can understand

 
CreateDate(left(VoteDate, 4), Mid(VoteDate, 5, 2), Right(VoteDate, 2))

 
Then you can use DateFormat() on this

-Original Message-
From: Robert Orlini [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 1:16 PM
To: CF-Talk
Subject: date convert

How can I convert this date: 20031028 into a month, day, year format
with the dateformat command?
I tried: #dateformat((votedate),mmm dd, )#, but it does not
display anything.
Thanks in advance.

Robert O.
HWW

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: date convert

2003-10-28 Thread Larry Juncker
If votedate is your variable and votedate initially equals 2003-10-28 such
that it is in mySql then this should do it for you:

#dateFormat(votedate,mmm dd, )#

Otherwise you are going to need to break it up like this first:

cfset votedate =
#Left(votedate,4)#-#Mid(votedate,5,2)#-#Right(votedate,2)#

Try the code below:

cfset votedate = 20031028

cfset votedate =
#Left(votedate,4)#-#Mid(votedate,5,2)#-#Right(votedate,2)#

cfoutput
votedate = #votedate#br
votedate = #dateformat(votedate,mmm dd, )#
/cfoutput


-Original Message-
From: Robert Orlini [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 12:16 PM
To: CF-Talk
Subject: date convert

How can I convert this date: 20031028 into a month, day, year format with
the dateformat command?
I tried: #dateformat((votedate),mmm dd, )#, but it does not display
anything.
Thanks in advance.

Robert O.
HWW


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Exellent Book - MS SQL 2000

2003-10-28 Thread Dave Jones
I'll second the recommendation for Vieira's book. Good overall 
look at many aspects of using SQL Server. I can also recommend a 
couple books more focused on t-sql:

SQL Server 200 Programming By Example - Guerrero  Rojas
The Guru's Guide to Transact-SQL - Henderson

Each has stuff not covered by the others (e.g. just discovered 
how easy and powerful pivot tables can be in The Guru's Guide) 
and between them (with BOL) I can pretty much always find a good 
solution to whatever problem I'm facing.

Dave Jones
NetEffect

At 09:24 AM 10/28/03 -0400, you wrote:
I first ran across Robert Vieira's Professional SQL Server 2000 
Programming (WROX press) when a DBA recommened it to me.

I have since been recommending it to anyone who will listen.

It has some basics and some advanced, but all is covered in a 
very well-written, light but detailed manner. The book is almost 
readable, as opposed to many (of my favorite) tech books - 
Vieira has a good sense of humor and is not above stating, very 
clearly, his opinions of coding methods and so on.

For example, he trashes SQL Server in a couple of instances (I 
can't remember what) for MS attempting to make something easy 
for newbies but could lead to serious code/security issues. And 
since he's a SQL Server guru - and trying to sell his book, 
obviously - that's refreshing.

In other words, the book is full of good info and is balanced. I like that.

 Are you talking administration or writing sql?
 
 
 -Original Message-
 From: Andy Ousterhout [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 27, 2003 6:22 PM
 To: CF-Talk
 Subject: OT: Book to learn MS SQL 2000
 
 
 What books do folks recommend to learn MS SQL 2000.Looking for basics at
 this point.
 
 Thanks,
 Andy
 
 
 _
 
 

--
[
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Exellent Book - MS SQL 2000

2003-10-28 Thread Tangorre, Michael
For a really powerful look at writing SQL and understanding the advanced
uses, anything by Joe Celko is worth the read!

-Original Message-
From: Dave Jones [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 2:20 PM
To: CF-Talk
Subject: Re: Exellent Book - MS SQL 2000

I'll second the recommendation for Vieira's book. Good overall 
look at many aspects of using SQL Server. I can also recommend a 
couple books more focused on t-sql:

SQL Server 200 Programming By Example - Guerrero  Rojas
The Guru's Guide to Transact-SQL - Henderson

Each has stuff not covered by the others (e.g. just discovered 
how easy and powerful pivot tables can be in The Guru's Guide) 
and between them (with BOL) I can pretty much always find a good 
solution to whatever problem I'm facing.

Dave Jones
NetEffect

At 09:24 AM 10/28/03 -0400, you wrote:
I first ran across Robert Vieira's Professional SQL Server 2000 
Programming (WROX press) when a DBA recommened it to me.

I have since been recommending it to anyone who will listen.

It has some basics and some advanced, but all is covered in a 
very well-written, light but detailed manner. The book is almost 
readable, as opposed to many (of my favorite) tech books - 
Vieira has a good sense of humor and is not above stating, very 
clearly, his opinions of coding methods and so on.

For example, he trashes SQL Server in a couple of instances (I 
can't remember what) for MS attempting to make something easy 
for newbies but could lead to serious code/security issues. And 
since he's a SQL Server guru - and trying to sell his book, 
obviously - that's refreshing.

In other words, the book is full of good info and is balanced. I like that.

 Are you talking administration or writing sql?
 
 
 -Original Message-
 From: Andy Ousterhout [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 27, 2003 6:22 PM
 To: CF-Talk
 Subject: OT: Book to learn MS SQL 2000
 
 
 What books do folks recommend to learn MS SQL 2000.Looking for basics
at
 this point.
 
 Thanks,
 Andy
 
 
 _
 
 

--
[ 
_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




  1   2   >