Ann: CFEclipse 1.1.17 released

2004-11-12 Thread Oliver Tupman
Hi all,

The CFE team is pleased to announce the release of CFEclipse 1.1.17.

Announcement: CFEclipse version 1.1.17 released
12th November, 2004 : 1000

Installation & Update

Installation & update procedures are availble on the CFEclipse
project website (http://cfeclipse.tigris.org) . All current non-CVS
users of CFEclipse should hopefully be notified by Eclipse that there
is a new release available. If not, follow the update procedures and
mention it to us on the CFE lists.

  What's new:

Around two weeks ago the CFEclipse Development team closed a feature
vote, where registered users were able to vote for the features they'd
like to see most.

We're happy to report that due to a large amount of work by the team, 7
out of the top-ten most-voted-for features have been implemented. They
are:

 * 11 Selected text drag 'n' drop
 * 138 Bracket highlighting
 * 17 Block indent/unindent enhancement
 * 183 Code folding
 * 21 Ctrl + Double click selects tag
 * 175 CFML comments
 * 97 CFC Browser enhancement

Thanks go to Matt Cristantello for the implementation of Bracket 
Highlighting.

For more on the new features and how to access them please visit:
http://www.spike.org.uk/cfeclipse/space/start/2004-11-12/1

  New features:

 * 201 Get the partition scanner working properly.
 * 174 Undo Steps
 * 105 Enhance code insight
 * --- Standard text editor prefs now in CFE page
 * --- Trim trailing spaces on save option available (via prefs)

  Bugs fixed:

 * 49 CFEclipse pref window resizes to fit snips directory...
 * 65 specifiy any attribute
 * 95 cfinvoke can have any argument, not reflected
 * 108 New CFC's are created with blank attributes
 * 144 syntax coluring error with <= in cfquery
 * 152 Error generated if CFINVOKE doesn't have closing tag
 * 180 Adds empty extends attribute in CFC wizard
 * 181 cfqueryparam (and others) breaking file parser
 * 182 Attribute name is not required for cfquery
 * 199 Content assist fails when there is a non-enclosing tag.
 * 200 Syntax colouring slightly off.
 * 205 Something preventing the closing of chevrons
 * 207 Tasks are being deleted by cfeclipse.
 * 208 CFC Methods view broken
 * 210 Scope insight pops up at the wrong time
 * 216 Error occurs when coping a large block of text
 * 219 Comment instide comment block renders does not show code
   as "commented out"

The zip version of the plugin is not yet available if you wish to
update manually. It should appear on monday.

Happy coding,

  The CFEclipse Crew.



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

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


Best choice for ColdFusion Studio IDE...

2004-07-15 Thread Oliver Tupman
Guy Rish wrote:
 > ...shades of vi vs. emacs...

IDE wars are always fun, aren't they?

Guy, you get nothing but agreement from me - white flags between CFE & 
He3 please (mainly CFE people though). Inevitable that we're gonna 
clash, but the truth is in the product not the posts. Those that have 
ranted on CFE's side, why not write more code? It must've taken a while 
to write the posts. How many lines of code could you have done?...

As CFE Project Leader I recommend that any user try JEdit, Homesite, 
Dreamweaver, Notepad, CFE, He3, etc. Play around, use what you like. If 
conveniently you like CFE that's cool, if not, that is also cool (though 
we'd love to know _why_ you don't like it).

To mention what I use, for projects I use CFEclipse (becuase I help 
write it), Textpad for random files, Notepad on Windows remote servers 
and emacs on *nix remote servers. Btw, I have to admit that PrimalScript 
was quite cool until the eval period ran out :D Btw, cheers to Dave for 
the mention of Notepad2 - I suspect it will be appearing on all of my 
Windows servers!

To quote a popular UK TV comedy sketch program from a while ago "calm 
down now, calm down".

-- 
  Oliver Tupman
  CFEclipse Project Leader
  http://cfeclipse.tigris.org
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Securing CF Apps.

2004-03-23 Thread Oliver Tupman
Lo Michael,

A document I found very useful entitled "A Guide to Building Secure Web 
Applications" can be found here:

http://sourceforge.net/project/showfiles.php?group_id=64424&package_id=62287

Oliver.

Tangorre, Michael wrote:
> What kind of defenses are people putting in to prevent cookie poisoning,
> session hijacking, parameter tampering, etc...?
> Does everyone keep this stuff in mind while coding? To be honest, my past
> code has been lax when it comes to making sure all the holes are "plugged",
> and even now, some automated testing tools we have are finding
> vulnerabilities!
> 
> 
> The checks I have been putting in place and the encrypting of parameters and
> such are definitely adding time to development, but at the same time, the
> quality of the application is much much better
> 
> 
> what does everyone else do to prevent malicious users?
> 
> 
> Mike
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Javascript remoting with cfcs

2004-03-18 Thread Oliver Tupman
Dick Applebaum wrote:

> The full impact of this hasn't "ripened"  in my mind yet -- at the very

Yeah, same here. It's sounding very cool, I just can't yet work out 
where I'd use it...

Having said that I could've created a whole web service back/frontend to 
my most recent project and built a whole bunch of clients 
(web/web+JS/.NET/Java/etc.). Ohhh, that would've been cool.

> I think you could do some very exciting things with this.

Total agreement here. Nice one Rob.

 > The things we do when we are unemployed

Hah, we're after another CF/web guy.
Wanna move to the UK? :D

> P.S. doesn't work with Safari

FYI Rob, works in the following:
- Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
- IE 6

both on Win XP.

-- 
  Oliver Tupman
  Key Systems Geotechnical
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Javascript remoting with cfcs

2004-03-18 Thread Oliver Tupman
Dick Applebaum wrote:

> The full impact of this hasn't "ripened"  in my mind yet -- at the very

Yeah, same here. It's sounding very cool, I just can't yet work out 
where I'd use it...

Having said that I could've created a whole web service back/frontend to 
my most recent project and built a whole bunch of clients 
(web/web+JS/.NET/Java/etc.). Ohhh, that would've been cool.

> I think you could do some very exciting things with this.

