Re: OT: Microsoft.com attacked?

2005-11-26 Thread Claude Schneegans
 No problem getting to them from here.

Yeah, they came back a while ago.
Thanks.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


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

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


RE: CFUnit Help ... assertEqualsBoolean?

2005-11-26 Thread Jeff Chastain
 testIsNullID(crTracker2._com.test.propertyTest): : expected:... but
was:...
 Do you really mean you get ... in the values?

Yes, this is copied verbatim and that is what really threw me.  What in the
world does that mean?

Robert - I will try out some of your suggestions, but as Sean said, what is
the '...' as a value?

-- Jeff



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

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


FREE Homesite/CF Studio CFC VTML Generator

2005-11-26 Thread Stan Winchester
I just put a FREE new HomeSite+/ColdFusion Studio Wizard that builds a CFC
based CRUD application. Please feel free to download and use it. If you use
it, please let me know. If you have any comments, suggestions, complaints,
or whatever, please post them to on:
http://www.aftershockweb.net/forums/forums.cfm/ConferenceId/8 

Here is a link to the thread containing the download: 
http://www.aftershockweb.net/forums/messages.cfm/ThreadId/50 

I know there is a lot of work to do to it still, but it is a start.
 
Thank you,
Aftershock Web Design, Inc.
by: Stan Winchester
President/Developer
[EMAIL PROTECTED]  
http://www.aftershockweb.com/   
Phone 503-244-3440
Fax 503-244-3454

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

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


Re: NoLock in SQL Server

2005-11-26 Thread Paul Hastings
Dave Watts wrote:

 In some limited cases, you just might not care that you're getting the
 correct data. For example, let's say you're trying to figure out the average

yeah, we use that kind of hinting when we project tax revenues in our 
municipal applications. big, complex sql is involved against several 
monster thumping tables and if we miss a few baht (thai currency) here  
there, so what. but i'd suggest there are a few more general cases 
where it's also applicable, say data used in infrequently used form 
pulldowns that we know won't be changed where we don't want to waste an 
app scope or cached query on. if you keep your wits about you, NOLOCK 
hinting's not a bad thing.


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

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


RE: Access Error? CF7

2005-11-26 Thread Jeff Anderson
Tip:
Store all dates as dates in the database and not as formatted date strings. 
Format the dates when you want to display them. It will
provide consistency for all of your inserts and keep you from having to jump 
through possible extra hurdles if you want to change
the formatting or do date math on those dates after grabbing them from the 
database.

My $.02

-Jeff

