[cfaussie] Unused Files

2011-12-21 Thread Dale Fraser
I'm looking for something that I can run that will tell me the following, I
appreciate its getting harder down the list, but covering any of these
points would be good

 

1.  Unused cfm / cfc

2.  Unused assets images etc

3.  Methods Not called in cfc

4.  Variables not used within methods

 

The reason is we have a big legacy application that we are looking to move
into the cloud, and I'd ideally only like to move things that are being
used.

 

Regards

Dale Fraser

 

 http://dale.fraser.id.au http://dale.fraser.id.au

 http://cfmldocs.com http://cfmldocs.com

 http://learncf.com http://learncf.com

 http://flexcf.com http://flexcf.com

 

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] Unused Files

2011-12-21 Thread Kym Kovan

Hi Dale,

how dynamic is the site?

A modified sitemap tool might work for most of that if things are fairly 
static. Walk through the site building a huge map of all links and then 
see what you have that is not on the list.



On 21/12/2011 9:34 PM, Dale Fraser wrote:

I’m looking for something that I can run that will tell me the
following, I appreciate its getting harder down the list, but covering
any of these points would be good

1.Unused cfm / cfc

2.Unused assets images etc

3.Methods Not called in cfc

4.Variables not used within methods

The reason is we have a big legacy application that we are looking to
move into the cloud, and I’d ideally only like to move things that are
being used.

Regards

Dale Fraser




--

Yours,

Kym Kovan
mbcomms.net.au


--
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] Unused Files

2011-12-21 Thread Dale Fraser
It's mostly code, cfm's and cfc's

Its more of an application than a site, so I need something that can find if
the .cfms are linked to included etc and if the cfc's are invoked or created
I realise its not going to be perfect, figured I could write something like
this but someone probably already has.

Regards
Dale Fraser

http://dale.fraser.id.au
http://cfmldocs.com
http://learncf.com
http://flexcf.com

-Original Message-
From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf
Of Kym Kovan
Sent: Wednesday, 21 December 2011 9:57 PM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] Unused Files

Hi Dale,

how dynamic is the site?

A modified sitemap tool might work for most of that if things are fairly
static. Walk through the site building a huge map of all links and then see
what you have that is not on the list.


On 21/12/2011 9:34 PM, Dale Fraser wrote:
 I'm looking for something that I can run that will tell me the 
 following, I appreciate its getting harder down the list, but covering 
 any of these points would be good

 1.Unused cfm / cfc

 2.Unused assets images etc

 3.Methods Not called in cfc

 4.Variables not used within methods

 The reason is we have a big legacy application that we are looking to 
 move into the cloud, and I'd ideally only like to move things that are 
 being used.

 Regards

 Dale Fraser



-- 

Yours,

Kym Kovan
mbcomms.net.au


--
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] Unused Files

2011-12-21 Thread Dale Fraser
I found this, 

But its pretty basic

http://deadwood.riaforge.org/

Regards
Dale Fraser

http://dale.fraser.id.au
http://cfmldocs.com
http://learncf.com
http://flexcf.com


-Original Message-
From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf
Of Kym Kovan
Sent: Wednesday, 21 December 2011 9:57 PM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] Unused Files

Hi Dale,

how dynamic is the site?

A modified sitemap tool might work for most of that if things are fairly 
static. Walk through the site building a huge map of all links and then 
see what you have that is not on the list.


On 21/12/2011 9:34 PM, Dale Fraser wrote:
 I'm looking for something that I can run that will tell me the
 following, I appreciate its getting harder down the list, but covering
 any of these points would be good

 1.Unused cfm / cfc

 2.Unused assets images etc

 3.Methods Not called in cfc

 4.Variables not used within methods

 The reason is we have a big legacy application that we are looking to
 move into the cloud, and I'd ideally only like to move things that are
 being used.

 Regards

 Dale Fraser



-- 

Yours,

Kym Kovan
mbcomms.net.au


-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] CF Temp files