Total agreement here. Nice one Rob.

 > The things we do when we are unemployed

Hah, wanna move to the UK? We're after another CF/web guy :D

> P.S. doesn't work with Safari

FYI Rob, works in the following:

-- 
  Oliver Tupman
  Key Systems Geotechnical
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Tortoise CVS

2004-03-09 Thread Oliver Tupman
>that install is not there.
>
>the files are there, but I didn't see install instrucs.

Looks like the creator mucked up the install file location, had it pointing to the wrong host. 

Try here:

http://www.jalindi.com/igloo/iglooinstall.zip

Though it could be an older version.

Enjoy,

 Oliver Tupman.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Tortoise CVS

2004-03-09 Thread Oliver Tupman
Broner, Mark, CON, OASD(HA)/TMA wrote:

> Has anyone gotten tortoise CVS integrated with Homesite +?  I thought that
> it would be a choice with projects and source control but I can't seem to
> get Homesite to recognize Tortoise as a valid source control source.

Hmm, AFAIK Tortoise CVS only integrates with the Windows shell, not via 
the SCC API that's compatible with Visual Studio.

If you want integration with HomeSite, then you'll need the Igloo CVS 
plugin that you can find here:

http://www.jalindi.com/igloo/

Alternatively switch over to CFEclipse with Eclipse's built-in CVS 
support ;)

I hope that helps.

-- 
  Oliver Tupman
  Key Systems Geotechnical
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: new version of cfeclipse (1.1.3) the eclipse plug-in

2004-03-09 Thread Oliver Tupman
Hello to all you CF users,

If you're using CFEclipse then perhaps you might be interested in 
signing up at Tigris? Signing up as an observer sticks you on the 
CFEclipse users mailing list to join any discussion that takes place 
with relevance to CFEclipse.

Another added benefit is that you can report bugs and make feature 
requests via the website which provides you with the ability to make a 
request and track it through all its stages of progress (so you can 
harass us developers when a bug isn't being fixed ;D).

So if that interests you, to sign up go here:

  http://www.tigris.org/servlets/Join

and to request to sign up as an observer then go here:

  http://cfeclipse.tigris.org/servlets/ProjectMembershipRequest

If you're interested in doing some coding yourself, sign yourself up and 
then send either Rob or I an e-mail or discuss it on the CFEclipse 
mailing list.

Happy coding.

-- 
  Oliver Tupman
  Key Systems Geotechnical
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: ColdFusion IDEs

2004-02-26 Thread Oliver Tupman
At the moment Homesite...

But I'm soon to change to Eclipse with the cfeclipse plugin once Rob or 
someone else (perhaps me) gets it's to maintain the function infopop 
until the user closes the matching ')'.

Of course the advantage of using Eclipse is that you've get Rob and 
others that work on the plugin who will listen to your requests.

Unfortunately my boss might not be impressed with this switch... he 
bought Homesite for me a little while ago.

Oh well.

  Oliver Tupman.

Calvin Ward wrote:

> All,
> 
> I'm curious to know what IDEs other than Dreamweaver and 
> HomeSite/ColdFusion Studio are people using, and what the stand out 
> features of their favored IDE is.
> 
> Note: I'm really not interested in HomeSite(+ or not) or Dreamweaver info.
> 
> Thanks,
> Calvin Ward
> Jacksonville, FL ColdFusion User Group Manager
> http://www.jaxfusion.org/
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: mySQL date ?

2004-02-20 Thread Oliver Tupman
[EMAIL PROTECTED] wrote:

Try this:



  INSERT INTO guide (title, content, update)
   VALUES ('#title#', '#content#', '#DateFormat(Now(), 
""-MM-DD"")#')


I may have the double quotes wrong, but that should work. MySQL receives 
the date/time from Now() as an ODBC date/time string (the ones that go 
{blah blah}). MySQL doesn't accept those at present, so you have to 
manually format (I could be wrong, if so, someone tell me 'cos it'll 
make my life easier!).

By the way, if your 'update' field is simply the time when the field is 
last update (which it appears to be) and you'll never want to insert 
something different, MySQL has a custom datetime type that is updated 
whenever you perform an UPDATE or INSERT. Copied from the MySQL manual 
is this:
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: OT: User Context Help

2004-01-28 Thread Oliver Tupman
Jeff Chastain wrote:

> What I am looking for is something similar to what is in the CFMX admin.  It
> has a little help icon in the top right corner that opens a new window
> containing the documentation.  This documentation is browseable by contents,
> index, or search.  Also, if I was on the datasources page for instance,
> clicking on the help icon would take me directly to the documentation on
> datasources.
> 

A system we've got here for our fusebox based app is we basically take 
the current fuseaction and use that to look up the current page in a 
help file (which is either an HTML or PDF file). We also give the user 
the ability to ask questions based upon that fuseaction, which we then 
answer/delete/whatever. So we not only have context-based helpfiles, but 
context-based FAQs as well.

-- 
  Oliver Tupman
  Key Systems Geotechnical
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: MySQL Aggergate

2003-12-23 Thread Oliver Tupman
If the last post hasn't solved your problem and you're using MySQL 
version 4.0.2 or above, then try using the CAST() or CONVERT() function 
on the _expression_ that's failing.

Usage I think you're looking for is:

SELECT TL.T_id, CAST(MAX(dPosted) AS CHAR) as LastDaySeen

You can find the MySQL manual page here:

  http://www.mysql.com/doc/en/Cast_Functions.html

-- 
  Oliver Tupman
  Key Systems Geotechnical
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CF loosing connection to MYSQL database.

2003-12-22 Thread Oliver Tupman
Ketan Patel wrote:

> Hi All,
> I am getting error recently with  my site. The site is on CF5.0 and using
> MYSQL ODBC to connect to the MYSQL server. Any idea whats going on.
> FOllowing is the error.
> 
> ODBC Error Code = S1000 (General error) [MySQL][ODBC 3.51
> Driver][mysqld-4.1.1-alpha-nt]Lost connection to MySQL server during
> querySQL

Does it occur all the time or just in one or two queries? If one or two 
queries, are you using a GROUP_CONCAT() function?

If so, GROUP_CONCAT causes the server to crash or just go a tad gaga if 
your query returns 0 rows. Any chance of seeing the queries?

Alternatively, as mentioned previously, bear in mind it's alpha software 
and your milage may vary. So far, after 4/5 months the GROUP_CONCAT 
problem is the only one I've encountered.

-- 
  Oliver Tupman
  Key Systems Geotechnical
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Programatically Adding Custom Tag Paths

2003-10-21 Thread Oliver Tupman
 > Nasty hack, but but you could do something with  ?
 >
 > Or use CFCs or UDFs?
 >
 > Nick
 >

I can't do cfmodule (I think...) because the reason I wish to do this is 
to include CFCs.

For example a CFC component might live here:

oliver.fred.project.People.Present

Now I have a function New() that is simply a shortened version of 
CreateComponent() that takes one argument: the component name.

I'd like to create a function called Using() that - for the duration of 
the request - appends whatever is passed to it to the custom tag path.

So instead of doing this:

New("oliver.fred.project.People.Present");
New("oliver.fred.project.Car.Somethingelse");
... and so on

I could do this:

Using("oliver.fred.project");
New("People.Present");
New("Car.Somethingelse");

One way is to simply define a string that has "oliver.fred.project" and do :

  New("#defStr#.People.Present");

But I'm lazy.

Nick de Voil wrote:

-- 
  Oliver Tupman
  Key Systems Geotechnical

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




Programatically Adding Custom Tag Paths

2003-10-21 Thread Oliver Tupman
Hi all,

Firstly please excuse any spelling mistakes - it's nigh-on freezing here 
in the UK, so having ridden to work my hands are icicles.

Anyway, does anyone know of a way to programmatically add/remove/modify 
custom tag paths. What I'm interested in doing is creating a Using() 
function to work in the same lines as the C#'s and Java's keyword of the 
same name.

Ideally I'd like to update the custom tag paths for the duration of a 
request and no longer.

Anyone got any ideas?

-- 
  Oliver Tupman
  Key Systems Geotechnical

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




Re: New email format

2003-09-23 Thread Oliver Tupman
Peter Tilbrook wrote:

>   [Peter Tilbrook] Just noticed the new HTML format.
> 
>   Looks nice :)
>   

