2d array question

2004-09-15 Thread Charlie Griefer
ok...in ColdFusion, a 2d array is a 1d array of 1d arrays.  i think
that's the first sentence in the docs under '2d arrays'.  that's all
well and good.

i'm curious tho...is there any recommendation regarding the 2nd
'dimension' being uniform length?  for example, if I have the
following:


 my_test = arrayNew(2);

 my_test[1][1] = "foo";
 my_test[1][2] = "bar";
 my_test[1][3] = "foobar";

 my_test[2][1] = "foo1";
 my_test[2][2] = "foo2";


... is that 'legal'?  or should my_test[2] have a 3rd element in the
2nd dimension?

If i'm in a situation where i'm going to have inconsistent numbers of
elements in the 2nd dimension...is it 'better form' to create 1
dimensional arrays and then manually create a new array within each, a
la:


 my_test = arrayNew(1);

 my_test[1] = arrayNew(1);
 my_test[1][2] = "foo";
 my_test[1][2] = "bar";
 my_test[1][3] = "foobar";

 my_test[2] = arrayNew(1);
 my_test[2][1] = "foo1";
 my_test[2][2] = "foo2";


while the 2nd example is certainly the "longer way around", it seems
cleaner, in that each 'nested array' is created independently of the
other, and therefore shouldn't care about different lengths.

maybe i'm just being anal...but i feel like if i create a 2d array,
then there is a distinct 'relationship' between all of the 2nd
dimension values...and they should all be of a uniform length.

is there any 'rule of thumb' as far as this is concerned?

thx!

-- 
Charlie Griefer


Marta was watching the football game with me when she said, 
"You know, most of these sports are based on the idea of one group 
protecting its territory from invasion by another group." 
"Yeah," I said, trying not to laugh. Girls are funny.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cffile write question, sending but not parsing cf code

2004-09-15 Thread Andrew Dixon
Not sure I have understood this right, but I assume the file you are
trying create a CF Script, but remove the database call. In that case,
you can put all your bits of script into a variable and than right
that variable. The script will not be processed by CFFILE, for
example:





This will create the CF script and when called the CF parts will be processed.

Andrew.

- Original Message -
From: mayo <[EMAIL PROTECTED]>
Date: Wed, 15 Sep 2004 00:08:03 -0400
Subject: cffile write question, sending but not parsing cf code
To: CF-Talk <[EMAIL PROTECTED]>

I'm using cffile to allow a magazine site to publish articles and not have a
 db call everytime an article is selected. Is there anyway (aside from
 includes) that I can use send up cf code such as CGI.path_info without it
 being parsed when the cffile is being written?

 Example:

 For example /admin/createFile.cfm creates a file called
 /stories/2004-1234.cfm

 I would like CGI.path_info to display

 /stories/2004-1234.cfm not /admin/createFile.cfm

 I also would like to be able to have

  etc... processed when the article is requested by the user and not
 when the CFFILE is executed.

 thx, hope this is understandable

 Gil
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: 2d array question

2004-09-15 Thread Andrew Dixon
Hi.

Personally I don't see anything different between your first way of
doing it and the second. I would thing that the second way is simply
doing the work CF would be doing behind the scenes anyway. The main
problem you are going to have is that if your code tries to reference
an array element that you have not defined, in this case [2][3] you
will get a CF Error about it not existing. Personally I would say best
practise would be to set the same number of elements in each row of
the array, but leave the one's you are not using blank. So your
example would end up being:

 
  my_test = arrayNew(2);

 
  my_test[1][1] = "foo";
  my_test[1][2] = "bar";
  my_test[1][3] = "foobar";

 
  my_test[2][1] = "foo1";
  my_test[2][2] = "foo2";
  my_test[2][3] = "";
 

Then if you try and reference [2][3] you no longer get a CF error.

Andrew.

- Original Message -
From: Charlie Griefer <[EMAIL PROTECTED]>
Date: Wed, 15 Sep 2004 00:23:25 -0700
Subject: 2d array question
To: CF-Talk <[EMAIL PROTECTED]>

ok...in ColdFusion, a 2d array is a 1d array of 1d arrays.  i think
 that's the first sentence in the docs under '2d arrays'.  that's all
 well and good.

 i'm curious tho...is there any recommendation regarding the 2nd
 'dimension' being uniform length?  for example, if I have the
 following:

 
  my_test = arrayNew(2);

 
  my_test[1][1] = "foo";
  my_test[1][2] = "bar";
  my_test[1][3] = "foobar";

 
  my_test[2][1] = "foo1";
  my_test[2][2] = "foo2";
 

 ... is that 'legal'?  or should my_test[2] have a 3rd element in the
 2nd dimension?

 If i'm in a situation where i'm going to have inconsistent numbers of
 elements in the 2nd dimension...is it 'better form' to create 1
 dimensional arrays and then manually create a new array within each, a
 la:

 
  my_test = arrayNew(1);

 
  my_test[1] = arrayNew(1);
  my_test[1][2] = "foo";
  my_test[1][2] = "bar";
  my_test[1][3] = "foobar";

 
  my_test[2] = arrayNew(1);
  my_test[2][1] = "foo1";
  my_test[2][2] = "foo2";
 

 while the 2nd example is certainly the "longer way around", it seems
 cleaner, in that each 'nested array' is created independently of the
 other, and therefore shouldn't care about different lengths.

 maybe i'm just being anal...but i feel like if i create a 2d array,
 then there is a distinct 'relationship' between all of the 2nd
 dimension values...and they should all be of a uniform length.

 is there any 'rule of thumb' as far as this is concerned?

 thx!

 -- 
 Charlie Griefer

 
 Marta was watching the football game with me when she said, 
 "You know, most of these sports are based on the idea of one group 
 protecting its territory from invasion by another group." 
 "Yeah," I said, trying not to laugh. Girls are
funny.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




CF/Flash Question

2004-09-15 Thread Andrew Dixon
Hi Everyone.

I'm about to create some flash navigation within a website that I'll
need to have pass out the CFID and CFTOKEN session variables, does
anyone know of an easy way to get these variables from within Flash or
would i have to have them passed to the flash movie to start with?

Andrew.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CF/Flash Question

2004-09-15 Thread dave
just have a cfm page set them as variables then deliver them to flash by any of the available means

depends on how ur going about it
one of the easiest ways is to set the variables as normal in flash the output them with an $ infront of each, the do a loadvar in your flash movie

-- Original Message --
From: Andrew Dixon <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Wed, 15 Sep 2004 11:10:13 +0100

>Hi Everyone.
>
>I'm about to create some flash navigation within a website that I'll
>need to have pass out the CFID and CFTOKEN session variables, does
>anyone know of an easy way to get these variables from within Flash or
>would i have to have them passed to the flash movie to start with?
>
>Andrew.
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CF/Flash Question

2004-09-15 Thread Andrew Dixon
Hi Dave.

Thanks for the info, but can you give me an example of how to pass the
variables in the Flash parameters and the actionscript to pick them
up. Bit new to Flash.

Thanks.

Andrew.

- Original Message -
From: dave <[EMAIL PROTECTED]>
Date: Wed, 15 Sep 2004 06:16:33 -0400
Subject: Re: CF/Flash Question
To: CF-Talk <[EMAIL PROTECTED]>

just have a cfm page set them as variables then deliver them to flash
by any of the available means

 depends on how ur going about it
 one of the easiest ways is to set the variables as normal in flash
the output them with an $ infront of each, the do a loadvar in your
flash movie

-- Original Message --
 From: Andrew Dixon <[EMAIL PROTECTED]>
 Reply-To: [EMAIL PROTECTED]
 Date:  Wed, 15 Sep 2004 11:10:13 +0100

 >Hi Everyone.
 >
 >I'm about to create some flash navigation within a website that I'll
 >need to have pass out the CFID and CFTOKEN session variables, does
 >anyone know of an easy way to get these variables from within Flash or
 >would i have to have them passed to the flash movie to start with?
 >
 >Andrew.
 >
 >
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CF/Flash Question

2004-09-15 Thread dave
try this

cfm page ex: cfmvariables.cfm
-

//set these how ever ur getting them (cookie, session, whatever)





&uuid=#uuid#&cftoken=#cftoken#&

---

in flash actionscript
---
// load cfm page variables
var my_cfmVars:LoadVars = new LoadVars();
my_cfmVars. {
  if (success) {
    trace(this.toString());
  } else {
    trace("Error loading/parsing LoadVars.");
  }
};
my_cfmVars.load("http://www.yoursite.com/cfmvariables.cfm");
-

at this point the variables will be in flash
4:30 am does that make sense?

dave

-- Original Message --
From: Andrew Dixon <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Wed, 15 Sep 2004 11:25:07 +0100

>Hi Dave.
>
>Thanks for the info, but can you give me an example of how to pass the
>variables in the Flash parameters and the actionscript to pick them
>up. Bit new to Flash.
>
>Thanks.
>
>Andrew.
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




CFC/MVC - Where to put data validation

2004-09-15 Thread d.a.collie
Hello

I'm been trying to use CFC's in a more OO way using a sort of MVC
methodology.  I'm getting my head round most of the concepts but I'm
kinda stumped at one question in my head,  Could anybody provide any
pointers?   When considering user input data from the View layer, should
data validation happen in the Controller or in the Model layer?

My own initial thinking was that the Model should just ensure basic
validation and throw an error if it encounters a value that is incorrect
(i.e. as long as it's numerical, then that's okay, if it's a string,
then throw an error, not interested in whether it's a number within a
certain range).  The controller has the main data validation and calls
the object only after all data has been validated.

I'm now seeing a lot of problems in my head with using this technique
and was hoping some of the OO crowd could give me some pointers in this
note.

TIA

-- 
dc
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CF/Flash Question

2004-09-15 Thread Andrew Dixon
I will give it a try and let you know. 

Thanks.

Andrew.

On Wed, 15 Sep 2004 06:57:05 -0400, dave <[EMAIL PROTECTED]> wrote:
> try this
>  
>  cfm page ex: cfmvariables.cfm
>  -
>  
>  //set these how ever ur getting them (cookie, session, whatever)
>  
>  
>  
>  
>  
>  &uuid=#uuid#&cftoken=#cftoken#&
>  
>  ---
>  
>  in flash actionscript
>  ---
>  // load cfm page variables
>  var my_cfmVars:LoadVars = new LoadVars();
>  my_cfmVars. {
>    if (success) {
>  trace(this.toString());
>    } else {
>  trace("Error loading/parsing LoadVars.");
>    }
>  };
>  my_cfmVars.load("http://www.yoursite.com/cfmvariables.cfm");
>  -
>  
>  at this point the variables will be in flash
>  4:30 am does that make sense?
>  
>  dave
> 
> 
>  
>  -- Original Message --
>  From: Andrew Dixon <[EMAIL PROTECTED]>
>  Reply-To: [EMAIL PROTECTED]
>  Date:  Wed, 15 Sep 2004 11:25:07 +0100
>  
>  >Hi Dave.
>  >
>  >Thanks for the info, but can you give me an example of how to pass the
>  >variables in the Flash parameters and the actionscript to pick them
>  >up. Bit new to Flash.
>  >
>  >Thanks.
>  >
>  >Andrew.
>  >
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFC/MVC - Where to put data validation

2004-09-15 Thread simon
Personally, I like having validation inside of or as close as possible to the 
object that stores the data (the Model). When you're talking about a high level 
MVC where the View is the client making requests (web browser, WAP device, 
Flash App, etc.), if you want client-side validation then obviously you're 
going to have validation code in the View modules as well - there isn't 
anything wrong with this. I don't typically have validation in Controller code -
 the job of the Controller is to update the data in the model and update the 
view if necessary - the model should throw exceptions when the controller 
attempts to update it with invalid data and any validation in the view should 
be a preliminary attempt to prevent those exceptions from happening.  I find 
this leads to more manageable code. One thing to note is that if you don't have 
time to implement robust exception handling, you might be better off validating 
at the controller level - purely because exception handling then only need be 
implemented in two tiers rather than 3.  Also consider that you'll make life 
easier for yourself if you implement a pattern-based exception handler as part 
of the controller - I recommend looking at something like the "Service to 
Worker" pattern or even a simple decorator pattern based front controller... 
though decorator patterns are really a bit overly complex for this sort of 
functionality. Of course, it does really depend on the application as well.

~Simon

> 
> Hello
> 
> I'm been trying to use CFC's in a more OO way using a sort of MVC
> methodology.  I'm getting my head round most of the concepts but I'm
> kinda stumped at one question in my head,  Could anybody provide any
> pointers?   When considering user input data from the View layer, should
> data validation happen in the Controller or in the Model layer?
> 
> My own initial thinking was that the Model should just ensure basic
> validation and throw an error if it encounters a value that is incorrect
> (i.e. as long as it's numerical, then that's okay, if it's a string,
> then throw an error, not interested in whether it's a number within a
> certain range).  The controller has the main data validation and calls
> the object only after all data has been validated.
> 
> I'm now seeing a lot of problems in my head with using this technique
> and was hoping some of the OO crowd could give me some pointers in this
> note.
> 
> TIA
> 
> -- 
> dc
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Javascript submit button vs html submit button

2004-09-15 Thread Mike Kear
How true is the following statement? :

[quote]

If you use a _javascript_ form submit button, you have to make sure your
form variables dont get too large because the _javascript_ function
passes the input to the action page using the GET method, and the
total length of a URL and all the URL Variables is limited.   If you
have a very large amount of form input, you had better use HTML submit
buttons and the POST method

[/quote]

Is this true?   Its brought about by an application I'm working on
where we might have a hidden form field with as many as 40,000 userIDs
passed to the action page in a comma delimited list.

Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com
.com,.net,.org domains from AUD$20/Year
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Intel HyperThreading