-Original Message-
From: ColdFusion [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 25, 2005 20:35
To: CF-Talk
Subject: RE: Access Error? CF7

The reason for the DateFormat is that it is
Being used as Display on some pages as well.

But I will change it to createodbcdate and when
I need to display it, I will format it then.

Let me give that a shot. 

-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 25, 2005 8:10 PM
To: CF-Talk
Subject: Re: Access Error? CF7

just do cfset request.dtStamp = now() /

no reason to do a dateformat on it to store it in a database.


On 11/25/05, ColdFusion [EMAIL PROTECTED] wrote:
 It is being set as:
 CFSET REQUEST.dtStamp = #Dateformat(Now(), 'MM/DD/')# 
 #TIMEFORMAT(Now(), 'h:MM:SS TT')#

 -Original Message-
 From: Dawson, Michael [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 25, 2005 6:40 PM
 To: CF-Talk
 Subject: RE: Access Error? CF7

 Charlie was asking where was request.dtStamp set *before* you run the 
 cfquery.

 In other words, do this:

 cfoutput#request.dtStamp#/cfoutput
 And
 cfoutput#createODBCDateTime(request.dtStamp)#/cfoutput

 Before your CFQUERY tag.  The first cfoutput will output your exact 
 variable.  The second cfoutput will fail if it is not a valid 
 date/time value.

 His/our guess is that the variable is not correctly set.

 M!ke

 -Original Message-
 From: ColdFusion [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 25, 2005 5:15 PM
 To: CF-Talk
 Subject: RE: Access Error? CF7

 It is being established as:

  SQLINSERT INTO AccessLog ( MEMBERID, ACTIONDATE, ACTION, TYPE
 )
  VALUES ( (param 1) , '{ts '2005-11-25 14:44:00'}', 'Login', 'User
 Login'
  )
 



 





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

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


Re: CFUnit Help ... assertEqualsBoolean?

2005-11-26 Thread Paul Kenney
Jeff,

cfcUnit and CFUnit are a bit different in how assertions are made. In CFUnit
(like JUnit) there is a single function name asserEquals. JUnit can take
advantage of method overloading, so a single method name with different
argument types will work. CFUnit takes the same approach and only has one
assertEquals method that can accept any type for its expected and actual
arguments, and it determines the type of assertion/comparison that needs to
be done based on the determined type of the expected argument. cfcUnit is
done differently. I have found that implying the type of test that needs to
be done based on the types of the arguments gives up too much control and is
harder to understand down the road. Instead, each type of assertion has its
own method that is called explicitly by the test case methods. This is the
default behavior for cfcUnit and does not require the use of any special
base class.

As far as testing for the presense of application variables within your test
cases or making your objects under test aware of them, it is a bad practice
(except in certain cases) and leads to untestable code. If you need these
values to be available to your objects, it is best to pass them in
explicitly via the constuctor or other method arguments.

I hope this helps.

Paul

On 11/25/05, Jeff Chastain [EMAIL PROTECTED] wrote:

 Well, the reason I was going with the assertEqualsBoolean() was, how can
 an
 equality test tell if a given string is a string or a boolean type?  I am
 getting the following failure ...

 testIsNullID(crTracker2._com.test.propertyTest): : expected:...
 but was:...

  which I assumed had to do with the fact it was trying to compare the
 string 'YES' with the boolean value 'true' and coming up short.  Now that
 I
 change the extends to grab the extra functions though, I am still getting
 the error above.  It is not the most descriptive as to where the problem
 is
 .

 As a brief aside, I went and checked out CFCUnit to see if it was any
 better
 documented.  However, when setting up a test case there, it does not
 appear
 that the execution of the test case includes the Application.cfc file for
 the project.  Am I missing something here or am I doing something wrong by
 utilizing application level variables (dsn, cfc mapping, etc.) in my test
 cases to pass to the object?

 Thanks
 -- Jeff



 

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

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


Re: more cfform goodness, maybe....

2005-11-26 Thread Paul Hastings
dave wrote:
  once I start setting the variables for the selected record, how do I place 
 them in the msg variable?

var msg=your HTML goop goes here+title+some more of your 
goop+state+the last of the goop+whateverASvar;

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

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


Re: GIF Pipes/AJAX/async gateway

2005-11-26 Thread James Holmes
This is the sort of thing I do all the time with CFAJAX now. It will
do exactly what you are after, with a little JavaScript coding on your
part. Let me know if you want more details.

http://www.indiankey.com/

On 11/26/05, Bryan Stevenson [EMAIL PROTECTED] wrote:
 Hey All,

 Looking for opinions and code snippets for the various methods of behind the 
 scenes process (trying to avoid full page refreshes and having to use Flash).

 I'm trying to do things like this:

 1) User selects a drop down optionthat fires off a request to get data to 
 populate 1 or more drop downs (and pre-loading all possible data and using 
 related multi-selects will not fly)

 2) User enters (or selects) a few or more fields of dataonce all bits are 
 entered/filled, a  request is fired off and the response is used to change 
 the content of various DIVs (or other containers).  For example 4 fields are 
 required to narrow down what the user is trying to get atthe request 
 would then verify that the combo of those field values matches a valid DB 
 record).

 Assume I know nothing about this kind of processing (plz keep the acronyms to 
 a minimum). ;-)

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

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

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


Re: Query of Queries (QoQ) performance question