Egad, there's HTML in that thar e-mail.

And I didn't even notice it! Doh. Obviously not awake yet.

Having noticed it I've already right-clicked and selected 'Block images 
from server'.

But I agree, it does look nice. Or at least pretty much like the 
plain-text format!


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



Re: mysql ?

2003-09-11 Thread Oliver Tupman
Try the MySQL Control Center:

   http://www.mysql.com/downloads/mysqlcc.html

Not perfect, a bit clunky at times thought.

[EMAIL PROTECTED] wrote:

> wny good recommendations for a front end to mysql?
> i remember using something called MySQL-Front but it looks discontinued
> 
> I havent used mysql for awhile so whats the new best thing:)
> 
> dave
> 


-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com


Re: SUBMIT button

2003-09-02 Thread Oliver Tupman
Robert Orlini wrote:
> Any reason that this submit button code does not work?
> 
>  value="delete" name="delete">
> 
> I like the look of this button because it is an image, but does not pass the 
> "delete" value to the form.

I'm assuming you're not getting the variable 'delete' set, in this case 
it's probably IE doing what you don't expect. I think IE doesn't send 
the 'delete' value, but delete_x and delete_y which contain the (x,y) 
where the user clicked.

-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm


Re: Session vars not being retained. Any ideas why?

2003-09-02 Thread Oliver Tupman
Mike Kear wrote:

> Can someone else have a look at these pages for me too please make sure it's
> nothing to do with my browser settings?

Took a look and the auth structure was present in all three pages. 
Tested in both IE 6 and Mozilla 1.5b.

I've had an interestingly similiar on a intranet box we install recently 
running IIS and CF MX 6.1. When using the name of the box provided via 
WINS IE _always_ lost the session variables. If I use the IP it's fine. 
I'm currently assuming that IE forgets about the session vars due to a 
mismatch between IIS's domain name (there isn't one) and the WINS name.

Not sure if it's related though, but is bluegrass.org the server you're 
having the problems on?

-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm


Re: UDF in CFC's - was: CFC Issues....

2003-08-21 Thread Oliver Tupman
Paul Spitzer wrote:
>>thinking of writing some sort of preprocessor that would convert a
>>cfscript-like syntax
> 
> 
> that's a great idea!  New project!
> 

An hour or so after work and it appears to work with a UDF'd page... 
Next step, components. Maybe not, need to cycle home before it gets dark!

If I get it working relatively well by tomorrow sometime I'll upload it 
somewhere and post a link.

Of course I've just written around 40 components in CFMX/CFScript... Oh 
well :D


-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com


Re: CFC Issues....

2003-08-21 Thread Oliver Tupman
Raymond Camden wrote:

> Err, you mean with super.foo()? This is documented and a feature of CF
> MX 6.1.

Doh! Managed to miss that one!

Makes my life easier! I was missing calling the parent component.

I assume that this means that 'super' is now a reserved word?


-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com


Re: UDF in CFC's - was: CFC Issues....

2003-08-21 Thread Oliver Tupman
Paul Spitzer wrote:

 > Paul  (wishing I could use script syntax for everything)

Join the club!

> wow!.. I didn't know you could do that.  Is there *any* way to make them
> private?  

Unfortunately not, neither is there a way to stop them producing output 
like through the CFML cffunction attribute output="false". I was 
thinking of writing some sort of preprocessor that would convert a 
cfscript-like syntax such as

  private numeric function someFunc(numeric fredSalary, string fredName)

But I haven't found the time. It may even be possible to link it in 
before the CFM/CFC compilation stage in CF, but that's just a thought 
(extend the compilation class CF uses for compiling CF files?)

>I noticed that the component documentation says all the arguments
> are required, is it possible to declare which arguments are required and
> which ones aren't?  What else can you do with this... playing with it, it
> really doesn't seem very flexible, but I still have hope.

