RE: using jars without classpath?

2004-09-29 Thread Samuel Neff
Yes, but you have to manually instantiate the classes through Java's
URLClassLoader.more info here:

http://www.spike.org.uk/blog/index.cfm?data="">

Sam

-Original Message-
From: Joshua OConnor-Rose [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 29, 2004 2:41 PM
To: CF-Talk
Subject: using jars without classpath?

Just got some new information on the project.

Evidently the client is using a shared server and they
have some rules.

Is in possible in CF to use createObject or cfinvoke
or cfobject to access java classes or .jar without
them being configured in the class path.

-Joshua O'Connor-Rose
-All is Good
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: using jars without classpath?

2004-09-29 Thread Samuel Neff
Even if you can't cache the object instance due to the type of object, you
can always cache the class reference itself (the return of loader.loadClass)
and use that to repeatedly call newInstance() which would not cause
performance problems as compared to cfobject/createobject.

Sam

-Original Message-
From: Spike [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 29, 2004 3:04 PM
To: CF-Talk
Subject: Re: using jars without classpath?

Forgot to mention the issues in that last message.

The main issue is the speed. It will take quite a lot longer to load 
classes with the URLClassLoader than if they are on the classpath. The 
other one is having to add all of the paths and jars to the array you 
use to initialize the URLClassLoader.

Speed can sometimes be overcome by caching the instantiated objects 
depending on the objects themselves. The adding of paths and JARs is 
just a matter of knowing what your java code is referencing.

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




RE: Strange request that English language only be entered in a textar ea.

2004-09-29 Thread Samuel Neff
Run a spell checker and if more than a certain percentage of words are
misspelled, then it's probably not english (high number.. like more than 60%
or 70% of words, not just a few).You could even let them bypass it with an
option like Yes, it is English, my spelling really is that bad.:-)

We use ActivSpell and are very happy with it.
http://www.cfdev.com/spellcheck/

You can also filter out anything that has non-English characters (again,
should have a few non-english characters, not just one, but that's not going
to catch everything).

Sam