2011-12-21 Thread charlie arehart
Glad to help, and thanks for the update. I will be curious to know if the
files are in fact the result of image processing. It's not necessarily
definitely another source, as some cfimage processing involves no creation
of temp files. BTW, my last point about looking at the files should help
here, to see just what kind of files these are. At least, if they don't have
the look of some image filetype, that may help direct your additional
investigation. 

But yes, as for possible error handling hiding the real root cause, note
that if there's some global or application-level handling, it would be
pretty easy to remove it, even if just temporarily. If you observe how often
these files are created, and find they are created really often, then it
wouldn't take long to leave the error handling off to find out what's
happening. (And note that you don't need to be the user running the page
that gets the error, to see the error. It would be logged in the
application.log.)

No offense intended if you already were aware of the above. I never presume
what even experienced people may know. Some never dabble much in error
handling, for instance. Also, when I offer answers on lists, I am as often
answering for other readers, who may benefit from a little more context. It
makes my notes a tad longer (and that frustrates some), but I hope the
benefit outweighs the risk. :-) Indeed, thanks for your kind regards on my
having surmised things.

/charlie

 

From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf
Of Brett Payne-Rhodes
Sent: Tuesday, December 20, 2011 10:20 PM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] CF Temp files

 

Thanks Charlie,

As usual you have surmissed much of what is going on quite accurately.

There is no danger of this being a DoS attack, the system in question is
effectively closed to the outside world. And the system does have a
significant amount of activity in terms of files being uploaded. In
addition, all images are 'served' via a CF script using CFIMAGE that will
most definitely be another source of these temporary files. And given the
volume of work being carried out it does not surprise me that so many
temporary files are being created.

In terms of the log files, I don't see a lot of activity there, especially
with regard to file uploads and image serving but then they are wrapped up
in cftry/cfcatch so we are not going to know about it via error logging.
Which could suggest the issue is hidden. Maybe the 'delete' permission has
been removed without us knowing about it? That would mean the temporary
files could not be removed and the try/catch would be hiding it from us
seeing it as a problem until the disk fills up.

 Thanks again Charlie, most hlepful!

Cheers,

Brett
B)

 

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] Unused Files

2011-12-21 Thread charlie arehart
Besides the ideas shared so far, I have another couple of thoughts. That
said, neither is the perfect answer for you, nor is there one to be honest.
There's been talk of such code coverage tools for CF, but to date none
exist (as far as I know).

As for what CFM and assets are accessed, you could determine that somewhat
using web server logs. Of course, they don't offer the absolute path, only a
web-relative one, and if you have multiple sites that could make things
harder. Of course, that won't help you see CFCs called (from within CFML,
though you would see CFCs called remotely, such as via web services or from
ajax, etc.)

You'd need to do such log analysis over a fairly long time period to
increase the confidence of your resulting conclusion.

You could also get an approximation of calls to CFM and CFCs (including
internally called CFCs) by way of the cfclasses directory (within the
[CF]\wwwroot\WEB-INF\ directory). If you have the CF Admin set to save
class files, then whenever a CFM or CFC is called, a class file is created
for it (in the case of CFCs, a class is created for every method within the
CFC-not every method called, but every method that exists within it, which
will not help with your point 3 of course).  

As for the accuracy of the data that would show, you could base your
decision (on what to consider has been used) either by what you see in
that directory today (which may reflect months or years of calls), or you
may want to clear it out and run for some period of time to see a more
recent reflection of what's called.

 

/charlie

 

From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf
Of Dale Fraser
Sent: Wednesday, December 21, 2011 5:35 AM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Unused Files

 

I'm looking for something that I can run that will tell me the following, I
appreciate its getting harder down the list, but covering any of these
points would be good

 

1.  Unused cfm / cfc

2.  Unused assets images etc

3.  Methods Not called in cfc

4.  Variables not used within methods

 

The reason is we have a big legacy application that we are looking to move
into the cloud, and I'd ideally only like to move things that are being
used.

 