Hmm, didn't know the component docs say all are required! From what I've 
seen s are declared in a very similiar manner to UDFs - you 
can set a 's required attribute to false/no if you so wish.

For exmaple:


  
  



And then call an object of this component with



or





-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm


Re: CFC Issues....

2003-08-21 Thread Oliver Tupman
Bryan F. Hogan wrote:
> So the following should work?
> 

[copy] [paste] [run]

Bryan, it worked fine at my end. MX gave no problems with it.

I've components coming out of my ears and it works fine. You can even 
call a parent method that you've overridden, though its undocumented and 
therefore may not work in future versions (and a bit processing-intensive).

> By creating a UDF inside a cfc and trying to use it in the same cfc I get
> the exact same error that Tony gets with any UDF.

It should work. Few questions (some silly, some not):

1) You are using MX?
2) You've got a single component in a single CFC file?
3) If you use the CFC Explorer you get the error still?
4) Have you upgraded to 6.1?


-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com


Re: Uniquely identifying a function

2003-08-20 Thread Oliver Tupman
Hi all,

Just thought I'd throw in a couple of thoughts into the discussion -

Firstly you don't need to do 'myFuncRef.toString()' to get the java 
class name, just get myFuncRef, for example:



Don't know if anyone's done it already, but an interesting benefit of 
this is that you can use them as a sort of pointers to functions.

Another point is that the string you get from the function itself (i.e. 
[EMAIL PROTECTED]) changes with every change of 
that file because CF recompiles it.

So if you changed the function that you're caching the data from, you'd 
end up with a new copy of the data for every change.

If I were you, I'd use the location to the function and the function 
name because as mentioned earlier, it's probably going to be unique.



Tim Blair wrote:

> Evening,
> 
> I'm in the process of creating an application, part of which is a series
> of CFCs which perform and cache data, allowing quick retrieval on the
> next call.  This is done by passing a reference to a function to a
> method of a CFC which then runs the function after doing some other
> processing and returns the data.
> 
> Now I want to be able to cache the data generated.  The generated data
> will be plain text and so I'm just planning on storing it (keyed on
> something that uniquely identifies the funciton used) within an
> structure as an instance variable in the CFC.
> 
> So basically, I need a way to generate a structure key based on a
> reference to a function.  The way I've come up with is simply a hash of
> the toString of the function, prefixed with an arbitrary string so the
> variable name is valid, as so:
> 
> 
> 
> 
> Which results in a key of "i8CF622BA70E703A796DB0FD8AC8ABFA8" -- a valid
> variable name and unique to the function called.
> 
> The myFuncRef.toString() returns an output similar to
> "[EMAIL PROTECTED]" which is basically the
> associated compiled java class.  AFAIK this uniquely identifies the
> function being used and means I don't have to manually associate an ID
> with each function.  The hash() + the string prefix call makes sure that
> any invalid chars get removed and the chance of two hash() calls
> returning the same value is supposedly around 1 in 2^64 so it should be
> safe there...
> 
> Basically, does anyone see any issue with doing it this way?
> 
> Tim.
> 
> 


-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com


Re: Decode - URLEncoded string

2003-08-20 Thread Oliver Tupman
Jeff Chastain wrote:

> I have got a string that was encoded by another application using a
> 'quad-character format'.  I have not seen this format before and I am
> getting errors when trying to decode it.   Anybody run into this before and
> have any suggestions?  I have tried the different formatting options for
> URLDecode without any luck.
>  
> 'Normal' encoding - jeff%u2Echastain%u40hp%u2Ecom
> Quad Character encoding - jeff%u002Echastain%u0040hp%u002Ecom

Quick fix off the top of my head - do a replace on something like %u00 
and replace it with just "%u"? Then just use URLDecode() on the 
resulting string.

-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com


Re: OT: packet sniffer

2003-08-18 Thread Oliver Tupman
Michael T. Tangorre wrote:
> I am in the hunt for a tool that will allow me see the http traffic to and from ym 
> machine. I am trying to debug an application that makes http posts to some servers 
> and need to see what im sending and receiving.
> 
> I have ethereal now, are there any alternatives (free if possible).
> 
> Thanks,

If you can install Mozilla on the client system, then you could download 
the 'LiveHTTP Headers' extention - this enables you to go through the 
requests and responses made by the browser.

You can find LiveHTTP at

http://livehttpheaders.mozdev.org/

-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm


Re: CF or .DotNet what do you think?

2003-08-14 Thread Oliver Tupman
Sean A Corfield wrote:
>>The reason is that I'm used to the power that PHP generally gives me 
>>and I don't like the syntax. And that's just for starters.
> 
> *grin* And I don't like the PHP syntax... all those silly $ $ $...

heheh, and I don't like the #variable# syntax! :)

>>Personally I'd think that VB developer could make the switch to CF
>>relatively easily, but what one might call a 'hard-core' programmer may
>>well have problems with the switch. In that case I'd seriously think
>>about doing the CF + Java route, but I'd say that about the same as
>>going a PHP + Smarty route.
> 
> For an alternative viewpoint:
> 
> http://www.corfield.org/index.php?fuseaction=coldfusion.main

Hmmm, if I didn't have to use CF I'd probably agree with everything you 
said. But with a templating engine like Smarty you can do *nearly* 
everything you can do with CF apart from the excellent interfacing with 
Java.



> Quote: "I consider myself to be a pretty hardcore software engineer and 
> I love ColdFusionMX - I can use all the knowledge I've acquired 
> over the years about good softwaredesign and I can apply it to 
> ColdFusion MX to build web applications easilyand quickly."

Ditto, but using PHP :D

-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: CF or .DotNet what do you think?

2003-08-08 Thread Oliver Tupman
Fetter, Brad wrote:

> Oliver,
> 
> What area of CF did you find frustrating? What kind of project?

First the kind of project:

The project is a Quality Assurance system (bug tracking, development 
requests, yadda yadda yadda) for which we are using CFCs extensively, 
hence a lot of my discontent comes from dealing CFCs.

This project is 'my baby', as it were, and will remain so for the rest 
of my stay at this company. It will be extended to well beyond the 
current spec therefore I will have to use CF a lot.