2004-09-15 Thread Mark W. Breneman
HT will not make a large difference in most stuff that you do on your
desktop. Keep in mind the theory behind HT. In a very simplified nut shell
you take one CPU and make it two logical CPUs.(more or less)  So it will not
make a 3Ghz CPU any faster then a 3Ghz CPU. Where you do see a difference is
everything seems to respond just a little quicker due to there are twice as
many logical CPUs to service CPU requests. This can be seen when windows
starts up the lag between seeing your desktop icons and windows being
useable is much shorter with HT.

 
I had a problem with some apps crashing (Norton anti-SPAM) with HT on. To be
fair to NAS it would crash weekly anyway, with HT on it would crash daily. 

 
Donna, are you replacing a desktop or a server? If you are replacing a
desktop I would not go with a dual CPU. Unless you have some mad money just
sitting around. Your desk top apps are more then likely not written to take
advantage of dual CPUs. 

Mark W. Breneman
-Cold Fusion Developer
-Network Administrator
  Vivid Media
  [EMAIL PROTECTED]
  www.vividmedia.com  
  608.270.9770

  _  

From: Donna French [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 14, 2004 7:32 PM
To: CF-Talk
Subject: Re: Intel HyperThreading

Thanks Jim,

I am now considering dual processors - just not sure and want to get
as much feedback as possible before diving into putting the new system
together. I am hoping to order parts Thursday and build this weekend.

If anyone has ANY comments on their system and what kind of
performance you get please feel free to post - or email me off list.

Thanks again,
Donna

- Original Message -
From: Jim Davis <[EMAIL PROTECTED]>
Date: Tue, 14 Sep 2004 19:04:07 -0400
Subject: RE: Intel HyperThreading
To: CF-Talk <[EMAIL PROTECTED]>

I like it - it definitely improves performance response time when using
multiple applications.   But really only for those applications tuned to
multi-processor performance to begin with.

CF won't benefit nearly as much as it will from dual CPUs (a dual PIII 1000
would I think give a single P4 3Gh HT at least a run for it's money if not
beat it outright under load - and probably costs about the same), but it
will definitely benefit.  My workstation is a P4 3.06 GHz with HT enabled
and my development server is a Dual PIII 1000 (running at 1100).

This doesn't really have anything to do with memory however - just
performance.  HT won't do anything to help a memory hog - only more memory
will do that.  If it's a choice for CF always go with with more memory
rather than a faster processor (in general).

Jim Davis

From: Donna French [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 14, 2004 6:20 PM
To: CF-Talk
Subject: OT: Intel HyperThreading

Okay - I fried my motherboard last weekend and have decided to build a
new system instead of replacing the old one. I've been running a
950MHz with 1 Gig of RAM for a WHILE now, and I am READY for some
speed now.

I had in mind to build a P4 3.0GHz and have been looking at the
HyperThreading technology. Heard it's great for memory hawgs like CFMX
and the like.

Anyone else using Intel HT technology? Any comments/suggestions
welcome. 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: any java cf'ers online?

2004-09-15 Thread Lori
I figured out the problem I was having earlier but now I have a new one :)  I am getting an error message on this line:


The error message is:
null Enclosed Exception: Unable to make sense of URL for connection 
The code:


  
 
  
  
  
  
  
  
  
  
  
    

  
  
   
   
   
   
  
  
  
   
  
  

   

  
  
  
  
  

  
  

  
  
  
  

  
  
  
  
  
  
  
  

  

  
  
 
 
  - Original Message - 
  From: Spike 
  To: CF-Talk 
  Sent: Wednesday, September 15, 2004 12:35 AM
  Subject: RE: any java cf'ers online?

  Yep,

  Did you have a particular question or were you running a poll ;)

  Spike

  
  Stephen Milligan
  Code poet for hire
  http://www.spike.org.uk

  Do you cfeclipse? http://cfeclipse.tigris.org 

  >-Original Message-
  >From: [EMAIL PROTECTED] 
  >[mailto:[EMAIL PROTECTED] On Behalf Of Lori
  >Sent: Tuesday, September 14, 2004 8:17 PM
  >To: CF-Talk
  >Subject: Fw: any java cf'ers online?
  >
  >Anyone out there right now that uses java with cf?
  >
  >-Lori
  >
  >
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Javascript submit button vs html submit button

2004-09-15 Thread Steve Brownlee
I'm guessing this is true.  If memory serves correct, the maximum length of a
URL is only 2,048 characters.  If you need to transfer more data than that,
you have to use POST.



From: Mike Kear [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 8:08 AM
To: CF-Talk
Subject: _javascript_ submit button vs html submit button

How true is the following statement? :

[quote]

If you use a _javascript_ form submit button, you have to make sure your
form variables dont get too large because the _javascript_ function
passes the input to the action page using the GET method, and the
total length of a URL and all the URL Variables is limited.   If you
have a very large amount of form input, you had better use HTML submit
buttons and the POST method

[/quote]

Is this true?   Its brought about by an application I'm working on
where we might have a hidden form field with as many as 40,000 userIDs
passed to the action page in a comma delimited list.

Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com
.com,.net,.org domains from AUD$20/Year 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Javascript submit button vs html submit button

2004-09-15 Thread Andy J
Wow, one question, do you need to actually pass 40,000 user id's,
thats make you page site huge?

Also Js would submit the form using whatever method was declared in
the  tag.
Here's some test code


function submitform()
{
  document.myform.submit();
}
Search: Search form url Hope this helps Andy - Original Message - From: Mike Kear <[EMAIL PROTECTED]> Date: Wed, 15 Sep 2004 22:07:35 +1000 Subject: _javascript_ submit button vs html submit button To: CF-Talk <[EMAIL PROTECTED]> How true is the following statement? : [quote] If you use a _javascript_ form submit button, you have to make sure your form variables dont get too large because the _javascript_ function passes the input to the action page using the GET method, and the total length of a URL and all the URL Variables is limited.   If you have a very large amount of form input, you had better use HTML submit buttons and the POST method [/quote] Is this true?   Its brought about by an application I'm working on where we might have a hidden form field with as many as 40,000 userIDs passed to the action page in a comma delimited list. Cheers Mike Kear Windsor, NSW, Australia AFP Webworks http://afpwebworks.com .com,.net,.org domains from AUD$20/Year [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

RE: Javascript submit button vs html submit button

2004-09-15 Thread Pascal Peters
It depends on what you mean by "_javascript_ form submit button". But
doing form.submit() in JS simply submits the form using the method
specified in the form. If this is POST the values are passed in the HTTP
body and not in the URL.

Pascal

> -Original Message-
> From: Mike Kear [mailto:[EMAIL PROTECTED]
> Sent: 15 September 2004 14:08
> To: CF-Talk
> Subject: [Spam?] _javascript_ submit button vs html submit button
> 
> How true is the following statement? :
> 
> [quote]
> 
> If you use a _javascript_ form submit button, you have to make sure your
> form variables dont get too large because the _javascript_ function
> passes the input to the action page using the GET method, and the
> total length of a URL and all the URL Variables is limited.   If you
> have a very large amount of form input, you had better use HTML submit
> buttons and the POST method
> 
> [/quote]
> 
> 
> Is this true?   Its brought about by an application I'm working on
> where we might have a hidden form field with as many as 40,000 userIDs
> passed to the action page in a comma delimited list.
> 
> 
> Cheers
> Mike Kear
> Windsor, NSW, Australia
> AFP Webworks
> http://afpwebworks.com
> .com,.net,.org domains from AUD$20/Year
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Javascript submit button vs html submit button

2004-09-15 Thread Stephen Moretti (cfmaster)
Mike Kear wrote:

> How true is the following statement? :
>
> [quote]
>
> If you use a _javascript_ form submit button, you have to make sure your
> form variables dont get too large because the _javascript_ function
> passes the input to the action page using the GET method, and the
> total length of a URL and all the URL Variables is limited.   If you
> have a very large amount of form input, you had better use HTML submit
> buttons and the POST method
>
> [/quote]
>
> Is this true? 

Its only half true.

Yes with GET type form submission you do need to ensure that the number 
of variables and their values does not exceed the maximum length for a 
URL (128 characters I think...  don't quote me)

_javascript_ submission of pages need not be a GET submission.  It can 
also be a POST method. This is determined by the FORM tag and not the 
way that it is submitted.

>  Its brought about by an application I'm working on
> where we might have a hidden form field with as many as 40,000 userIDs
> passed to the action page in a comma delimited list.

Ummm... eek!  Would it not be better to provide a single reference to 
something the DB that allows you to pick out those IDs rather than 
passing them around on a page?

Stephen
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Javascript submit button vs html submit button

2004-09-15 Thread Micha Schopman
Internet Explorer is limited by 2048 bytes in urls, that is why GET
actions should be used with caution. If you send a form by _javascript_
keep in mind the onsubmit handler of a form will not be fired.

 
Micha Schopman 
Software Engineer 
Modern Media, Databankweg 12 M, 3821 AL  Amersfoort 
Tel 033-4535377, Fax 033-4535388 
KvK Amersfoort 39081679, Rabo 39.48.05.380
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Assigning value to property using COM

2004-09-15 Thread Shahzad.Butt
I am using COM and trying to assign a value to the property. In the code
below the lines with ***  is VB code and the line beneath is
coldfusion equivalent of that line.

Set Axapta = CreateObject("AxaptaCOMConnector.Axapta")

name="AXCom">

***Axapta.Logon***


*** MyRecord = Axapta.CreateRecord("CCMCTIInbound")***

CFSet myRecord = Axapta.CreateRecord("CCMCTIInbound")>

***MyRecord.field("UserID") = "Shaz"***



The line above (in bold) throws an error saying  

"Unable to assign a value to the function "field" on line 16, column 16.
"

Which is pretty obvious that we cant assign a value to function though
in VB we could do it as it's a property. Is there any work around for
that.

Thanks

Shaz



**
This email and any files transmitted with it are confidential
and intended solely for use by the individual or entity to 
whom it is addressed. If you have received this e-mail in 
error, kindly notify [EMAIL PROTECTED] or call 
+44 1992 701 704. Unless stated otherwise, please note 
that any views or opinions expressed in this e-mail are solely
that of the author and are not necessarily of 
JJ Fast Food Distribution Limited. The company can not 
assure that the integrity of this communication has been 
maintained nor that it is free of errors, virus, interception or 
interference. The company accepts no liability for any 
damage caused by this email. JJ Fast Food Distribution 
Limited reserves the right to monitor and or record e-mail 
without prior notification.
**
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Basics Clarification

2004-09-15 Thread Steve Brownlee
We've all said it a million times - don't use the hashes inside a CF tag that
processes on its own.




But one thing I've always wondered is why.  I know doing this is wrong from
years of seeing people scream at developers who do it, but I never heard an
explanation as to what problems this causes.  Anyone know the guts behind
this?

- Steve
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Javascript submit button vs html submit button

2004-09-15 Thread Mike Kear
Heheh > Andy I didnt believe it myself either.   However it's sort of
historical to some extent.   We have to live with some aspects of the
system we're working with.   The user gets to select all or some of
the members in the membership database, and there are more than 40,000
members.  So it's possible they could say "yes all of those!" and
click the "Select all" button.

Anyway, thats how the guy with the money says it's going to work, and
there's no money to pay to change the way it works, so we're living
with that.   I agree with you, Andy i'd rather see those 40,000 refIDs
going into even a temporary table or something, just in case there's a
hiccup at the moment of submitting the form.

Thanks for your thoughts. I'm going to have a try with a set of 40,000
ID numbers and see what happens.

Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com
.com,.net,.org domains from AUD$20/Year

- Original Message -
From: Andy J <[EMAIL PROTECTED]>
Date: Wed, 15 Sep 2004 13:27:35 +0100
Subject: Re: _javascript_ submit button vs html submit button
To: CF-Talk <[EMAIL PROTECTED]>

Wow, one question, do you need to actually pass 40,000 user id's,
thats make you page site huge?

[snip]
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Basics Clarification

2004-09-15 Thread Andrew Dixon
I have no idea why, as far as I know it don't actually cause any
problem, but I think it just look bad and makes the code more
difficult to read.

Andrew.

- Original Message -
From: Steve Brownlee <[EMAIL PROTECTED]>
Date: Wed, 15 Sep 2004 05:37:44 -0700
Subject: Basics Clarification
To: CF-Talk <[EMAIL PROTECTED]>

We've all said it a million times - don't use the hashes inside a CF tag that
 processes on its own.

 
 

 But one thing I've always wondered is why.  I know doing this is wrong from
 years of seeing people scream at developers who do it, but I never heard an
 explanation as to what problems this causes.  Anyone know the guts behind
 this?

 - Steve
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




CF Forum cheapest or free

2004-09-15 Thread Web Specialist
Do you know any? I'm looking for any CF Forum based application.
Galleon looks like nice. More examples?

Thanx
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CF Forum cheapest or free

2004-09-15 Thread Massimo Foti
> Do you know any? I'm looking for any CF Forum based application.
> Galleon looks like nice. More examples?
> 
http://www.adersoftware.com/index.cfm?page=cfbb
http://sourceforge.net/projects/smb/
http://sourceforge.net/projects/fbopenforums/
http://www.stickshiftsolutions.com/


Massimo Foti
http://www.massimocorner.com

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Basics Clarification

2004-09-15 Thread Stephen Moretti (cfmaster)
Steve Brownlee wrote:

> We've all said it a million times - don't use the hashes inside a CF 
> tag that
> processes on its own.
>
> 
> 
>
> But one thing I've always wondered is why.  I know doing this is wrong 
> from
> years of seeing people scream at developers who do it, but I never 
> heard an
> explanation as to what problems this causes.  Anyone know the guts behind
> this?
>
Originally you had to do your cfifs this way back in version 2 land.

Basically what you are saying here is :

I have a command   inside that command I have a variable called 
check that I need to insert the value it contains into the cfif and then 
check it against the value on the other side of the operator.



becomes

becomes
false

What you are doing is adding an extra stage of processing to the cfif, 
rather than just saying compare the variable "check" against the value 
on the other side of the operator.



becomes
false

Plus it looks dreadful and makes your code hard to read.

Stephen
PS. It may not may the slightest difference in CFMX, but it still looks 
awful!
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Basics Clarification

2004-09-15 Thread Dave Watts
> Originally you had to do your cfifs this way back in version 2 land.

Well, actually, I'm pretty sure that they weren't even needed then. However,
no one had really figured out appropriate usage for them yet.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Basics Clarification

2004-09-15 Thread Dave Watts
> We've all said it a million times - don't use the hashes inside a CF tag
> that processes on its own.
>
> 
> 
>
> But one thing I've always wondered is why. I know doing this is wrong
> from years of seeing people scream at developers who do it, but I never 
> heard an explanation as to what problems this causes.  Anyone know the 
> guts behind this?

Well, I wouldn't word it exactly like that. I would say, "don't use hashes
unless you want to get the value of an _expression_ and put that value into a
string."

As for why this is, frankly, it's not really that important. Theoretically,
using unneeded pound signs will cause the server to do extra work, but I
suspect that the amount of extra work is usually insignificant. Personally,
it's more a matter of cleanliness and minimalization. Programmers tend to
favor terseness over verbosity within their code.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Users Online, Take 2

2004-09-15 Thread Sung Woo
So I've finally gotten around to rewriting the "who is online?" portion of my site, and it turns out that I didn't have to do much rewriting at all.  The script below was using CFID to keep track, which, as many people pointed out, was not a good idea.  I keep a session variable (session.UserID) in my application, so this was a much better idea.  So the script is as follows:




	
	     
	 
	 
	 
	     
	 
	 
	     
	 
	
	 
	     
	
	 
	     
	
	
	     
	 
	 
	     
	


My question involves the StructDelete portion of the code, namely:

	 
	     
	
	
	     
	 
	 
	     
	

I have this script in the application.cfm file, which means this loop is activated with every single click.  Sure, it isn't that much load, but I don't see any reason why this should kick in so often.  So I cut it out of the application.cfm file and created a separate file, called cleanup_online_users.cfm.  Then I used Scheduled Tasks to schedule this snippet of code -- and it doesn't work.  It's very strange -- if I run it manually, it doesn't work, either.  However, if I manually run it AND THEN force a refresh, it works.  I was wondering if CF was somehow caching this page, so I changed the page to this:





	cleanup
	
	






 
     


     
 
 
     





Still doesn't work.  The only way to make it work is if I load it manually and then refresh.  What am I doing wrong?

I'm running Win2K & CFMX 6.1.

- Sung
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: any java cf'ers online?

2004-09-15 Thread Qasim Rasheed
Lori,

Even though I am not familiar with this particular package that you
are working with, here is what seem kind of confusing to me.





For all these above functions, you are passing strings, shouldn't you
be passing the actual value i.e instead of this 
input.init('svgURI')>, this 

Qasim

- Original Message -
From: Lori <[EMAIL PROTECTED]>
Date: Wed, 15 Sep 2004 08:17:33 -0400
Subject: Re: any java cf'ers online?
To: CF-Talk <[EMAIL PROTECTED]>

I figured out the problem I was having earlier but now I have a new
one :)  I am getting an error message on this line:


The error message is:
null Enclosed Exception: Unable to make sense of URL for connection 
The code:


  

  
  
  
  
  
  
default="image/jpeg">
  
  
  
    

  
  
   
"org.apache.batik.transcoder.image.JPEGTranscoder")>
   
   
   
  
  
  
   
"org.apache.batik.transcoder.image.PNGTranscoder")>
  
  

   
'org.apache.crimson.parser.XMLReaderImpl')>

  
  
  
  
  

  
  

  
  
  
  

  
"org.apache.batik.transcoder.TranscoderInput")>
  
  
  
  
  
  
"org.apache.batik.transcoder.TranscoderOutput")>
  

  

  
  

 

  - Original Message - 
  From: Spike 
  To: CF-Talk 
  Sent: Wednesday, September 15, 2004 12:35 AM
  Subject: RE: any java cf'ers online?

  Yep,

  Did you have a particular question or were you running a poll ;)

  Spike

  
  Stephen Milligan
  Code poet for hire
  http://www.spike.org.uk

  Do you cfeclipse? http://cfeclipse.tigris.org 

  >-Original Message-
  >From: [EMAIL PROTECTED] 
  >[mailto:[EMAIL PROTECTED] On Behalf Of Lori
  >Sent: Tuesday, September 14, 2004 8:17 PM
  >To: CF-Talk
  >Subject: Fw: any java cf'ers online?
  >
  >Anyone out there right now that uses java with cf?
  >
  >-Lori
  >
  >
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Trouble with Two Table Query - Doh!

2004-09-15 Thread Al Everett
I think this will do what you want:


SELECT
	A.id, A.article_title, A.article_date,
	I.indus_name
FROM
	Articles A,
	Industry I
WHERE
	I.industry_id=A.indus_id
ORDER BY
	I.indus_name, A.article_date DESC



#indus_name#
	
		
		#article_title# - #DateFormat(article_date,", ")#
		
	


--- Les Mizzell <[EMAIL PROTECTED]> wrote:

> Here's a two table query (SQL Server) that's giving me a problem...
> 
> Table 1: Articles (Couple hundred of these)
> ---
> id
> article_title
> article_date
> indus_id (each article is associated with an industry)
> 
> Table 2: Industry (and there's maybe 60 industries in the table)
> 
> industry_id
> indus_name
> 
> Now, I've got no problem finding the associated articles and industries
> 
> on an individual basis, but the client wants a single index page of 
> articles grouped by industry, sorted alpha and then by article date
> like:
> 
> AUTOMOTIVE
>  article #1 - May, 1994
>  article #2 - April, 1994
>  article #3 - March, 1994
> HOUSING AND DEVELOPMENT
>  article #1 - Jan, 1994
>  article #2 - Dec, 1993
> MEDICINE
>  article #1 - June, 1993
>  article #2 - May, 1992
> 
> I keep coming up with convoluted ways of maybe doing this, but none
> seem 
> to work properly.
> 
> Pointers please?

		
___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CF Forum cheapest or free

2004-09-15 Thread Web Specialist
Thanx Massimo

great list

Cheers

- Original Message -
From: Massimo Foti <[EMAIL PROTECTED]>
Date: Wed, 15 Sep 2004 14:55:04 +0200
Subject: Re: CF Forum cheapest or free
To: CF-Talk <[EMAIL PROTECTED]>

> Do you know any? I'm looking for any CF Forum based application.
> Galleon looks like nice. More examples?
> 
http://www.adersoftware.com/index.cfm?page=cfbb
http://sourceforge.net/projects/smb/
http://sourceforge.net/projects/fbopenforums/
http://www.stickshiftsolutions.com/


Massimo Foti
http://www.massimocorner.com

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: SOT: How to apply a style sheet to a file upload bottom.

2004-09-15 Thread Sandy Clark
Go here
http://www.quirksmode.org/dom/inputfile.html

Sandy Clark
http://www.shayna.com  
CF Pretty Accessible at http://www.shayna.com/blog
Now offering 4 days Hands on CSS training October 11-14th. Rockville, MD.
For more information go to:
http://www.teratech.com/training/oc_classes.cfm#css 

  _  

From: Ewok [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 14, 2004 11:43 PM
To: CF-Talk
Subject: RE: SOT: How to apply a style sheet to a file upload bottom.

I don't see anything about the "Browse" button for a file type form field on
there. Any other button is pretty easy to set styles or use images for. Any
elements onclick could SUBMIT a form.

   _  

From: dave [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 14, 2004 5:35 PM
To: CF-Talk
Subject: RE: SOT: How to apply a style sheet to a file upload bottom.

i guess u could try this
http://dreamweaverfever.com/grow/

Form Button Fever!

This behavior will make any object a Submit or Reset button for your form.
It allows you to easily use a rollover image as a form button over even just
a text link. It was created especially for those Drumbeat users moving over
to UltraDev. I got bored of answering the question "how do I make
such-and-such a submit button" so I got busy with a behavior. 

-- Original Message --
From: "Ciliotta, Mario" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Tue, 14 Sep 2004 22:24:45 +0100

>Dave,
> 
>It is sort of what I am trying to do but I need to change the color of the
>button to match the rest of the buttons on the site.  The users want the
>buttons to be a form of blue and when you the file upload dialogue the
problem
>is that you get a gray browse button by default.
> 
>Mario
>-Original Message-
>From: dave [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, September 14, 2004 5:16 PM
>To: CF-Talk
>Subject: Re: SOT: How to apply a style sheet to a file upload bottom.
>
>
>i missed most of this as well but are u talking about doing this?
>http://www.yockeys.com/test/b.cfm
>only works in ie though
>also there is an extention that turns images into submit buttons called
submit
>form fever (i think)
>
>-- Original Message --
>From: "Bryan Stevenson" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>Date:  Tue, 14 Sep 2004 13:31:20 -0700
>
>>Sorry...late to this thread...but AFAIK there is no way (I've tried hard
in
>the past) to change the style of the BROWSE button that is produced using
an
>input of type "file"
>>
>>If there is a way of changing it...I'm all ears ;-)
>>
>>Bryan Stevenson B.Comm.
>>VP & Director of E-Commerce Development
>>Electric Edge Systems Group Inc.
>>phone: 250.480.0642
>>fax: 250.480.1264
>>cell: 250.920.8830
>>e-mail: [EMAIL PROTECTED]
>>web: www.electricedgesystems.com
>>
>> 
>  _  
>
>
>
>

   _  

[HYPERLINK "http://www.houseoffusion.com/lists.cfm/link=t:4"Todays Threads]
[HYPERLINK "http://www.houseoffusion.com/lists.cfm/link=i:4:178394"This
Message] [HYPERLINK
"http://www.houseoffusion.com/lists.cfm/link=s:4"Subscription] [HYPERLINK
"http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=678.598.4"Fast
Unsubscribe] [HYPERLINK "http://www.houseoffusion.com/signin/"User Settings]
[HYPERLINK
"https://www.paypal.com/cgi-bin/webscr?amount=&item_name=House+of+Fusion&bus
iness=donations%40houseoffusion.com&undefined_quantity=&cmd=_xclick"Donation
s and Support] 

   _  

HYPERLINK "http://www.houseoffusion.com/banners/view.cfm?bannerid=11" \n

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.759 / Virus Database: 508 - Release Date: 9/9/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.759 / Virus Database: 508 - Release Date: 9/9/2004 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Users Online, Take 2

2004-09-15 Thread Katz, Dov B (IT)
I'm not sure how java internals of cfloop/collection work, but chances
are it's dangerous to loop through a collection you are deleting/adding
items to/from.

 
Perhaps change to CFLOOP list=StructKeyList(application.UsersInof)  and
then retreive the item if it's there...  

 
Also, How do you keep the person "online"... it seems like the following
undesirable timeline is possible:

 
8:00 User logs in, gets a now() timestamp
8:14 User hits a page.  Since still has a timestamp, nothing happens
8:16 User is deleted, since the 8:00 stamp expired, even though user hit
2 minutes ago...

 
You should update a user's timestamp on each hit... I'd write it like
this:

 
when user logs in, 




 
Then whenever a user hits the page, you have 




 
Since session.stamp is a reference to a struct, which also exists in
application.usersinfo, it doesnt get destroyed with the session

 
Just a thought
HTH
d

 
Dov Katz
Enterprise & Client Technology
Morgan Stanley
 

  _  

From: Sung Woo [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 9:15 AM
To: CF-Talk
Subject: Users Online, Take 2

So I've finally gotten around to rewriting the "who is online?" portion
of my site, and it turns out that I didn't have to do much rewriting at
all.  The script below was using CFID to keep track, which, as many
people pointed out, was not a good idea.  I keep a session variable
(session.UserID) in my application, so this was a much better idea.  So
the script is as follows:





     
 
 
 
     
 
 
     

session.UserID)> 

now())>
 
     

 
     


GT 15>
     
 
 
     



My question involves the StructDelete portion of the code, namely:

 
     


GT 15>
     
 
 
     


I have this script in the application.cfm file, which means this loop is
activated with every single click.  Sure, it isn't that much load, but I
don't see any reason why this should kick in so often.  So I cut it out
of the application.cfm file and created a separate file, called
cleanup_online_users.cfm.  Then I used Scheduled Tasks to schedule this
snippet of code -- and it doesn't work.  It's very strange -- if I run
it manually, it doesn't work, either.  However, if I manually run it AND
THEN force a refresh, it works.  I was wondering if CF was somehow
caching this page, so I changed the page to this:





cleanup








 
     


GT 15>
     
 
 
     





Still doesn't work.  The only way to make it work is if I load it
manually and then refresh.  What am I doing wrong?

I'm running Win2K & CFMX 6.1.

- Sung 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: any java cf'ers online?

2004-09-15 Thread Lori
DOH!  Thanks.  It is all working now.  
-Lori

- Original Message - 
  From: Qasim Rasheed 
  To: CF-Talk 
  Sent: Wednesday, September 15, 2004 9:14 AM
  Subject: Re: any java cf'ers online?

  Lori,

  Even though I am not familiar with this particular package that you
  are working with, here is what seem kind of confusing to me.

  
  
  

  For all these above functions, you are passing strings, shouldn't you
  be passing the actual value i.e instead of this 
  input.init('svgURI')>, this 

  Qasim

  - Original Message -
  From: Lori <[EMAIL PROTECTED]>
  Date: Wed, 15 Sep 2004 08:17:33 -0400
  Subject: Re: any java cf'ers online?
  To: CF-Talk <[EMAIL PROTECTED]>

  I figured out the problem I was having earlier but now I have a new
  one :)  I am getting an error message on this line:
  

  The error message is:
  null Enclosed Exception: Unable to make sense of URL for connection 
  The code:
  

    
  
    
    
    
    
    
    
  default="image/jpeg">
    
    
    
  

    
    
 
  "org.apache.batik.transcoder.image.JPEGTranscoder")>
 
 
 
    
    
    
 
  "org.apache.batik.transcoder.image.PNGTranscoder")>
    
    

 
  'org.apache.crimson.parser.XMLReaderImpl')>

    
    
    
    
    

    
    

    
    
    
    

    
  "org.apache.batik.transcoder.TranscoderInput")>
    
    
    
    
    
    
  "org.apache.batik.transcoder.TranscoderOutput")>
    

    

    
    
  
   

    - Original Message - 
    From: Spike 
    To: CF-Talk 
    Sent: Wednesday, September 15, 2004 12:35 AM
    Subject: RE: any java cf'ers online?

    Yep,

    Did you have a particular question or were you running a poll ;)

    Spike

    
    Stephen Milligan
    Code poet for hire
    http://www.spike.org.uk

    Do you cfeclipse? http://cfeclipse.tigris.org 

    >-Original Message-
    >From: [EMAIL PROTECTED] 
    >[mailto:[EMAIL PROTECTED] On Behalf Of Lori
    >Sent: Tuesday, September 14, 2004 8:17 PM
    >To: CF-Talk
    >Subject: Fw: any java cf'ers online?
    >
    >Anyone out there right now that uses java with cf?
    >
    >-Lori
    >
    >
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Read directory

2004-09-15 Thread Patrick McGeehan
Asim,

 
Yes the upper in the order by should work fine.

 
Patrick

Patrick McGeehan 

Applications Developer

DIT

#mcg#

-Original Message-
From: Asim Manzur [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 1:02 AM
To: CF-Talk
Subject: Re: Read directory

I think I resolved it.

 
select UPPER(name) as fsort, * from eng1
where eng1.name in ('#replace(valuelist(fre1.name), ",", "','","all")#')

ORDER by fsort ASC
 

is that right?

> one more thing I have to resove in this issue is I need those filename

> sorted alphabetically.
> 
> I try to use the ORDER BY eng1.name ASC
> 
> but in the middle of the page somewhere its finished on 'Z' and then 
> start again from 'A' (that start is unique, i.e. not repeating).
> 
> I don't know where I am doing wrong, also could you please mentioned 
> that which query should I output to get the filenames which are in 
> both directory?
> 
> 
> 
> 
> 
> 
> sort="name"> 
> 
> sort="name"> 
> 
>  
> select * from eng1, fre1
> where fre1.name = eng1.name 
>  
>  
> select * from eng1
> where eng1.name in ('#replace(valuelist(fre1.name), ",", "','",
> "all")#') 
> ORDER by eng1.name ASC
>  
> 
>  
> select * from fre1
> where fre1.name in ('#replace(valuelist(eng1.name), ",", "','",
> "all")#')
> ORDER by fre1.name ASC 
>  
> 
> and then I output the query "f_notin_e" ( I've dump both and it looks 
> both are generating the same output i.e. "f_notin_e" & "e_notin_f"
> 
> please advise that which query should I output and the filenames are 
> not sorted.
> 
> thanks
> 
> 
> 
> 
> > Thank alot for help.
> > it was a map drive and I was trying to access that directory from my

> 
> > local machine, in that case the structure was empty.
> > When I put the codes on server(then it becomes a local drive) and it

> 
> > gave me the required output.
> > 
> > thanks once again.
> > - 
Asim 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Basics Clarification

2004-09-15 Thread Stephen Moretti (cfmaster)
Dave Watts wrote:

> > Originally you had to do your cfifs this way back in version 2 land.
>
> Well, actually, I'm pretty sure that they weren't even needed then. 
> However,
> no one had really figured out appropriate usage for them yet.

I think you're probably right.  I vaguely remember there being some 
times that you had to use hashes around variables in conditions, but, it 
is so long ago now, who knows or even really cares. ;)
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Trouble with Two Table Query - Doh!

2004-09-15 Thread Philip Arnold
On Wed, 15 Sep 2004 06:23:25 -0700 (PDT), Al Everett wrote:
>
> 
> #indus_name#
>
>    
>    #article_title# - #DateFormat(article_date,", ")#
>    
>
> 

Don't you mean "group" rather than "query" on the inner CFOUTPUT?

Oh, and why not use a JOIN rather than doing it in the WHERE?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Basics Clarification

2004-09-15 Thread Jim Davis
I reverse the issue - instead of a "don't" I use an "only" - as in "only use
hashes to specify a variable/_expression_ in a string."

That's really the only time you need it (remembering that CFOUTPUT really
encloses a string as well).  So the following is legal but not "good":





The following is "good":





Now in my tag-based, html-influenced way of writing I tend to also quote all
attributes so that adds a slightly new dimension to the argument.  For
example I generally do this:



It still meets my definition (I'm hashing "x" to specify the variable within
a string).  However other might are argue that the following is "good":



As for performance I don't think there's any performance difference in any
version - and if there were in previous versions I would say with blind
confidence that there isn't in MX.

It's purely a stylistic issue as far as I can see, important to people, not
the machine.  No different (but no less important to some) than indenting
"properly", for example.

Jim Davis

From: Steve Brownlee [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 8:38 AM
To: CF-Talk
Subject: Basics Clarification

We've all said it a million times - don't use the hashes inside a CF tag
that
processes on its own.




But one thing I've always wondered is why.  I know doing this is wrong from
years of seeing people scream at developers who do it, but I never heard an
explanation as to what problems this causes.  Anyone know the guts behind
this?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Intel HyperThreading

2004-09-15 Thread Jacob
Well.. The newest CF servers we have are:

SuperMicro 6013P
Dual Xeon 3.4 Ghz, 800 MHz FSB, 1MB L2 Cahce with HT
4 GB PC3200 Ram
1 Seagate U320 15K RPM 18GB
1 Seagate U320 10K RPM 146GB

About $3500 and Kicks @$$!

We have always used dual CPUs on our CF servers.  I have noticed a major 
performance increase with CF server having one CPU.  With dual CPUs, you 
can increase simultaneous requests in CF. And with Dual CPUs with HT, even 
more.

HTH
Jacob

At 05:31 PM 9/14/2004, you wrote:
>Thanks Jim,
>
>I am now considering dual processors - just not sure and want to get
>as much feedback as possible before diving into putting the new system
>together. I am hoping to order parts Thursday and build this weekend.
>
>If anyone has ANY comments on their system and what kind of
>performance you get please feel free to post - or email me off list.
>
>Thanks again,
>Donna
>
>- Original Message -
>From: Jim Davis <[EMAIL PROTECTED]>
>Date: Tue, 14 Sep 2004 19:04:07 -0400
>Subject: RE: Intel HyperThreading
>To: CF-Talk <[EMAIL PROTECTED]>
>
>I like it - it definitely improves performance response time when using
>multiple applications.   But really only for those applications tuned to
>multi-processor performance to begin with.
>
>CF won't benefit nearly as much as it will from dual CPUs (a dual PIII 1000
>would I think give a single P4 3Gh HT at least a run for it's money if not
>beat it outright under load - and probably costs about the same), but it
>will definitely benefit.  My workstation is a P4 3.06 GHz with HT enabled
>and my development server is a Dual PIII 1000 (running at 1100).
>
>This doesn't really have anything to do with memory however - just
>performance.  HT won't do anything to help a memory hog - only more memory
>will do that.  If it's a choice for CF always go with with more memory
>rather than a faster processor (in general).
>
>Jim Davis
>
>From: Donna French [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, September 14, 2004 6:20 PM
>To: CF-Talk
>Subject: OT: Intel HyperThreading
>
>Okay - I fried my motherboard last weekend and have decided to build a
>new system instead of replacing the old one. I've been running a
>950MHz with 1 Gig of RAM for a WHILE now, and I am READY for some
>speed now.
>
>I had in mind to build a P4 3.0GHz and have been looking at the
>HyperThreading technology. Heard it's great for memory hawgs like CFMX
>and the like.
>
>Anyone else using Intel HT technology? Any comments/suggestions
>welcome.
>
>--
>[Todays Threads] 
>[This Message] 
>[Subscription] 
>[Fast 
>  Unsubscribe] [User Settings] 
>[Donations 
>and Support]
>
>--
>
>[]
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Intel HyperThreading

2004-09-15 Thread Jim Davis
I, for one, really miss my dually desktop. ;^)

Remember that while most desktop apps are not able to fully to take
advantage of dual CPUs you are far more likely to be running multiple apps
at once on a desktop.  There's an odd feeling of power on a dually: even
while doing something processor intensive like encoding video I could click
on Outlook and it would open immediately.  So very sweet.

On a single processor machine you hear some thrashing, then, maybe the
Outlook frame opens. then a minute later you see the interface. then a few
minutes later you can click something.  HyperThreading improves this kind of
thing pretty dramatically, but not close to as much as true dual CPUs do.

But in short if you multi-task a lot (and what developer doesn't?) then dual
CPUs on the desktop can increase response time dramatically (although it
doesn't generally make any individual task run any faster at all).

At the same time there are issues - a minor one, for example, is that if
you're using Windows XP you'll need Professional, not home, to take
advantage of dual CPUs.  Also if heat is a problem in your area then
remember that you'll have two space heaters trying to fry your drives in a
dually.  Power consumption goes up as well.

Lastly you'll also find that most of the motherboards available for dually -
especially modern ones - are almost all skewed towards server usage.  You'll
find few PCI slots (but a lot of PCI 64 slots), lots of built in SCSI and
very few consumer additions like firewire and 802.11.  Also these boards
tend to be more expensive and if you want to go the Intel route then you're
stuck with more expensive Xeon CPUs since regular P4s have been dual-locked
and won't work.

If you're willing to go back in time however then your options open up -
find an old Soyo VP6 motherboard, maybe some Taulitin converters and a
coupla PIII 1.3 Ghz. it'll make for a smoking server or workstation (as long
as you don't overload the PCI bus. a problem on the VP6) and the cost should
be reasonable.

You might also wait until next year and see how things play out: both Intel
and AMD are pushing heavily on dual-core chips (single chips sporting two
CPU cores, two sets of L2 cache and single memory controllers).  Intel has
recently announced, retroactively, that Hyperthreading was just a step in
this direction and got application designers used to thinking in these terms
- by the end of next year they've intimated that all their chips will be
multi-core - even their mobile chips.

Jim Davis

From: Mark W. Breneman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 8:10 AM
To: CF-Talk
Subject: RE: Intel HyperThreading

Donna, are you replacing a desktop or a server? If you are replacing a
desktop I would not go with a dual CPU. Unless you have some mad money just
sitting around. Your desk top apps are more then likely not written to take
advantage of dual CPUs.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Oracle Stored Procedures

2004-09-15 Thread Janet Schmitt
Scott -

This test would fail because you did not pass a parameter to the procedure 
that is expecting.  It is not the same situation as in your CF code.  To 
adequately test this, you need to set up the call to the procedure from 
SQL*Plus that passes in a refcursor parameter.

Janet.

At 03:42 PM 9/14/2004 -0400, you wrote:
>Adam,
>I am thinking you may be right based on my last post regarding the
>EXECUTE privilege.
>
>
>Running it from SQL*PLUS has the same results:
>
>
>SQL> exec test01.testpckg;
>BEGIN test01.testpckg; END;
>
>
>   *
>ERROR at line 1:
>ORA-06550: line 1, column 7:
>PLS-00306: wrong number or types of arguments in call to 'TESTPCKG'
>ORA-06550: line 1, column 7:
>PL/SQL: Statement ignored
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Dynamically creating distribution lists

2004-09-15 Thread Rick Root
Has anyone here ever used Coldfusion via a com object or some other 
method to dynamically create distribution lists in Exchange server?

  - Rick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Dynamically creating distribution lists

2004-09-15 Thread Dawson, Michael
I created a COM object to create user accounts, with mailboxes, on our
Win2k3 AD and Exchange servers.  I would suspect that the dist lists
(dist groups) would be quite similar and probably much easier.

 
Look for ADSI scripts.  You can easily create a COM object that CF can
consume.

 
Roland Collins gave me quite a bit of support, so I would be glad to
pass some of that on to anyone else, as well.

 
Thanks
MAD



From: Rick Root [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 9:49 AM
To: CF-Talk
Subject: Dynamically creating distribution lists

Has anyone here ever used Coldfusion via a com object or some other 
method to dynamically create distribution lists in Exchange server?

  - Rick 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Intel HyperThreading

2004-09-15 Thread Russell Patterson
Jim,

I am going to have to agree with you!

Russell Patterson
  - Original Message - 
  From: Jim Davis 
  To: CF-Talk 
  Sent: Wednesday, September 15, 2004 9:14 AM
  Subject: RE: Intel HyperThreading

  I, for one, really miss my dually desktop. ;^)

  Remember that while most desktop apps are not able to fully to take
  advantage of dual CPUs you are far more likely to be running multiple apps
  at once on a desktop.  There's an odd feeling of power on a dually: even
  while doing something processor intensive like encoding video I could click
  on Outlook and it would open immediately.  So very sweet.

  On a single processor machine you hear some thrashing, then, maybe the
  Outlook frame opens. then a minute later you see the interface. then a few
  minutes later you can click something.  HyperThreading improves this kind of
  thing pretty dramatically, but not close to as much as true dual CPUs do.

  But in short if you multi-task a lot (and what developer doesn't?) then dual
  CPUs on the desktop can increase response time dramatically (although it
  doesn't generally make any individual task run any faster at all).

  At the same time there are issues - a minor one, for example, is that if
  you're using Windows XP you'll need Professional, not home, to take
  advantage of dual CPUs.  Also if heat is a problem in your area then
  remember that you'll have two space heaters trying to fry your drives in a
  dually.  Power consumption goes up as well.

  Lastly you'll also find that most of the motherboards available for dually -
  especially modern ones - are almost all skewed towards server usage.  You'll
  find few PCI slots (but a lot of PCI 64 slots), lots of built in SCSI and
  very few consumer additions like firewire and 802.11.  Also these boards
  tend to be more expensive and if you want to go the Intel route then you're
  stuck with more expensive Xeon CPUs since regular P4s have been dual-locked
  and won't work.

  If you're willing to go back in time however then your options open up -
  find an old Soyo VP6 motherboard, maybe some Taulitin converters and a
  coupla PIII 1.3 Ghz. it'll make for a smoking server or workstation (as long
  as you don't overload the PCI bus. a problem on the VP6) and the cost should
  be reasonable.

  You might also wait until next year and see how things play out: both Intel
  and AMD are pushing heavily on dual-core chips (single chips sporting two
  CPU cores, two sets of L2 cache and single memory controllers).  Intel has
  recently announced, retroactively, that Hyperthreading was just a step in
  this direction and got application designers used to thinking in these terms
  - by the end of next year they've intimated that all their chips will be
  multi-core - even their mobile chips.

  Jim Davis

  From: Mark W. Breneman [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, September 15, 2004 8:10 AM
  To: CF-Talk
  Subject: RE: Intel HyperThreading

  Donna, are you replacing a desktop or a server? If you are replacing a
  desktop I would not go with a dual CPU. Unless you have some mad money just
  sitting around. Your desk top apps are more then likely not written to take
  advantage of dual CPUs.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Users Online, Take 2

2004-09-15 Thread Sung Woo
Hi Dov,

I think the CFLOOP via COLLECTION is similar to what you propose with the LIST -- at least that's what the documentation tells me.

The number of threads on my machine usually hovers around 54.  Just now, it jumped to 96!  I took the CFLOOP out, and now it's back to 54.  So I still need to find a solution to this problem.

I like what you propose -- I'll give it a shot -- but meanwhile, I'm still confused about why my scheduled tasks to clean up the "dead" users doesn't work...

- Sung

>I'm not sure how java internals of cfloop/collection work, but chances
>are it's dangerous to loop through a collection you are deleting/adding
>items to/from.
> 
>Perhaps change to CFLOOP list=StructKeyList(application.UsersInof)  and
>then retreive the item if it's there...  
> 
>Also, How do you keep the person "online"... it seems like the following
>undesirable timeline is possible:
> 
>8:00 User logs in, gets a now() timestamp
>8:14 User hits a page.  Since still has a timestamp, nothing happens
>8:16 User is deleted, since the 8:00 stamp expired, even though user hit
>2 minutes ago...
> 
>You should update a user's timestamp on each hit... I'd write it like
>this:
> 
>when user logs in, 
>
>
>
> 
>Then whenever a user hits the page, you have 
>
>
>
> 
>Since session.stamp is a reference to a struct, which also exists in
>application.usersinfo, it doesnt get destroyed with the session
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Data Visualization

2004-09-15 Thread Don
Pretty cool.  What tool combination that you used to create them?  Thanks.

>>>Has anyone worked on data visualization technique(s) with CF/CFMX?
>
>Hi, just released a new tag today, and I think it falls in this category.
>See CFX_mapData here:
>http://www.contentbox.com/claude/customtags/mapData/viewmapData.cfm?p=hf
>
>--
>___
>REUSE CODE! Use custom tags;
>See http://www.contentbox.com/claude/customtags/tagstore.cfm
>(Please send any spam to this address: [EMAIL PROTECTED])
>Thanks.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: cffile write question, sending but not parsing cf code

2004-09-15 Thread mayo
Andrew,

Thx but I'm still not getting what I'm looking for.

I need to include an unparsed variable in CFFILE.
I would like to do something like


 action=''
 file='someFile'
 output='






 Some Title
 


...



'>

Thanks,

Gil



  -Original Message-
  From: Andrew Dixon [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 15, 2004 2:30 AM
  To: CF-Talk
  Subject: Re: cffile write question, sending but not parsing cf code

  Not sure I have understood this right, but I assume the file you are
  trying create a CF Script, but remove the database call. In that case,
  you can put all your bits of script into a variable and than right
  that variable. The script will not be processed by CFFILE, for
  example:

  
  
  

  This will create the CF script and when called the CF parts will be
processed.

  Andrew.

  - Original Message -
  From: mayo <[EMAIL PROTECTED]>
  Date: Wed, 15 Sep 2004 00:08:03 -0400
  Subject: cffile write question, sending but not parsing cf code
  To: CF-Talk <[EMAIL PROTECTED]>

  I'm using cffile to allow a magazine site to publish articles and not have
a
  db call everytime an article is selected. Is there anyway (aside from
  includes) that I can use send up cf code such as CGI.path_info without it
  being parsed when the cffile is being written?

  Example:

  For example /admin/createFile.cfm creates a file called
  /stories/2004-1234.cfm

  I would like CGI.path_info to display

  /stories/2004-1234.cfm not /admin/createFile.cfm

  I also would like to be able to have

   etc... processed when the article is requested by the user and not
  when the CFFILE is executed.

  thx, hope this is understandable

  Gil
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Basics Clarification

2004-09-15 Thread Claude Schneegans
>>But one thing I've always wondered is why.

IMHO it's simply logic:
the purpose of # delimiter is to specify that an _expression_ inside should be evaluated
when it is not implied by context.
Inside a CFIF, the content cannot be something else, then # are just useless.
Furthermore, I would think that the interpreter will need a couple more steps to get to the
same result.

--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




[structures] How would you do this?

2004-09-15 Thread Phill B
I'm trying to put some picture info into a variable that will be easy
for the designers to use.

I have to query a database to get specific images. I then tweak the
results and want to put them into a variable similar to this.

FeaturesOptions.image1.fileLocation = http://www.asdf.com/asdf.jpg
FeaturesOptions.image1.fileTitle = cool picture
FeaturesOptions.image1.fileDescription = this is a description of the
cool picture
FeaturesOptions.image2.fileLocation = http://www.asdf.com/cvbxb.jpg
FeaturesOptions.image2.fileTitle = cool picture 2
FeaturesOptions.image2.fileDescription = this is another description
of a cool picture

Once they are like this the designer can loop through the variables to
output what they need.

I've tried to do this using a structure but I can't seem to make it
work. I am looping over the results of a query and trying to
dynamically name the structure that I'm putting values into and no
matter what I do it won't work.

Any suggestion? I can give some code if it will help.

-- 
Phillip B.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Data Visualization

2004-09-15 Thread Claude Schneegans
>>What tool combination that you used to create them?

You mean to create the images? see CFX_mapData here:
http://www.contentbox.com/claude/customtags/mapData/viewmapData.cfm?p=hf

You mean to create CFX_mapData? VC++ 5.0

--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Users Online, Take 2

2004-09-15 Thread Sung Woo
Just found my stupid mistake -- the file was pulling in application.cfm, so it must've been pulling up the login page instead.  Makes sense why it would run when I ran it manually (since I was already logged in).  I moved the file to a non-application.cfm-enabled directory, and now it works just fine...
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Major Driver problems

2004-09-15 Thread Alisa Thomson
Is anyone else out there using Sybase??? We are TRYING to upgrade to CFMX from CF5 (running on Solaris with Sybase 12.5) and we are running into major issues with database drivers. I have tried the driver that ships with CFMX and I ran into big problems including not being able to use output parameters in my stored procedure calls. So, I tried Sybase's jConnect and I receive a NullPointerException if my query includes a user-defined type which is a char. It is not the driver because the same query works fine from Java, but when I run it through CF...NullPointerException. It works fine on queries that are defined as char directly, but not user-defined datatypes. My question is what driver is recommended and has anyone else upgraded with a similar setup?  At this rate we will not be able to upgrade
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Basics Clarification

2004-09-15 Thread Andrew Dixon
Try reading this article by the mighty Ben Forta. It is titled:

"To # or not to #"

http://www.defusion.com/articles/index.cfm?ArticleID=26

Andrew

- Original Message -
From: Claude Schneegans <[EMAIL PROTECTED]>
Date: Wed, 15 Sep 2004 11:24:24 -0400
Subject: Re: Basics Clarification
To: CF-Talk <[EMAIL PROTECTED]>

>>But one thing I've always wondered is why.

 IMHO it's simply logic:
 the purpose of # delimiter is to specify that an _expression_ inside
should be evaluated
 when it is not implied by context.
 Inside a CFIF, the content cannot be something else, then # are just useless.
 Furthermore, I would think that the interpreter will need a couple
more steps to get to the
 same result.

 --
 ___
 REUSE CODE! Use custom tags;
 See http://www.contentbox.com/claude/customtags/tagstore.cfm
 (Please send any spam to this address: [EMAIL PROTECTED])
 Thanks.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




OT- SQL PADDING QUESTION

2004-09-15 Thread Eric Creese
I forget how to do this, it has been some time. I got values that need to be at least 7 characters long. So if the value is 552, I need to pad it out to look like this 552 in my return set. Can anyone out there refresh my memory please.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Intel HyperThreading

2004-09-15 Thread Jochem van Dieten
Donna French wrote:
> 
> I am now considering dual processors - just not sure and want to get
> as much feedback as possible before diving into putting the new system
> together. I am hoping to order parts Thursday and build this weekend.
> 
> If anyone has ANY comments on their system and what kind of
> performance you get please feel free to post - or email me off list.

For CF servers I would always recommend using at least two 
processors.

For years the configuration of choice has been AMD processors 
with a Tyan mainboard (in fact, we even use Tyan dual CPU boards 
with OpenBSD, which doesn't do SMP (yet)). With the arrival of 
the Opteron the preference for AMD has only increased. Opterons 
offer per-page memory protection, which offers significant 
security advantages on operating systems that know how to use it. 
And the only processor from Intel offering that is the Itanium.

Jochem
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Intel HyperThreading

2004-09-15 Thread Mark W. Breneman
I guess I should have qualified what I said by saying that HT is more or
less dual CPU emulation.

 
I would gladly take a dual CPU system for a development workstation in a
heart beat. but, I just don't want to pay for one. :-) I guess that is my
point / question. 

 
Are the advantages of a dual CPU workstation enough to justify the cost? 

 
Mark W. Breneman
-Cold Fusion Developer
-Network Administrator
  Vivid Media
  [EMAIL PROTECTED]
  www.vividmedia.com  
  608.270.9770

  _  

From: Russell Patterson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 10:09 AM
To: CF-Talk
Subject: Re: Intel HyperThreading

Jim,

I am going to have to agree with you!

Russell Patterson
  - Original Message - 
  From: Jim Davis 
  To: CF-Talk 
  Sent: Wednesday, September 15, 2004 9:14 AM
  Subject: RE: Intel HyperThreading

  I, for one, really miss my dually desktop. ;^)

  Remember that while most desktop apps are not able to fully to take
  advantage of dual CPUs you are far more likely to be running multiple apps
  at once on a desktop.  There's an odd feeling of power on a dually: even
  while doing something processor intensive like encoding video I could
click
  on Outlook and it would open immediately.  So very sweet.

  On a single processor machine you hear some thrashing, then, maybe the
  Outlook frame opens. then a minute later you see the interface. then a few
  minutes later you can click something.  HyperThreading improves this kind
of
  thing pretty dramatically, but not close to as much as true dual CPUs do.

  But in short if you multi-task a lot (and what developer doesn't?) then
dual
  CPUs on the desktop can increase response time dramatically (although it
  doesn't generally make any individual task run any faster at all).

  At the same time there are issues - a minor one, for example, is that if
  you're using Windows XP you'll need Professional, not home, to take
  advantage of dual CPUs.  Also if heat is a problem in your area then
  remember that you'll have two space heaters trying to fry your drives in a
  dually.  Power consumption goes up as well.

  Lastly you'll also find that most of the motherboards available for dually
-
  especially modern ones - are almost all skewed towards server usage.
You'll
  find few PCI slots (but a lot of PCI 64 slots), lots of built in SCSI and
  very few consumer additions like firewire and 802.11.  Also these boards
  tend to be more expensive and if you want to go the Intel route then
you're
  stuck with more expensive Xeon CPUs since regular P4s have been
dual-locked
  and won't work.

  If you're willing to go back in time however then your options open up -
  find an old Soyo VP6 motherboard, maybe some Taulitin converters and a
  coupla PIII 1.3 Ghz. it'll make for a smoking server or workstation (as
long
  as you don't overload the PCI bus. a problem on the VP6) and the cost
should
  be reasonable.

  You might also wait until next year and see how things play out: both
Intel
  and AMD are pushing heavily on dual-core chips (single chips sporting two
  CPU cores, two sets of L2 cache and single memory controllers).  Intel has
  recently announced, retroactively, that Hyperthreading was just a step in
  this direction and got application designers used to thinking in these
terms
  - by the end of next year they've intimated that all their chips will be
  multi-core - even their mobile chips.

  Jim Davis

  From: Mark W. Breneman [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, September 15, 2004 8:10 AM
  To: CF-Talk
  Subject: RE: Intel HyperThreading

  Donna, are you replacing a desktop or a server? If you are replacing a
  desktop I would not go with a dual CPU. Unless you have some mad money
just
  sitting around. Your desk top apps are more then likely not written to
take
  advantage of dual CPUs. 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Major Driver problems

2004-09-15 Thread Dave Watts
> Is anyone else out there using Sybase??? We are TRYING to upgrade to
> CFMX from CF5 (running on Solaris with Sybase 12.5) and we are running
> into major issues with database drivers. I have tried the driver that
> ships with CFMX and I ran into big problems including not being able to
> use output parameters in my stored procedure calls.

I don't know if it'll fix this specific problem, but I would recommend that
you try the latest MM driver, which is available as a hotfix or as part of
the CFMX 6.1 Updater.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: OT- SQL PADDING QUESTION

2004-09-15 Thread Cornillon, Matthieu (Consultant)
SELECT MyNumber, TO_CHAR(MyNumber,'000')
FROM NUMBERS

 
returns:

 
1, 001
552,552
1234567,1234567

 
HTH,
Matthieu

-Original Message-
From: Eric Creese [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 11:33 AM
To: CF-Talk
Subject: OT- SQL PADDING QUESTION

I forget how to do this, it has been some time. I got values that need to be
at least 7 characters long. So if the value is 552, I need to pad it out to
look like this 552 in my return set. Can anyone out there refresh my
memory please. 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: OT- SQL PADDING QUESTION

2004-09-15 Thread Eric Creese
thanks I alo found a UDF that works and is pretty usefull as well.

 
here is the link.

 
http://www.databasejournal.com/scripts/article.php/3385491

-Original Message-
From: Cornillon, Matthieu (Consultant) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 10:54 AM
To: CF-Talk
Subject: RE: OT- SQL PADDING QUESTION

SELECT MyNumber, TO_CHAR(MyNumber,'000')
FROM NUMBERS

returns:

1, 001
552,552
1234567,1234567

HTH,
Matthieu

-Original Message-
From: Eric Creese [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 11:33 AM
To: CF-Talk
Subject: OT- SQL PADDING QUESTION

I forget how to do this, it has been some time. I got values that need to be
at least 7 characters long. So if the value is 552, I need to pad it out to
look like this 552 in my return set. Can anyone out there refresh my
memory please. 
  _ 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: [structures] How would you do this?

2004-09-15 Thread Barney Boisvert
I'd use an array of structures, personally.

images[n].fileLocation = "";
images[n].fileTitle = "";
images[n].fileDescription = "";

Arrays lend themselves to looping better than structures, because the
order of elements returned in a structure loop is undefined.  Arrays
will always return in the same order.  I heard rumors that the
undefined order was actually a bug, but I don't know if that was true,
or if it's been fixed.  Building it with an array is pretty easy as
well:



  
  
  
  
  


cheers,
barneyb

On Wed, 15 Sep 2004 10:25:07 -0500, Phill B <[EMAIL PROTECTED]> wrote:
> I'm trying to put some picture info into a variable that will be easy
> for the designers to use.
> 
> I have to query a database to get specific images. I then tweak the
> results and want to put them into a variable similar to this.
> 
> FeaturesOptions.image1.fileLocation = http://www.asdf.com/asdf.jpg
> FeaturesOptions.image1.fileTitle = cool picture
> FeaturesOptions.image1.fileDescription = this is a description of the
> cool picture
> FeaturesOptions.image2.fileLocation = http://www.asdf.com/cvbxb.jpg
> FeaturesOptions.image2.fileTitle = cool picture 2
> FeaturesOptions.image2.fileDescription = this is another description
> of a cool picture
> 
> Once they are like this the designer can loop through the variables to
> output what they need.
> 
> I've tried to do this using a structure but I can't seem to make it
> work. I am looping over the results of a query and trying to
> dynamically name the structure that I'm putting values into and no
> matter what I do it won't work.
> 
> Any suggestion? I can give some code if it will help.
> 
> --
> Phillip B.
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Basics Clarification

2004-09-15 Thread S . Isaac Dealey
> We've all said it a million times - don't use the hashes
> inside a CF tag that
> processes on its own.

> 
> 

> But one thing I've always wondered is why.  I know doing
> this is wrong from
> years of seeing people scream at developers who do it, but
> I never heard an
> explanation as to what problems this causes.  Anyone know
> the guts behind
> this?

I've never personally seen it cause a problem (and I've seen a lot of
it). Not sure what problems it causes or when -- I think that by now
most of the issues with it have been weeded out of recent versions of
the server. I've never seen anyone honestly bawled out for it... My
own dislike of it is because I find the code harder to read with the
extra symbols.

s. isaac dealey   954.927.5117

new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework
http://www.sys-con.com/story/?storyid=44477&DE=1
http://www.sys-con.com/story/?storyid=45569&DE=1
http://www.fusiontap.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: [structures] How would you do this?

2004-09-15 Thread Phill B
I figured it out. 

On Wed, 15 Sep 2004 10:25:07 -0500, Phill B <[EMAIL PROTECTED]> wrote:
> I'm trying to put some picture info into a variable that will be easy
> for the designers to use.
> 
> I have to query a database to get specific images. I then tweak the
> results and want to put them into a variable similar to this.
> 
> FeaturesOptions.image1.fileLocation = http://www.asdf.com/asdf.jpg
> FeaturesOptions.image1.fileTitle = cool picture
> FeaturesOptions.image1.fileDescription = this is a description of the
> cool picture
> FeaturesOptions.image2.fileLocation = http://www.asdf.com/cvbxb.jpg
> FeaturesOptions.image2.fileTitle = cool picture 2
> FeaturesOptions.image2.fileDescription = this is another description
> of a cool picture
> 
> Once they are like this the designer can loop through the variables to
> output what they need.
> 
> I've tried to do this using a structure but I can't seem to make it
> work. I am looping over the results of a query and trying to
> dynamically name the structure that I'm putting values into and no
> matter what I do it won't work.
> 
> Any suggestion? I can give some code if it will help.
> 
> --
> Phillip B.
> 

-- 
Phillip B.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Brain Fart...GetTemplatePath(), I don't want it *all*

2004-09-15 Thread Jeff Small
When I output GetTemplatePath() on my home page, I see:
C:\Inetpub\wwwroot\MySite\index.cfm

When I'm on the Gallery page, naturally, I see:
C:\Inetpub\wwwroot\MySite\Gallery\index.cfm

I'd love to be able to trim everything from here:
C:\Inetpub\wwwroot\MySite\

and be left with:
"index.cfm"
or "Gallery\index.cfm"

Because I'd like to be able to put a little "email a friend this page" link 
and just dynamically add the path beyond http://www.MySite.com/ 
(http://www.MySite.com/Gallery/index.cfm, and 
http://www.MySite.com/index.cfm) which GetFileFromPath() won't return. It'll 
just return "index.cfm" no matter what directory I'm in, naturally.

So, does this make sense? I know it's a simple solution that's just escaping 
me right now.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Basics Clarification

2004-09-15 Thread Charlie Griefer
On Wed, 15 Sep 2004 12:01:29 -0400, S. Isaac Dealey <[EMAIL PROTECTED]> wrote:
> > We've all said it a million times - don't use the hashes
> > inside a CF tag that
> > processes on its own.
> 
> > 
> > 
> 
> > But one thing I've always wondered is why.  I know doing
> > this is wrong from
> > years of seeing people scream at developers who do it, but
> > I never heard an
> > explanation as to what problems this causes.  Anyone know
> > the guts behind
> > this?

guts: http://www.defusion.com/articles/index.cfm?ArticleID=26 :)

-- 
Charlie Griefer


Marta was watching the football game with me when she said, 
"You know, most of these sports are based on the idea of one group 
protecting its territory from invasion by another group." 
"Yeah," I said, trying not to laugh. Girls are funny.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Brain Fart...GetTemplatePath(), I don't want it *all*

2004-09-15 Thread Barney Boisvert
How about cgi.script_name instead?  That should give you what you need.

cheers,
barneyb

On Wed, 15 Sep 2004 12:05:32 -0400, Jeff Small <[EMAIL PROTECTED]> wrote:
> When I output GetTemplatePath() on my home page, I see:
> C:\Inetpub\wwwroot\MySite\index.cfm
> 
> When I'm on the Gallery page, naturally, I see:
> C:\Inetpub\wwwroot\MySite\Gallery\index.cfm
> 
> I'd love to be able to trim everything from here:
> C:\Inetpub\wwwroot\MySite\
> 
> and be left with:
> "index.cfm"
> or "Gallery\index.cfm"
> 
> Because I'd like to be able to put a little "email a friend this page" link
> and just dynamically add the path beyond http://www.MySite.com/
> (http://www.MySite.com/Gallery/index.cfm, and
> http://www.MySite.com/index.cfm) which GetFileFromPath() won't return. It'll
> just return "index.cfm" no matter what directory I'm in, naturally.
> 
> So, does this make sense? I know it's a simple solution that's just escaping
> me right now.
> 
-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CF Forum cheapest or free

2004-09-15 Thread S . Isaac Dealey
http://www.fusiontap.com/forum

it's not publicly available - yet ... I'm waiting on someone who's
creating a logo for the framework

> Thanx Massimo

> great list

> Cheers

> - Original Message -
> From: Massimo Foti <[EMAIL PROTECTED]>
> Date: Wed, 15 Sep 2004 14:55:04 +0200
> Subject: Re: CF Forum cheapest or free
> To: CF-Talk <[EMAIL PROTECTED]>

>> Do you know any? I'm looking for any CF Forum based
>> application.
>> Galleon looks like nice. More examples?
>>
> http://www.adersoftware.com/index.cfm?page=cfbb
> http://sourceforge.net/projects/smb/
> http://sourceforge.net/projects/fbopenforums/
> http://www.stickshiftsolutions.com/

s. isaac dealey   954.927.5117

new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework
http://www.sys-con.com/story/?storyid=44477&DE=1
http://www.sys-con.com/story/?storyid=45569&DE=1
http://www.fusiontap.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




CFFILE question, rewritten

2004-09-15 Thread mayo
I am using CFFILE to create articles for a magazine publisher.

I would like to include CF code that is not processed when CFFILE is
executed.

In effect I'm looking for a tag that is something like:

#doNotProcess(CGI.path_info)#

where the CFFILE does not process CGI.path_info but in the resulting file
CGI.path_info is there and able to be used.

There are several things I would like to be able to do. One specific example
is to have a printer-friendly link



Which calls the existing page and re-displays it with the new stylesheet.





The resulting page should look like the code below:








Some Title



...





Thanks,

Gil

  -Original Message-
  From: Andrew Dixon [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 15, 2004 2:30 AM
  To: CF-Talk
  Subject: Re: cffile write question, sending but not parsing cf code

  Not sure I have understood this right, but I assume the file you are
  trying create a CF Script, but remove the database call. In that case,
  you can put all your bits of script into a variable and than right
  that variable. The script will not be processed by CFFILE, for
  example:

  
  
  

  This will create the CF script and when called the CF parts will be
processed.

  Andrew.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFFILE question, rewritten

2004-09-15 Thread Thomas Chiverton
On Wednesday 15 Sep 2004 17:23 pm, mayo wrote:
> The resulting page should look like the code below:
...
> 

Construct the contents of the page in a string, then write this string to a 
file - this will enable you to subsituate as needed.

-- 
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]
 [Donations and Support]




cfexecute or cfx_execute issues

2004-09-15 Thread Steve Dworman
doesn't matter which one i use for this problem.

i am trying to execute perl inline, however, i can't get back the result (2).  this works if i go right to the unix command line and run it.


name="/usr/bin/perl" 
arguments="-e '$test=2; print $test;'" 
outputvar="outfile2"
showdebug="yes"
lineend=""
reload="Auto">

if i do something simple like "which perl" then i get a result.

what am i doing wrong?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFFILE question, rewritten

2004-09-15 Thread Barney Boisvert
It'll only work if the generated file is a CFM template, but you can
just write your standard CFML to the file and it'll be processed. 
You'll have to escape it while writing though.  For example:



click 







Just be VERY careful if you're generating CFM pages, because any
dynamic content will be rendered by CF, so if someone creates content
for a page that includes a CFQUERY tag, it'll actually run unless you
prevent it.  HTMLEditFormat() is your friend for this one.  Make sure
EVERYTHING is either wrapped with that, or protected in some other
fashion.

cheers,
barneyb

On Wed, 15 Sep 2004 12:23:26 -0400, mayo <[EMAIL PROTECTED]> wrote:
> I am using CFFILE to create articles for a magazine publisher.
> 
> I would like to include CF code that is not processed when CFFILE is
> executed.
> 
> In effect I'm looking for a tag that is something like:
> 
> #doNotProcess(CGI.path_info)#
> 
> where the CFFILE does not process CGI.path_info but in the resulting file
> CGI.path_info is there and able to be used.
> 
> There are several things I would like to be able to do. One specific example
> is to have a printer-friendly link
> 
> 
> 
> Which calls the existing page and re-displays it with the new stylesheet.
> 
> 
> 
> 
> 
> The resulting page should look like the code below:
> 
> 
> 
> 
> 
> 
> 
> 
> Some Title
> 
> 
> 
> ...
> 
> 
> 
> 
> 
> Thanks,
> 
> Gil
-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Brain Fart...GetTemplatePath(), I don't want it *all*

2004-09-15 Thread Casey C Cook
CGI.Script_name ?

Thanks,
CC
x56927
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cfexecute or cfx_execute issues

2004-09-15 Thread Barney Boisvert
If you want the output, i you have to add a timeout value.  Otherwise
CF just runs it and leaves it to do it's thing, immediately returning
to page execution.  Just set it to 10 or something and go.  Make sure
your CF is all patched up though, there was a bug at some point where
CFEXECUTE always took the full timeout, even if it didn't need it for
the called program to finish.

cheers,
barneyb

On Wed, 15 Sep 2004 12:30:50 -0400, Steve Dworman
<[EMAIL PROTECTED]> wrote:
> doesn't matter which one i use for this problem.
> 
> i am trying to execute perl inline, however, i can't get back the result (2).  this works if i go right to the unix command line and run it.
> 
> 
> name="/usr/bin/perl"
> arguments="-e '$test=2; print $test;'"
> outputvar="outfile2"
> showdebug="yes"
> lineend=""
> reload="Auto">
> 
> if i do something simple like "which perl" then i get a result.
> 
> what am i doing wrong?

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Major Driver problems

2004-09-15 Thread Alisa Thomson
Sorry, I should have given more info about my setup.  I am running CFMX 6.1 Updater 3.  I double-checked the driver and it is the latest and greatest.

>> Is anyone else out there using Sybase??? We are TRYING to upgrade to
>> CFMX from CF5 (running on Solaris with Sybase 12.5) and we are running
>> into major issues with database drivers. I have tried the driver that
>> ships with CFMX and I ran into big problems including not being able to
>> use output parameters in my stored procedure calls.
>
>I don't know if it'll fix this specific problem, but I would recommend that
>you try the latest MM driver, which is available as a hotfix or as part of
>the CFMX 6.1 Updater.
>
>Dave Watts, CTO, Fig Leaf Software
>http://www.figleaf.com/
>phone: 202-797-5496
>fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




cfobject and java

2004-09-15 Thread Steve Dworman
here's the deal...

i can, obviously, create an object for any class.

i can also call any method that looks like "public void addDir(java.io.File dir)" and of course i have to something like createObject( "java" ,  "java.io.File" ).init(tempdir), 

how do i access a method like "public static void main(java.lang.String[] args)"?

furthermore, how can i create multiple objects and make results accessible between them?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Basics Clarification

2004-09-15 Thread S . Isaac Dealey
> It still meets my definition (I'm hashing "x" to specify
> the variable within
> a string).  However other might are argue that the
> following is "good":

> 

Tag attributes should be quoted in three situations:

1) always
2) always
3) always

Imo even suggesting that it's possible to leave an attribute unquoted
is reprehensible.

Where's my lynchin' rope? ...  :)

s. isaac dealey   954.927.5117

new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework
http://www.sys-con.com/story/?storyid=44477&DE=1
http://www.sys-con.com/story/?storyid=45569&DE=1
http://www.fusiontap.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cfexecute or cfx_execute issues

2004-09-15 Thread Steve Dworman
thanks for the suggestion, but it didn't seem to work.  i just get a blank screen even when i set the timeout to 30.  my cf is all up to date.  any other suggestions?

>If you want the output, i you have to add a timeout value.  Otherwise
>CF just runs it and leaves it to do it's thing, immediately returning
>to page execution.  Just set it to 10 or something and go.  Make sure
>your CF is all patched up though, there was a bug at some point where
>CFEXECUTE always took the full timeout, even if it didn't need it for
>the called program to finish.
>
>cheers,
>barneyb
>
>On Wed, 15 Sep 2004 12:30:50 -0400, Steve Dworman
><[EMAIL PROTECTED]> wrote:
>
>-- 
>Barney Boisvert
>[EMAIL PROTECTED]
>360.319.6145
>http://www.barneyb.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cfobject and java

2004-09-15 Thread Barney Boisvert
If you want to call a static method, just do it directly on the
createObject() result, much like you'd call the init() method to
actually construct an object instance.



You can create as many objects as you want, and pass information into
them at will.  Keep in mind that objects are pass-by-reference, so if
you pass the same object (A) to two other objects (B & C), there's
still only a single A object that is shared between both B and C.

cheers,
barneyb

On Wed, 15 Sep 2004 12:45:49 -0400, Steve Dworman
<[EMAIL PROTECTED]> wrote:
> here's the deal...
> 
> i can, obviously, create an object for any class.
> 
> i can also call any method that looks like "public void addDir(java.io.File dir)" and of course i have to something like createObject( "java" ,  "java.io.File" ).init(tempdir),
> 
> how do i access a method like "public static void main(java.lang.String[] args)"?
> 
> furthermore, how can i create multiple objects and make results accessible between them?
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




OT: Multi-CPU systems (was "Re: Intel HyperThreading")

2004-09-15 Thread Damien McKenna
Another tangent..

If anyone is seriously considering dual-processor systems they should 
investigate dual Opteron systems and ones that have decent I/O.  Start 
reading here:
    http://www.matrixlist.com/pipermail/pc_support/2004-April/004937.html
and then work your way through these:
    http://www.matrixlist.com/pipermail/pc_support/
starting at around April and read anything related to the Opteron or 
Athlon-64.

Just for comparison, Sun has a new Opteron system out with one processor 
that "_blows_away_ most _quad_ Opteron designs" and starts at $1500:
http://www.matrixlist.com/pipermail/pc_support/2004-September/005299.html

Just thought you might like to know.
-- 
*Damien McKenna* - Web Developer - [EMAIL PROTECTED] 

The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
"Nothing endures but change." - Heraclitus
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: cfobject and java

2004-09-15 Thread Guy Rish
Steve,

Handling static methods is simple:

X = createObject("java", "someclass");
X.staticMethod(1, 2);

Note that I did not invoke the init method (constructor alias).

As for sharing the results of methods between objects...  You would handle
that just as you might expect.  Save the return value of a method to a CFML
variable and pass it as the argument to method in another object. 

You might refer to this content:
http://www.sys-con.com/coldfusion/article.cfm?id=250

rish



	From: Steve Dworman [mailto:[EMAIL PROTECTED] 
	Sent: Wednesday, September 15, 2004 11:46 AM
	To: CF-Talk
	Subject: cfobject and java
	
	
	here's the deal...
	
	i can, obviously, create an object for any class.
	
	i can also call any method that looks like "public void
addDir(java.io.File dir)" and of course i have to something like
createObject( "java" ,  "java.io.File" ).init(tempdir), 
	
	how do i access a method like "public static void
main(java.lang.String[] args)"?
	
	furthermore, how can i create multiple objects and make results
accessible between them? 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Basics Clarification

2004-09-15 Thread Barney Boisvert
Now if only there were an alternate syntax for the
CFIF..CFELSEIF..CFELSE tags that was XML compliant...  Totally
optional, but available to use if you need XML compliant CFML for some
reason.

Of course, that's remarkably off-topic, but the hope that that might
sometime exist is another tangible reason to always quote your
attributes.  Plus it makes your CFML more consistent with the (X)HTML
that it's likely embedded in.  Same deal with closing slashes on empty
tags (CFSET, CFTHROW, etc).

cheers,
barneyb

On Wed, 15 Sep 2004 12:48:43 -0400, S. Isaac Dealey <[EMAIL PROTECTED]> wrote:
> > It still meets my definition (I'm hashing "x" to specify
> > the variable within
> > a string).  However other might are argue that the
> > following is "good":
> 
> > 
> 
> Tag attributes should be quoted in three situations:
> 
> 1) always
> 2) always
> 3) always
> 
> Imo even suggesting that it's possible to leave an attribute unquoted
> is reprehensible.
> 
> Where's my lynchin' rope? ...  :)
> 
> 
> s. isaac dealey   954.927.5117

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com

Got GMail?  I can help.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cfexecute or cfx_execute issues

2004-09-15 Thread Barney Boisvert
Silly question, but are you outputting your variable?  Just to double check.

On Wed, 15 Sep 2004 12:50:57 -0400, Steve Dworman
<[EMAIL PROTECTED]> wrote:
> thanks for the suggestion, but it didn't seem to work.  i just get a blank screen even when i set the timeout to 30.  my cf is all up to date.  any other suggestions?
> 
> 
> 
> >If you want the output, i you have to add a timeout value.  Otherwise
> >CF just runs it and leaves it to do it's thing, immediately returning
> >to page execution.  Just set it to 10 or something and go.  Make sure
> >your CF is all patched up though, there was a bug at some point where
> >CFEXECUTE always took the full timeout, even if it didn't need it for
> >the called program to finish.
> >
> >cheers,
> >barneyb
> >

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com

Got GMail?  I can help.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cfobject and java

2004-09-15 Thread Steve Dworman
i totally understand that, so i guess my problem is a little different.

the following is my code to load a mib file.  this works.


	
	mib = createobject("java", "net.percederberg.mibble.MibLoader");
	nfo = createobject("java", "net.percederberg.mibble.Mib");
	
	tempdir="my path here";
	tempvar = createObject( "java" ,  "java.io.File" ).init(tempdir);
	
	mib.addDir(tempvar);
	temp = mib.load("sonus.mib");


You'll notice I create another object "nfo" which i need to access. This is the mib class http://www.mibble.org/doc/release/api/net/percederberg/mibble/Mib.html

I'm trying to call something simple like the getLoader or getFile method. 
if i add a line like "blah = nfo.getFile();" then i get an error such as
net.percederberg.mibble.Mib  

 
  
The error occurred in : line 25

 
23 : 	mib.addDir(tempvar);
24 : 	temp = mib.load("sonus.mib");
25 : 	blah = nfo.getFile();
26 : 
27 : 





>Steve,
>
>Handling static methods is simple:
>
>X = createObject("java", "someclass");
>X.staticMethod(1, 2);
>
>Note that I did not invoke the init method (constructor alias).
>
>As for sharing the results of methods between objects...  You would handle
>that just as you might expect.  Save the return value of a method to a CFML
>variable and pass it as the argument to method in another object. 
>
>You might refer to this content:
>http://www.sys-con.com/coldfusion/article.cfm?id=250
>
>
>rish
>
>
>
>	From: Steve Dworman [mailto:[EMAIL PROTECTED] 
>	Sent: Wednesday, September 15, 2004 11:46 AM
>	To: CF-Talk
>	Subject: cfobject and java
>	
>	
>	here's the deal...
>	
>	i can, obviously, create an object for any class.
>	
>	i can also call any method that looks like "public void
>addDir(java.io.File dir)" and of course i have to something like
>createObject( "java" ,  "java.io.File" ).init(tempdir), 
>	
>	how do i access a method like "public static void
>main(java.lang.String[] args)"?
>	
>	furthermore, how can i create multiple objects and make results
>accessible between them? 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cfexecute or cfx_execute issues

2004-09-15 Thread Steve Dworman
sure am.


name="/usr/bin/perl" 
arguments=" -e '$test=2+2; print $test;'" 
outputvar="outfile2"
showdebug="yes"
lineend=""
reload="Auto"
timeout="60">

#outfile2#

>Silly question, but are you outputting your variable?  Just to double check.
>
>
>On Wed, 15 Sep 2004 12:50:57 -0400, Steve Dworman
><[EMAIL PROTECTED]> wrote:
>
>-- 
>Barney Boisvert
>[EMAIL PROTECTED]
>360.319.6145
>http://www.barneyb.com
>
>Got GMail?  I can help.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Basics Clarification

2004-09-15 Thread Dave Watts
> Tag attributes should be quoted in three situations:
>
> 1) always
> 2) always
> 3) always
>
> Imo even suggesting that it's possible to leave an attribute unquoted
> is reprehensible.

Really? I suspect you use unquoted attributes all the time, at least with
one tag. I know I do. For example, rather than writing



I'd write



Of course, I generally try to follow the general rule of quoting all
attribute values, but the problem with rules in CF is that there are often
exceptions!

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: cfobject and java

2004-09-15 Thread Guy Rish
Steven,

I'm looking at the link that you sent and I don't see a constructor for the
Mib class.  I am presuming that when the Javadoc was generated it was set to
only document public members - which doesn't appear to include any of the
constructors for this class.  Further upon reading the (slight)
documentation for this class it appears that getFile is not a static member.
I'm guessing that you request a reference for a Mib instance from another
object (perhaps the MibLoader) and it will construct one with the
appropriate content internally.  Since you don't have a constructed Mib with
internal content I can see why your call to getFile might give you some
problems.

rish 



	From: Steve Dworman [mailto:[EMAIL PROTECTED] 
	Sent: Wednesday, September 15, 2004 12:09 PM
	To: CF-Talk
	Subject: Re: cfobject and java
	
	
	i totally understand that, so i guess my problem is a little
different.
	
	the following is my code to load a mib file.  this works.
	
	
	
	mib = createobject("java", "net.percederberg.mibble.MibLoader");
	nfo = createobject("java", "net.percederberg.mibble.Mib");
	
	tempdir="my path here";
	tempvar = createObject( "java" ,  "java.io.File" ).init(tempdir);
	
	mib.addDir(tempvar);
	temp = mib.load("sonus.mib");
	
	
	You'll notice I create another object "nfo" which i need to access.
This is the mib class
http://www.mibble.org/doc/release/api/net/percederberg/mibble/Mib.html
	
	I'm trying to call something simple like the getLoader or getFile
method. 
	if i add a line like "blah = nfo.getFile();" then i get an error
such as
	net.percederberg.mibble.Mib  
	
	
	  
	The error occurred in : line 25
	
	
	23 : mib.addDir(tempvar);
	24 : temp = mib.load("sonus.mib");
	25 : blah = nfo.getFile();
	26 : 
	27 : 
	
	
	
	
	
	>Steve,
	>
	>Handling static methods is simple:
	>
	>X = createObject("java", "someclass");
	>X.staticMethod(1, 2);
	>
	>Note that I did not invoke the init method (constructor alias).
	>
	>As for sharing the results of methods between objects...  You would
handle
	>that just as you might expect.  Save the return value of a method
to a CFML
	>variable and pass it as the argument to method in another object. 
	>
	>You might refer to this content:
	>http://www.sys-con.com/coldfusion/article.cfm?id=250
	>
	>
	>rish
	>
	>
	>
	> From: Steve Dworman [mailto:[EMAIL PROTECTED] 
	> Sent: Wednesday, September 15, 2004 11:46 AM
	> To: CF-Talk
	> Subject: cfobject and java
	> 
	> 
	> here's the deal...
	> 
	> i can, obviously, create an object for any class.
	> 
	> i can also call any method that looks like "public void
	>addDir(java.io.File dir)" and of course i have to something like
	>createObject( "java" ,  "java.io.File" ).init(tempdir), 
	> 
	> how do i access a method like "public static void
	>main(java.lang.String[] args)"?
	> 
	> furthermore, how can i create multiple objects and make results
	>accessible between them? 
	> 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Brain Fart...GetTemplatePath(), I don't want it *all*

2004-09-15 Thread guy . mcdowell
What if you did a function on it like?

 
remove)>

I haven't actually tried this, so I'm not sure exactly how to set the 
start point and would only work if the path to your root was consistently 
the same num of characters. 

Guy McDowell
Web Developer
[EMAIL PROTECTED] - Magma Communications Ltd.
t: 613.228.3565 x6348
f: 613.228.8313
http://websites.magma.ca

This e-mail message is confidential, may be privileged and is intended for 
the exclusive use of the addressee.  Any other person is strictly 
prohibited from disclosing, distributing or reproducing it.  If the 
addressee cannot be reached or is unknown to you, please inform the sender 
by return e-mail immediately and delete this e-mail message and destroy 
all copies.  Due to the inherent risks associated with the Internet, we 
assume no responsibility for unauthorized interception of any Internet 
communication with you or the transmission of computer viruses.  Thank 
you.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Major Driver problems

2004-09-15 Thread Dave Watts
> Sorry, I should have given more info about my setup. I am running CFMX
> 6.1 Updater 3. I double-checked the driver and it is the latest and
> greatest.

Well, there isn't a CFMX 6.1 Updater 3, only an Updater 1. So, I'm not
really sure what you're running, although I suspect you're running Updater
1.

Other than suggesting that, I don't really have an answer for you, since I
haven't run into the problem you describe (and have very few clients using
Sybase). Sorry!

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




OT - ASP (vbscript) equivalent for #JSStringFormat#

2004-09-15 Thread CFDEV
Hi, does anybody knows if there is an equivalent in ASP (vbscript) for the
CF function #JSStringFormat#?

 
Thanks

 
Pat
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Basics Clarification

2004-09-15 Thread S . Isaac Dealey
> Now if only there were an alternate syntax for the
> CFIF..CFELSEIF..CFELSE tags that was XML compliant...
> Totally
> optional, but available to use if you need XML compliant
> CFML for some
> reason.

> Of course, that's remarkably off-topic, but the hope that
> that might
> sometime exist is another tangible reason to always quote
> your
> attributes.  Plus it makes your CFML more consistent with
> the (X)HTML
> that it's likely embedded in.  Same deal with closing
> slashes on empty
> tags (CFSET, CFTHROW, etc).

Though I use a lot of cfscript...
I'd end up with a lot of this:


//


and any purpose there might have been for using an xml parser against
my cfml would be made moot by the fact that about 90% of my code looks
like this. :)

s. isaac dealey   954.927.5117

new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework
http://www.sys-con.com/story/?storyid=44477&DE=1
http://www.sys-con.com/story/?storyid=45569&DE=1
http://www.fusiontap.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Can 2 web servers Java connector connect to 1 CF app. server

2004-09-15 Thread Chad Nikirk
Is it possible two have two IIS web boxes each running the java connector and have them connect to the same CF app. server running in distrubuted mode? My problem stems from trying to use a Cisco LDIR to load balance the two web servers and then have the two web servers connect to the CF server via the JAVA connector. The connector connects on the first web box but the second box will not connect, every time I try to connect it says it cannot find the server. Any ideas?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Intel HyperThreading

2004-09-15 Thread Jim Davis
Back in the day (the VP6/BP6 era) there really wasn't much of a price
difference - you could set up a single processor on a dual board using
desktop processors (early Celerons or any PIII).  You could either chew the
cost of the second chip immediately or wait and get it later.

Now the motherboards tend to be at least a little pricier (although there
are still some bargains out there) and with Intel you need more expensive
Xeons - however you can still up a dual AMD system for not much more money.

Personally I did trust the Athlon's heat problems enough when I got my
current machine and replaced my dual PIII with a PIV single.  Performance
for tasks is much better, but multitasking response time when completely
south.

Personally I think the advantages are well worth a modest cost bump, but
can't see spending any more than, say, 50% more at the outside.  But it's
really up to you - how long do you wait now for programs to switch/open?
How much is it worth to you to speed that up.  ;^)

Jim Davis

From: Mark W. Breneman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 11:47 AM
To: CF-Talk
Subject: RE: Intel HyperThreading

I guess I should have qualified what I said by saying that HT is more or
less dual CPU emulation.

I would gladly take a dual CPU system for a development workstation in a
heart beat. but, I just don't want to pay for one. :-) I guess that is my
point / question. 

Are the advantages of a dual CPU workstation enough to justify the cost?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Trouble with Two Table Query - Doh!

2004-09-15 Thread Al Everett
> Don't you mean "group" rather than "query" on the inner CFOUTPUT?

Maybe. I was doing it off the top of my head. I didn't test it. Actually,
it should probably just be a vanilla .

> Oh, and why not use a JOIN rather than doing it in the WHERE?

I dislike the JOIN syntax. I'm used to using Oracle and my previous DBA
worked that way.

	
		
__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Brain Fart...GetTemplatePath(), I don't want it *all*

2004-09-15 Thread Al Everett
Another alternative:

truncatedPath=Replace(GetCurrentTemplatePath,"C:\Inetpub\wwwroot\MySite\","")

--- Jeff Small <[EMAIL PROTECTED]> wrote:

> When I output GetTemplatePath() on my home page, I see:
> C:\Inetpub\wwwroot\MySite\index.cfm
> 
> When I'm on the Gallery page, naturally, I see:
> C:\Inetpub\wwwroot\MySite\Gallery\index.cfm
> 
> I'd love to be able to trim everything from here:
> C:\Inetpub\wwwroot\MySite\
> 
> and be left with:
> "index.cfm"
> or "Gallery\index.cfm"
> 
> Because I'd like to be able to put a little "email a friend this page"
> link 
> and just dynamically add the path beyond http://www.MySite.com/ 
> (http://www.MySite.com/Gallery/index.cfm, and 
> http://www.MySite.com/index.cfm) which GetFileFromPath() won't return.
> It'll 
> just return "index.cfm" no matter what directory I'm in, naturally.
> 
> So, does this make sense? I know it's a simple solution that's just
> escaping 
> me right now. 
> 
> 
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




String Function in Update Form

2004-09-15 Thread Eric Davis
I have a record where the Title field is:

 
Marysville "Monarchs" vs. Worthington "Cardinals"

 
This string is passed to the database with no problem using my input form.

 
The problem arises when I try to populate an update form with this same
string.

 
Here's the code for the update form:

 


 
Here's what this code outputs: 

 
Title: Marysville

 
Obviously I need to add some sort of a string function to accommodate the
quotes in the title data.

 
Any recommendations?

 
Eric Davis 
Webmaster, Worthington Public Library 
820 High St. 
Worthington, Ohio 43085 
E-mail: [EMAIL PROTECTED] 
WWW: http://www.worthingtonlibraries.org
  
Phone: 614-645-2620 Ext. 236 
Fax: 614-645-2629
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: String Function in Update Form

2004-09-15 Thread Joe Rinehart
I think this is done automatically in MX, but if you're pre-mx, try:


value="#HTMLEditFormat(Title)#">

-joe

- Original Message -
From: Eric Davis <[EMAIL PROTECTED]>
Date: Wed, 15 Sep 2004 14:02:05 -0400
Subject: String Function in Update Form
To: CF-Talk <[EMAIL PROTECTED]>

I have a record where the Title field is:

Marysville "Monarchs" vs. Worthington "Cardinals"

This string is passed to the database with no problem using my input form.

The problem arises when I try to populate an update form with this same
 string.

Here's the code for the update form:



Here's what this code outputs: 

Title: Marysville

Obviously I need to add some sort of a string function to accommodate the
 quotes in the title data.

Any recommendations?

Eric Davis 
 Webmaster, Worthington Public Library 
 820 High St. 
 Worthington, Ohio 43085 
 E-mail: [EMAIL PROTECTED] 
 WWW: http://www.worthingtonlibraries.org
   
 Phone: 614-645-2620 Ext. 236 
 Fax: 614-645-2629
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: String Function in Update Form

2004-09-15 Thread Eric Davis
BINGO!

 
Thanks...

Eric Davis 
Webmaster, Worthington Public Library 
820 High St. 
Worthington, Ohio 43085 
E-mail: [EMAIL PROTECTED] 
WWW: http://www.worthingtonlibraries.org
  
Phone: 614-645-2620 Ext. 236 
Fax: 614-645-2629 

-Original Message-
From: Joe Rinehart [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 2:15 PM
To: CF-Talk
Subject: Re: String Function in Update Form

I think this is done automatically in MX, but if you're pre-mx, try:


value="#HTMLEditFormat(Title)#">

-joe

- Original Message -
From: Eric Davis <[EMAIL PROTECTED]>
Date: Wed, 15 Sep 2004 14:02:05 -0400
Subject: String Function in Update Form
To: CF-Talk <[EMAIL PROTECTED]>

I have a record where the Title field is:

Marysville "Monarchs" vs. Worthington "Cardinals"

This string is passed to the database with no problem using my input form.

The problem arises when I try to populate an update form with this same
string.

Here's the code for the update form:



Here's what this code outputs: 

Title: Marysville

Obviously I need to add some sort of a string function to accommodate the
quotes in the title data.

Any recommendations?

Eric Davis 
Webmaster, Worthington Public Library 
820 High St. 
Worthington, Ohio 43085 
E-mail: [EMAIL PROTECTED] 
WWW: http://www.worthingtonlibraries.org
  
Phone: 614-645-2620 Ext. 236 
Fax: 614-645-2629 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: poll DB

2004-09-15 Thread daniel kessler
So now I'm trying to create in Oracle the tables for the poll.  But when I try to create the first one, which references another table, I get the error, "missing right parenthesis".  The only other relational work that I've done was in mySQL so I'm sure that it's a syntax or keyword  Oracle issue.
Here's the two tables:


create table fsnep_polls (
    p_id NUMBER Primary Key,
	p_date_added date,
	p_date_last_used date,
	p_question VARCHAR2(400),
	p_status NUMBER
)

CREATE SEQUENCE unique_poll_Num_s START WITH 1



create table fsnep_pollAnswers (
    pA_id NUMBER Primary Key,
	pA_pollID NUMBER Foreign Key REFERENCES fsnep_polls(p_id),
    pA_answer NUMBER
)

And thanks a bunch for all the previous answers.  It helped alot once I was able to sit down and read it all.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Currently running page requests

2004-09-15 Thread Joe Gooch
I concur.

I've modified the code to show the exception, it seems
endPoint.getRequestURI(),endPoint.getRemoteHost(), and
endPoint.getServerName() all return nulls.

I get a java.lang.NullPointerException.

Ideas?

Joe

-Original Message-
From: Douglas Knudsen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 14, 2004 9:14 PM
To: CF-Talk
Subject: Re: Currently running page requests

When this part of the JSP runs
for (int i=0;i
out.println("i: " + i + "");
try 
{
jrunx.scheduler.WorkerThread t =
(jrunx.scheduler.WorkerThread)threads[i];
jrun.servlet.http.WebEndpoint endPoint =
(jrun.servlet.http.WebEndpoint)t.getServletRequest();
out.println(endPoint.getServerName() + endPoint.getRequestURI() +
"");
} 
catch (Exception e) { }
}

I get 
i:1
i:2
.
.
.

that's it.  The try/catch is catching an exception.  When I remove the
try/catch I get this in the cfusion-event log

java.lang.ClassCastException
at
jrun__admintools__cfthreads2ejsp19._jspService(jrun__admintools__cfthrea
ds2ejsp19.java:59)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.java
:447)
at
jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatcher.j
ava:417)
at jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:61)
at
coldfusion.license.JspLicenseServlet.service(JspLicenseServlet.java:31)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249
)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527
)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:
192)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java
:451)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