2005-11-26 Thread James Holmes
It seems as if that's one area where they may be a benefit (try it and
see) - another may be if you had a large, complex query with many
joins that took a long time to execute - once that dataset is in
memory it may be quicker to extract smaller subsets via QoQ. Of course
it may not; if you use bind parameters on the initial query, the
execution plan is cached by the DB system and the indexing is good
(e.g. gathered stats are up-to-date, if using Oracle), the initial
query may still perform really well on subsequent tries.

On 11/26/05, Billy Jamme [EMAIL PROTECTED] wrote:
 So by that rational only unindexed and non-sequential columns, such as a text 
 field, is where QoQs would offer performance increases?

 I'm not too surprised in this case. The original query just pulls
 everything from the table. The QoQ has to go through that whole
 recordset and find the matching record(s), with no index to follow as
 would be the case if the DB were doing it.

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

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

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

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


Re: GIF Pipes/AJAX/async gateway

2005-11-26 Thread James Holmes
Oops, that should be http://www.indiankey.com/cfajax/

On 11/26/05, James Holmes [EMAIL PROTECTED] wrote:
 This is the sort of thing I do all the time with CFAJAX now. It will
 do exactly what you are after, with a little JavaScript coding on your
 part. Let me know if you want more details.

 http://www.indiankey.com/

 On 11/26/05, Bryan Stevenson [EMAIL PROTECTED] wrote:
  Hey All,
 
  Looking for opinions and code snippets for the various methods of behind 
  the scenes process (trying to avoid full page refreshes and having to use 
  Flash).

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

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

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


RE: Query result set; making it available to custom tags when query is run from CF template?

2005-11-26 Thread Adrian Lynch
Following on from that. Do a check in the custom tag to see if the query
data already exists, if it does, use it, if it doesn't, get it. Or, if
you're passing the query data into the tag then you will have done one query
anyway.

Ade

-Original Message-
From: Alan Rother [mailto:[EMAIL PROTECTED]
Sent: 25 October 2005 03:39
To: CF-Talk
Subject: Re: Query result set; making it available to custom tags when
query is run from CF template?


Well, if the one query contains all of the data needed by all of the custom
tag calls in the same page request, you could just set the query into the
request scope and it would be available to all of the custom tag calls.
 To do that simply follow this example:
 cfquery datasource=myDataSource name=Request.qMyQueryName
 Doing this, any cfm file in the same request can access this query object
 HTH


 On 10/24/05, Pete Ruckelshaus [EMAIL PROTECTED] wrote:

 I'm trying to improve a page I've written. It's a calendar, and I'm
 using a custom tag to display the calendar itself. On one view of the
 calendar, there can be four calls to that calendar custom tag (one for
 the current month, 3 for the next 3 months). Rather than call the
 same stored procedure once per custom tag call, I'd rather call it
 once total from the CFM template, and then make that result set
 available to the custom tags.

 Is there a way to accomplish this, or do I just need to make multiple
 calls to get the recordset?

 Thanks,

 Pete


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

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


Monitor DSN

2005-11-26 Thread John Lucania
I often experience that Data Source Names got lost the connectivity
due to various reasons such as power outage, reboot, network blip,
etc.   Is there a way to monitor the DSN connectivity loss through
Scheduled Tasks (sending CFMAIL) or something else?  It is CFMX.

jl

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

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


RE: CF Hosting

2005-11-26 Thread Munson, Jacob
I am talking about CF hosting on Linux.  Their cheapest package for that
is $20/mo, which I agree is a decent price.  But I currently am paying
$3.50/mo for CF on Linux @ xtreme-host.com.  I am a cheapskate, what can
I say!  :)

 -Original Message-
 From: dave [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, November 24, 2005 1:34 AM
 To: CF-Talk
 Subject: RE: CF Hosting
 
 2gb of space, their award winning 24x7 365 support, free 
 domain name  2 free months with yearly payment for $14.95 a 
 month is too steep for you??
 
 ~Dave the disruptor~
 good sites - make money getting rid of ie :)
 http://explorerdestroyer.com/
 http://www.killbillsbrowser.com/ 
 
 
 From: Munson, Jacob [EMAIL PROTECTED]
 Sent: Wednesday, November 23, 2005 9:48 AM
 To: CF-Talk cf-talk@houseoffusion.com
 Subject: RE: CF Hosting 
 
 I looked at HMS, and their prices are a bit steep for me. I'm 
 sure they
 are well worth it, but I just wish they had a lower end 
 product with CF
 (like my current host).
 
 I have heard from people that run hosting services that you 
 can put more
 shared hosts on a Linux server than you can on a Windows server. Has
 anybody found that to be true? I would figure that Win2k3 
 would be able
 to at least match a Linux server in bandwidth throughput, but I've got
 no experience in the area.
 
 
 
 
 
 

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

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

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