The choice of language was not left to me so I have not looked forward 
to developing the system, which only serves to exacerbate the annoyances 
experienced with the language.

Now the areas. It's a long set of areas, so you may wish to skim or 
avoid them at all. Once again I state that this is my own personal 
opinion derived from many long hours of CF.

If you disagree but can find no constructive comment, please abstain 
from commenting. If you have a suggestion that may help me, please make 
it. If you can help solve one or more of my problems it makes my time 
with CF more pleasurable, tolerable and makes me less likely to consider 
putting my hands through a cheese grater.


Problem Areas:

Object orientation (or lack thereof) and the implementation of it in CF, 
performance of CFCs (found it can take 3ms to call a method!), 
functions, general CFML syntax, lack of commands that are in CFML that 
aren't in CFScript, sessions doing weird things (may be my fault), lack 
of control (see the 'control freak').

Errrm, what else... Ah, if you put an object into the SESSION variable 
it not only stores the data, but the methods associated with it as well. 
Therefore change the class and it doesn't change in memory. If I could 
work out how to serialize the data at the end of a request I'd do that, 
but I've no idea. Instantiating an object can take ages. If CFMODULE'ing 
a template that includes, say common.cfm, and the CFMODULE'ing template 
also includes the same file and in that file are funcitons, then a 
'function cannot be declared twice' error is raised and I can find no 
way around it.

Oh, there are no equivalents to C's "#include" nor PHP's "Define()". 
CFSWITCH can only take constants in it's cfcase's, therefore as you can 
apparently define nothing how done one test for return values from a 
CFC? By hard coding the values (though perhaps I should return strings 
for error codes). Errm, CFCASE's cannot fall through to the next CFCASE 
and therefore not the the DEFAULTCASE but you can do it in CFSCRIPT. One 
cannot 'break out' of CFSCRIPT to CFML in the middle of a control block 
(i.e. if(){}else{}).

No constructors, no true private/protected variables, CF compiles the 
CFC not to a class by to a series of .class files, one for each method, 
no getter/setter, you cannot define a method as fully as you can in 
CFML. Oh, and you cannot call a parent method without creating an 
instance of the parent class, copying over the relevant properties and 
then calling the method on the parent instance and then copying back the 
properties.

output="false" from a calling function applies to the called function 
even if the called function does output="true".

One may say that as CFCs are a new feature then it should be 
understandable that they are not well implemented and I did hope that 
with 6.1 it would be somewhat solved. Nope. Being a PHP-head, I say that 
  objects were well implemented from 4.0 (though I would love being able 
to raise exceptions like you can in CFC, oh hold on, that's in PHP 5).



-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: CF or .DotNet what do you think?

2003-08-07 Thread Oliver Tupman
Hi Eric,

Just thought I'd throw in my two pennies worth about this.

I'm using CF having come from a software engineering start via PHP 
(which I loved).

Before anyone yells at me I can see the benefits that CF gives, and two 
of our directors have made huge, highly reliable websites with it.

[soapbox]
But I do hate CF.

The reason is that I'm used to the power that PHP generally gives me and 
I don't like the syntax. And that's just for starters.

This is purely a personal opinion from a programmer, just like an 
opinion about your next door neighbour's new car, or the state of one's 
government.
[/soapbox]

If you decide to go the CF way, understand that quite a few of your 
developers may spend hours banging their heads against CF. I spend about 
2 hours a day doing that. Could be because most programmers are control 
freaks and so like to be able to control every last detail of their 
application. CF takes some of that away from you of course many argue 
this is a good thing.

Personally I'd think that VB developer could make the switch to CF 
relatively easily, but what one might call a 'hard-core' programmer may 
well have problems with the switch. In that case I'd seriously think 
about doing the CF + Java route, but I'd say that about the same as 
going a PHP + Smarty route.


-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



CFMX 6.1 Debug tree times only showing a few pages... anyone else?

2003-08-06 Thread Oliver Tupman
Hi there,

Just upgraded to 6.1, popped on the debugging window to take a look at 
the execution times call tree. Unfortunately for some reason I only get 
four pages displayed and there should be quite a few.

If I put it onto 'summary' mode I get the correct list of files.

Anyone else having this problem?


-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: CF - XML Questions

2003-07-31 Thread Oliver Tupman
Dave Watts wrote:

>>I have tried to resolve this page using cfhttp as in:
>>http://client.something.com/TESTOpenShipments
>>/OpenShipments.dll/OpenShipments" method="POST" resolveurl=
>>"false" proxyserver="192.168.36.999" proxyport="80">
>>  
>>  >value="password">
>>  
>>
>>
>>
>>  file content:  #cfhttp.filecontent#
>>
>>
>>But I keep getting the following error:
>>file content: 
>>Connection Failure 
>>I dont know if this is because of proxy server settings.
> 
> 
> Well, you are getting a connection failure. It looks like you're doing
> everything right, basically, but your CFHTTP request isn't getting a
> response. Where did you get the values for PROXYSERVER and PROXYPORT? It's
> odd to see a proxy server running on port 80. What happens if you omit both
> of those attributes?

Also like to point out that the IP address:

  proxyserver="192.168.36.999" proxyport="80">

is invalid. IP numbers are 0 - 255. That could be your reason, unless 
you've changed it for security reasons for your post.



-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: Exception in jrunx.resource.ResourceURLClassLoader

2003-07-31 Thread Oliver Tupman
Cheers Sean, you came to the same conclusion as I did. Though what I 
also had to do was restart CF. Thankfully it's a development machine so 
all was not lost.

-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Exception in jrunx.resource.ResourceURLClassLoader

2003-07-30 Thread Oliver Tupman
Hi all,

Got a weird one: a CFM file called test.cfm gives the message:

  Error casting an object of type jrunx.resource.ResourceURLClassLoader 
to an incompatible type. This usually indicates a programming error in 
Java, although it could also mean you have tried to use a foreign object 
in a different way than it was designed.

  jrunx.resource.ResourceURLClassLoader

whenever one tries to access it (stack trace at the bottom of the 
e-mail) but if I move it or rename it the file works perfectly.

Anyone got any ideas as to why it happens?



Stack trace:

java.lang.ClassCastException: jrunx.resource.ResourceURLClassLoader
at coldfusion.runtime.TemplateClassLoader.findApplicationCfm(Unknown Source)
at coldfusion.filter.ApplicationFilter.invoke(Unknown Source)
at coldfusion.filter.PathFilter.invoke(Unknown Source)
at coldfusion.filter.ExceptionFilter.invoke(Unknown Source)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(Unknown Source)
at coldfusion.filter.BrowserFilter.invoke(Unknown Source)
at coldfusion.filter.GlobalsFilter.invoke(Unknown Source)
at coldfusion.filter.DatasourceFilter.invoke(Unknown Source)
at coldfusion.CfmServlet.service(Unknown Source)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:241)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at 
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
at 
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at 
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)