looks like its this line that is having issue with the caste
jrunx.scheduler.WorkerThread t =
(jrunx.scheduler.WorkerThread)threads[i];

Doug

- Original Message -
From: Lee Howard <[EMAIL PROTECTED]>
Date: Tue, 14 Sep 2004 18:26:04 -0400
Subject: Re: Currently running page requests
To: CF-Talk <[EMAIL PROTECTED]>

If you are using jrun for your J2EE server I don't know what the
problem could be.
What kind of error message are you getting?
Can you compile the code I posted?

- Original Message -
From: Douglas Knudsen <[EMAIL PROTECTED]>
Date: Tue, 14 Sep 2004 16:12:23 -0400
Subject: Re: Currently running page requests
To: CF-Talk <[EMAIL PROTECTED]>

hmmm, I am using the enterprise version, J2EE install, and I can not
see the script names.

This part bombs.
jrunx.scheduler.WorkerThread t =
(jrunx.scheduler.WorkerThread)threads[i];
jrun.servlet.http.WebEndpoint endPoint =
(jrun.servlet.http.WebEndpoint)t.getServletRequest();

maybe there is something missing in my classpath or maybe a differnet
JVM

Doug

- Original Message -
From: Lee Howard <[EMAIL PROTECTED]>
Date: Tue, 14 Sep 2004 15:24:51 -0400
Subject: Re: Currently running page requests
To: CF-Talk <[EMAIL PROTECTED]>