Regards

Dale Fraser

 

http://dale.fraser.id.au

http://cfmldocs.com

http://learncf.com

http://flexcf.com

 

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] Unused Files

2011-12-21 Thread Andrew Scott
Actually a tool like this would not be hard to write, the only downside is
that it would take a very long time to run in CFML though.

It would be a very good candidate as an extension to CFBuilder, the images
would be just find all with known image extensions and search for known
links in the files. Not found then flag it as such.

Methods would be a matter of just getting the metadata for the CFC and then
searching for that method being used.

Not sure how long it would take on the size of a large application, like
Dale is thinking of running it on, but it would be down to the amount of
files and methods that would have to be recursed on each file.



-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543




On Thu, Dec 22, 2011 at 2:50 AM, charlie arehart charlie_li...@carehart.org
 wrote:

 Besides the ideas shared so far, I have another couple of thoughts. That
 said, neither is the perfect answer for you, nor is there one to be honest.
 There’s been talk of such “code coverage” tools for CF, but to date none
 exist (as far as I know).

 As for what CFM and assets are accessed, you could determine that somewhat
 using web server logs. Of course, they don’t offer the absolute path, only
 a web-relative one, and if you have multiple sites that could make things
 harder. Of course, that won’t help you see CFCs called (from within CFML,
 though you would see CFCs called remotely, such as via web services or from
 ajax, etc.)

 You’d need to do such log analysis over a fairly long time period to
 increase the confidence of your resulting conclusion.

 You could also get an approximation of calls to CFM and CFCs (including
 internally called CFCs) by way of the cfclasses directory (within the
 [CF]\wwwroot\WEB-INF\ directory). If you have the CF Admin set to “save
 class files”, then whenever a CFM or CFC is called, a class file is created
 for it (in the case of CFCs, a class is created for every method within the
 CFC—not every method called, but every method that exists within it, which
 will not help with your point 3 of course).

 As for the accuracy of the data that would show, you could base your
 decision (on what to consider “has been used”) either by what you see in
 that directory today (which may reflect months or years of calls), or you
 may want to clear it out and run for some period of time to see a more
 recent reflection of what’s called.

 ** **

 /charlie

 **


-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



[cfaussie] Incompatible Jars

2011-12-21 Thread skateboard.com.au
Hi People

I have a java api I am using. I was hoping to invoke it natively via CF
(running 9). The api uses about 40 common type apache jars, several of
which are also used by CF. Problem is when I dump these in CF9/lib I get
errors due to CF wanting to use diff versions than the api I am using.  

I was wondering if there was a way with CF to somehow specify that a
certain created object uses a certain classpath/set of packages rather
than inheriting all the CF ones. If I am just going about this all the
wrong way feel free to highlight my ignorance.



thanks in advance


Drew Peacock


-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] Incompatible Jars

2011-12-21 Thread AJ Mercer
is that what javaLoader does?
 http://javaloader.riaforge.org/


On 22 December 2011 08:49, skateboard.com.au w...@skateboard.com.au wrote:

 Hi People

 I have a java api I am using. I was hoping to invoke it natively via CF
 (running 9). The api uses about 40 common type apache jars, several of
 which are also used by CF. Problem is when I dump these in CF9/lib I get
 errors due to CF wanting to use diff versions than the api I am using.

 I was wondering if there was a way with CF to somehow specify that a
 certain created object uses a certain classpath/set of packages rather
 than inheriting all the CF ones. If I am just going about this all the
 wrong way feel free to highlight my ignorance.



 thanks in advance


 Drew Peacock


 --
 You received this message because you are subscribed to the Google Groups
 cfaussie group.
 To post to this group, send email to cfaussie@googlegroups.com.
 To unsubscribe from this group, send email to
 cfaussie+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/cfaussie?hl=en.




-- 

*AJ Mercer*
webonix:net strength=Industrial / http://webonix.net | webonix:org
community=Open / http://webonix.org
http://twitter.com/webonix
Railo Community Manager http://www.getrailo.org/index.cfm/community/team/

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] Incompatible Jars