-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: Mach II

2003-07-29 Thread Oliver Tupman
Neil Middleton wrote:

> Can anyone provide me or point me to an idiots guide to Mach II.
> 
> I am basically trying to figure out what it does, roughly how it works and
> what beneifts it has.
> 
> Call me stupid, but terms like "implicit invocation architecture" mean very
> little to me...

Try here:

http://beta.fusebox.org/

Down in the bottom left-hand corner should be Mach-II specific stuff.

-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: SOT: ColdFusion on Linux

2003-07-29 Thread Oliver Tupman
David K wrote:
> Are there any issues using a MS Access DB 
> with ColdFusion on a Linux box? 

Think you'd need to dig out a JDBC driver to access it. In my brief 
search I discovered that these generally cost money. As it was only 
going to be for a temporary measure I didn't bother, and just used MySQL 
as usual.

> David K.
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Tutorials for creating Java classes for CF

2003-07-28 Thread Oliver Tupman
Hi all,

Can anyone point me in the direction of a good tutorial of two on the 
creation of Java classes for use in Cold Fusion via the CreateObject() 
function?

I'm relatively okay with the way the language works because I come from 
a C++ background, it's just compiling a class for use in CF that stumps me.

Any pointers, tutorials, advice will be readily welcomed.

-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: CFC's and how they work.

2003-07-25 Thread Oliver Tupman
Quick note on speeding up the performance of CFCs...

On a 2GHz P4 the creation of a component with CreateObject() takes 
(upto) 15ms. If you're using a _lot_ of objects - i.e. you're 
representing your system in a highly OO way - then your page times start 
to get realy huge.

At this point you have, I think, three options -

1) Write 'em in Java. CF apparently creates Java objects with 
CreateObject in nigh-on 0ms.

2) Manually cache an instance of each object in the Application scope. 
Implement your own function - say CreateComponent() - that will get a 
copy of the component out of the App scope.
Of course a problem with item 2 is that if you change your component 
then the cached copy would be out of date. I'm currently looking into a 
way of getting around this by using the individual IDs assigned to a 
class' functions.

3) If you have to make a number of instances of an object during a 
request, then you can implement item (2) for each request therefore 
eliminating the problem in item (2).

-- 
  Oliver Tupman
  Key Systems Geotechnical

Rich Z wrote:
> Thanks for the insight. Very helpful.
> 
> 
> -Original Message-
> From: Sean A Corfield [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 24, 2003 3:46 PM
> To: CF-Talk
> Subject: Re: CFC's and how they work.
> 
> On Thursday, Jul 24, 2003, at 10:07 US/Pacific, Rich Z wrote:
> 
>>I've got a box here at work and it has CFC that is going to get pretty
>>hard. I'm a bit wary of scalability, which leads me to a few
> 
> questions:
> 
> macromedia.com is very CFC-heavy and supports over 15,000 concurrent 
> active sessions during peak morning load so, yes, it can scale.
> 
> 
>>1.What does CFMX do about caching CFC's? Does it cache them? Does
>>it cache them along with parameters?
> 
> 
> Each CFC and each method within a CFC is converted to a Java class 
> file, just like each CFM file, and that compiled class file is loaded 
> (and cached in memory).
> 
> As Ray said, the lifetime of each CFC instance is whatever you tell it 
> to be, i.e., depending on how you use and store it.
> 
> 
>>2.Let's assume a CFC method requires 3 seconds for output in
>>testing. Once in production, let's assume that load is significant
>>enough such that the CFC will be invoked every second. Will the
>>invocation have to wait for the CFC to finish processing the previous
>>one? I guess another question I'm asking is - do CFC's support
>>multi-threading?
> 
> 
> This is no different to having any CFM page that takes three seconds 
> and still being able to support many concurrent users.
> 
> 
>>3.If they don't, is there something I can tweak/change/do to make
>>them better handle near-simultaneous requests?
> 
> 
> It depends on how you are trying to use CFCs. If you have stateless 
> CFCs, you can create a single cached issue in application scope and use 
> that instance for all your cfinvoke's. If you have stateful CFCs, you 
> need to manage their lifetimes according to whatever rules the state 
> has - it may be per page, per request, per session.
> 
> Sean A Corfield -- http://www.corfield.org/blog/
> 
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
> 
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: Throwing exceptions from CFCs

2003-07-23 Thread Oliver Tupman
Raymond,

I still think we're not quite on the same level here. That or my MX is 
acting weird. I do indeed get the context, but it still comes from the 
, not the Throw() function.

Try the following component and just call test() without any exception 
handling around it:





SELECT * FROM table WHERE 1


Exception thrown...














Notice that the error message is centered around the , not the 
ThrowObj() function. Also note that the message displayed has not been 
changed, despite the fact that I  object.RootCause.Message and 
object.Message. It is this object I wish to modify while retaining the 
context.

Raymond Camden wrote:

> Just an FYI, when I cfthrow from the CFC, if I use try/catch in my
> caller, I _can_ see tagcontext. Here is my cfc:
> 
> 
> 
> 
>   
>   
>   
>   
>   
>   
>   
>access="private">
>   
>   
>   
> 
> 
> 
> Here is my caller: 
> 
> 
> 
> 
>   
> 
> 
> 
> cfcatch.tagcontext correctly shows line #2 generated the error.
> 


-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: Throwing exceptions from CFCs

2003-07-23 Thread Oliver Tupman
I noticed that too, while it may partly fulfill part (b) of my original 
post:

 >> b) how do I throw my own exceptions with an exception context?