I like that.  It worked great for me, but if you are not using
enterprise it will not work.  For those people you can also do the
same thing with a servlet.  Here is the java code.

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class threads extends HttpServlet{
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException{
resp.setContentType("text/html");
PrintWriter out = resp.getWriter();
Thread thread = Thread.currentThread();
ThreadGroup threadGroup = thread.getThreadGroup();

int count = threadGroup.activeCount();
Thread[] threads = new Thread[count];

count = threadGroup.enumerate(threads);
out.println("Thread Count: " + count + "");
for (int i=0;i
try 
{
jrunx.scheduler.WorkerThread t =
(jrunx.scheduler.WorkerThread)threads[i];
jrun.servlet.http.WebEndpoint endPoint =
(jrun.servlet.http.WebEndpoint)t.getServletRequest();
out.println("i: " + i + ": ");
out.println(endPoint.getServerName() + endPoint.getRequestURI() + "
:" + endPoint.getRemoteHost() + "");
} 
catch (Exception e) {
}
}
}
}

compile and put in the WEB-INF/classes folder.
I compiled using javac thread.java -classpath
c:\cfusionmx\runtime\lib\jrun.jar
call it using 
http://webserver.com/servlet/thread

- Original Message -
From: Douglas Knudsen <[EMAIL PROTECTED]>
Date: Tue, 14 Sep 2004 11:54:05 -0400
Subject: Re: Currently running page requests
To: CF-Talk <[EMAIL PROTECTED]>

there was some JSP code for this floating around abit ago.  IIRC,
credit goes to Pete Frietag.  I never got this to work for me though. 
Some sort of caste error and I'm far from a Java guru.  Anyone get
this to work?

<%
Thread thread

Dreaded Jrun Errors...

2004-09-15 Thread Tyler Silcox
Has anyone found a good way to debug JRun connection closed errors? Is there
anyway to be notified when they are thrown, etc?  

 
The only reference I can find to them is if you have the "Log requests that
exceed n seconds" settings checked in cfadmin, then they show up in the
"server" log file. But since I'm using Fusebox, it only shows the index.cfm
file as exceeding the time limit...

 
Tyler

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.754 / Virus Database: 504 - Release Date: 9/6/2004
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Data Visualization

2004-09-15 Thread Don
Mark, 

Since I chose not to be on that mailing list I don't have your email address, sent an email to a professor in CA instead though :)
Could you send yours to donli att yahoo dott com?  

Thanks.

Don

>you might want to get in touch with this guy, he seems to read the
>list and does some REALLY amazing stuff
>
>http://marcosweskamp.marumushi.com/
>
>Regards
>
>Mark Drew
>
>
>On Tue, 14 Sep 2004 16:03:59 -0400, Don Chunshen Li
><[EMAIL PROTECTED]> wrote:
>> Not line/bar chart type with cfgraph or cfchart, ah, it's a futile question.
>> 
>> >Has anyone worked on data visualization technique(s) with CF/CFMX?
>> >If so, pls share your experience.
>> 
>>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




  1   2   >