RE: GIF Pipes/AJAX/async gateway

2005-11-26 Thread Munson, Jacob
Have you looked at cfajax?  http://www.indiankey.com/cfajax/  That's
what I'm using for cfQuickDocs (http://www.techfeed.net/cfQuickDocs).
It has some of the things you mentioned.

 -Original Message-
 From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
 Sent: Friday, November 25, 2005 4:26 PM
 To: CF-Talk
 Subject: GIF Pipes/AJAX/async gateway
 
 Hey All,
 
 Looking for opinions and code snippets for the various 
 methods of behind the scenes process (trying to avoid full 
 page refreshes and having to use Flash).
 
 I'm trying to do things like this:
 
 1) User selects a drop down optionthat fires off a 
 request to get data to populate 1 or more drop downs (and 
 pre-loading all possible data and using related multi-selects 
 will not fly)
 
 2) User enters (or selects) a few or more fields of 
 dataonce all bits are entered/filled, a  request is fired 
 off and the response is used to change the content of various 
 DIVs (or other containers).  For example 4 fields are 
 required to narrow down what the user is trying to get 
 atthe request would then verify that the combo of those 
 field values matches a valid DB record).
 
 Assume I know nothing about this kind of processing (plz keep 
 the acronyms to a minimum). ;-)
 
 TIA
 
 Cheers
 
 Bryan Stevenson B.Comm.
 VP  Director of E-Commerce Development
 Electric Edge Systems Group Inc.
 phone: 250.480.0642
 fax: 250.480.1264
 cell: 250.920.8830
 e-mail: [EMAIL PROTECTED]
 web: www.electricedgesystems.com
 
 

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

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


Creating dynamically array variables

2005-11-26 Thread Michel Deloux
Hi all

I need to create a dynamically variable inside this code:

cfset FormVariable = Subject
cfset form.fieldnames = ListSort(form.fieldnames,textnocase)
cfloop list=form.fieldnames index=ThisItem
cfif ThisItem is not fieldnames AND Len(Evaluate(ThisItem))
!--- HERE BEGIN THE TROUBLE---
  cfset ArrayAppend(session.forms.[FormVariable][1],ThisItem)

  cfset ArrayAppend(session.forms.[FormVariable][2],Evaluate(ThisItem))
/cfif
/cfloop

Using that code CF 6.1 shows me this error:

A CFML variable name cannot end with a . character.

What's wrong?

Cheers

MD

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

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


Re: Monitor DSN

2005-11-26 Thread Mike Chabot
I have a monitor page in each of my applications that is called from
an external server every five minutes. The monitor page runs a few
essential queries to test database connectivity. If a query fails, I
get an E-mail sent from the external server. If the entire page fails,
I try to call an HTML page in that directory to see if the server is
up.

You could also buy a product like Whats Up Gold
http://www.ipswitch.com/products/whatsup/index.asp to monitor your
database server.

-Mike Chabot

On 11/26/05, John Lucania [EMAIL PROTECTED] wrote:
 I often experience that Data Source Names got lost the connectivity
 due to various reasons such as power outage, reboot, network blip,
 etc.   Is there a way to monitor the DSN connectivity loss through
 Scheduled Tasks (sending CFMAIL) or something else?  It is CFMX.

 jl

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

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


RE: GIF Pipes/AJAX/async gateway

2005-11-26 Thread Jim Davis
CFAjax can do that, I believe with very little other coding.  If you want
some more control I also suggest checking out YODEL (which I wrote, so don't
expectanything unbiased):