it does not fulfill part (a)

 >> a) how do I either modify a thrown exception that I wish to rethrow 
(but with extra data)

I may of course be after too much, and expecting too much of Cold Fusion 
hence my idea that I may need to delve into Java.


Raymond Camden wrote:

> When I do 
> 
> 
> 
> The tag context's first element line # _is_ the line number of the
> cfthrow in the throw method, however item 2 is is the method that called
> throw, and item 3 is the caller tag. This covers everything.
> 
> I modified my cfc method to do this:
> 
>   
>   
>   
>   throw("Test one");
>   
>   
>   
>   
>   
> 
> and -still- it worked correctly. Are you not seeing this?
> 
> 
> ===
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> (www.mindseye.com)
> Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)
> 
> Email: [EMAIL PROTECTED]
> Blog : www.camdenfamily.com/morpheus/blog
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda 
> 
> 
>>-Original Message-
>>From: Oliver Tupman [mailto:[EMAIL PROTECTED] 
>>Sent: Wednesday, July 23, 2003 9:27 AM
>>To: CF-Talk
>>Subject: Re: Throwing exceptions from CFCs
>>


-- 
  Oliver Tupman
  Key Systems Geotechnical

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: Throwing exceptions from CFCs

2003-07-23 Thread Oliver Tupman
Raymond Camden wrote:

> Ah, so you need to know _who_ called your method in the incorrect way,
> right?

Erm, wrong way round - I'm after being able to know _where_ the 
exception occurred. For example, the following listing was caused by the
 on line 65.

  The Error Occurred in /opt/coldfusionmx/CustomTags/qa/Base.cfc: line 65
Called from /opt/coldfusionmx/CustomTags/qa/Bug/BugSet.cfc: line 96
Called from /var/www/qasystem/bugs/act_GetBugs.cfm: line 9
Called from /var/www/qasystem/bugs/fbx_Switch.cfm: line 54
Called from /var/www/qasystem/fbx_fusebox30_CF50.cfm: line 241
Called from /var/www/qasystem/index.cfm: line 10

63 :
64 :
65 :
66 :
67 :

If that was called from a cfscript'd Throw() then the code listing would 
be in the Throw() function, not from the place where Throw() was called.

I think I'm after some way to modify the exception context that is part 
of an exception object obtained by

   catch(any excpt)

with excpt being the exception object. Unfortunately I can't seem to 
work out how to modify the exception context that lives within the 
exception object.

If I could modify it, then I could take on extra info and simply pass 
that to my Throw() function.


> 
> ===
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> (www.mindseye.com)
> Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)
> 
> Email: [EMAIL PROTECTED]
> Blog : www.camdenfamily.com/morpheus/blog
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda 
> 
> 
>>-Original Message-
>>From: Oliver Tupman [mailto:[EMAIL PROTECTED] 
>>Sent: Wednesday, July 23, 2003 9:15 AM
>>To: CF-Talk
>>Subject: Re: Throwing exceptions from CFCs
>>
>>
>>Raymond Camden wrote:
>>
>>
>>>Query - in what way do you need the exceptioncontext? If the error 
>>>involves method foo and arg X, couldn't you just do
>>>
>>>
>>
>>Yes I could, but that is not my primary problem. the primary 
>>problem is 
>>the exception context - the file/line number list you get 
>>when there is 
>>an error/exception. It's this context that I think Cold 
>>Fusion uses to 
>>display the file/linenumber stack trace and the 4/5 line outtake from 
>>the code where the error/exception took place.
>>
>>
>>

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: Throwing exceptions from CFCs

2003-07-23 Thread Oliver Tupman
Raymond Camden wrote:

> Query - in what way do you need the exceptioncontext? If the error
> involves method foo and arg X, couldn't you just do
> 
> 

Yes I could, but that is not my primary problem. the primary problem is 
the exception context - the file/line number list you get when there is 
an error/exception. It's this context that I think Cold Fusion uses to 
display the file/linenumber stack trace and the 4/5 line outtake from 
the code where the error/exception took place.


> 
> ===
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> (www.mindseye.com)
> Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)
> 
> Email: [EMAIL PROTECTED]
> Blog : www.camdenfamily.com/morpheus/blog
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda 
> 
> 
>>-Original Message-
>>From: Oliver Tupman [mailto:[EMAIL PROTECTED] 
>>Sent: Wednesday, July 23, 2003 8:42 AM
>>To: CF-Talk
>>Subject: Re: Throwing exceptions from CFCs
>>
>>
>>Raymond Camden wrote:
>>
>>>>The questions are
>>>>a) how do I either modify a thrown exception that I wish to
>>>>rethrow (but 
>>>>with extra data)
>>>
>>>
>>>Why not make your throw method take the relevent args, message, 
>>>detail, etc so you can pass them in?
>>
>>Yeah, I thought of that. The problem is that cfthrow's 
>>attributes do not 
>>allow you to pass the exception context unless you pass an object, 
>>unfortunately I can't seem to create an object to pass to it. I'm 
>>thinking it's some sort of Java exception object but I don't 
>>seem to see 
>>which methods will suit my purposes.
>>
>>
>>==
>>
>>>==
>>>===
>>>Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
>>>(www.mindseye.com)
>>>Member of Team Macromedia 
>>
>>(http://www.macromedia.com/go/teammacromedia)
>>
>>>Email: 
>>
>>[EMAIL PROTECTED]
>>
>>>Blog : www.camdenfamily.com/morpheus/blog
>>>Yahoo IM : morpheus
>>>
>>>"My ally is the Force, and a powerful ally it is." - Yoda
>>>
>>>
>>
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: Throwing exceptions from CFCs

2003-07-23 Thread Oliver Tupman
Raymond Camden wrote:
>>The questions are
>>a) how do I either modify a thrown exception that I wish to 
>>rethrow (but 
>>with extra data)
> 
> 
> Why not make your throw method take the relevent args, message, detail,
> etc so you can pass them in?