-Original Message-
From: Ciliotta, Mario [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 29, 2004 4:11 PM
To: CF-Talk
Subject: Strange request that English language only be entered in a textar
ea.

Hi,

Has anyone ever had to do this before.I have CFMX page that contains a
series of drop down and one large textbox that my users can enter a
description of what is contained in their request.The problem that I ma
having is that the form is used worldwide in my company and some users will
enter the description in their native language, ie French, German and so on.
The problem is that the form and the actual request are taken actioned by
staff in New York City and they do not understand the language.My Audit
department has asked that it limit the textarea to English language only.

Is there a way to really do this.

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




Oracle connection refused error with CFSCHEDULE task only

2004-09-24 Thread Samuel Neff
We're getting an Oracle error when we run a page through CFSCHEDULE but not
when we browse to the page.The page does a full-text index on the database
by querying all the data, writing out text files for each record, and then
indexing the text files.(we found that writing text files and indexing
those is at least 10 times faster than indexing the query directly--no idea
why).

So when we browse to the page it runs though and indexes everythign fine.
When we run it via cfschedule, we get this weird error I've never seen
before and couldn't find anything about online.

Also look at the file list, it's odd that it lists the CF call stack twice
with part of the error message in between as a Called from template.The
Java stack trace is correct though.

Error Executing Database Query.
[Macromedia][Oracle JDBC Driver][Oracle]Connection refused,
(DESCRIPTION=(TMP=)(VSNNUM=153093376)(ERR=12500)(ERROR_STACK=(ERROR=(CODE=12
500)(EMFI=4))(ERROR=(CODE=12560)(EMFI=4))(ERROR=(CODE=530)(EMFI=4))(ERROR=(B
UF='32-bit Windows Error: 2: No such file or directory'

 
The error occurred in
E:\WebDocs\SystemTest\Inventory2005\Input\browse\collections\qry_Task_Select
_All.cfm: line 33
Called from
E:\WebDocs\SystemTest\Inventory2005\Input\browse\collections\act_create_keyw
ord_docs.cfm: line 9
Called from
E:\WebDocs\SystemTest\Inventory2005\Input\browse\collections\index.cfm: line
11
Called from
DESCRIPTION=(TMP=)(VSNNUM=153093376)(ERR=12500)(ERROR_STACK=(ERROR=(CODE=125
00)(EMFI=4))(ERROR=(CODE=12560)(EMFI=4))(ERROR=(CODE=530)(EMFI=4))(ERROR=(BU
F='32-bit Windows Error: 2: line -1
Called from
E:\WebDocs\SystemTest\Inventory2005\Input\browse\collections\qry_Task_Select
_All.cfm: line 33
Called from
E:\WebDocs\SystemTest\Inventory2005\Input\browse\collections\act_create_keyw
ord_docs.cfm: line 9
Called from
E:\WebDocs\SystemTest\Inventory2005\Input\browse\collections\index.cfm: line
11

32 : 
33 : AND t.id = #id#
34 : 		ORDER BY
35 : 			t.nasa_id

SQL 	SELECT t.ID, t.UPN_ID, t.SUB_UPN, t.TASK_NAME, t.COMMENTS,
t.CCCLEVEL, t.RELEASE_NAME, t.URL, t.DATE_MODIFIED, m.Maturity_Descrip,
users.LoginName AS Modified_By, e.Enterprise_Name, c.center_name FROM Task
t, Maturity_LU m, InventoryUsers users, UPN_Lu upn, Enterprise_LU e,
Center_LU c WHERE t.Maturity_ID = m.Maturity_ID AND t.Modified_By_ID =
users.User_ID AND t.RecordStatus != 'D' AND upn.enterprise_id =
e.enterprise_id AND t.center_id = c.center_id AND t.upn_id = upn.upn_id
ORDER BY t.id
DATASOURCE 	SystemTestInput2005
Please try the following:

 * Check the ColdFusion documentation to verify that you are using the
correct syntax.
 * Search the Knowledge Base to find a solution to your problem.

Browser	CFSCHEDULE
Remote Address	128.183.235.210
Referrer	
Date/Time	23-Sep-04 11:00 PM
Stack Trace
at
cfqry_Task_Select_All2ecfm2018976324.runPage(E:\WebDocs\SystemTest\Inventory
2005\Input\browse\collections\qry_Task_Select_All.cfm:33) at
cfact_create_keyword_docs2ecfm1358543822.runPage(E:\WebDocs\SystemTest\Inven
tory2005\Input\browse\collections\act_create_keyword_docs.cfm:9) at
cfindex2ecfm2020146618.runPage(E:\WebDocs\SystemTest\Inventory2005\Input\bro
wse\collections\index.cfm:11) java.sql.SQLException: [Macromedia][Oracle
JDBC Driver][Oracle]Connection refused,
(DESCRIPTION=(TMP=)(VSNNUM=153093376)(ERR=12500)(ERROR_STACK=(ERROR=(CODE=12
500)(EMFI=4))(ERROR=(CODE=12560)(EMFI=4))(ERROR=(CODE=530)(EMFI=4))(ERROR=(B
UF='32-bit Windows Error: 2: No such file or directory' at
cfqry_Task_Select_All2ecfm2018976324.runPage(E:\WebDocs\SystemTest\Inventory
2005\Input\browse\collections\qry_Task_Select_All.cfm:33) at
cfact_create_keyword_docs2ecfm1358543822.runPage(E:\WebDocs\SystemTest\Inven
tory2005\Input\browse\collections\act_create_keyword_docs.cfm:9) at
cfindex2ecfm2020146618.runPage(E:\WebDocs\SystemTest\Inventory2005\Input\bro
wse\collections\index.cfm:11)

java.sql.SQLException: [Macromedia][Oracle JDBC Driver][Oracle]Connection
refused,
(DESCRIPTION=(TMP=)(VSNNUM=153093376)(ERR=12500)(ERROR_STACK=(ERROR=(CODE=12
500)(EMFI=4))(ERROR=(CODE=12560)(EMFI=4))(ERROR=(CODE=530)(EMFI=4))(ERROR=(B
UF='32-bit Windows Error: 2: No such file or directory'
	at
coldfusion.server.j2ee.sql.pool.JDBCPool.requestConnection(JDBCPool.java:677
)
	at
coldfusion.server.j2ee.sql.pool.JDBCManager.requestConnection(JDBCManager.ja
va:123)
	at
coldfusion.server.j2ee.sql.JRunDataSource.getConnection(JRunDataSource.java:
138)
	at
coldfusion.server.j2ee.sql.JRunDataSource.getConnection(JRunDataSource.java:
125)
	at
coldfusion.sql.DataSrcImpl.getCachedConnection(DataSrcImpl.java:120)
	at coldfusion.sql.DataSrcImpl.getConnection(DataSrcImpl.java:75)
	at coldfusion.sql.SqlImpl.execute(SqlImpl.java:207)
	at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:447)
	at
cfqry_Task_Select_All2ecfm2018976324.runPage(E:\WebDocs\SystemTest\Inventory
2005\Input\browse\collections\qry_Task_Select_All.cfm:33)
	at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
	at 

RE: Oracle connection refused error with CFSCHEDULE task only

2004-09-24 Thread Samuel Neff
No limitations, and at that time of day, there should be zero activity (it's
an intranet site, US only).We did try changing the time of day from 2:00
AM to 11:00 PM but that didn't have any affect.

Sam

-Original Message-
From: Adrocknaphobia [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 24, 2004 10:56 AM
To: CF-Talk
Subject: Re: Oracle connection refused error with CFSCHEDULE task only

Do you have any limitations on the number of sessions the Oracle
account you are using is allowed?

-Adam

- Original Message -
From: Samuel Neff [EMAIL PROTECTED]
Date: Fri, 24 Sep 2004 09:39:54 -0400
Subject: Oracle connection refused error with CFSCHEDULE task only
To: CF-Talk [EMAIL PROTECTED]

(snip)

Error Executing Database Query.
[Macromedia][Oracle JDBC Driver][Oracle]Connection refused,
(DESCRIPTION=(TMP=)(VSNNUM=153093376)(ERR=12500)(ERROR_STACK=(ERROR=(CODE=12
500)(EMFI=4))(ERROR=(CODE=12560)(EMFI=4))(ERROR=(CODE=530)(EMFI=4))(ERROR=(B
UF='32-bit Windows Error: 2: No such file or directory'
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Oracle connection refused error with CFSCHEDULE task only

2004-09-24 Thread Samuel Neff
We're not using any type of HTTP-level authentication and users browsing the
site don't have any accounts or anythign on the server.It's all default
setup for CF server users.

And besides that, the error is on the query, before we ever get to the file
write.

Could what you describe still be the problem?

Thanks,

Sam

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 24, 2004 11:13 AM
To: CF-Talk
Subject: Re: Oracle connection refused error with CFSCHEDULE task only

One of the first things I always check with CFSHEDULE problems is does the
user account that the Cold Fusion service run as, usually system if not
modified, have permission to all the resources necessary to do its task.In
your case I would check the file security on the directories to which you
are trying to write.You may also want to double check the permissions to
Oracle as well.

The basic issue is that when you browse to the template the system uses
your premisssions and can access resources that you have permission to
utilize.But when CFSHEDULE runs the same template it can only use the
permissions of the account used by the CF service and these are usually very
limited if left to the defaults.

Hope that helps.

Ian 
BloodSource
www.bloodsource.org
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Database Management Tool

2004-09-24 Thread Samuel Neff
OraEdit has most of the features and a fraction of the price.I personally
like the interface better too (cleaner).Support has been very good too.

http://www.oraedit.com/oraeditpro.htm

Sam

-Original Message-
From: Douglas Knudsen [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 24, 2004 3:45 PM
To: CF-Talk
Subject: Re: Database Management Tool

yeah, dood, if you can use TOAD do!it simply rawks!I use it
logging in with the same uid/pwd as CF does.

Doug

- Original Message -
From: Adrocknaphobia [EMAIL PROTECTED]
Date: Fri, 24 Sep 2004 14:36:33 -0500
Subject: Re: Database Management Tool
To: CF-Talk [EMAIL PROTECTED]

You can't use TOAD or SQL*Plus?

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




RE: Java Import - CF

2004-09-17 Thread Samuel Neff
Import in Java doesn't instatiate anything, all it does is make a reference
used by the compiler to use shorthand access to packages so you don't have
to write out the whole package name every time you reference a class in that
package.

The closest equivalent in CF would be:

cfset portlet = com.plumtree.remote.portlet.
cfset homePortlet = createObject(java, #portlet#HomePortlet)

Sam

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

-Original Message-
From: Jeff Chastain [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 17, 2004 8:45 AM
To: CF-Talk
Subject: Java Import - CF

When you see the following line in a JSP file ...
% page language=java import=com.plumtree.remote.portlet.* %
... is there a way to duplicate this functionality in CFMX?Is it possible
it import an entire library like this rather than instantiating every class
individually with cfobject?

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




RE: OT: Next Dreamweaver release?

2004-09-16 Thread Samuel Neff
Sean,

If CF created class files that could be debugged with Java tools, we'd be
debugging the generated Java code and not the CF code.Certainly it would
work, but even those very familiar with Java would probably rather debug the
CFML code directly.

Or is there something else I'm misunderstanding?

Sam

-Original Message-
From: Sean Corfield [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 5:31 PM
To: CF-Talk
Subject: Re: OT: Next Dreamweaver release?

opinion type=personal
Now that CFMX runs on Java, the most likely avenue would be to make
CFMX compiled class files compatible with the JSR for Java debugging
so you could use 'any' compliant Java debugging tool... Just my 2ยข...
I have no idea whether that's even feasible, BTW!
/opinion
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Next Dreamweaver release?

2004-09-16 Thread Samuel Neff
I used it all the time and really miss it.

In my other work (Flash, Flex, Java, C#) I use the debugger all the time
(very buggy code I guess).

Sam

-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 9:15 AM
To: CF-Talk
Subject: RE: Next Dreamweaver release?

  CFStudio can do it only with CF 5,

 May be another reason so many people are still with CF 5?

I doubt it. I've rarely seen anyone use the CF 5 debugger. I never used it
in real life, myself; I found it easier to debug problems manually. It was
at one time covered in the Macromedia courseware, but most students would
find it easier to debug things manually, too.

Dave Watts, CTO, Fig Leaf Software
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: OT: Next Dreamweaver release?

2004-09-15 Thread Samuel Neff
At the last MAX it was pretty clear that there were two distinct teams.. a
Dreamweaver team and a Flex Builder team.Not sure if the DW team lost
anyone to the Flex Builder team or what, but there were two teams doing
development at the same time.So I'm sure we'll see a new DW release when
the time comes for a studio update.

Sam

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

-Original Message-
From: Dave Carabetta [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 4:45 PM
To: CF-Talk
Subject: Re: OT: Next Dreamweaver release?

On Wed, 15 Sep 2004 16:02:35 -0400, Damien McKenna
[EMAIL PROTECTED] wrote:
 Does anyone know anything about the next release of Dreamweaver?
 They've been doing annual releases for three+ years and I'm interested
 to see what happens next.I'd really like to see a) the test/live FTP
 system fixed on OSX and b) CFMX debugging.

In a word, no. However, I wouldn't be suprised if this year's
release is considered Flex Builder. A lot of time and resources went
into that. That being said, I'll defer to somebody at Macromedia for
an official answer.

Regards,
Dave.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Next Dreamweaver release?

2004-09-15 Thread Samuel Neff
CFStudio can do debugging with CF5 but not with CFMX.CFMX does not support
debugging and in all the talk about Blackstone and new features nobody
mentioned debugging (doesn't mean it's definitely not there, but just saying
it was never mentioned).

Sam

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

-Original Message-
From: Damien McKenna [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 4:43 PM
To: CF-Talk
Subject: Re: Next Dreamweaver release?

Dave Watts wrote:

CFMX debugging would require changes within CFMX as well as within
Dreamweaver.



CFStudio can do it?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: BlackStone Beta 1

2004-09-09 Thread Samuel Neff
maybe your thoughts should be around N.. D.. A...

:-)

Sam

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

-Original Message-
From: Asim Manzur [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 09, 2004 12:48 PM
To: CF-Talk
Subject: BlackStone Beta 1

did someone knows that BlackStone Beta 1 was out last night??

Its preety cool, I am playing with that now, and it feels like I am working
on FLEX with coldfusion.

it has preety cool cfform features, pdf, report generation, flash paper and
alot more.

really its amazing product.

Just my thoughts.

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




OT: Fake online orders--how common are they?

2004-08-20 Thread Samuel Neff
For people that run e-commerce sites, how common is it to get fake online
orders?We get a ton of orders with details like

First Name: a
Last Name: b
E-Mail: [EMAIL PROTECTED]

etc.

Which of course don't go through.They're all from different IP's and the
user is entering a semi-valid credit card number (at least valid according
to the mathematical validation--not valid in that the bank rejects it as an
invalid account).

Do others get a lot of these orders (we get more of these than real orders,
and we have plenty of real orders)?Why do people do junk like this?Are
there actually e-commerce sites out there that can be hacked like this
(seems impossible since I assume everyone is charging credit cards in
real-time)?

Thanks,

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




RE: Fake online orders--how common are they?

2004-08-20 Thread Samuel Neff
We wouldn't want to force the user to have to log in to our site twice to
place an order--especially when we only have one product.:-)

I'm not concerned about these orders, not like we actually send out download
information.Just was curious how common they are and apparently they're
pretty common.

Many thanks to all for the feedback,

Sam

-Original Message-
From: Ewok [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 20, 2004 2:04 PM
To: CF-Talk
Subject: Re: Fake online orders--how common are they?

I've seen a couple, looks like someone jsut wanted to see how the form
worked or see if they could get an error or whatever. That is just regular
forms though, I never see it on my checkout forms since they need legit CC
numbers.

You could get rid of them all together by making a user regiter before they
can buy anything and validate their registration with an email with
generated links to activate the account.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: something better?

2004-08-20 Thread Samuel Neff
Do you mean code-only or wysiwyg?

For code-only I'd suggest PrimalScript (http://www.sapien.com) or HomeSite+
(on DW cd).

Sam

--
Blog:http://www.rewindlife.com
Chart: http://www.blinex.com/products/charting
-- 
-Original Message-
From: md insua [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 20, 2004 2:18 PM
To: CF-Talk
Subject: something better?

Now, I know for some, my question is going to seem to be heresy, but...

Does anyone know of a multi-language editor other than Dreamweaver that
offers pretty much the same features without half the crap Dreamweaver puts
into the code?

A little insight ~ I'm getting a little fed up with the host of ancillary
amout of code and white space dreamweaver arbitrarily throws into my code.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: XML/XSLT to write typical CF Form page

2004-07-15 Thread Samuel Neff
Blackstone does this.You write simple CFFORM/CFINPUT tags and behind the
scenes it generates XForms (XML standard).Then it uses an XSLT to
transform into HTML.You can use provided XSLT's or make your own.

It was demoed heavily during Ben Forta's user group tour and is pretty kewl.

Another thing you can look at is instead of using xml/xslt it might be
easier to create a set of custom form tags.. cf_form, cf_input, cf_select
and put the display logic in those.You could even use cfimport to have
different styles as long as they expose the same tags.

Sam

-Original Message-
From: Jon Gunnip [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 15, 2004 9:34 AM
To: CF-Talk
Subject: XML/XSLT to write typical CF Form page

I have an app with 100 forms that are all very similar in structure:
1) filter on some heirarchy of properies on the left: e.g. Year -
State - City to find a paricular record
2) edit, delete, or add a new record on the right

I want to streamline the maintenance of writing these CF self-posting
form processing pages since the structure seems pretty consistent but
each form is between 400 and 1000 lines of CF/HTML.

I was thinking I could describe the structure in XML and then use XSLT
to write my 400-1000 line CFM page.Then I could cfinclude the result. 
It would be great is someone out there has already defined a nice DTD
for doing this.

Anyone doing anything like this?

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




RE: Best choice for ColdFusion Studio IDE...

2004-07-15 Thread Samuel Neff
That's correct, PrimalScript is a Windows only program.

Sam

-Original Message-
From: Matt Liotta [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 14, 2004 5:44 PM
To: CF-Talk
Subject: RE: Best choice for ColdFusion Studio IDE...

As far as I can tell it only works on Windows. Is that correct?

-Matt

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 On Behalf Of Simon Horwith
 Sent: Wednesday, July 14, 2004 5:32 PM
 To: CF-Talk
 Subject: Re: Best choice for ColdFusion Studio IDE...
 
 I second Sam on that - primalscript is pretty cool.
 
 ~Simon
 
 Simon Horwith
 CTO, eTRILOGY ltd.
 Member of Team Macromedia
 Macromedia Certified Master Instructor
 http://www.cfstandards.org
 
 
 
 Samuel R. Neff wrote:
 
  PrimalScript
  http://www.sapien.com
 
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Blackstone Strong Typing? was Re: CFX_FileReadLn

2004-07-09 Thread Samuel Neff
Dave,

You don't need access to the CFML source code to see how strong typing can
benefit CF and how it can be implemented--only need to look at the Java
files generated by CFMX.

If you look at these files you'll see how all variable references go through
a complex set of Hashtable lookups, custom-casting functions, and
auto-scalarize functions.All this work on every variable reference is
waistful but necessary today given CF's loose nature.

The case is a little better for function-local variables as they don't have
the hashtable lookup (a var scope variable maps to a Variable class instance
in Java and are not stored in a Hashtable).However, these variables still
go through the same CF casting and auto-scalarize stuff.

If CF were to provide strong typed variables at a var-scope level (function
local only) then we wouldn't have variables stored as Variable class
instances but as native variables.We wouldn't have constant casting.We
wouldn't have scalarizing stuff.

Limiting it to var-scope only may seem insufficient but as more people start
to use CFC's for their entire app then this limitation becomes irrelevant.
CFC's can validate types coming in and out and if they can store them
natively, it would greatly improve performance and give us better
functionality and native Java integration.

Also take a look at what happens when you use a Java object in CF via
createObject or cfobject or getClass.All method calls on the java object
are routed through reflection which is a lot of complex code.If we had
variables strongly typed to java variables, then all this reflection could
be removed and we could directly program Java objects in CFML and achieve
speed in many cases similar to JSP for processor-intensive operations
(stream processing as the biggest issue where I've run into problems).

Best regards,

Sam

-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 09, 2004 8:54 AM
To: CF-Talk
Subject: RE: Blackstone Strong Typing? was Re: CFX_FileReadLn

 Done right, CF doesn't need to give up anything to provide 
 optional support for strong typing any more than they had to 
 sacrifice anything to give us CFCs.

How do you know this?

We can all speculate on how easy or difficult something would be, but I find
it hard to reach this sort of conclusion without having access to the CF
source code.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: convert MySQL to MSSQL?

2004-07-09 Thread Samuel Neff
MSSQL has Data Transformation Services.It can bring in data from lots of
different datasources.Should work with MySQL.

Sam

-Original Message-
From: Matt Robertson [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 09, 2004 2:08 PM
To: CF-Talk
Subject: Re: convert MySQL to MSSQL?

Damien,

I do this in the other direction (into mySQL) all the time via
mySQLFront, which preserves all characteristics, indexes etc.Doesn't
SQL Server have similar functionality?

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




RE: Blackstone Strong Typing? was Re: CFX_FileReadLn

2004-07-09 Thread Samuel Neff
With 6.1 you have to decompile the generated class files.There are lots of
tools to do that.Google.

It's your code, so I'm pretty sure there are no legal issues.Besides, it's
a good debugging tool and always good to know what's going on to help with
optimization.

Sam

-Original Message-
From: Dick Applebaum [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 09, 2004 2:28 PM
To: CF-Talk
Subject: Re: Blackstone Strong Typing? was Re: CFX_FileReadLn

On Jul 9, 2004, at 7:35 AM, Samuel Neff wrote:

You don't need access to the CFML source code to see how strong 
 typing can
benefit CF and how it can be implemented--only need to look at the 
 Java
files generated by CFMX.

How do you do that with CFMX 6.1 -- all I can get is the class files

TIA

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




RE: Absolute positioning in word (WAS: CSS layer positioning)

2004-07-01 Thread Samuel Neff
As I say in my presentation, not everything that can be done in Word can be
recreated through HTML-Word.This appears to be one of those cases.

When I create a Word doc with an absolutely positioned table and try to save
it as HTML I get this error message from Word Tables with text wrapping and
framed objects will become aligned with the beginning of the paragraph.

Sam

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

-Original Message-
From: James Smith [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 01, 2004 5:15 AM
To: CF-Talk
Subject: RE: Absolute positioning in word (WAS: CSS layer positioning)

Hi Samuel,

Firstly I have to say your original documents on serving word were most
helpful.

Now back to my problem, if I position a table in an absolute position on the
page in word then save it as a doc file it works fine, however it is a
binary file and therefore useless as a source of information.If I save it
as an HTML document as you suggest it immediately moves the table into a
relative position and looses its absolute position, this is also no good :-(

A text box does seem to keep it's position ok, but generates so much html
code it is hard to tell which bits I need and which I don't, is there any
good documentation anywhere on this?

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




RE: Which to use as primary key?

2004-07-01 Thread Samuel Neff
Someone would use multiple columns as a primary key when you have a
cross-ref table that represents the many-to-many join between two tables and
both fields in the xref table are foreign keys to the other two tables.For
example:

Users (UserId, ...)
Groups(GroupId, ...)
Users_Groups (UserId, GroupId)

In the Users_Groups table the PK can be (UserId, GroupId).One can add a
separate single-field identifier and add a unique constraint on
UserId/GroupId that is not a PK, but since this is just an xref then there
is really no need for a separate single-field identifier.

As far as I can recall any other use of compound PK means the person putting
together the database doesn't understand normalization and doesn't care
about performance.(sorry guys, but if you're seriously using FirstName,
LastName, DOB, whatever fields as a compound PK, then you really need to
hire a dba to work with you).

Best regards,

Sam

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

-Original Message-
From: brobborb [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 01, 2004 9:56 AM
To: CF-Talk
Subject: Re: Which to use as primary key?

I never knew this was possible.even then, under what circumstances would
someone do it that way?
- Original Message - 
From: Robertson-Ravo, Neil (RX) 
To: CF-Talk 
Sent: Thursday, July 01, 2004 8:56 AM
Subject: RE: Which to use as primary key?

As noted you can in theory youonly have 1 PK, but you could use a series
of columns as a compound key to act as a PK (assuming they are unique)
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Passing '' (quotes) in Form Fields

2004-07-01 Thread Samuel Neff
Use htmlEditFormat() befure sticking it in the value attribute of the form
field.

Sam

-Original Message-
From: David Fafard [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 01, 2004 2:51 PM
To: CF-Talk
Subject: Passing '' (quotes) in Form Fields

I'm having an issue with passing Form values that contain 
two single or one double quote mark to an action page.

The descriptions contain the Inch notation of the two
single quotes '' or one double  depending on how the user
entered it.

example:
the value,
I44214 (6 MASTER)
becomes this value on the action page.
I44214 (6

Any way to have CFMX pass those quotes intact?

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




RE: XFORMS and BLACKSTONE

2004-07-01 Thread Samuel Neff
The examples shown at CFUN demonstrated how CFFORM could be used to generate
XForms and then XSLT is used to translate the XForms to standard HTML such
that standard form fields are submitted.Presumably one could use an XSLT
that just copied the source XForms XML without modification and put that in
the reponse stream for the user agent to process.However, this would
require a UA that supports XForms.Do any mainstream browsers support it?

One could also theoretically write an XSLT that converted the XForms XML to
HTML and included _javascript_ to format the data into the proper XForms
specified data XML file and store that in a form field when the form is
submitted.Would be compliated and not worth the effort, but it seems
technically possible.

Sam

-Original Message-
From: Alexander Sherwood [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 01, 2004 3:04 PM
To: CF-Talk
Subject: XFORMS and BLACKSTONE

At 02:27 PM 7/1/2004, you wrote:
 
Paul

According to Forta's talk at CFUN04, Xforms support is included in
Blackstone.

>From what I read, this seems true. I did read, however, that the form
submission process would remain the same: a list for form fields. I was
under the impression that Xforms works by binding data to and from an XML
instance document.

Ben, will the planned Xforms functionality in Blackstone allow for the
POSTING of the XML instance document?

Thanks!

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




RE: XFORMS and BLACKSTONE

2004-07-01 Thread Samuel Neff
Flex has the ability to bind form elements to a data model which is xforms
like, but in a much simpler declarative syntax.

Sam

-Original Message-
From: Alexander Sherwood [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 01, 2004 3:18 PM
To: CF-Talk
Subject: RE: XFORMS and BLACKSTONE

How 'bout embedding Xforms support in the Flash player?! (I know Denji or
Dengi exists.but native support would be nice!).
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Absolute positioning in word (WAS: CSS layer positioning)

2004-06-30 Thread Samuel Neff
Big bold letters on MS website:

Microsoft does not currently recommend, and does not support, Automation of
Microsoft Office applications from any unattended, non-interactive client
application or component (including ASP, DCOM, and NT Services), because
Office may exhibit unstable behavior and/or deadlock when run in this
environment. 

http://support.microsoft.com/default.aspx?scid=kb;en-us;257757

Sam

On Wed, 30 Jun 2004 12:20:31 -0400, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Or you could use COM to automate the creation of your word docs from
 scratch. You need to have a copy of word loaded on your app (web) server 
 then you can do stuff like this:
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Absolute positioning in word (WAS: CSS layer positioning)

2004-06-30 Thread Samuel Neff
Save it as HTML then you'll see all the HTML needed to generate the same
word doc.

Sam

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 3:00 PM
To: CF-Talk
Subject: RE: Absolute positioning in word (WAS: CSS layer positioning)

John, when you open a *binary* word doc in notepad, you will stand witness 
to a mountain of gibberish or am I missing something here?

-mike

Burns, John D [EMAIL PROTECTED]
06/30/2004 02:39 PM
Please respond to cf-talk

To:CF-Talk [EMAIL PROTECTED]
cc: 
Subject:RE: Absolute positioning in word (WAS: CSS layer
positioning)

The other option for creating word formatted docs (if it's the same type
of doc over and over...ie. Labels) is to create the doc in word the way
you want it, open the doc in a text editor so you can see all the
formatting and make a cf page that creates something with the exact same
formatting and save it to a file with the extension .doc.

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




RE: How does CF generated Java bytecode compare with Native Java bytecode

2004-06-29 Thread Samuel Neff
I totally agree on #1 but not limit to primitives.I believe you should be
able to create strongly typed (your use of the word typed in #2 is not
correct) variables that map exactly to java instances of any java class.Of
course there are issues with passing these around and storing in different
scopes, so I would vote for having this available only for var scope
variables inside functions.

There are two reasons for this.First, if you decompile the genreated class
files in 6.1 (or even in 6.0) you'll see that CF jumps through a lot of code
to retrieve a variable from the scope, auto-scalarize it, and often cast
it using special cf-specific casting functions every time a variable is
referenced.All this would be removed if we could directly use java
variables.Second, all use of java variables in CF goes through the
reflection layer and is therefore significantly slower than corresponding
code written directly in Java or in a JSP.Direct access to Java variables
would remove the reflection requirement.

Case sensitivity (your #2) would not benefit the language in any way in my
opinion.Not sure about the collection availability--if we have java
variables, then we have java collections, so it's really a part of #1.

Sam

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

-Original Message-
From: Joe Eugene [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 9:41 AM
To: CF-Talk
Subject: Re: How does CF generated Java bytecode compare with Native Java
bytecode

I believe there are areas where CFMX CFML could improve to be closer to
Java.

1. Optional Primitive Data Types (int, long, String, boolen etc)

2. Optional Strongly typed language (int a != int A)

3. Improve the Collection Framework Availability.

I think the above Optional features when turned on would help translate
CFMX CFML 
closer to Java Contructs.

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




RE: Blackstone @ CF-FUN '04

2004-06-29 Thread Samuel Neff
Flash can connect to a local database when embedded in a 3rd-party projector
extension like Screenweaver, a Director wrapper, or a custom
C++/.NET/VB/whatever wrapper.

Sam

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

-Original Message-
From: Perez, Percy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 8:54 AM
To: CF-Talk
Subject: RE: Blackstone @ CF-FUN '04

for me the problem with Flash is the lack of connectivity to a database.
Yes, I know you can connect viaa webservice; however it would be nice if
it could interface with an offline database.I have been tempted several
times to learn flash, but everytime I think about the lack of database
support, I look the other way.

I know that it is very nice to think that all computers have internet
connectivity; unfortunately that's not the case for me. 

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




RE: DSNless Connection

2004-06-29 Thread Samuel Neff
Yes you can.Question has been asked many many many times (and just
yesterday).Please search the archives for how.

Sam

-Original Message-
From: cfhelp [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 10:45 AM
To: CF-Talk
Subject: DSNless Connection

Can you do this in CFMX 6.1? The EasyCFM Site shows it for CF5.

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




RE: How does CF generated Java bytecode compare with Native Java ytecode

2004-06-29 Thread Samuel Neff
It really depends on what you're doing.For the vast majority of cases,the
performance different in cf vs java is not significant, but in some cases it
is.I re-wrote one snippet of code from cfml to jsp and reduced processing
time from ~20 seconds to under 100 milliseconds.This particular snippet
looped through a large string processing each character.Large loops like
this are significantly faster in Java.

The advantage of CF is you can use CF for most things and when you have
something that is processor intensive you can use Java, either a class in
the classpath, javabean, ejb, or even a jsp page (I like to use jsp pages
since it simplifies deployment).

Best regards,

Sam

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

-Original Message-
From: Calvin Ward [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 1:49 PM
To: CF-Talk
Subject: RE: How does CF generated Java bytecode compare with Native Java
ytecode

ahhh, but is it a significant difference?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Blackstone @ CF-FUN '04

2004-06-29 Thread Samuel Neff
That wasn't it at all... it was that CF can respond to events other than
HTTP events.You still need a J2EE server to host the CFMX server.

Sam

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

Dick Applebaum wrote:
 
 But, from what Ben is demoing, it looks as if you don't need a web
 server or a browser.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: how to open an attached file in its own application (ms-word, excel etc).. please read

2004-06-25 Thread Samuel Neff
You have a problem here:

CFHEADER NAME=Content-Disposition VALUE=inline;
filename=#fName#

It's saying open in the browser.Change it to

CFHEADER NAME=Content-Disposition VALUE=attachment;
filename=#fName#

HTH,

Sam

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

-Original Message-
From: cf coder [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 25, 2004 9:44 AM
To: CF-Talk
Subject: how to open an attached file in its own application (ms-word, excel
etc).. please read

Hello everybody,

I have CFMX installed running on a windows machine.
I have a section on the site where users can view the
files that are attached to a log.
I've called this file showAttachments.cfm

Here is the code:
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: cfun

2004-06-17 Thread Samuel Neff
Intro was originally developed for Flash Forward and I'm pretty sure it's
now a commercial product, so getting a hold of it means probably taking
resources away from other things, or hiking up the price.

CFUN is a great conference, strongly suggest it for CF developers (for
technical content of sessions I suggest it over MAX).

Sam

-Original Message-
From: Rick Root [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 17, 2004 7:52 AM
To: CF-Talk
Subject: Re: cfun

Whittingham, P wrote:

Too bad the CFUN people couldn't get ahold of the code that MAX used for 
Intro last year, that was kinda cool to be able to look up who was 
attending from your region of space.

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




RE: cfun

2004-06-17 Thread Samuel Neff
One area where I would say CFUN and MAX differentiate is that MAX tends to
have mostly beginner and intermediate sessions and CFUN has a broader range.
Of course if you're interested in the other stuff (non-CF sessions, Birds of
a Feather, Sneak Peaks) then MAX certainly has an advantage.

If you're interested in accessiblity, as many in this region are (I'm also
just a few miles from the CFUN location) then CFUN has a huge plus with an
entire track on accessibility issues.

Tradeoffs, tradeoffs, which to go to... 

Sam

-Original Message-
From: Simon Horwith [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 17, 2004 1:00 PM
To: CF-Talk
Subject: Re: cfun

I wouldn't go that far.I think that MAX is definitely well worth the 
price tag.It's true that you don't get as many CF-specific topics at 
MAX, but that is a good or a bad thing depending on who you ask.
Personally, I learn a hell of a lot more at non CF-specific sessions, so 
I like that.I also don't believe CFUN is technically a user group 
conference, though I could well be wrong about that (it doesn't really 
matter, does it?).Last I heard, it's a TeraTech event that is 
sponsored by several CFUGs/MMUGs and other companies (see the CFUN site 
for a complete list of sponsors).I do believe that if all you're 
interested in is CF - you may well get more for your money at CFUN, but 
there's no denying that the quality of sessions and speakers at MAX is 
terrific.Bottom line is that I hold them equal in terms of value for 
money.If you're on a tight budget or have no interest in anything but 
CF then CFUN may well be the way to go.If your interests vary, you are 
interested in hearing more MM people speak (or in socializing with them 
more), and/or you can afford it then I recommend MAX.Personally, I 
wouldn't miss either.

~Simon

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




line-height css problem in IE, fine in FireFox

2004-06-14 Thread Samuel Neff
I'm using CSS to draw boxes around flowing text (well, boxes around boxes
around text and select elements).I set the line-height property in CSS
to be the height of the text plus the margins for the boxes.This works
fine in FireFox (Mozilla, Netscape) and when a line wraps the top of the
boxes for the wrapped portion are right below the bottom of the previous
boxes.

Howeve, in IE, the line-height setting seems to have no effect.I've tried
using pixels, em, percentage, and pt based sizes and all have the same
effect.They seem to change the line height above and below the flowing
text as a whole, but not between the flowing text when it wraps--which seems
more like padding than line-height.

Is there any way to get this to work in IE?Or is it really a bug in Gecko
that it's displaying like I want anyways (am I reading the CSS spec
correctly)?

Thanks,

Sam

Example HTML snippet, render in browser window small enough to make it wrap:

html
body
div style='line-height: 48pt'
span style='border: #999 dotted 1px; padding: 2px;'XYZ starts
with '6'/span
span style='padding-left: 5px; padding-right: 5px;'
select name='conjunction_1'

option value='AND' selected='selected'AND/option
option value='OR'OR/option
/select
/span
span style='border: #000 solid 1px; padding: 10px'
span style='border: #999 dotted 1px; padding: 2px;'Center is 123,
456 or 789/span
span style='padding-left: 5px; padding-right: 5px;'
select name='conjunction_1'

option value='AND' selected='selected'AND/option
option value='OR'OR/option
/select
/span
span style='border: #999 dotted 1px; padding: 2px;'Sponsor is ABC
or DEF/span/span
span style='padding-left: 5px'/span
span style='padding-left: 5px; padding-right: 5px;'
select name='conjunction_5'

option value='AND' selected='selected'AND/option
option value='OR'OR/option
/select
/span
span style='border: #000 solid 1px; padding: 10px'
span style='border: #999 dotted 1px; padding: 2px;'Level is 1 or
2/span
span style='padding-left: 5px; padding-right: 5px;'
select name='conjunction_1'

option value='AND' selected='selected'AND/option
option value='OR'OR/option
/select
/span
span style='border: #999 dotted 1px; padding: 2px;'Modified by
contains 'blinex.com'/span
span style='padding-left: 5px; padding-right: 5px;'
select name='conjunction_3'

option value='AND' selected='selected'AND/option
option value='OR'OR/option
/select
/span
span style='border: #999 dotted 1px; padding: 2px;'Record is Not
Deleted/span/span
span style='padding-left: 5px'/span
/div
/body
/html
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: COLDFUSION has JUST been DISContinued!!!!

2004-06-10 Thread Samuel Neff
Actually, New Atlanta doesn't have two separately coded products, they have
just one.They have the Java based CFML engine that runs on Java.Then
they compile that version, along with some special J# wrappers for Java
stuff not available in J#, to produce a .NET version.

Both the Java and .NET versions are one code base at the core.

This gives New Atlanta a huge advantage over Macromedia in that since MM's
CF engine produces Java byte code directly it'd be nearly impossible for MM
to port to .NET without re-writing.Remember that New Atlanta's engine is
an interpreter and not a compiler.

I believe, but an not certain, that MM is doing the same with the .NET
version of Flex--recompiling the Java classes under J#.

Best regards,

Sam

-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 10, 2004 1:40 PM
To: CF-Talk
Subject: RE: COLDFUSION has JUST been DISContinued

 (I still think its pretty cool that cfml runs in both settings)

I do too! However, in the long run, I suspect it's going to be a lot of work
for New Atlanta to keep two separate products going. After all, they really
are two separate products, and all of the internals are certainly different,
since one product uses the Java class libraries and the other uses the .NET
Framework.

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




RE: comparing CF and BD (was Re: COLDFUSION has JUST been DISContinued!!!!)

2004-06-10 Thread Samuel Neff
I'm not saying one is better than the other because of compiler vs
interpreter, just that BD has an advantage over MM CF in this particular
case because it uses an interpretive approach as you like to call it.

I'm not quite sure how interpretive approach differs from being an
interpreter.. the explanation I received is that BD produces a tree
structure of all tags in memory and on each call iterates this tree
structure to call the classes and methods corresponding with each tag.
Sounds like an interpreter to me, but I don't actually have a CS degree so
perhaps I'm missing some distinction.

Also, being compiled doesn't necessarily mean faster either, 'cause most
processing takes place in the code assiociated with the tags itself (written
by MM and New Atlanta) as opposed to the code generated/interpreted by the
CFML developer.From what I saw the BD interpreter was extremely fast,
although I've never run any empirical speed comparisons.

Of course, I don't see any way BD will ever have the Blackstone features
already announced..notably the Flex integration (although I personally don't
think this is a valuable feature), so we are likely to see framentation in
the future and products can compete based on features and people will
develop code that only runs on one flavor of CF, which is what I always
saw as the problem with BD--it's always playing catch-up and any innovation
it does just causes fragmentation.

My $0.02.

Sam

-Original Message-
From: Matt Liotta [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 10, 2004 3:24 PM
To: CF-Talk
Subject: comparing CF and BD (was Re: COLDFUSION has JUST been
DISContinued)

This gives New Atlanta a huge advantage over Macromedia in that since 
 MM's
CF engine produces Java byte code directly it'd be nearly impossible 
 for MM
to port to .NET without re-writing.Remember that New Atlanta's 
 engine is
an interpreter and not a compiler.

I would like to make a clarification that I think is important when 
comparing CF and BD. The CF engine does use a compiler approach that 
produces Java byte code. BD however isn't strictly an interpreter. It 
certainly uses an interpretive approach, but like CF, all of the tags 
are Java classes created ahead of time. Thus, you could think of BD as 
an interpreter for basic logic, but the tags's logic is actually 
compiled.

Anyway, the point I want to make is that comparing the two products 
from an approach point of view is more complicated than it first 
appears.

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




RE: union and sorting

2004-06-09 Thread Samuel Neff
Do this

SELECT *, 1 as SortOrder
FROM Table1

UNION

SELECT *, 2 as SortOrder
FROM Table2

ORDER BY SortOrder

and it will put query 1 records before query 2 records, which is what I
think you're after from the text.

HTH,

Sam

-Original Message-
From: George Abraham [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 09, 2004 11:56 AM
To: CF-Talk
Subject: union and sorting

Hi all,
SQL Server question. I have a query like so:
***
SELECT *
FROM Table1
WHERE Table1Item= 'something'

UNION

SELECT *
FROM Table2
WHERE Table2Item = 'something'



SQL Server does not allow me to put in individual 'ORDER BY' statements on 
the individual selects.

***
SELECT *
FROM Table1
WHERE Table1Item= 'something'
ORDER By SomeTableColumn

UNION

SELECT *
FROM Table2
WHERE Table2Item = 'something'
ORDER By SomeTableColumn



Instead I can only put an 'ORDER BY' statement at the end of all the 
unions. I can't have that. I need to be able to show the results from the 
first select first, then the results from the second select.

Any soultions?

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




RE: restricting access by IP address

2004-06-08 Thread Samuel Neff
IP Spoofing is easy.I've tested it and spoofed IP's using just CFML as the
spoofing client.You can send a request to a server from your IP and your
IP goes into the TCP/IP packet but can send a different IP in the HTTP
request as a CGI variable.None of IIS, iPlanet. or JWS test if the TCP/IP
supplied address is the same as the HTTP CGI address.

http://www.rewindlife.com/archives/000159.cfm

The link you provided talks about router level (tcp/ip) address spoofing but
it's sufficient to just provide a CGI variable in the HTTP packet to spoof
IP address.

IP based security at web server/web app level is not safe (router level is
much safer).

Best regards,

Sam

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

-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 08, 2004 10:13 AM
To: CF-Talk
Subject: RE: restricting access by IP address

 IP Spoofing is easy, I would also add a secure login

While I'd recommend a secure login as well, I would take issue with your
statement that IP spoofing is easy. It is not easy, to the best of my
knowledge, to send a message to a web server that says you're using one IP
address and have it respond to your actual IP address, which would be
necessary to circumvent IP address restrictions within your application or
within the web server.

http://www.iss.net/security_center/advice/Underground/Hacking/Methods/Techni
cal/Spoofing/default.htm

Dave Watts, CTO, Fig Leaf Software
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: IMAP in ColdFusion?

2004-06-08 Thread Samuel Neff
$75 isn't much to spend for a tag that adds this functionality if you need
it.waiting it out seems like not such a great option since Blackstone
isn't scheduled for release until some time next year (at least that's what
I remember hearing, someone correct me if it's sooner).

My $0.02.

Sam

-Original Message-
From: Burns, John D [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 08, 2004 11:48 AM
To: CF-Talk
Subject: IMAP in ColdFusion?

I am considering trying to build a webmail interface using IMAP, but as
far as I can tell, my only option for accessing my IMAP server using CF
would be through a CFX or Java (which I am not too familiar with).I
looked at the exchange and saw 2 IMAP CFX tags.One was from the
creator of CFX_POP3, and costs $75.The other was free and was called
CFX_mIMAP.Does anyone have experience with either of these?Also, I
believe I heard some rumor about the possibility of built-in IMAP
support in the next CF release.While I know that no one can say for
sure if it will be there or not, is it true that this is a goal?I'd
hate to spend $75 if I can wait it out a little bit and have it included
in CF.Your thoughts would be appreciated.

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




RE: restricting access by IP address

2004-06-08 Thread Samuel Neff
I talked to MM's security people before I blogged this in April.They said
it's not a bug because CF just gets whatever CGI variables are passed from
the web server so if the web server isn't passing the right variables it's
the web-server's bug.Can't really argue with that.A technote would be
nice though.. I'll bring it up again with that dept instead of with security
dept.

They did acknowlege that they could fix the bug in JWS but didn't file a bug
report since it's not intended for production use anyways.

I never tested with IIS6, only IIS5, and only how CF reacts to the CGI
variable not how IIS itself reacts (the discussion on this thread has been
mostly around using CF to restrict pages via CGI variables).I probably
should have been clearer.

Best regards,

Sam

-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 08, 2004 1:17 PM
To: CF-Talk
Subject: RE: restricting access by IP address

 IP Spoofing is easy. I've tested it and spoofed IP's using 
 just CFML as the spoofing client. You can send a request to 
 a server from your IP and your IP goes into the TCP/IP packet 
 but can send a different IP in the HTTP request as a CGI 
 variable.None of IIS, iPlanet. or JWS test if the TCP/IP 
 supplied address is the same as the HTTP CGI address.
 
 http://www.rewindlife.com/archives/000159.cfm
 
 The link you provided talks about router level (tcp/ip) 
 address spoofing but it's sufficient to just provide a CGI 
 variable in the HTTP packet to spoof IP address.
 
 IP based security at web server/web app level is not safe 
 (router level is much safer).

With IIS 6, at least, if you specify an IP address restriction within the
IIS management console, IIS will reject requests for CF pages and static
files unless they come from that IP address, whether the request has a CGI
variable with the allowed address or not.

I hadn't really thought about how CF deals with those CGI variables, though,
and you're certainly right about that. Out of curiosity, do you know whether
that's been submitted as a bug to Macromedia?

Dave Watts, CTO, Fig Leaf Software
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Purchase a copy of CF 5?

2004-06-08 Thread Samuel Neff
Pro:

http://shop.macromedia.com/dr/v2/ec_main.entry17c?cid=0pn=5sp=10007sid=46
165pid=615653DSP=CUR=840PGRP=0CACHE_ID=0

Enterprise:

http://shop.macromedia.com/dr/v2/ec_main.entry17c?cid=0pn=5sp=10007sid=46
165pid=615659DSP=CUR=840PGRP=0CACHE_ID=0

Includes free upgrade to CFMX/blackstone within 2 years of purchase.

-Original Message-
From: Burns, John D [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 08, 2004 2:47 PM
To: CF-Talk
Subject: Purchase a copy of CF 5?

Does anyone have a full licensed copy of CF 5 that they are no longer
using and would be interested in selling?Or, is there anywhere that I
could buy a copy of CF 5 from an online retailer or something?We have
an existing application running on a server with CF 5 and we're having
to install it on a separate server and we'd like to keep them both at CF
5.Any thoughts or suggestions would be appreciated.Thanks a ton!

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




Advanced search examples, field based searches

2004-04-14 Thread Samuel Neff
I'm looking for examples of search interfaces for end users that provide
fully query type functionality in an interface simple enough for a
non-technical end user to take advantage of.

Specifically we're searching for values in named fields, allowing the user
to specify groupings (parenthesis), and relationships between field groups
(and/or/not).

Thanks,

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




RE: Proving you are legitimate from CFMail

2004-04-14 Thread Samuel Neff
CFMail has an attribute to set the mail agent, which by default identifies
the mailer as CF.Set this to be something more common like the Outlook
agent.

X-Mailer: Microsoft Office Outlook, Build 11.0.5510

It won't fix all things that cause mail to be caught as spam, but it's a
biggie.

HTH,

Sam

-Original Message-
From: Craig Earls [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 14, 2004 1:05 PM
To: CF-Talk
Subject: Proving you are legitimate from CFMail

I am developing a service that sends email to registered users about
upcoming events.I keep getting errors about my mails being bounced as
spam.Even test emails I am sending to myself are getting bounced by my
ISP.What procedures does a business need to go through to prove they are
legitimate?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: 2003 MAX Conference Registration System

2004-02-11 Thread Samuel Neff
It was contracted out.I think to the same people that did iHotelier but I
could be confusing things.

HTH,

Sam

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

-Original Message-
From: Jamie Jackson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 11, 2004 5:21 PM
To: CF-Talk
Subject: 2003 MAX Conference Registration System

I'm working on an estimate for a registration system. A colleague of
mine has a vague recollection that at the conference, MM mentioned
something about the registration system that they used for it. (i.e.
That it was a product in and of itself.) Is there any validity to
this?

I remember that it was a pretty slick RIA (for session scheduling and
conflict management), but I don't remember anybody saying that the app
was somehow available to the public.

Anybody?

One more thing, if there's already a (preferably MachII, or otherwise
OO) MX event registration app floating around out there, would you
please let me know?

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




RE: jRockit

2004-02-05 Thread Samuel Neff
I've talked to one of the CFMX engineers about using jRockit with CFMX 6.1
and he said that they did extensive testing and found that it was faster in
most situations but developed stability problems and random error messages
when put under heavy load.

HTH,

Sam

--
Blog:http://www.rewindlife.com
Chart: http://www.blinex.com/products/charting
--
-Original Message-
From: Michael Wolfe [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 05, 2004 2:36 PM
To: CF-Talk
Subject: jRockit

Hi All,

A few days ago, someone quoted Charlie Arehart regarding CFMXoptimization
tips.One of the things that was mentioned was that you should replace the
Sun JRE with jRockit.I did some research and learned that jRockit is
distributed by BEA (for free).

Can anyone tell me more about jRockit?Why is it better than the Sun JRE?
Is it fully compatible with the Sun version? Is it fully compatible with
CFMX?

Charlie, are you out there?

Thanks,

--

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




RE: Spell Check custom tag needed

2004-02-05 Thread Samuel Neff
we use cfdev's tag and love it.Nice interface and really easy to set up.
Well worth the cost.

Sam

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

-Original Message-
From: Pete Freitag [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 05, 2004 1:48 PM
To: CF-Talk
Subject: Re: Spell Check custom tag needed

Ketan Patel wrote:

 Hi All,
 Does anybody in the forums know about freebee spell check custom tag
 or CFX
 tag.

Not a freebie, but we make one: http://www.cfdev.com/spellcheck/
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Fusetalk Q

2004-02-05 Thread Samuel Neff
I just confered with another team mm member that has develoepd with fusetalk
and reviewed the source code (it's available for additional price).He says
their only message view is full thread.

Sam

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

-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 05, 2004 3:15 PM
To: CF-Talk
Subject: Fusetalk Q

I'm thinking about hacking together an email to/from for Fusetalk and was
wondering something. Is there a page in it to get a single message rather
than a full thread? For example, this url gives an entire thread:
http://webforums.macromedia.com/coldfusion/messageview.cfm?catid=2threadid=
767784
I'd like something like:
http://webforums.macromedia.com/coldfusion/messageview.cfm?catid=2messageid
=2763969

Anyone have a clue on this? If not, I'll have to parse each thread out into
it's individual messages which'll be a pain.
Thanks
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Serial Number

2004-02-05 Thread Samuel Neff
CFMX 6.1 still uses the Apache libraries because some of the J2EE versions
stll use a 1.3 JVM.

If you look in your lib directory you'll still see jakarta-oro-2.0.6.jar
which is the Apache Jakarta ORO RegExp library.

HTH,

Sam

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

-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 05, 2004 4:38 PM
To: CF-Talk
Subject: RE: Serial Number

I strongly suspect that Rereplace and Refind are thin wrappers around the
native Java RegEx stuff.I know CFMX used an external implementation (from
Apache), because it shipped with a 1.3 JRE and the RegEx stuff is in Java
1.4, but CFMX 6.1 ships with 1.4.2, so I'd be quite surprised if it didn't
use the native Java libraries.

The actual functions it probably users are in the Matcher class, but the
syntax explaination is located here (in the Pattern class):

http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html

Cheers,
barneyb
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFDJ isn't exactly kicking bootay

2004-01-08 Thread Samuel Neff
Dave,

Keep in mind that with the lower subscription rate mentioned earlier, and
especially with the low potential subscription rate (there are a lot less CF
users than there are people that can read Time magazine), sys-con is going
to get a lot less from advertising than magazines with a higher subscription
rate.They have a lot less to work with and I think they do a great job
with what they have.

Also remember that the authors are not paid for their articles, they are
voluntary contributions.With that being the case, there aren't too many
people that would do it on a regular basis.I've contributed a few
articles, but it's certainly not something I'd like to do more than a few
times a year since it does take a lot of time and that's time I can spend
doing other things (like earning money).

I'll agree that there is a lot more information available for free now than
there used to be, but you have to be careful about editorial quality and
even accuracy.The vast majority of blogs post small snippets and not full
articles like in a magazine, and many blogs post incorrect information.
With CFDJ, there is an assurance of some level of quality (not perfection,
but a certain level) due to the editorial review and CFDJ's review board.

My $0.02

Best regards,

Sam

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

-Original Message-
From: Dave Carabetta [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 1:26 AM
To: CF-Talk
Subject: Re: CFDJ isn't exactly kicking bootay

Simon,

With all due respect to both you and your valuable contributions, I have to
say that I entirely disagree. I used to have a subscription to CFDJ. But for
$49 USD/year, it's absolute bottom of the barrel. Your monthly column
contribution is useful (along with your papers on www.how2cf.com/), and
Brendan O'Hara's Design Patterns series was invaluable (at least, to me).
But the magazine overall really is a joke for what you get. You get articles
that just barely touch on what I really care about (I want useful topics
with meaty code samples as opposed to hello world theoretical statements
and the aggravating poorly written code snippets), and the price of the
subscription is almost twice what Time magazine costs me (and, oh by the
way, Time is a *weekly* publication with a helluva lot more relevant
information. The last issue of CFDJ was 52 pages. Of the 52, I think *maybe*
half actually had article content. The rest was advertisements and promos
that I could care less about. As for relevancy, by the time the monthly
issue comes out, most hot topics are outdated, such as hotfix
announcements, etc.

Honestly, between the numerous blogs at fullasagoog.com, and CF-Talk,
CFCDev, and some other mailing lists, CFDJ is a complete rip-off. I like to
buy virtually everything associated with CF (books, magazines, training,
etc.). But I have to say that, of all the resources out there for
ColdFusion, CFDJ is absolutely the last resource I would refer to if I ever
needed advice or direction on a particular issue. And don't get me started
on their website...

Please don't take this as a personal attack, as I have great respect for
everything you contribute to the CF community. But if there are people out
there wondering if it's worth taking the risk of subscribing to CFDJ,
especially when there aren't corporate pocketbooks to pick up the bill, I
think my opinion is pretty clear.

Regards,
Dave.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFContent Excel design woes

2004-01-08 Thread Samuel Neff
If the paying client requires Office 97 support than redo the output and
don't use CSS.Have to program to lowest common denominator and if in this
case that doesn't include CSS than don't use CSS.

Client should know if this decision is going to cost more money and make an
informed decision, but it's still client's decision to make (at least in my
opinion).

Sam

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

-Original Message-
From: C. Hatton Humphrey [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 10:26 AM
To: CF-Talk
Subject: RE: CFContent Excel design woes

 On Thursday 08 Jan 2004 14:08 pm, C. Hatton Humphrey wrote:
  I still have not been able to figure out the source of the
 difference.
  Anyone have any ideas why Office 97 wouldn't read a
 stylesheet file right?

 If there weren't any bugs, you'd never upgrade to 'Office XP
 2004 bling edition' :-)

Can't quite tell this to a paying client.

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




RE: CFContent Excel design woes

2004-01-08 Thread Samuel Neff
COM automation would be horrible idea on a server (always is) but Office Web
Components would work.I pretty sure you can use OWC to create a
spreadsheet and save it as an earlier version.

Some more info here.

http://www.rewindlife.com/archives/000118.cfm

Sam

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

-Original Message-
From: Schuster, Steven [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 10:34 AM
To: CF-Talk
Subject: RE: CFContent Excel design woes

This would be uber nasty but you may be able to use COM to modify the excel
file after it was created ...oh nevermind that would just be too horrid.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Learning .NET (c-sharp) books

2004-01-08 Thread Samuel Neff
I liked C# Essential from O-Reilly, but it doesn't really go into any theory
or anything it's just a straightforward how to program in C# for experienced
programmers.It does go into more comparisons between classes and option
than the documentation so I think it's worthwhile.

http://www.amazon.com/exec/obidos/tg/detail/-/0596003153/qid=1073576195/sr=1
-2/ref=sr_1_2/104-5674656-5301514?v=glances=books

I haven't read the C# one yet but the CodeNotes series from Random House is
a great set of books.The Java one went into a lot of theory and great info
geared toward experienced developers (but not in Java).I was amazed at how
much info is in the tiny little book.

http://www.amazon.com/exec/obidos/tg/detail/-/0812966465/qid=1073576121/sr=1
-5/ref=sr_1_5/104-5674656-5301514?v=glances=books

Sam

--
Blog:http://www.rewindlife.com
Chart: http://www.blinex.com/products/charting
--
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFGrid, CFForm and other cf tags that use applets

2004-01-08 Thread Samuel Neff
I could be remembering incorrectly but I thought they showed that there was
an option to use either flash or java, for backwards compatibility.

Also, there were a lot more than just the existing tags.. whole forms and
such.Very kewl stuff.

Sam

-Original Message-
From: Kevin Graeme [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 10:42 AM
To: CF-Talk
Subject: Re: CFGrid, CFForm and other cf tags that use applets

At MAX, they showed some ideas the engineers were playing with. One featured
the known applet-based tags implemented using Flash via FLEX. This was
obviously a very rough demo, but it showed that MM was looking at the
possibilities.

I don't recall them ever saying that they were definitely using Flash
instead of Java, or that the applet tags were definitely going away. The
demos were all presented with the caveat that everything shown was
speculative.

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




RE: XMLSearch() woes

2003-12-18 Thread Samuel Neff
As you said, xmlSearch doesn't support attributes as an endpoint so whatever
results you get from using an xpath that searches for an attribute is
totally useless, regardless if it is an empty string or empty array.Really
it should throw an error.

Besides, for stuff like that you can just do

xmlDoc.addresses.address[1].xmlAttributes.city

Much faster than using xpath.XPath is going to be slower than dot notation
so only use it when you really need it.

HTH,

Sam

--
Blog:http://www.rewindlife.com
Chart: http://www.blinex.com/products/charting
--
-Original Message-
From: Alexander Sherwood [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 3:59 PM
To: CF-Talk
Subject: XMLSearch() woes

If you do the following:

XMLSearch(xmlDoc, '/addresses/address[1]/@city'),

you get back an array with one element that contains an empty string.
Wouldn't you expect it to either return and empty array (because it found
nothing), or an array with the value of the attribute? I know the docs
state that XMLSearch returns and XMLElement object, but in this case, it
most certainly does not!

Anyone have the same problem?!

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




RE: Hiding an Email Address from harvesters

2003-12-18 Thread Samuel Neff
You can do it in your application.cfm file.I did this on our blog recently
to block blog spammers.Just create a structure that has the blocked IP's
in it (can cache in application scope if it's a big structure) and on each
request check if structKeyExists(badIps, cgi.remote_addr) and if so abort.
Can get fancy and read the list from a text file to make it easy to update.

HTH,

Sam

--
Blog:http://www.rewindlife.com
Chart: http://www.blinex.com/products/charting
--
-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 5:38 PM
To: CF-Talk
Subject: Re: Hiding an Email Address from harvesters

 I also block all mail harvest bots that I can identify. most especially
 the ones that try to ignore the robots.txt files.

So, without direct access to the server, there's a way in the
application and robots.txt files that I can block specific IP addresses
or bots from a specific sites?

Point me to a doc on this somewhere please

Thanks,

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




RE: Hiding an Email Address from harvesters

2003-12-18 Thread Samuel Neff
hmm... a text file is just a list of IP's.A cfm file is executable
programming code.

Sam

-Original Message-
From: Daniel Farmer [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 5:51 PM
To: CF-Talk
Subject: Re: Hiding an Email Address from harvesters

How is a text file any easier to update than an application.cfm file?
- Original Message -
From: Samuel Neff
To: CF-Talk
Sent: Thursday, December 18, 2003 5:47 PM
Subject: RE: Hiding an Email Address from harvesters

You can do it in your application.cfm file.I did this on our blog
recently
to block blog spammers.Just create a structure that has the blocked IP's
in it (can cache in application scope if it's a big structure) and on each
request check if structKeyExists(badIps, cgi.remote_addr) and if so abort.
Can get fancy and read the list from a text file to make it easy to
update.

HTH,

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




RE: Hiding an Email Address from harvesters

2003-12-18 Thread Samuel Neff
If the structure is cached then there is no need to set a session variable.

Sam

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

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 6:20 PM
To: CF-Talk
Subject: Re: Hiding an Email Address from harvesters

I would apply some sort of Session variable after the user has been checked
otherwise this code would be executed for every single page request in the
application.

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




RE: Convert file to PostScript file on server?

2003-12-11 Thread Samuel Neff
Be sure to check the adobe license.Last I checked (at least one version
ago) using distiller on a web site was strictly prohibited and on an
interanet you need to have a distiller license for each individual
application user.

Maybe this has changed since then...

Sam

--
Blog:http://www.rewindlife.com
Chart: http://www.blinex.com/products/charting
--
-Original Message-
From: John Burns [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 8:58 AM
To: CF-Talk
Subject: Convert file to PostScript file on server?

I'm looking at the Adobe Acrobat (Distiller) SDK documentation and it
has some command prompt utilities for converting a .ps to .pdf
automatically.I'm curious if anyone knows of some way from CF to read
in a file and print it to a .ps so that I could then send that .ps
into the Acrobat command-prompt function and create a PDF on the fly.
Or, if anyone knows of a free way to allow Office document conversion to
PDF without a lot of problems _or cost_ let me know.Preferably, I'd
like the solution to work on Linux servers with MX 6.1.Thanks.

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




RE: Adding remote datasource dynamically

2003-12-11 Thread Samuel Neff
Seems to be a little confusion of terms.

Sandy is definitely correct that CFMX does not support dynamic data sources
in the most common use of the term as people use dynamic data source to
refer to the ability to connect to a database without creating a coldfusion
datasource to it.The ability to dynamically create a datasource on the fly
does not mean you have dynamic datasource capability in cfmx.

However, in most cases when using CF5 style dynamic datasource code we're
connecting to a Jet based datasource and in those cases it's trivial to use
a proxy database and send the connection string to Jet in the from clause.

cfquery name=q datasource=proxy
select *
from connection string to database.table
/cfquery

In this case we need a datasource called proxy pointing to a Access
database but we never actually hit the database, Jet redirects the query.

HTH,

Sam

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

-Original Message-
From: Chunshen (Don) Li [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 9:36 AM
To: CF-Talk
Subject: Re:Adding remote datasource dynamically

Hmm, I would beg to differ.I assumed that the datasource data of a given
CFMX installation is stored as an XML file and the CFMX engine and/or the
CFMX Admin tool would look for it.So, if this assumption is correct and
the knowledge that CFMX for Windows does not use Window's registry for
datasource is valid, then, one would be able to add/edit/remove datasource
with this particular XML file (of course verification etc. would also be
involved), else, I would find it hard to believe.

Don Li

CFMX does not support dynamic dsn's.That functionality is only available
in CF5.

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




RE: Another CFML app server...

2003-12-04 Thread Samuel Neff
I think the fact that their engine requires each CF tag be on it's own line
is indicative of a structure problem.Parsers have been around pretty much
as long as computers have been and techniques for building parsers are
pretty well established.Structural requirements like this are pretty rare.
If they built coral without a proper parser, what else is done improperly?

Scares me off quite a bit.

And besides, what about code like this:

tr bgcolor=cfif conditionredcfelsegreen/cfif

It's horrible code that I wouldn't write in a new app but it exists in
pretty much every app i'm maintaining.

Sam

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

-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 7:32 AM
To: CF-Talk
Subject: Re: Another CFML app server...

Michael Dinowitz wrote:

 They emailed me directly and we were going to talk. After some
investigation, I
 found at least one major problem with it. All CF code has to be on its own
line,
 one tag per line. I think that describes maybe 1 persons code in all the
 community.

ReplaceNoCase(template, cf,#chr(13)##chr(10)#cf,All)

 I'll interview them but they don't 'feel' like something terribly big.

Neither did NewAtlanta two years ago.

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




RE: OT Flex beta

2003-12-04 Thread Samuel Neff
Certainly can do that--Laszlo has a number of great features.They're not
the same features as Royale and I'll certainly take Royale over Laszlo any
day.

Besides, in respect to Royale/Flash I'm also a component developer.Having
the ability to write my components one time and reuse the bulk of the code
in component sets for Flash, Royale, Dreamweaver, and ColdFusion is a huge
plus.If I want my component to be available to Laszlo customers, I have to
re-write it.

Sam

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

-Original Message-
From: Matt Liotta [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 12:09 AM
To: CF-Talk
Subject: Re: OT Flex beta

Why not just avoid the suspense and download Laszlo's product?

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




RE: Another CFML app server...

2003-12-04 Thread Samuel Neff
Yeah, true.And you can't beat the price.$150.

Sam

-Original Message-
From: Tangorre, Michael [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 8:50 AM
To: CF-Talk
Subject: RE: Another CFML app server...

Yeah, I'm in agreement here with the downsides, however, lets be
encouraging.:-)

-Original Message-
From: Samuel Neff [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 8:45 AM
To: CF-Talk
Subject: RE: Another CFML app server...

I think the fact that their engine requires each CF tag be on it's own line
is indicative of a structure problem.Parsers have been around pretty much
as long as computers have been and techniques for building parsers are
pretty well established.Structural requirements like this are pretty rare.
If they built coral without a proper parser, what else is done improperly?

Scares me off quite a bit.

And besides, what about code like this:

tr bgcolor=cfif conditionredcfelsegreen/cfif

It's horrible code that I wouldn't write in a new app but it exists in
pretty much every app i'm maintaining.

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




RE: OT Flex beta

2003-12-04 Thread Samuel Neff
No Royale market yet but there is a Flash market, and if I can sell my
product to Flash people now and then Royale people later, then that's great.

Certainly porting to Java and .NET would require complete re-write but they
also have their own runtime engines.Laszlo uses the same runtime as
Royale.

Sam

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

 Besides, in respect to Royale/Flash I'm also a component
 developer.Having
 the ability to write my components one time and reuse the bulk of the
 code
 in component sets for Flash, Royale, Dreamweaver, and ColdFusion is a
 huge
 plus.If I want my component to be available to Laszlo customers, I
 have to
 re-write it.

Yeah, if you want to write components for Java or .NET the same thing
applies. It is all a question of market opportunity. Right now there is
now Royale market, but there is a Laszlo market.

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




RE: Another CFML app server...

2003-12-04 Thread Samuel Neff
Well, saying cflock isn't needed just goes to show you that they don't
understand what cflock does.It's not just there to protect against
crashes, it's there to handle multi-threaded race coditions.Maybe their
product isn't multi-threaded, but if it is, then cflock is needed.CFMX
doesn't need cflock to prevent crashes but it is still needed for race
conditions.

http://www.macromedia.com/support/coldfusion/ts/documents/tn18235.htm

So, cflock is important..

Sam

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

-Original Message-
From: Thane Sherrington [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 3:43 PM
To: CF-Talk
Subject: RE: Another CFML app server...

At 03:24 PM 12/4/03 -0500, Adam Wayne Lehman wrote:
Seriously though. they only support like 25 tags! You'd be better off
just learning the ASP equivalents and calling it a day!

24 by my count (I'm ignoring cflock since it isn't needed.)
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Problems using JRUN4 and CFMX together.

2003-12-01 Thread Samuel Neff
Jeremy,

Thanks for pointing that out.I never changed the heap size through JMC,
always edited jvm.config.Advocating moving from JRun to another server due
to this bug seems a really radical step when you can just make changes to
jvm.config instead of using the JMC.

Besides, if you use the JMC you can only have one jvm.config which is
global.You need to do it manually to use separate jvm.config files for
each server instance (which is a JRun limitation in my opinion).

Best regards,

Sam

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


-Original Message-
From: Jeremy Brodie [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 8:23 AM
To: CF-Talk
Subject: Re:Problems using JRUN4 and CFMX together.

Samuel,

This situation occurs when one tries to add additional classpaths within the
JRUN management console (such as thin Oracle drivers or applications having
additional classpaths). The server argurments within the jre.config are
switched preventing the JRUN default server from restarting (and by
correlarry the any other applications)

This only occures when attempting to run Cold Fusion as an application
within JRUN. (The second install option). This error does not occur when
using Cold Fusion in Websphere, Weblogic, Tomcat or through the fist install
option where Cold Fusion is run with an embedded JRUN server (in fact this
in not a Cold Fusion error, it is an error within JRUN!). Unless one adds
classpaths to JRUN for additional functionality, one will one get this
senerio.

I have also included a reference from the Macromedia forums from others
having the same issue and Macromedia QA noting that this is a bug within
JRUN!

Reference:
http://webforums.macromedia.com/coldfusion/messageview.cfm?catid=274threadi
d=688726highlight_key=ykeyword1=classpath

Jeremy Brodie
Intelix
an Edgewater Technology Solutions Company

web: http://www.edgewater.com
phone:(703) 815-2500
nasdaq symbol: EDGE

Huh?What class-path issues with CFMX on JRun?I've run in this
configuration on several computers (as well as with WebLogic) and haven't
had any classpath issues.

Sam

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




RE: Problems using JRUN4 and CFMX together.

2003-11-26 Thread Samuel Neff
You should be using the J2EE version if you have JRun installed on it's own.
JRun provides separate server instances within one installation which is all
you need for segregation of applications.

Sam

--
Blog:http://www.rewindlife.com
Chart: http://www.blinex.com/products/charting
--
-Original Message-
From: Bosky, Dave [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 11:28 AM
To: CF-Talk
Subject: Problems using JRUN4 and CFMX together.

We seem to be having trouble getting JRUN4 and CFMX to work together.
Are there any special tweaks or requirements needed to get the two working
together?

Do I need to use CFMX Enterprise version with JRUN 4 or will the standard
version work just as well?

I switched over to Tomcat in the time being to get rid of the problem.

Regards,
Dave Bosky


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




RE: Studio MX 2004 licensing and upgrade protection

2003-11-26 Thread Samuel Neff
You should contact MM sales directly, not 3rd party suppliers like CDW.

AFAIK there is no official upgrade path right now for subscriptions, but
I've seen it mentioned a lot and many subscribers were concerned about it
and I think MM is working on this.

Sam

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

-Original Message-
From: Candace Cottrell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 11:17 AM
To: CF-Talk
Subject: OT: Studio MX 2004 licensing and upgrade protection

So, I am wondering if I am the only one in this boat...

We bought 2 years of upgrade protection on Studio MX.

Flash MX 2004 Pro comes out and it's not included in upgrade
protection.

Ok, I can understand that. We need to buy upgrades to Pro.

BUT... according to CDW, we LOSE the 2 yrs worth of subscription and
have to RE-BUY the entire thing and pay the full price.

Is there no upgrade to upgrade protection??

Am I on the right track here? Can anyone help me???

Candace K. Cottrell, Web Developer

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




RE: Problems using JRUN4 and CFMX together.

2003-11-26 Thread Samuel Neff
With the release of 6.1 MM changed their product offering a little.CFMX
Enterprise now encompasses what used to be CFMX Enterprise and CFMX for
J2EE.With a purchase of CFMX Enterprise 6.1 (or free upgrade from CFMX
Enterprise 6.0) you have the option to install in standalone mode or in J2EE
mode.

So, if you own CFMX Enterprise then you also own and have a license to CFMX
for J2EE.When you run the installer, it gives you three install
options--standalone, integrated with JRun, and EAR/WAR.To install to
existing J2EE server choose EAR/WAR.

HTH,

Sam

--
Blog:http://www.rewindlife.com
Chart: http://www.blinex.com/products/charting
--
-Original Message-
From: Nick de Voil [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 12:20 PM
To: CF-Talk
Subject: Re: Problems using JRUN4 and CFMX together.

 If you're running CFMX 6.1, I'd recommend taking a look at just running
CFMX
 on top of your existing JRun install

Is CFMX for J2EE now simply an install option for Enterprise then? Or is
it a different product version?

Nick

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




RE: Problems using JRUN4 and CFMX together.

2003-11-26 Thread Samuel Neff
Huh?What class-path issues with CFMX on JRun?I've run in this
configuration on several computers (as well as with WebLogic) and haven't
had any classpath issues.

Sam

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

-Original Message-
From: Jeremy Brodie [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 2:06 PM
To: CF-Talk
Subject: Re:Problems using JRUN4 and CFMX together.

(snip)

You'll still have the problems with the classpaths issue- this happens while
Cold Fusion is run as an application within JRUN (since this is an issue
within JRUN). The issue goes away if you blast the flie into Tomacat or
other J2EE sever engine.

Jeremy Brodie

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




RE: Multiple Server Versions

2003-11-12 Thread Samuel Neff
We all use our own systems for development and deploy to shared test, demo,
and production servers.Two of us use J2EE for development and everything
else is still standard.Never had any issues.

I don't think you would unless you use a J2EE specific feature (and there
aren't that many).

Sam

--
Blog:http://www.rewindlife.com
Chart: http://www.blinex.com/products/charting
--
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 2:51 PM
To: CF-Talk
Subject: RE: Multiple Server Versions

There won't be any production sites on that server, it's all dev.I'd
really like to just spawn a couple new CF instances for the new apps and run
them there, rather than on actual Standard edition installs, but I'm not
sure that's a good idea.

I guess my question is really Is developing an app on the J2EE version and
then deploying to Standard version a big deal?.Aside from a few obvious
things (CFIMPORT of JSP tag libs, some CF admin functions, etc) are there
any potentially confounding differences between the editions?

thanks,
barneyb

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




RE: Import/Export - Excel to/from Access/SQL Server

2003-11-12 Thread Samuel Neff
I've been in the same situation except the client wanted to use Access and
not Excel (primary goal was custom reporting, not just
export/edit/re-import).

I used XML to transfer data from the web server to the client application.
I wrote server and client modules that each handled the appropriate
serialization and de-serialization.It's a lot of work, but it worked out
well and client was very happy in end.

HTH,

Sam

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

 -Original Message-
From: Stan Winchester [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 4:46 PM
To: CF-Talk
Subject: Import/Export - Excel to/from Access/SQL Server

I have a client who is running an ecommerce site with an Access database
backend, which will hopefully be upgraded, to SQL Server 2000 very soon.

The issue is he has 7,800 records in one table and 43,000 records in another
table; both tables will be doubling in size very shortly. My client wants to
do all of his data entry in Excel, and then do an import into his tables to
add new records, and edit/delete existing records. I had thought about doing
an import/export routine to/from an Excel file, but the export alone pegs
the server at 100% CPU for almost 25-30 seconds. I am interested in setting
up the most efficient method that will minimize the load on the server.

Any suggestions would be appreciated!
Thank you,
Stan Winchester

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




RE: M$ flash killer

2003-11-06 Thread Samuel Neff
It'll be 7-10 years before you can consider using this for any real
application.It requires the avalon sub-system which means we're talking
2006, and will only work for longhorne users, which means a very limited
user base for a long time (how many people still use windows 98?).

Also, a lot can change in that timeframe.OSX is growing in popularity so
MS might not even have so much of a monopoly and cross-platform support
could be even more of an issue--which would negate any possibility of using
avalon-specific technologies.

However, I could see something to render XAML in Flash or an XSLT to convert
XAML to LZX or whatever Royale will use.

My $0.02.

Sam

--
Blog:http://www.rewindlife.com
Chart: http://www.blinex.com/products/charting
--
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 1:36 PM
To: CF-Talk
Subject: OT: M$ flash killer

http://www.eweek.com/article2/0,4149,1374753,00.asp

once again M$ is going to launch something that u have to use their crap 4.


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




RE: To MAXLENGTH or not that is the question?

2003-10-29 Thread Samuel Neff
I would say you still need the max-length checking at the form level some
where to give the user a nice error message before you try to insert
too-long data.

Sam

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

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 9:22 AM
To: CF-Talk
Subject: To MAXLENGTH or not that is the question?

What is the general consensus on using the Maxlength parameter in a
character/string type cfqueryparam tag?The DBA thinks I should leave
them off, since the length is controlled by the database and if it was every
decided to modify the length then it would only need to be adjusted in the
database.

I could not come up with any arguments against this.But I thought I would
ask for other opinions before settling the issue.

--
Ian Skinner

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




RE: Translation please: CFC::CF as ???:ASP

2003-10-23 Thread Samuel Neff
ASP's equivalent of a CFC would be a VB based COM object.

If you need two way communications and they're stuck with traditional ASP,
then WDDX may be the best approach.There's a WDDX COM object they can use
to serialize/deserialize ASP variables the same way we do with CF.

If they were to use ASP.NET then web services would be advisable, but still
there are interoperability issues with web services using all but the most
basic variable types.

Other options would be to come up with a custom XML schema for your
communications that you both can agree on and use that.For CF, XML
development is very quick and it's not too bad in ASP either.

ASP is interpreted each time (I think it's converted to p-code and cached in
memory).ASP.NET is compiled.The interpreted vs. compiled argument isn't
always valid.Blue Dragon's implementation of CFML is faster than MM's CF
in many cases but BD uses an interpreted (p-code) mechanism.

Good luck,

Sam

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

-Original Message-
From: [EMAIL PROTECTED] [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 1:16 PM
To: CF-Talk
Subject: Translation please: CFC::CF as ???:ASP

Hi guys!I have a client who is dealing with a software development company
that supplies a VB-based client application, which also has a web component.
They do their web work in ASP.My client has another vendor that prefers to
use CF for their work, and needs to talk to the ASP oriented vendor.I'm
trying to talk to the ASP guys about using CFC-like components so that the
client's CF guys can interface with them, but the ideas just aren't getting
across.

So, my question is, what do ASP people refer to components as?

Also, do the ASP folks have the same ability that CFMX has with respect to
generating compiled code, or do the ASP scripts have to be interpreted every
time they run?

thanks for any help and ideas
[still looking for a permanent CF gig here in Pittsburgh!]

-reed

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




RE: How do you disable HTML Format for CFTALK?

2003-10-22 Thread Samuel Neff
I never was able to switch to non-html mail either.I tried unchecking the
check-box which seems to do nothing and changing the combo-box selection to
text-only but that unsubscribed me.I also tried blocking all access to
houseoffusion.com via my hosts file, but I guess the images are sent inline
with the e-mail and not as an external link.

Sam

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

-Original Message-
From: Joe Eugene [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 9:51 AM
To: CF-Talk
Subject: Re: How do you disable HTML Format for CFTALK?

Do you have to Unsubscribe and Subscribe to set it up Or is this a set up on
the profile?

Thanks,
Joe Eugene
- Original Message -
From: Michael Dinowitz
To: CF-Talk
Sent: Wednesday, October 22, 2003 3:02 AM
Subject: Re: How do you disable HTML Format for CFTALK?

The setting on the subscription page is enabled and you should be able to
set
yourself up as text only now.

 Efforts to select the non-HTML email format don't seem to work for me.
The
 method seems like a strange way of selecting to me, so maybe I am
missing
 something here.When I unclick the HTML box and subscribe to Text Only
 Email the posts stop coming. Unclicking the HTML box and selecting
 Immediate CFTALK continues to be delivered in HTML format.

 I sent Michael an email sometime, but he hasn't responded. I suspect
 Michael is pretty busy anyway.

 Any ideas?

 Thanks,

 Nick


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




RE: CFMX WebService w/ Multirefs?

2003-10-22 Thread Samuel Neff
Change this line

 cfset var tempstruct=structnew()

to

 cfset var tempstruct=createObject(component, address)

HTH,

Sam

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

-Original Message-
From: Brook Davies [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 10:05 AM
To: CF-Talk
Subject: Re: CFMX WebService w/ Multirefs?

I'm still stuck on this. I now have a CFC named address.cfc. It consists of:

cfcomponent
 cfproperty name=fname type=string
 cfproperty name=lname type=string
 cfproperty name=street type=string
/cfcomponent

Then I have a function in my webservice/cfc that should return the complex
data type representing a CF Structure. It looks like the example below. The
point that I am stuck on is how do I populate the complex data type
address and return it?

cffunction name=returnStruct access=remote returntype=address
hint=Test method to return an Associative Array or Structure
cfset var tempstruct=structnew()
cfset tempstruct.fname=Bob
cfset tempstruct.lname=Jones
cfset tempstruct.street=505 55 Water Street
cfreturn tempstruct
/cffunction

Brook

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




RE: dynamic function call

2003-10-22 Thread Samuel Neff
I'm not sure how efficient this is, but it works:

HTH,

Sam

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

!--- DummyComponent.cfc ---
cfcomponent
/cfcomponent

!--- DynamicCaller.cfm ---

cfscript
	
	function addTwoThings(firstThing, secondThing) {
		return firstThing + secondThing;
	}
	
	functionName = addTwoThings;
	functionArgs = StructNew();
	functionArgs.firstThing = 1;
	functionArgs.secondThing = 2;
	
	dummy = createObject(component, DummyComponent);
	dummy[functionName] = variables[functionName];
	
/cfscript

cfinvoke 
component=#dummy# 
method=#functionName# 
argumentCollection=#functionArgs# 
returnVariable=r

h1cfoutput#r#/cfoutput/h1

-Original Message-
From: Sparrow-Hood, Walter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 4:56 PM
To: CF-Talk
Subject: dynamic function call

I am dynamically calling functions on a page using the following:

cfscript
 evaluate(#event#(#argumentList#));
/cfscript

I've tried every combination I can think of to eliminate the evaluate 
function but nothing works.Anybody have any ideas??

Walt


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




RE: CFMX WebService w/ Multirefs - STILL SHOWS MULTIREFS?

2003-10-22 Thread Samuel Neff
I don't think the WSDL is an issue now, it's the actual SOAP response since
it doesn't actually embed the response within the response element but
instead puts it somewhere else with a reference to it.

Is the C++ developer using some standard SOAP client toolkit or rolling his
own?Does it/he support RPC style encodings?

Here's what the Axis docs say about multi-ref:

Since RPC services default to the soap section 5 encoding rules, objects
will be encoded via multi-ref serialization, which allows object graphs to
be encoded. (See the SOAP spec for more on multi-ref serialization.)

Thanks,

Sam

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

-Original Message-
From: Matt Liotta [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 11:29 AM
To: CF-Talk
Subject: Re: CFMX WebService w/ Multirefs - STILL SHOWS MULTIREFS?

The struct return you were using before is handled in an Axis specific
way, but your current WSDL seems to be standard, so I would suggest you
provide it to your C++ developer and see what he thinks.

Matt Liotta

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




RE: cfqueryparam

2003-10-22 Thread Samuel Neff
The CF_SQL_xxx types have a one-to-one mapping with JDBC SQL types which are
easily identifiable (just take off the CF_SQL_).Only exception is money
which has no direct JDBC correspondent, so CF uses JDBC Double.

Based on that, I compiled this matrix:

http://www.blinex.com/~sam/CF_SQL_TYPES.cfm

HTH,

Sam

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

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




RE: cfqueryparam

2003-10-22 Thread Samuel Neff
I think the issue is that CF_SQL_NUMERIC does correspond to MSSQL NUMERIC
but CF forces a scale of zero having no other information about what scale
to use (well, it could calculate from the data).I would say this is a CF
bug.

CF_SQL_MONEY can usually be used with MSSQL Money because double and decimal
are often interchangeable, but not always.JDBC has no real concept of
Money which is stored internally as a long integer value to protect against
all possibility of rounding error that could happen with floating point
types.

I haven't validated all the data in the table, it's just based on what I was
able to gather from sparse available info on cf-java and java-other
mappings.

Best regards,

Sam

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

-Original Message-
From: Tom Kitta [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 5:20 PM
To: CF-Talk
Subject: RE: cfqueryparam

It is great that someone compiled a table of translation. However, are you
sure about CF_SQL_NUMERIC? It doesn't correspond to MS SQL type numeric, MS
SQL allows for decimal point in its numeric while CF_SQL_Numeric doesn't. I
think CF_SQL_Numeric is more of an integer - or am I missing something here?

Also, CF_SQL_Money works fine with MS SQL type Money - maybe its because
JDBC type double works with MS SQL Money?.

TK
-Original Message-
From: Samuel Neff [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 4:49 PM
To: CF-Talk
Subject: RE: cfqueryparam

The CF_SQL_xxx types have a one-to-one mapping with JDBC SQL types which
are
easily identifiable (just take off the CF_SQL_).Only exception is money
which has no direct JDBC correspondent, so CF uses JDBC Double.

Based on that, I compiled this matrix:

http://www.blinex.com/~sam/CF_SQL_TYPES.cfm

HTH,

Sam

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




RE: lite source control for Homesite+ ?

2003-10-17 Thread Samuel Neff
You're right, RDS and CVS are not comparable products.All I was saying was
that problems with RDS (failure to save files after indicating saved, slow
file transfer, missed files in directory searches) were the primary catalyst
for us moving to CVS, which in turn embodied a move to a different protocol.

I'd wanted to move to CVS for a while but my boss always has the belief that
if it's not broke then don't fix it.I was only allowed to move us to CVS
after demonstrating that RDS was in fact broke.Perhaps it was our
connection, but we are in the same LAN as our servers (albeit a different
sub-net and building) but we don't have network issues with any other
programs and we had them repeatedly with RDS.

My $0.02.

Sam

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

 -Original Message-
 From: Raymond Camden [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 15, 2003 3:01 PM
 To: CF-Talk
 Subject: RE: lite source control for Homesite+ ?
 
 Well, one minute though - it's not really fair since RDS is a means to
 remotely create, edit, and delete files. CVS is for source control and
 code manangement. It's apples and oranges. That being said, RDS is NOT
 perfect, however I think it works quite well most of the time.
 

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




RE: 6.0 6.1 on same machine?

2003-10-17 Thread Samuel Neff
One other option I forgot to mention is that you can install CFMX 6.0 and
CFMX 6.1 on the same machine at the same time as long as you don't run both
of them at the same time.

You will have issues with ODBC services as there is a registry reference to
the DLL that needs to be changed every time you switch from 6.0 to 6.1
(which can be done with reg/bat files).I had CFMX 6.1 installed on my
laptop like this before moving fully to 6.1.

Best regards,

Sam

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

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




RE: Questions about 6.1 and the Certification Exam...

2003-10-17 Thread Samuel Neff
I was told that the exam does not and will not cover 6.1.The exam is based
on 6.0 gold.

Unfortunately, I heard that there was actually a question in the pool that
has a different answer depending on if you're talking about 6.0 or 6.1.The
correct answer is based on 6.0.I don't know more than that.

So just study CFMX 6.0 gold stuff.

Good luck.

Sam

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

 -Original Message-
 From: Jeff [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 17, 2003 2:54 PM
 To: CF-Talk
 Subject: Questions about 6.1 and the Certification Exam...
 
 I've been studying, and I got Ben's CFMX Developers Study 
 Guide a while
 back, and was getting close to scheduling my test, when a 
 co-worker casually
 asked me, So...does the test cover 6.1 stuff?
 
 I genuinely didn't know...does it?
 
 Do I need to brush up on 6.1 stuff like changes to the mail 
 tag or look up
 any other significant changes that might creep into a test 
 question? If so,
 is there a place that can fast track me to the relevant 
 changes and how they
 might show up in the form of questions?

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




RE: MX 6.1 and MapPoint

2003-10-16 Thread Samuel Neff
Dave,

I've seen this question before and the answer, but I couldn't find it
anywhere.Here's what I can remember.

The problem is that the MapPoint WSDL defines multiple services.While this
is a perfectly valid thing to do, AXIS doesn't support multiple service
definitions in a single WSDL.The work-around is to create a local WSDL
file that has all the necessary info from just a part of the official WSDL
for the service you need.Then just point your code to your local WSDL and
it reportedly works.Remember the WSDL contains the soap address for the
actual server, so even with a local WSDL it can use a remote server for the
actual invocation.

HTH,

Sam

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

 -Original Message-
From: Dave Carabetta [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 2:29 PM
To: CF-Talk
Subject: MX 6.1 and MapPoint

(Searching the archives, it doesn't sound like anybody has, but I'm not sure
if people have figured it out in the interim and just never posted)

Has anybody been able to get MX 6.1 to successfully connect with the
Microsoft MapPoint 3.0 web service? Apache throws up on it, and searching
the MS forums suggests that the Axis 1.1 engine can't successfully integrate
with the service. Any pointers? I'm pretty new to web services, and
references to wsdl2java and java2wsdl are a little over my head at this
point.

Regards,
Dave.


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




RE: Card swiper interface?

2003-10-16 Thread Samuel Neff
We used one with a Flash/CF application.Piece of cake.The card swiper
plugs in between the keyboard and the computer and it sends keystrokes and
an enter key just as if someone had typed it into the keyboard (at least the
one we used).

Just have to make sure focus is in the right place when they swipe the card.

You may also want to consider bar-code and proximity cards which work the
same way.Bar codes are nice 'cause you can easily print them up (good for
testing).We only went with card-swipers in order to be compatible with
technology already in use at the conference our software was for.

Good luck,

Sam

--
Blog:http://www.rewindlife.com
Chart: http://www.blinex.com/products/charting
--
-Original Message-
From: Ian Lurie [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 6:17 PM
To: CF-Talk
Subject: Card swiper interface?

Hi all,

Anyone out there have any experience connecting a credit card swiper to
a ColdFusion application? We have a POS that we built for a client.
Right now they enter CC numbers by hand. But they're busy (that's a
good thing) so they want to ease the process.

Ideas?

Thanks in advance,

Ian Lurie

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




RE: Top n in Oracle

2003-10-15 Thread Samuel Neff
Oracle uses a special ROWNUM alias for this kind of thing

SELECT *
FROM LargeTable
WHERE ROWNUM = 3
ORDER BY DATE_FIELD DESC

HTH,

Sam

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

-Original Message-
From: Heald, Tim [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 8:27 AM
To: CF-Talk
Subject: RE: Top n in Oracle

The table has something like 250,000 records.The performance would make
that impossible.

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

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

-Original Message-
From: Thomas Chiverton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 8:24 AM
To: CF-Talk
Subject: Re: Top n in Oracle

On Wednesday 15 Oct 2003 12:39 pm, Heald, Tim wrote:
 I need to pull Top n (lets say three) from an oracle 8i db.Now SQL
Server
 makes this really easy to do.How would I go about doing it in Oracle?I
 have tried sub selects and rownum and stuff, but the order gets al hosed
up
 if I use those.Basically I need them ordered by date desc.

Do that, then only print the first three rows - you can access your query as
a
structure remember !

--
Tom Chiverton

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




RE: Top n in Oracle

2003-10-15 Thread Samuel Neff
Maxrows filters at the CF level and should be avoided.Filtering at the
database level is far more efficient.

Returning 250,000 rows from a database to an app server is something you
should never do.Even if the database can handle it properly, when CF
creates it's in-memory static representation in a QueryTable it will take a
lot of time.

Sam

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

-Original Message-
From: Thomas Chiverton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 8:38 AM
To: CF-Talk
Subject: Re: Top n in Oracle

On Wednesday 15 Oct 2003 13:27 pm, Heald, Tim wrote:
 The table has something like 250,000 records.The performance would make
 that impossible.

Have you looked at the docs for cfquery ?
In particular maxRows ?

If you query can't return 250K rows in something like stright away, you need
to look at your hardware/indexes urgently :-)

--
Tom Chiverton

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




RE: lite source control for Homesite+ ?

2003-10-15 Thread Samuel Neff
I know you said you don't want to set up version control but I really would
suggest CVS.We knew nothing about it and got it up and running in no time.
You don't even have to do anything in Homesite to get it to work with CVS
perfectly.Just install TortoiseCVS client and you have full access to
update/commit files right within HomeSite by right-clicking on the folders.

Whole thing could be set up in a few hours and is well worth it.

My $0.02.

Sam

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

-Original Message-
From: Gyrus [mailto:[EMAIL PROTECTED]
Sent: 15 October 2003 15:46
To: CF-Talk
Subject: lite source control for Homesite+ ?

I mostly work at home with my flatmate, and we've just started our first
major collaboration on developing a CMS. We don't have any source control
software, and frankly we think most such software would be overkill.

*All* we want is to be prompted that someone already has a file open when
we try to open it. That's it. MS Office seems to have this built-in. Is it
possible in Homesite?

Gyrus

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




RE: lite source control for Homesite+ ?

2003-10-15 Thread Samuel Neff
This functionality is built into Windows, it just depends on how
applications implement file open/save.

In Windows API you can open a file, read to it, and optionally close it.
Multiple program can get a shared open of a file or programs can get an
exclusive open of a file.If you do an exclusive open and leave it open,
then the file is locked and windows won't let another program open it.This
is how Office does it's file open/save.It even allows the program to be
notified when the file is no longer locked, which is a very kewl feature not
present in most source control systems.However, most text editors,
including HomeSite, open a file, read to memory, and then close it.When
the save, then open, write, and close.They don't leave it open and thus it
can be modified by another program.AFAIK, there is no option to change
this behavior.

Sam

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

-Original Message-
From: Gyrus [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 11:27 AM
To: CF-Talk
Subject: RE: lite source control for Homesite+ ?

At 15:50 15/10/2003 +0100, you wrote:
Yep... you could do it several ways...though not truly in homesite.All
source control is is ensuring that two people cant edit the same file...so
its a process of checking if the file is read-only before you go and make
changes

We thought of just manually changing files to read-only before editing
them, but of course this stops YOU from editing it as well. Duh. But I'm
not sure what you're saying here... a description of the basics of source
control software, not suggestions for manual source control?

What source control does add is history and disaster recovery...in my
opinion, even if you are working alone, source control should be used.

Homesite's backup systems and CD-Rs serve us well. A full source control
app seems silly when all we want is a notification when someone else has
the same file open.

We're on the same network. How does MS Office do it so effortlessly? Do
Word and Excel have a built-in CVS system?! Or is there just a bit of
Windows scripting that can replicate this? The more I look at it, the more
it seems odd that this basic little idea isn't built into Windows
drive/file sharing.

Bah.

Gyrus

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




RE: 6.0 6.1 on same machine?

2003-10-15 Thread Samuel Neff
I think only with the J2EE version.They don't both need to be J2EE
version, but at least one does.I was running like this for a while, CFMX
6.0 standalone and CFMX 6.1 J2EE on BEA WebLogic.

Sam

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

-Original Message-
From: Lee Ramsey [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 11:23 AM
To: CF-Talk
Subject: 6.0  6.1 on same machine?

Hi,
Is it possible to install CFMX 6.0 and 6.1 on the same machine through
different ports?

Thanks,
Lee

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




RE: lite source control for Homesite+ ?

2003-10-15 Thread Samuel Neff
No, CVS does not work with RDS.It has built in support for about 7
different protocols but since RDS is Macromedia proprietary that is not one
of them.I really don't understand why you'd want to anyways.. CVS provides
a complete solution for both version control and client/server communication
over TCP/IP.

RDS bugginess is one of the reasons we moved to CVS.

Sam

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

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 1:37 PM
To: CF-Talk
Subject: RE: lite source control for Homesite+ ?

But does this TortoiseCVS setup work via RDSThat's what I'd like to
see.I've used VSS with CFStudio before and driveshares are required for
remote servers which is much slower than RDS...at least on my LAN it is.

Doug

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




RE: Problem Exporting to Excel on CFMX

2003-10-14 Thread Samuel Neff
We've had this problem when the generated Excel files is too big (not
exactly sure what too-big is, but ours were about 2mb).IE tries to send it
to Excel prematurely.

In our case we had a lot of whitespace we removed that fixed the problem.

HTH,

Sam

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

 -Original Message-
 From: Mickael [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 14, 2003 10:55 AM
 To: CF-Talk
 Subject: Problem Exporting to Excel on CFMX
 
 Hello All,
 
 I have a strange situation happening.I have some code that 
 displays a report and has a link to export the page to excel.
 
 My link looks like this
 
 a 
 href="">
 efrom#dateto=#url.dateto#fromamount=#url.fromamount#toamoun
 t=#url.toamount#list=byBillDateExport to Excel/a
 
 Then to action page has this 
 
 CFCONTENT TYPE=application/msexcel; name=trackingreport.xls
 CFHEADER NAME=Content-Disposition VALUE=attachment; 
 filename=trackingreport.xls
 
 And then the rest of the code.
 
 The strange thing is that this works fine on netscape but 
 does not work for IE.(that's a first for me)
 
 When I click on the link I get an error box that says 
 
 Internet Explorer cannot download ... 
 nt=toamount=list=bylistdate from www.mydomain.com
 
 I can't figure out why this is not working. Can anyone point 
 me in the right direction?
 
 Thanks in advance.
 
 Mike

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




RE: Problem Exporting to Excel on CFMX

2003-10-14 Thread Samuel Neff
the cfcontent and cfheader here serve two different purposes.cfcontent
tells the browser what type of file it is, in this case Excel (another
posted application/vnd.ms-excel which I believe is the more commonly used
mime type).I've never see a name= inside a cfcontent tag.I don't think
that's correct and I would suggest removing it.

The Content-Disposition header tells the browser what to do with the file.
In the case of IE, it will often display content inline using OLE which is
ugly and hard to use.Declaring it to be an attachment forces it to open in
the full application which is usually what's desired.

I've always found Netscape to be more reliable for this stuff... all it does
is forward stuff to the right app as requested.IE tries to get helpful
and messes things up.At least that's my interpretation.

Sam

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

 -Original Message-
 From: Tony Weeg [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 14, 2003 11:40 AM
 To: CF-Talk
 Subject: RE: Problem Exporting to Excel on CFMX
 
 why the multiple s
 
 CFCONTENT TYPE=application/msexcel; name=trackingreport.xls
 CFHEADER NAME=Content-Disposition VALUE=attachment;
 filename=trackingreport.xls 
 
 ...tony

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




RE: Creating Word Doc

2003-10-12 Thread Samuel Neff
Here's a link to a Breezo of my presentation, along with a few thousand
lines of sample code.

http://www.rewindlife.com/archives/32.cfm

I'm also giving a presentation at MAX about integrating CF with Office.Not
a tutorial on how to do it but rather a comparison of several different
methodologies with pros/cons.If you're not going to MAX, you'll be able to
download a Breezo from my blog afterwards.

HTH,

Sam

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

 -Original Message-
 From: Sandy Clark [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, October 11, 2003 7:04 PM
 To: CF-Talk
 Subject: RE: Creating Word Doc
 
 Sam Neff gave a presentation on creating Word Documents 
 without COM at the
 Maryland CFUG earlier this year. You might want to check for his
 presentation on their site.
 
_
 
 From: Dwayne Cole [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, October 11, 2003 3:57 PM
 To: CF-Talk
 Subject: Creating Word Doc
 
 I'm trying to use the information in the database to generate 
 contracts in
 MS word.Can anyone here refer me to some tutorials or to 
 some custom tags
 to help out with this process 
 
 Dwayne Cole, MS in MIS, MBA 

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




RE: Creating Word Doc

2003-10-12 Thread Samuel Neff
You can specify what view to open Word in with a little XML within the
head element:

xml
 w:WordDocument
w:ViewPrint/w:View
 /w:WordDocument
/xml

 
Make sure you have the MSO namespace declarations at the top of your
document:

html xmlns:w=urn:schemas-microsoft-com:office:word
xmlns=http://www.w3.org/TR/REC-html40

Best regards,

Sam

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

 -Original Message-
 From: Marlon Moyer [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, October 12, 2003 7:47 PM
 To: CF-Talk
 Subject: Re: Creating Word Doc
 
 I've run into problems with Office XP opening it up in a code view 
 instead of document view allthough the same document opens up 
 beautifully in Word97 or Work2000..
 
 marlon
 
 [EMAIL PROTECTED]
 
 Philip Arnold wrote:
 
  I've suggested this before, and it works on the later 
 versions (Word 97
  onwards)
 
  Just change the Content type to be Word, and then send it 
 HTML - Word
  and Excel both interpret HTML into the native display 
 format, which
  makes life a LOT easier
 
  CFCONTENT TYPE=application/ms-word
 
  Don't forget to send a reset before, and abort after the content (in
  case you have an OnRequestEnd.cfm)
 
  HTH

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




Problem with select list on Mac OS9 + NS4

2003-10-08 Thread Samuel Neff
We're having a problem with select lists not scrolling on a Mac OS9 w/ NS4.
I tested this on all three of our OS9 computers with same results.

See these screen shots:

http://www.blinex.com/~sam/No_Scroll_Option_List.jpg
http://www.blinex.com/~sam/With_Scroll_Option_List.jpg

What can cause this?The two pages are exactly identical, just one is CFM
and the other is HTML (the HTML is saved from the CFM).

Here's the code.I removed most of the options but they're all consistent.
I've tried with and without whitespace between options and the problem
persists (of course that shouldn't matter, but I'm desparate).

form action="" method=post

			select name=upn_list
		option value=Click here to select an FY04 UPN (NOTE: Only the
digits are required in the UPN field)/optionoption
value=251AST-251/optionoption value=252AST-252/optionoption
value=302AST-302/optionoption value=319AST-319/option

			/select

/form

Thanks,

Sam

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




RE: Legal?

2003-10-08 Thread Samuel Neff
If he actually sues you, then hire a lawyer.If he just threatens, then it
seems premature to me--waiste of money.

If he does sue you, then you might actually be able to counter-sue.If you
really had an agreement, even an oral one, that you would design a website
for him and in exchange he would pay you to host it, but not for the actual
content, and he never paid you to host, then he owes you the lost hosting
revenue--you never said if he was going to pay you for hosting, were you
doing that for free too?

If he wasn't giving you anything, then I don't think there is any valid
contract.My very limited understanding of contracts is that there has to
be a two way exchange for contracts to be valid.If you just give him
something for free, then it isn't a contract, it's just you being nice.
That's why a lot of non-monetary contracts specifically spell out what
you're getting in exchange since it's not money.

My $0.02.

Sam

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

-Original Message-
From: Cedric Villat [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 2:18 PM
To: CF-Talk
Subject: Re: Legal?

Well, the domain name HE owns. He has since transferred it to a different
host. The website I designed was actually online for a while, but he didn't
pay the host so he was canceled. So all that I did was design the site, for
free, provided I run the site. He is now threatening to sue me, but who
knows. Any ideas? Should I contact a lawyer?

Cedric

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




  1   2   3   >