http://www.depressedpress.com/Content/Development/YODEL/Index.cfm

There's a JavaScript and a (soon to be updated) CF implementation now, but I
hope for others soon.

Jim Davis



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

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


Re: GIF Pipes/AJAX/async gateway

2005-11-26 Thread James Holmes
One could also use YODEL as a transport by sending and returning a
YODEL string via CFAJAX, if you wanted to move complex variables
around. This would save re-writing the xmlhttprequest calls etc.

On 11/27/05, Jim Davis [EMAIL PROTECTED] wrote:
 CFAjax can do that, I believe with very little other coding.  If you want
 some more control I also suggest checking out YODEL (which I wrote, so don't
 expectanything unbiased):

 http://www.depressedpress.com/Content/Development/YODEL/Index.cfm

 There's a JavaScript and a (soon to be updated) CF implementation now, but I
 hope for others soon.
--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

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

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


RE: CFUnit Help ... assertEqualsBoolean?

2005-11-26 Thread Jeff Chastain
Paul,

Thanks for the info.  As far as the application variables go, they are being
passed into the object via the constructor (the init function), but it was
the test case that was passing in the application variable via the
constructor.  This way, I don't have to duplicate the information in the
Application.cfc file in every test case thus making changes more difficult
down the road when a data source or mapping change.

Thanks
-- Jeff
 

-Original Message-
From: Paul Kenney [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 25, 2005 11:58 PM
To: CF-Talk
Subject: Re: CFUnit Help ... assertEqualsBoolean?

Jeff,

cfcUnit and CFUnit are a bit different in how assertions are made. In CFUnit
(like JUnit) there is a single function name asserEquals. JUnit can take
advantage of method overloading, so a single method name with different
argument types will work. CFUnit takes the same approach and only has one
assertEquals method that can accept any type for its expected and actual
arguments, and it determines the type of assertion/comparison that needs to
be done based on the determined type of the expected argument. cfcUnit is
done differently. I have found that implying the type of test that needs to
be done based on the types of the arguments gives up too much control and is
harder to understand down the road. Instead, each type of assertion has its
own method that is called explicitly by the test case methods. This is the
default behavior for cfcUnit and does not require the use of any special
base class.

As far as testing for the presense of application variables within your test
cases or making your objects under test aware of them, it is a bad practice
(except in certain cases) and leads to untestable code. If you need these
values to be available to your objects, it is best to pass them in
explicitly via the constuctor or other method arguments.

I hope this helps.

Paul

On 11/25/05, Jeff Chastain [EMAIL PROTECTED] wrote:

 Well, the reason I was going with the assertEqualsBoolean() was, how 
 can an equality test tell if a given string is a string or a boolean 
 type?  I am getting the following failure ...

 testIsNullID(crTracker2._com.test.propertyTest): : 
 expected:... but was:...

  which I assumed had to do with the fact it was trying to compare 
 the string 'YES' with the boolean value 'true' and coming up short.  
 Now that I change the extends to grab the extra functions though, I am 
 still getting the error above.  It is not the most descriptive as to 
 where the problem is .

 As a brief aside, I went and checked out CFCUnit to see if it was any 
 better documented.  However, when setting up a test case there, it 
 does not appear that the execution of the test case includes the 
 Application.cfc file for the project.  Am I missing something here or 
 am I doing something wrong by utilizing application level variables 
 (dsn, cfc mapping, etc.) in my test cases to pass to the object?

 Thanks
 -- Jeff



 



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

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


RE: Creating dynamically array variables

2005-11-26 Thread Dave Watts
 I need to create a dynamically variable inside this code:
 
 cfset FormVariable = Subject
 cfset form.fieldnames = ListSort(form.fieldnames,textnocase)
 cfloop list=form.fieldnames index=ThisItem
 cfif ThisItem is not fieldnames AND Len(Evaluate(ThisItem))
 !--- HERE BEGIN THE TROUBLE---
   cfset 
 ArrayAppend(session.forms.[FormVariable][1],ThisItem)
 
   cfset 
 ArrayAppend(session.forms.[FormVariable][2],Evaluate(ThisItem))
 /cfif
 /cfloop
 
 Using that code CF 6.1 shows me this error:
 
 A CFML variable name cannot end with a . character.
 
 What's wrong?

You can't use dot and array notation simultaneously. If you have a form
variable called myname, you can refer to it as Form.myname or
Form[myname], but not Form.[myname].

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


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

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


Re: Monitor DSN

2005-11-26 Thread John Lucania
Mike,

Can you share your codes with me?

jl

On 11/26/05, Mike Chabot [EMAIL PROTECTED] wrote:
 I have a monitor page in each of my applications that is called from
 an external server every five minutes. The monitor page runs a few
 essential queries to test database connectivity. If a query fails, I
 get an E-mail sent from the external server. If the entire page fails,
 I try to call an HTML page in that directory to see if the server is
 up.

 You could also buy a product like Whats Up Gold
 http://www.ipswitch.com/products/whatsup/index.asp to monitor your
 database server.

 -Mike Chabot

 On 11/26/05, John Lucania [EMAIL PROTECTED] wrote:
  I often experience that Data Source Names got lost the connectivity
  due to various reasons such as power outage, reboot, network blip,
  etc.   Is there a way to monitor the DSN connectivity loss through
  Scheduled Tasks (sending CFMAIL) or something else?  It is CFMX.
 
  jl

 

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

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


Re: more cfform goodness, maybe....

2005-11-26 Thread dave
thanks

~Dave the disruptor~
good sites - make money getting rid of ie :)
http://explorerdestroyer.com/
http://www.killbillsbrowser.com/ 