Yeah, I thought of that. The problem is that cfthrow's attributes do not 
allow you to pass the exception context unless you pass an object, 
unfortunately I can't seem to create an object to pass to it. I'm 
thinking it's some sort of Java exception object but I don't seem to see 
which methods will suit my purposes.

> 
> ===
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> (www.mindseye.com)
> Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)
> 
> Email: [EMAIL PROTECTED]
> Blog : www.camdenfamily.com/morpheus/blog
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda 
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Throwing exceptions from CFCs

2003-07-23 Thread Oliver Tupman
Hi all,

I'm writing a whole bunch of CFCs for our company Intranet and I've come 
up on this problem time and time again:

I code a lot of my CFCs in near-pure CFScript. For some reason in CFMX, 
Macromedia have provided us with the try and catch statements, but not a 
throw statement/function.

As one cannot break out from the CFScript, do some CFML and then go back 
into CFScript like this:

function SomeFunc(param1)
{

  

}


we are forced to create a Throw function that is coded in CFML so we can 
do our .

This solution has problems, the biggest (for me) is the apparent fact 
that any exception that occurs appears to CF to occur in our Throw() 
function. This is of course due to the fact that the CFTHROW is in the 
Throw() function.

If we pass an object from another exception to the CFTHROW via Throw() 
the exception is displayed as having come from the correct place. This 
is due to the fact that (all?) the exception(s) have an 'Exception 
Context' which I think is a file/line/stack trace.

The questions are
a) how do I either modify a thrown exception that I wish to rethrow (but 
with extra data)
b) how do I throw my own exceptions with an exception context?

If anyone can help here I would be very grateful. It could be a funky 
Java solution, but my Java knowledge is not very great.

Cheers all,

  Oliver Tupman
  Key Systems Geotechnical.

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: Mach II was RE: MVC and MX

2003-07-23 Thread Oliver Tupman
And for a half-decent intro to Mach II including the basic concepts and 
a 3-part getting started tutorial, visit:

  http://beta.fusebox.org/index.cfm?method=FuseboxMX.basicConcepts


  Oliver Tupman
  Key Systems Geotechnical

Mike Brunt wrote:
> William, I am pretty certain I have this in my home lab, so if so I will send it.
> 
> Also, there is some interesting stuff on CFMX and MVC here http://www.mach-ii.com/
> 
> This came out of Fusebox for CFMX using CFC's.
> 
> Kind Regards - Mike Brunt
> 
> Original Message ---
> Was doing some research on MVC and MX after being pointed to 
> www.benorama.com last week, saw the 10 part series on the subject 
> printed it, read it, want to try it out, but alas I cannot go back to 
> the site as it has been down (Host Unreachable (IE) and Connection 
> refused (NS7)) since early yesterday.
> 
> Anybody out there got the BLOGMX.zip that goes with the article? If so, 
> could you send it off-list?
> 
> Tried contacting [EMAIL PROTECTED] but the mail got bounced.
> 
> TIA
> 
> will
> 
> -
> William H Bowen
> Marketing Communications Manager
> ALSTOM T&D Energy Automation & Information
> 
> 
> 
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: Looping to find ONLY specific XML Children

2003-07-22 Thread Oliver Tupman
Hey Shawn,

It's just 9am here so my apologies for a short answer (or rather, the 
short hint) - try looking into XPath. Either do a search on Google or 
take a look at the XPath spec http://www.w3.org/TR/xpath

A demo of the XML you're using would've been useful, but from what 
you've said I'm assuming it's something like this:









fred
http://www.somewhere.com


  

 From what I can see, get the XML into a variable then construct your 
XPath var, perhaps something like



Then this:



That should throw all of the elements that match your XPath expression 
into headerlinks, which will be an array.

Best to read through some articles on XPath 'cos I'm sure that the above 
expression won't do exactly what you're after. The W3C spec is, as 
usual, hefty and complicated (especially at 9am!) hence the reason why I 
think my expression won't work properly but it should give you a pointer 
on where to start looking.

Hope that helps somewhat,

  Oliver Tupman
  Key Systems Geotechnical.

Shawn Contreras wrote:

> Hello,
> 
> I am having a problem that I desperately need help with.  I am working with
> consuming XML WebServices using CFMX, here is my problem.
> 
> I have an XML child called EVENT that also has many children. However, each
> EVENT record occurence does not ALWAYS have the same children. Sometimes it
> has children called HEADERLINKS and sometimes it is does not. Of course, if
> it does have the child called HEADERLINKS, then it too has several children.
> I want to loop through and IF the HEADERLINKS child exists THEN output every
> occurence of the HEADERLINKS and its children.
> 
> I get the most recent record (which is what I want) but it stops because it
> knows that the second record doesn't contain the HEADERLINKS child.  I need
> it to continue on and look at all the other records and OUTPUT those other
> records that do have the HEADERLINKS child and it's respective children.
> 
> My code is below:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Number of
> EVENTS:
>  #EVENTAll#
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
>  href="#EVENTList[i].HeaderLinks.HeaderLink.Webcasts.Webcast.Streams.Stream.U
> RL.xmlText#">
>src="#EVENTList[i].HeaderLinks.HeaderLink.ImageURL.xmlText#"
> border="0">
> #EVENTList[i].HeaderLinks.HeaderLink.Title.xmlText#
> 
>   
>   
> 
> 
>   
>   
>  
>  
>   
> 
> 
> 
> 
> 
> Thank you in advance for your help!
> 
> Shawn Contreras
> 
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: displaying time in hours

2003-07-21 Thread Oliver Tupman
jon hall wrote:
>   I'm working with some time increments that were entered into the database
>   in decimal format. 1.5 is 1 hour 30 minutes...
> 
>   Can anyone think of a way to format 1.5 as 1:30, or .75 as :45, etc?
> 

Get the number after the decimal point, keep it as a fraction and 
multiply by 60. Append that result with the number before the decimal 
point and you've got it.

  Oliver Tupman
  Key Systems Geotechnical.

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4