2011-12-21 Thread Mark Mandel
Beat me to it :)

Sent from my mobile doohickey.
On Dec 22, 2011 11:52 AM, AJ Mercer ajmer...@gmail.com wrote:

 is that what javaLoader does?
  http://javaloader.riaforge.org/


 On 22 December 2011 08:49, skateboard.com.au w...@skateboard.com.auwrote:

 Hi People

 I have a java api I am using. I was hoping to invoke it natively via CF
 (running 9). The api uses about 40 common type apache jars, several of
 which are also used by CF. Problem is when I dump these in CF9/lib I get
 errors due to CF wanting to use diff versions than the api I am using.

 I was wondering if there was a way with CF to somehow specify that a
 certain created object uses a certain classpath/set of packages rather
 than inheriting all the CF ones. If I am just going about this all the
 wrong way feel free to highlight my ignorance.



 thanks in advance


 Drew Peacock


 --
 You received this message because you are subscribed to the Google Groups
 cfaussie group.
 To post to this group, send email to cfaussie@googlegroups.com.
 To unsubscribe from this group, send email to
 cfaussie+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/cfaussie?hl=en.




 --

 *AJ Mercer*
 webonix:net strength=Industrial / http://webonix.net | webonix:org
 community=Open / http://webonix.org
 http://twitter.com/webonix
 Railo Community Managerhttp://www.getrailo.org/index.cfm/community/team/

  --
 You received this message because you are subscribed to the Google Groups
 cfaussie group.
 To post to this group, send email to cfaussie@googlegroups.com.
 To unsubscribe from this group, send email to
 cfaussie+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/cfaussie?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] Incompatible Jars

2011-12-21 Thread skateboard.com.au
Thanks fellas... trying that out

seems to be doing the trick for the most part.. but its spitting out

Could not instantiate ORB implementation: org.jacorb.orb.ORB


I'm calling another jar which uses this package.. Jacorb.jar is being
loaded into to the classloader with the actual jar I'm calling.

thanks

Drew



-Original Message-
From: AJ Mercer ajmer...@gmail.com
To: cfaussie@googlegroups.com
Date: Thu, 22 Dec 2011 08:52:17 +0800
Subject: Re: [cfaussie] Incompatible Jars

 is that what javaLoader does?
  http://javaloader.riaforge.org/
 
 
 On 22 December 2011 08:49, skateboard.com.au w...@skateboard.com.au
 wrote:
 
  Hi People
 
  I have a java api I am using. I was hoping to invoke it natively via
 CF
  (running 9). The api uses about 40 common type apache jars, several
 of
  which are also used by CF. Problem is when I dump these in CF9/lib I
 get
  errors due to CF wanting to use diff versions than the api I am
 using.
 
  I was wondering if there was a way with CF to somehow specify that a
  certain created object uses a certain classpath/set of packages
 rather
  than inheriting all the CF ones. If I am just going about this all
 the
  wrong way feel free to highlight my ignorance.
 
 
 
  thanks in advance
 
 
  Drew Peacock
 
 
  --
  You received this message because you are subscribed to the Google
 Groups
  cfaussie group.
  To post to this group, send email to cfaussie@googlegroups.com.
  To unsubscribe from this group, send email to
  cfaussie+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/cfaussie?hl=en.
 
 
 
 
 -- 
 
 *AJ Mercer*
 webonix:net strength=Industrial / http://webonix.net |
 webonix:org
 community=Open / http://webonix.org
 http://twitter.com/webonix
 Railo Community Manager
 http://www.getrailo.org/index.cfm/community/team/
 
 -- 
 You received this message because you are subscribed to the Google
 Groups cfaussie group.
 To post to this group, send email to cfaussie@googlegroups.com.
 To unsubscribe from this group, send email to
 cfaussie+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/cfaussie?hl=en.
 


-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.