From: Paul Hastings [EMAIL PROTECTED]
Sent: Saturday, November 26, 2005 6:41 PM
To: CF-Talk cf-talk@houseoffusion.com
Subject: Re: more cfform goodness, maybe 

dave wrote:
 once I start setting the variables for the selected record, how do I place 
 them in the msg variable?

var msg=your HTML goop goes here+title+some more of your 
goop+state+the last of the goop+whateverASvar;



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

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


RE: CF Hosting

2005-11-26 Thread dave
They have non advertised' prices if you call them, none of my clients pay 
anymore than $14.95 a month on linux or winblows

~Dave the disruptor~
good sites - make money getting rid of ie :)
http://explorerdestroyer.com/
http://www.killbillsbrowser.com/ 


From: Munson, Jacob [EMAIL PROTECTED]
Sent: Saturday, November 26, 2005 7:39 PM
To: CF-Talk cf-talk@houseoffusion.com
Subject: RE: CF Hosting 

I am talking about CF hosting on Linux. Their cheapest package for that
is $20/mo, which I agree is a decent price. But I currently am paying
$3.50/mo for CF on Linux @ xtreme-host.com. I am a cheapskate, what can
I say! :)

 -Original Message-
 From: dave [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, November 24, 2005 1:34 AM
 To: CF-Talk
 Subject: RE: CF Hosting
 
 2gb of space, their award winning 24x7 365 support, free 
 domain name  2 free months with yearly payment for $14.95 a 
 month is too steep for you??
 
 ~Dave the disruptor~
 good sites - make money getting rid of ie :)
 http://explorerdestroyer.com/
 http://www.killbillsbrowser.com/ 
 
 
 From: Munson, Jacob 
 Sent: Wednesday, November 23, 2005 9:48 AM
 To: CF-Talk 
 Subject: RE: CF Hosting 
 
 I looked at HMS, and their prices are a bit steep for me. I'm 
 sure they
 are well worth it, but I just wish they had a lower end 
 product with CF
 (like my current host).
 
 I have heard from people that run hosting services that you 
 can put more
 shared hosts on a Linux server than you can on a Windows server. Has
 anybody found that to be true? I would figure that Win2k3 
 would be able
 to at least match a Linux server in bandwidth throughput, but I've got
 no experience in the area.
 
 
 
 
 
 



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

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


RE: GIF Pipes/AJAX/async gateway

2005-11-26 Thread Jim Davis
 -Original Message-
 From: James Holmes [mailto:[EMAIL PROTECTED]
 Sent: Saturday, November 26, 2005 8:47 PM
 To: CF-Talk
 Subject: Re: GIF Pipes/AJAX/async gateway
 
 One could also use YODEL as a transport by sending and returning a
 YODEL string via CFAJAX, if you wanted to move complex variables
 around. This would save re-writing the xmlhttprequest calls etc.

'Xactly.  ;^)  YODEL doesn't have any internal infrastructure for data
transfer - you'd need something like CFAJAX (or whatever else you like) to
actually pass the data around.

The next release of the CF and JS serializers (which should be out soon
since I'm on vacation this week) will also add in some automation for
Objects/CFCs.

I think this will work like this (I'm still building it, this is the
theory):

1) You build a CFC-representation of the object your need.  For example a
drop down list might be represented as an array of structs (each struct an
option).

2) The (soon to be released) CF YODEL serializer will automatically generate
the value of the Custom attribute based on the name of the CFC.

3) You generate a YODEL custom handler for that custom data type in
JavaScript.  For example a function which takes an array of objects
(structs) an generates an array of Option objects.

From that point on the act of deserialization will also generate your Option
objects automatically.

Both the JavaScript and the CF YODEL implementations already support custom
handlers - I just want to automate them based on the object name.  Once
that's done I'd like to start a canned library of handlers to make
implementation even easier.

Jim Davis



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

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


RE: session load balancing [WAS Re: Pros/Cons Session vs Client scope]

2005-11-26 Thread Andrew Stevens
Douglas, can you elaborate on this point?

Cheers,
AS

-Original Message-
From: Douglas Knudsen [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 26 November 2005 4:46 AM
To: CF-Talk
Subject: Re: session load balancing [WAS Re: Pros/Cons Session vs Client
scope]

I'll point out that if you have a CF(JRun) cluster set to use
non-sticky sessions this will kill use of CF Graphing.  AFAIK, there
is no work around.  Just an FYI

DK

On 11/25/05, John Paul Ashenfelter [EMAIL PROTECTED] wrote:
 On 11/23/05, Dave Watts [EMAIL PROTECTED] wrote:
 How do you span sessions across ColdFusion servers if you
 aren't using Enterprise?
   
You don't.
  
   Isn't it all a matter of how you cluster the machines though?
   I mean, if you want to use sessions in a clustered environment,
   you just need to make sure that your load balancer uses sticky
   sessions. Basically, the goal is not to ever toss users between
   servers, but just assign users to a server based on the load
   balancing parameters when they first land on your site.
 
  If you do that, you aren't spanning sessions across CF servers. This
  approach is often referred to as sticky sessions. If you use sticky
  sessions, you don't get failover, only load-balancing. This may or may
not
  be acceptable, depending on your business needs and general server
  stability.

 Furthermore, you get a less powerful version of load-balancing --
 incoming initial user sessions are balanced according to load (or
 whatever balancing scheme is being used) but once the user is *on* a
 server, they're on it for the sessions (thus the sticky). So if a
 server slows down b/c of a runaway process for example, *new* users
 get balanced to the less loaded servers, but the folks on the server
 with the slowdown are stuck.

 This is in contrast to active loadbalancing without sticky sessions
 where the user gets the least loaded server (or whatever is set in the
 balancing rubric) on *every* request.

 As an aside, implementing session-aware clustering can actually
 degrade performance, even when done right. Using files to store
 session for example, is a common approach in both the LAMP stack and
 RubyOnRails for scaling horizontally across N servers -- but your
 chokepoint becomes the SAN or whatever storing the data. Even more
 advanced solutions like memcached (eg LiveJournal and Slashdot) or
 J2EE session clustering (eg CFMX) have problems b/c replicating data
 between multiple nodes takes time when the data is very active.

 It's always a balance of reliability vs performance.

 --
 John Paul Ashenfelter
 CTO/Transitionpoint
 (blog) http://www.ashenfelter.com
 (email) [EMAIL PROTECTED]

 



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

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