Re: Confused: java.lang.NullPointerException CF9

2013-07-20 Thread Kym Kovan

I'd try sticking a cfabort at the end of OnRequestStart to see if you 
get that far and then place it in the middle, then the middle again up 
or down depending on the error being there or not, rinse and repeat etc 
to find what is causing the error.

Kym

On 21/07/2013 10:50 AM, Mike K wrote:

 One possibility in my Application.cfc onRequestStart method is
 Timezone.cfc.I'm using that to convert time from UTC to my timezone.
   But the timezone.cfc file I'm using is dated 2005.I seem to recall
 there were changes made to the java related to time, and some people had
 issues with timezone.cfc.But it's been rock solid for me and I'm using
 it on lots of sites without problems.

 Does anyone know if this could be the source of the problem?  (Obviously
 I'm going to get a new version and see if the problem goes away but I'd
 rather know if there are still issues with timezone.cfc)

 Cheers
 Mike Kear
 Windsor, NSW, Australia
 Adobe Certified Advanced ColdFusion Developer
 AFP Webworks
 http://afpwebworks.com


 On Sun, Jul 21, 2013 at 5:17 AM, Byron Mann byronos...@gmail.com wrote:


 I'm thinking something with the Application.cfc, based in the stack. Maybe
 posting that we can help a bit further.

 Can your host take a look at the exception.log to see if any additional
 errors are being logged.

 Byron Mann
 Lead Engineer  Architect
 HostMySite.com
 On Jul 20, 2013 11:01 AM, Mike K afpwebwo...@gmail.com wrote:

 --


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356256
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Confused: java.lang.NullPointerException CF9

2013-07-20 Thread Kym Kovan

On 21/07/2013 12:26 PM, Mike K wrote:

 Hey Kym!!  I thought you were going to the beach to put your feet up and
 watch the sunrise nowadays. What are you doing here??

I'm only semi-retired and anyway writing code is my hobby :-)

I pack up and move north next weekend and for those folks living north 
of the equator  down here in Oz moving north means heading to the sun 
and even hotter weather :-)


 But thanks for the suggestion.  As always, giving me a sensible, workable
 solution that I ought to have done myself.But too stupid to do it.

Probably working all night again...


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356258
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Safety for image uploads

2013-06-14 Thread Kym Kovan

On 15/06/2013 2:49 AM, Dave Watts wrote:

 You must upload the file to a directory that is not web-accessible and
 cannot execute code.


Would you consider the CF temp directory to be safe?

Some hosting companies have the webroot folder one below the top of the 
client's user space so an upload folder can be created alongside the 
webroot folder but if that cannot be done then the folder has to be 
elsewhere...


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:355943
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Why is this happening??????

2013-03-13 Thread Kym Kovan

Rick,

how are you returning this structure? You haven't got some funny format 
turning on as the return from the CFC function by accident have you?

Kym

On 14/03/2013 15:49, Rick Faircloth wrote:

 The application.temp_images_directory is being set in application.cfc:

 cfset application.temp_images_directory = 'e:\tempImages' /

 The last part of the example below, the #newImageFileName#.#originalImageExt#
 is being set in news.cfc, after an image has been uploaded. It's done this
 way to be able to manipulate the filename part before the extension, such as:

 #newImageFileName#_400.#originalImageExt#

 I'm checking it right now by setting struct variables
 in a cfc such as,

 cfset saveNewsItemStruct.APPTEMP =
 '#application.temp_images_directory#\#newImageFileName#_400.#originalImageExt#'
  /

 then, just returning the struct to the calling page:

 cfreturn saveNewsItemStruct /

 The saveNewsItemStruct.APPTEMP would end up looking like:

 e:\\temp_images\\duck_400.jpg

 And when I tried Dave's solution of using forward slashes, /,
 instead of back slashes, I'd end up with:

 e:\/temp_images\/duck_400.jpg

 I'm not sure what is inserting the backslashes. I don't believe
 I've ever run into this before.

 Rick



 -Original Message-
 From: Jerry Milo Johnson [mailto:jmi...@gmail.com]
 Sent: Wednesday, March 13, 2013 10:18 PM
 To: cf-talk
 Subject: Re: Why is this happening??


 how are you displaying it when the \ are appearing doubled? (something like
 a js alert, or a cfoutput to an html page, or some other mechanism?)


 On Wed, Mar 13, 2013 at 10:08 PM, Rick Faircloth
 r...@whitestonemedia.comwrote:


 If I use this on a test page:

 cfoutput#application.temp_images_directory#/cfoutput

 it comes out fine: e:\inetpub\webroot\tempImages

 I just don't see why (or how) it could be happening.

 Thanks for the feedback!

 Rick

 -Original Message-
 From: Jerry Milo Johnson [mailto:jmi...@gmail.com]
 Sent: Wednesday, March 13, 2013 9:34 PM
 To: cf-talk
 Subject: Re: Why is this happening??


 what happens if you display the value INSIDE the cfc before you return it?
 what happens if you set the same variable OUTSIDE the cfc and display it?


 On Wed, Mar 13, 2013 at 9:23 PM, Rick Faircloth r...@whitestonemedia.com
 wrote:


 This has been driving me crazy for two days and I GIVE UP! AHH!


 If I create this variable in application.cfc:

 cfset application.temp_images_directory =
 'e:\inetpub\webroot\tempImages'
 /


 and use it in news.cfc like this:

 cfset saveNewsItemStruct = structNew()

 cfset saveNewsItemStruct.ATID = '#application.temp_images_directory#' /


 why in the WORLD would I get this:

 e:\\inetpub\\webroot\\tempImages


 when I return the struct and display saveNewsItemsStruct.ATID?

 Why are the path lines doubling?


 I don't think I've seen this in 15 years of CF programming!

 (I'm getting too old for all this aggravation...)

 Thanks for any help!

 Rick











 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:355010
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Secure Login w/ CF and Application.cfc

2013-01-14 Thread Kym Kovan

You have no ending double quote on the two timeout attributes:
   sessiontimeout=#CreateTimeSpan(0,0,15,0)#
   applicationtimeout=#CreateTimeSpan(0,2,0,0)# /

that means the parser is rolling along trying to find the other end of 
the quoted section.

It should be:
   sessiontimeout=#CreateTimeSpan(0,0,15,0)#
   applicationtimeout=#CreateTimeSpan(0,2,0,0)# /

Kym

On 15/01/2013 09:25, B Griffith wrote:

 Andrew - Tried your suggestion, no change
 Al - Tried your suggestion, different error message:

 Invalid CFML construct found on line 5 at column 33

 5: applicationtimeout=#CreateTimeSpan(0,2,0,0)# /

 Which according to my text-editor is the between the 'e' in Create and 'T' in 
 Timespan.

 I will go ahead and post the login pages that I found (at 
 http://tutorial8.easycfm.com/index.cfm?fuseaction=community).  I made only 
 the simplest of changes to the existing code, namely changing the datasource 
 name to reflect what I have set up in Administrator and the field/database 
 names, and the 'members_only.cfm' goal-page to index.cfm.  I have also 
 removed the developer's comments for brevity:

 !--- APPLICATION.CFM ---
 cfapplication name=MyApp
  clientmanagement=Yes
  sessionmanagement=Yes
  sessiontimeout=#CreateTimeSpan(0,0,15,0)#
  applicationtimeout=#CreateTimeSpan(0,2,0,0)# /
   
 cffunction name=onApplicationStart returnType=boolean output=false
   cfset StructClear(application)/
   cfset APPLICATION.name = myApp
   cfset APPLICATION.dsn = test
   cfreturn true
 /cffunction
   
 CFPARAM NAME=session.allowin DEFAULT=false /
 CFPARAM NAME=session.user_id DEFAULT=0 /
   
 cfif session.allowin neq true
  cfif  ListLast(CGI.SCRIPT_NAME, /) EQ login.cfm
  cfelseif ListLast(CGI.SCRIPT_NAME, /) EQ login_process.cfm
  cfelse
  script
  alert(You must login to access this area!);
  self.location=login.cfm;
  /script
  /cfif
 /cfif

 !---LOGIN.CFM---

 form action=login_process.cfm method=post
Username: input type=text name=user_name value=BR /
Password: input type=password name=user_pass value=BR /
input type=submit name=login_user value=Log InBR /
 /form

 !---LOGIN_PROCESS.CFM---

 cfquery name=qVerify datasource=#APPLICATION.dsn#
  SELECT  clientID, clientName, clientPass
  FROMCLIENTS
  WHERE clientName = '#clientName#'
  AND  clientPass = '#clientPass#'
 /cfquery

 cfif qVerify.RecordCount
  cfset session.allowin = True /
  cfset session.user_id = qVerify.user_id /
  script
  alert(Welcome user, you have been successfully logged in!);
  self.location=/index.cfm;
  /script
  cfelse
  script
  alert(Your credentials could not be verified, please try again!!!);
  self.location=Javascript:history.go(-1);
  /script
 /cfif

 Also a big thanks to Justin for pointing out the security flaws and if you 
 see any in this new example please point them out to me as it will be going 
 into a production environment when all is said and done.  I'm still a little 
 sketchy on the various types of variables (url, cgi, session, etc.) but any 
 layman's explanation on what role these might play in opening security gaps 
 would be of great interest to me as I need to make this site very secure.

 Thanks again for all your help and I look forward to your new responses.   :)


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353870
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Anybody seen this hack/exploit?

2012-11-13 Thread Kym Kovan

Just to put the record straight it is entirely possible to create files 
using SQL scripts if permissions allow it.

That SQL Injection was possible was demonstrated to Allaire by putting a 
file in the C:\ directory of their main production website using SQL 
Injection... :-)


On 14/11/2012 8:47 AM, Nathan Strutz wrote:

 ... No standard exploit will inject CFML into a page-- 


--
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353150
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: (ot) How to match the timestamp in IIS6 logs to server time

2012-10-02 Thread Kym Kovan

Dave,

IIS logs in GMT by default. Later versions of IIS can be changed to log 
local time, not sure if that is global or by site...

BTW, GMT is the correct time :-)


On 3/10/2012 6:13 AM, Dave Hatz wrote:

 I am trying to audit IIS6 Web Server logs and 1 of the problems I am having 
 is matching up the TimeStamp in the log files to the server time, seems to be 
 like 8 hours off.

 Can someone please point me in the right direction to look to get the IIS6 
 logs in the correct time?

 Thanks,
 Dave Hatz



-- 

Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352817
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Modern (and free) html/cf editor that is similar to Homesite?

2012-08-13 Thread Kym Kovan

Nobody has mentioned Sublime Text 2

http://www.sublimetext.com/2

a superb editor, a natural if you are moving on from Homesite

On 14/08/2012 00:15, Pete Ruckelshaus wrote:

 I teach web design and web programming at a public high school.  I have
 been using homesite for my classes, but it doesn't play well in our
 environment (locked down C drive, network drives...trust me, it has
 issues).  Are there any current text editors that play well with HTML, CSS,
 JavaScript, and CF, that are also free?  It doesn't need to be a super
 heavy duty app like Eclipse, in fact, I tried that with my web design class
 and it was a nightmare because of its complexity.

 Platform is WinXP.

 Thanks for any suggestions,

 Pete




-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352141
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Setting up database for mvc website

2012-07-28 Thread Kym Kovan

On 28/07/2012 5:52 PM, Don wrote:

 Sounds to me like you didn't understand the question!

Is this what you are asking? are there any architectural considerations 
in database design to match what is needed by an MVC architecture?

I see that as a legit question as some specific MVC engines/frameworks 
that are by convention, such as CFWheels, prefer certain conventions 
in, for example, database naming.


 Speaking from a purist perspective, the database has nothing to do with
 MVC.  Perhaps you should ask more specific questions so folks can have an
 idea of what you're really after?

 HTH


 What are some best practices in structuring the website database to
 accomodate good integration with an MVC model?







-- 

Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352006
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Replace double quotations

2012-01-02 Thread Kym Kovan

replace(mystring, '', , all)

ie use single quotes for the attribute string wrapper


On 3/01/2012 14:28, Les Irvin wrote:

 I'm trying to use replace() to edit a string with double quotation
 marks in it.  For example, I want to change:

 this is fubar

 to

 this is fubar

 But I can't seem to figure out how to escape the quotes.

 Thanks in advance for any help,
 Les

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349294
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


JRun parsing path error

2011-12-13 Thread Kym Kovan

Hello,

our CMS uses semi-SEO-friendly urls of the form: 
my.domain.name/content.cfm/name/of/page

content.cfm parses out the name/of/page part and works out what 
content to show. All very normal. It runs on all cfml platforms with IIS 
or Apache as front-ends but today I put the CMS on a multi-server J2EE 
installation with CF8 and CF9 running side-by-side behind Apache. When I 
browse to my.domain.name/content.cfm it works but the full URL:
my.domain.name/content.cfm/name/of/page fails with a 404 from JRun and 
an error message of File not found - content.cfm/name/of/page.

It seems JRun in this context is trying to look for the entire path 
rather than just the content.cfm part. I am not very familiar with the 
multi-server installations, is there a configuration that stops this 
behaviour?

-- 

Yours,

Kym Kovan
mbcomms.net.au




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349072
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: JRun parsing path error

2011-12-13 Thread Kym Kovan

On 13/12/2011 21:56, Jochem van Dieten wrote:

 On Tue, Dec 13, 2011 at 11:44 AM, Kym Kovan wrote:
 my.domain.name/content.cfm/name/of/page fails with a 404 from JRun and
 an error message of File not found - content.cfm/name/of/page.

 Search /WEB-INF/web.xml for SES and follow the instructions in the comment.

 Jochem


Thanks, that fixed it, once I found the right one :-)

Interesting to note that the extended path is off by default in the J2EE 
CF8 version and on in the CF9 one.


-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349074
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Puzzling error

2011-12-11 Thread Kym Kovan

On 12/12/2011 12:47, Jenny Gavin-Wear wrote:

 Just realised Sleep is CF 8 .. I'm on 7 ..

32 bit? There is a CFX_Sleep which does the same task.

I can flick it to you if you can't find it.

-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349063
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Is the CF scheduler Reliable?

2011-12-05 Thread Kym Kovan

On 6/12/2011 10:25, Brook Davies wrote:

 How reliable is the CF Scheduler? For years we have used the infusion
 mailserver and its Infusion Scheduler App/Service. Its always worked great
 but since that product is dead/no longer supported, we need to find a new
 way of running scheduled tasks and adding/removing scheduled task
 programmatically.  In the past I have seen lots of posts about the built in
 scheduler being unreliable.

We have no issues with the scheduler and we had the same problem as you 
being iMS junkies. Set a schedule to run every minute and one second and 
call the same page that you were calling with your iMS scheduler and it 
can sort out what really needs to run.

BTW, if you are using Railo it can schedule tasks in seconds not 
minutes. Useful sometimes.


-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348955
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: hmail server and com

2011-11-09 Thread Kym Kovan

you need to register it:

http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec14713-7ff7.html


On 10/11/2011 12:14, Al Musella, DPM wrote:

 I am using 32 bit windows server 2008  and 32 bit CF8
 I read the version 8 docs already and searched google.  I tried type=com


 At 07:57 PM 11/9/2011, Leigh wrote:

  Set obApp = CreateObject(hMailServer.Application)

 That looks like VB syntax. CF's createObject requires the type
 parameter for com objects.  If you are not familiar with com, read
 the docs first.



-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348565
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF 7 ODBC server went stupid

2011-10-25 Thread Kym Kovan

On 26/10/2011 14:00, Ben Conner wrote:

 Hi,

 I host a number of sites, many of which use ODBC entries mainly to MS Access.
 In the last 30 hours ODBC connections stopped working.  I've never even seen
 this happen before and was unable to gracefully stop the CF ODBC client/server
 services.  Had to reboot the server to clear it out.

 Anyone seen this before, and/or even know which services I can kill and 
 restart
 so I don't have to reboot the server?

We are seeing a greatly increased level of SQL injection attacks for the 
last week or so, and using a new technique to get past some of the 
stoppers. Maybe your system locked up on handling something like that. 
(Insert standard statements about MS Access and sqlqueryparam here...)

Chances are it was the database that hung so restarting CF won't help, a 
reboot is the best option.


-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348348
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Mail Queue

2011-08-26 Thread Kym Kovan

In olden days CF used to make zero byte files which broke the mail 
spooler. Haven't seen that in ages though.

More recently it could be a file lock or something. maybe a CF restart 
is in order?


On 26/08/2011 9:42 PM, Jenny Gavin-Wear wrote:

 I have had a very rare problem occur with the CF mail spool, perhaps 3 times
 in 5 years.

 For some reason a mail item causes an error and then holds up the entire
 mail spool.  All the mail.log shows is Error.

 Is there somewhere I can get further error details so I can prevent this
 happening?

 Why would a mail just sit in Spool and not be moved to Undelivr if it is
 causing an error?

 Many thanks,

 Jenny Gavin-Wear
 Fast Track Online
 Tel: 01262 602013
 http://www.fasttrackonline.co.uk/




-- 

Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347025
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Anyone care to review this image handling process?

2011-08-21 Thread Kym Kovan

Hi Rick,

not knowing what is in the rest of the CFC have you considered a 
malicious person uploading something other than an image beyond doing 
the upload to an web-unreachable temp folder?

It might be worthwhile to either test the image for goodness before you 
copy it and/or put a try/catch round the image resize code so you pick 
up the bad image and can give the user some feedback or log the user as 
a nasty.

cfimage action=read name=theImageObject...
cfif isImage(theImageObject)
  cfset ImageResize(#theImageObject#,...
  cfimage source=#theImageObject# action=write...
  ...
cfelse
  bad person code
/cfif

Regarding point 6 I like lots of variables if it makes the code easier 
to maintain rather than having one which changes what it is keeping 
depending on where you are. And verbose names as well.


Kym K


On 22/08/2011 10:44, Rick Faircloth wrote:

 Thanks, Peter!

 1) Yes, code is indeed inside a larger function add staff, etc.

 2) Good catch! Duh! Now the counter increments as it loops.

 3) I debugged my brain about the hashes. :o)

 4) e:\tempImages now has a delete cffile.serverFile after processing is
 complete

 5) I usually do this... just got lazy.  Now e:\tempImages is
 application.tempImagesDirectory

 6) I'll have to work on this.  Thanks for the suggestion!

 7) Same as No. 6... I assume you're talking about extending methods within
 a component.
 Haven't done that, yet, but it would be good to work on.  On the to-do
 list!

 I appreciate your feedback and that of others!

 Thanks, all!

 Rick


 -Original Message-
 From: Peter Boughton [mailto:bought...@gmail.com]
 Sent: Sunday, August 21, 2011 9:49 AM
 To: cf-talk
 Subject: Re: Anyone care to review this image handling process?


 I'd raise four must-fix issues with that code.

 1:
 You haven't var/local scoped any of these variables, despite being inside a
 function which is probably going to end up in a shared scope, so this code
 isn't thread-safe and thus can cause incorrect behaviour if two people
 upload images at the same time.
 (Or, possibly, you've not copied that part of code, since there's no
 cffunction/cfargument lines either, but still safer to highlight the
 problem.)

 2:
 The variable loopCounter never changes, which is probably not what you
 want.

 The whole imageList looping is broken, because the list attribute accepts a
 string (which is actually what you're giving it, so no errors), but the
 imageList variable is a query. Either do list=#ValueList(imageList.name)# or
 use query=imageList instead.


 (Also, don't forget the filter attribute. You can use it to do file* as
 well as *.ext to reduce the number of files to check against)

 3:
 You've also got incorrect hash usage, e.g:
   cfset newImageFileName  = reReplace(#originalImageFileName#,
 '[^a-zA-Z0-9_\-.]', '', 'all') /
   cfif image is '#newFileNameComplete#'
   cfset  renamedNewFileNameComplete = #newFileNameComplete#

 (Yes, over-use of hashes is a must-fix issue, because it indicates a lack of
 understanding of what's going on, so it's a bug in the programmers brain
 that needs fixing.)

 4:
 As Justin points out, tempImages is going to keep growing.
 Depending on where the images are uploaded from, you may simply be able to
 FileDelete the uploaded version after the cfimage/resize has been done, and
 that's that.
 Or you could schedule a task that runs outside working hours to clear the
 folder, or to remove anything over X days old (if there's a reason to keep
 recent ones).


 I wouldn't pass any code without those things being corrected, but a few
 others which aren't specific bugs but still worth being mentioned/fixed are:

 5:
 You haven't use a variable for e:\tempImages, which means you'd need to
 search/replace if/when the drive or path changes.
 Better to have it defined in one place, so you can simply change a single
 line if it does, and using a variable means any typo will be caught (whereas
 a typo in a directory name might be silently accepted).

 6:
 I'd also point out that you've got an awful lot of single-use variables
 there. Variables are variable. You can change what they contain and don't
 need to keep creating new ones - you only need one or two ImageFileName
 variables there, which you mutate as you go through the code.

 7:
 Based on all this being inside if/len/trim, I'm thinking this is just a
 small part of a larger function, dealing with profile changing (or something
 like that).
 If so, I definitely suggest breaking down the function into smaller
 self-contained sub-functions.
 i.e. This logic should in be a processStaffPhoto function, with relevant
 arguments being passed in and the final filename being returned at the end,
 called by whatever the larger function is. Makes things significantly easier
 to follow and maintain.


 There we go... happy to expand on anything here if you want more details.



 

~|
Order 

Re: CFIDE weirdness in iis7

2011-06-04 Thread Kym Kovan

On 5/06/2011 13:52, Robert Rhodes wrote:

 Will, thanks for the reply.  I tried changing the mapping to the cfide
 directory in neo-runtime.xml, but it keeps reverting to its original path.

make sure you do the edit with CF stopped as it writes its settings back 
to the file when you shut it down.


-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345085
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Baffing date problem

2011-05-21 Thread Kym Kovan

you need to make the same format on both sides of the SQL where clause 
so try:

cfset dayview = #createODBCDate(createdate(year, month, thisday))#



On 22/05/2011 12:15, Kevin Parker wrote:

 I love CF but dates are definitely my Achilles heel.

 I've dumped qEvents.TheDate and its formatted like {ts '2011-06-07
 00:00:00.0'}

 I've dumped dayview and its formatted like {ts '2011-06-07 00:00:00'}

 I would have thought that as time stamps CF would see these the same despite
 the 0 difference but the query returns no rows and I'm stumped. A cfdump of
 qEvents shows the query is returning data correctly. Funny thing is this
 works on a CF6 box running SQL2000 but fails on a CF8 box running SQL2005.
 What I'm trying to do is do a check for qEvents that on a given day there
 are or are not events for that day (thisday). Any advice greatly appreciated
 - thank you.

 cfset dayview = #createdate(year, month, thisday)#
   
 cfquery name=ForToday dbtype=query
select *
from qEvents
where qEvents.TheDate = #dayview#
 /cfquery



-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344813
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Ack! CF9 pages not serving pages on IIS7.5 (404.3 error)

2011-05-12 Thread Kym Kovan

Just to add to the last two, we originally installed with CF9 and so 
needed IIS6 compatibility turned on. When we upgraded to 9.0.1 we left 
that all on and have had no issues.

I wonder if turning that on (add it in like the ASP.Net via 
Roles/Features) might help after another pass with the webconfig tool.



On 12/05/2011 16:08, Russ Michaels wrote:

 I haven't actually tested it yet as we are still running IIS6, however if
 the problem is that the web config tool is not applying the connectors
 correctly at root level then you can try doing this manually and see if that
 resolves the problem.

 On Thu, May 12, 2011 at 6:38 AM, Andrew Scottandr...@andyscott.id.auwrote:


 Yes, this is a known issue.

 What happens is that when you do it in this manner, you are telling
 ColdFusion to run in IIS7 mode. The connectors don't install to all the
 websites when you do this, what you need to do is add a connector to each
 site individually.

 This blog might shed some more insight.


 http://www.andyscott.id.au/2011/3/29/Things-to-know-when-installing-ColdFusi
 on-9-then-updating-to-901

 Regards,
 Andrew Scott
 http://www.andyscott.id.au/


-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344477
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Coldfusion 9 on Windows 2008 R2 Server Web Server Edition?

2011-05-11 Thread Kym Kovan

On 11/05/2011 17:02, Robert Rhodes wrote:

 Well, it wasn't as easy as I had hoped.

 I installed cf 9 as a standalone installation.  I updated to 9.01 and
 applied the 9.01 hotfix.

 I then ran the web Server Configuration Tool, and got an error:

 ASP.Net Window's feature is not installed. They are required to configure
 IIS7 Connector.

 I am installing this on Wn2K8 R2 Web Server Edition as  I mentioned above.

 So now what? :)

In the Server Manager home page go to the Roles section and add the 
needed service. By default only the minimum is installed so you need to 
add in ASP.Net, etc.



-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344438
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ISP blocking port 25

2011-05-09 Thread Kym Kovan

On 10/05/2011 12:51, Ben Conner wrote:


 And you can't use a gateway server as that will be delivered on port 25 as 
 well.

How about port 587, the alternate port for authenticated mails, that 
should still be open. If not maybe a completely different port to a 
gateway where that is configurable?


-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344386
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Help! Too much tracffic and too little time!

2011-05-08 Thread Kym Kovan

On 8/05/2011 10:58 PM, Robert Rhodes wrote:

 I installed Win2K8 on one of the servers last night, and discovered there is
 actually 6GB of memory in them.  I had forgotten that I had to install the
 RAM sticks in threes on these servers.  Just sitting there idling, it's got
 340mb cached, 5451mb available, and 5133mb free.

6GB, that's a nice number. Set the JVM max to 3GB, max perm to 512 and 
let it take traffic. If all is good the OS will bump up to about 1GB and 
the cache the same leaving a smidge of fully free mem.

If you have a server monitor of some form you can then balance as needed.


-- 

Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344348
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Help! Too much tracffic and too little time!

2011-05-07 Thread Kym Kovan

On 7/05/2011 15:35, Maureen wrote:

 Perhaps you are right about 2K8 being faster and better, but changing
 from an OS you know to one you don't know with a launch commitment a
 week away doesn't seem like a very good idea to me.

it isn't and I was recommending that, just commenting on a comment, I 
hope I didn't mislead :-)

It is already the weekend here in Oz so I also assumed that the sites 
have to be up in 2 days, not 9, hence my suggetion for settings for a 32 
bit 2K3 JVM. To the OP: Go with what you have got.


-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344325
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Help! Too much tracffic and too little time!

2011-05-07 Thread Kym Kovan

On 8/05/2011 9:29 AM, Robert Rhodes wrote:

 It looks like I will be x64 on Win2K8R2 for two of these boxes which will
 have only 4gb on memory, at least for now.

 With that in mind... can I up my jvm settings a bit?


In a prod environment the OS will run about 1GB mem usage and 2K8 has 
this extra mem allocation caching trick which is really useful on hard 
working machines but you cannot allow much for that with only 4GB RAM. 
I'd say set the JVM for 2.5GB and 512 Perm and see how it flows (Look at 
mem usage in the Resource Monitor which you find in the Task Manager, if 
there is just a tad of Really Free Mem then you are fine.)



-- 

Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344344
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Help! Too much tracffic and too little time!

2011-05-06 Thread Kym Kovan

On 7/05/2011 11:57, Rob Rhodes wrote:


 I have 4 cf9 standard licences, and four servers running win2k3 x86 (fairly 
 fast processors and 4gb ram each). I have a fifth win2k3 server x64 running 
 SQL Server 2005.  These servetrs are recent installs and do not have any 
 other sites on them.

 My plan is to load the site on all four servers, all pointing to the same 
 database server (it appears much of the queries in the site are cached)

 I would then set up round-robin DNS to do the poor-mans load distribution.

 Most importantly I am hoping some of the gurus here might have some jvm 
 tuning suggestions to help handle the load.


We used to have servers with similar workload to what you describe 
before we went 64bit and virtual for those sites (with a startling 
increase in performance) and found a good base to start from was 1024MB 
max JVM heap size and a MaxPermSize of 256m.

As you are 32bit then the max you can go to with max JVM Heap is about 
1.4GB (theoretically 1.8GB but we never made that work) but be warned, 
_do not_ set the Minimum heap size to the same as the max when you are 
at these higher levels, CF frequently will refuse to start with out of 
memory errors in the output log. We found leaving the JVM min heap at 
256MB gave a fast start and it wound up to the max fast enuf anyway :-)

On some machines, (slightly different site combinations) the MaxPermSize 
ran best at 512MB.

HTH

-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344319
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Help! Too much tracffic and too little time!

2011-05-06 Thread Kym Kovan

We found 2K8 R2 so good that we are now trashing our oldest machines and 
moving to 2K8 wherever possible, the advantage is so great and it is not 
quirky, it is much easier than 2K3 once you get used to the new IIS, etc.

I'd even stick my head out and say 2K8 R2 is a good operating system...



On 7/05/2011 13:38, Robert Rhodes wrote:

 Yes, it's because that's what I have. And honestly, I am only a little
 familiar with Win2K8, which seems a bit quirky to me.  And I am worried that
 inexperience with it would lead to some problem I could not fix.

 I know Win2K3 fairly well. You just set it up and it goes and goes, no
 problem.  I am hoping four win2K3s servers in round robin will handle the
 load.



-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344321
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Help us Please - CF 5 Server Licenses

2011-05-05 Thread Kym Kovan

On 5/05/2011 10:22 PM, AJ Mercer wrote:

 Please post Railo errors on the Railo mail list

Adding to that, if the code works on ACF8 then there can be few problems 
on the Open Source engines as they are basically CF8 compatible. Any 
errors are going to be slight, or even bad code that CF5 allowed you to 
get away with :-)


-- 

Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344253
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: OT question - is this real or phishing?

2011-04-24 Thread Kym Kovan

Russ,

are you trying to get every woman on this List offside? If you are then 
you are succeeding very well, two or maybe three in a day.

The OP was about a specific domain namespace, not a TLD, you came back 
with a completely irrelevant comment about TLDs. We all know there are 
no checks on TLDs, I was merely pointing out that that is not the case 
for other namespaces.


Kym K,

who has been at this game for a long time, just like everyone else it 
seems...

you wrote:

 Kym,

 That is a very specific tld, most are not like that and are registeted
 instantly with no checks. We have been registering domains for many years
 and have a fully automated site. So I am under no disillusion how they work,
 try out godaddy.com if you want to see for yourseld how it works. Even the
 tld's that do require checks such as .au or .fr, these are done with the
 registrant, the registrar does not contact other companies with similar
 names to see if they mind. It is a scam, and a well known one, we get emails
 like that all the time.
 On 21 Apr 2011 02:32, Kym Kovandev-li...@mbcomms.net.au  wrote:

 On 21/04/2011 09:49, Russ Michaels wrote:

 anyone can register any domain, it is an automated system, seriously, do
 you
 think someone manually checks every single domain to see whether it might
 be infringing on anyone else's name or copyright.

 sorry to disillusion you but that is exactly what happens in some
 countries, not everyone is a casual as the USA :-) Try registering a
 .com.au without a registered company name in Australia, you'll be
 questioned by the registrar as to your bona-fides.



 --
 Yours,

 Kym Kovan
 mbcomms.net.au





 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343954
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: OT question - is this real or phishing?

2011-04-24 Thread Kym Kovan

On 25/04/2011 12:36 AM, Michael Grant wrote:

 I actually didn't know you were female either. And I don't think that Russ
 is treating you any different than he does anyone else. You just need to
 know how to take Russ' disposition. He tries hard to be helpful if nothing
 else.


He does and I apologise to him, I must be in a bit of a bad space. Its 
approaching 1am and here I am sitting here applying service packs, must 
be better things to do with my life :-)

In general though can people remember what the original post was about 
in threads, until they drift onto other matters as they so often do. The 
OP here was about .cn domain names specifically, talking about TLDs 
being automatic and uncontrolled was irrelevant and threw me.


Back to 2008 R2 SP1 in my corner...


-- 

Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343959
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: OT question - is this real or phishing?

2011-04-20 Thread Kym Kovan

On 21/04/2011 09:49, Russ Michaels wrote:

 anyone can register any domain, it is an automated system, seriously, do you
 think someone manually checks every single domain to see whether it might
 be infringing on anyone else's name or copyright.

sorry to disillusion you but that is exactly what happens in some 
countries, not everyone is a casual as the USA :-)  Try registering a 
.com.au without a registered company name in Australia, you'll be 
questioned by the registrar as to your bona-fides.



-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343891
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFQUERY update Firefox wierdness

2011-04-19 Thread Kym Kovan

On 19/04/2011 8:46 PM, Dan Blickensderfer wrote:

 I checked and it's turned off.  This is happening from multiple computers
 with Firefox.

 Any other thoughts?

in that case turn it on and look at what the browser is sending...


-- 

Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343842
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: java.lang.OutOfMemoryError - requires multiple service restart each week

2011-03-29 Thread Kym Kovan

On 30/03/2011 10:28, ccie 6862 wrote:

 We have a server running ColdFusion MX 7 on Windows 2003 i386 with 4GB of 
 memory. A couple of months ago, we started to receive the 
 java.lang.OutOfMemoryError error prior to requiring a reboot. Restarting the 
 CF service fixes the problem, usually for a couple of days. I've run across 
 increasing java vm max memory allocation or working memory, but I'm at a loss 
 as to where these changes need to be made.

In CFAdmin look at the Java and JVM section in the Server Settings area.

There are two input fields for the Minimum and Maximum JVM Heap size. I 
cannot remember what the default is but it would do you good to wind the 
Maximum one up to 1024. If that does not fix the problem then you start 
looking at things like increasing the XX:MaxPermSize down in the bottom 
section called JVM Arguments.



-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343399
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Converting regular date to a Spectra formatted database date?

2011-03-24 Thread Kym Kovan

On 25/03/2011 2:11 AM, Dorioo wrote:

 Well, I've found that the code below will give me the first part before the
 period (40626). Assuming the second part is the time, I still have to
 figure out the calculation it's using.

 cfdump var=#datediff(d,12/30/1899,{ts '2011-03-24 00:00:00'})#

.374166700 is a decimal part of a day isn't it?

9am is 3/8 of a day which is .375


-- 

Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343246
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Converting Boolean in the query

2011-03-18 Thread Kym Kovan

the YesNoFormat() function is the go on the cfml side outside the query 
if you can do that rather than inside the SQL

Kym K


On 19/03/2011 16:18, Kevin Parker wrote:

 Appreciate a little bit of advice please.

 I am creating a small bit of script to dump some data to a csv file. I want
 to convert a Boolean field to a Yes or No inside the query.

 I've used this technique in my SELECT statement from scouring the net.

 IIF(PractitionerNews, 'YES', 'NO') AS MyConvertedField

 However, this returns an error...

   [Macromedia][SQLServer JDBC Driver][SQLServer]'IIF' is not a recognized
 built-in function name.

 The box is running CF8 and SQL 2005.

 Is this the recommended approach in CFML or is there a better way.

 TIA!

 ++
 Kevin Parker
 ++



-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343132
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Converting Boolean in the query

2011-03-18 Thread Kym Kovan

2nd go with all of the info this time :-)

the YesNoFormat() function is the go on the cfml side outside the query 
if you can do that rather than inside the SQL

Inside SQL you need a CASE as there is no IIF, this explains nicely:

http://www.sql-server-performance.com/faq/iif_tsql_p1.aspx


Kym K


On 19/03/2011 16:18, Kevin Parker wrote:

 Appreciate a little bit of advice please.

 I am creating a small bit of script to dump some data to a csv file. I want
 to convert a Boolean field to a Yes or No inside the query.

 I've used this technique in my SELECT statement from scouring the net.

 IIF(PractitionerNews, 'YES', 'NO') AS MyConvertedField

 However, this returns an error...

   [Macromedia][SQLServer JDBC Driver][SQLServer]'IIF' is not a recognized
 built-in function name.

 The box is running CF8 and SQL 2005.

 Is this the recommended approach in CFML or is there a better way.

 TIA!

 ++
 Kevin Parker
 ++



-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343133
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Losing Sessions

2011-03-08 Thread Kym Kovan

On 9/03/2011 14:21, Mary Jo Sminkey wrote:


 It's the failure of the CFID/CFTOKEN to change that's particularly confusing 
 to me, since any other time when I've seen these kinds of issues and the 
 session is being lost, they'll change on every request. Although I realized 
 today I was only looking at a dump of the session vars, not the actual 
 cookies, so maybe for some reason the session is getting dropped and then 
 reinitialized with the same cookies?? Grasping at straws here...

How about dropping a cflog tag with some useful info into OnSessionStart 
to see if the sessions is actually restarting or not?


-- 
Yours,

Kym Kovan
mbcomms.net.au



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342834
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: application.cfm question

2010-12-31 Thread Kym Kovan

On 31/12/2010 9:55 PM, Richard Steele wrote:

 I'm testing some error checking stuff and don't understand why the 
 application.cfm doesn't abort before an error is found in a file.

 Here's the application.cfm
 cfabort

 Here's the index.cfm
 cftest

 When the index.cfm is run, it shows the error information (Unknown tag: 
 cftest). I would think that application.cfm would fire first and not even get 
 to index.cfm.

It is failing at compile time as that is a bad tag, it never gets as far 
as actually running the code because ity cannot compile it.

Try putting a bad(unknown) variable name instead of a bad tag so the 
code compiles and then as it runs it will hit the cfabort and stop 
before it gets to the bad variable.

If you are trying to error check at runtime for bad tags then you can't 
because it never gets that far.


Hope that answer helps as I have to dash, some midnight fireworks to go 
to :-)  Happy New Year everyone.

-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340334
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Is this expected behaviour for a table in a cfc passed back?

2010-12-11 Thread Kym Kovan

On 12/12/2010 15:18, Stephen Cassady wrote in part:

 I'm just wondering, instead of commenting on the use of the tag as 
exampled (correct or incorrect), if anyone else can duplipcate what I seem to 
have stumbled over as an edge case. CF 9, patched.
 


I have just tried that code on a bare CF9 server and a fully patched 
one. No change in either case, the html as is per the cfml code.

How are you looking at the result? A literal View Source in a browser 
or some other means?


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340015
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Is this expected behaviour for a table in a cfc passed back?

2010-12-05 Thread Kym Kovan

Hi Stephen,

I happen to be writing some HTML form creating CFCs at this very moment 
so doing a quick test showed the result as it should (on CF8), the 
fieldset did not move in the source code but I should point out that 
what you have is not valid HTML and will break. Maybe your browser is 
trying to fix it.


On 5/12/2010 10:31 PM, Stephen Cassady wrote:

 OK - this took me a while to see what was happening, and need to confirm if 
 this happens to other people, or if this is expected behaviour.

 Create a cfc with this function

   cffunction access=public 
   name=test
   output=true
   returntype=string

  cfsavecontent variable=local.selectlayout

  table
  fieldset
  trtdtest/td/tr
  /fieldset
  /table

  /cfsavecontent

   cfreturn local.selectlayout
   /cffunction

 invoke the cfc and output the return:
 cfinvoke component=#application.cfc.email# method=test 
 returnvariable=returnedvar /
 Cfoutput#returnedvar#/cfoutput

 This is what I get:

 fieldset
 /fieldsettable
 tbodytrtdtest/td/tr
 /tbody/table

 Note it shoves the fieldset outside the table, and adds tbody.

 Do I have something else (rogue code somewhere) that is forcing this 
 behaviour, or does this happen with you?

 Stephen



-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339796
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Homesite Comment Command

2010-11-14 Thread Kym Kovan

On 15/11/2010 10:54, Terry Troxel wrote:

 Russ thanks for answering.
 I guess I wasn't specific enough.
 Is there a keyboard shortcut command to do the html comment in Homesite?

ctrl-shift-M works here


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339217
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Homesite Comment Command

2010-11-14 Thread Kym Kovan

On 15/11/2010 11:22, Azadi Saryev wrote:

 iirc, the 3-dash cf comment does not trip html validation. the 3rd dash
 is considered the first character of comment text.
 i do not ever remember having trouble with cf comments in W3C validator.

If you are being strict the comment is actually, in quotes, !-- , 
note the space at the end. So the third dash is wrong in that context.


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339220
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Where in the registry does ColdFusion 9 store client variables?

2010-11-07 Thread Kym Kovan

On 8/11/2010 15:19, Philip Kaplan wrote:

 I accidentally had registry client variables turned on for a few days, and
 now my server is slow.  I suspect overgrown registry filled with CF client
 variables is the cause.

 Anyone know how to purge them from the registry?

Try setting the purge time to the minimum in CF Admin.



-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338934
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: fckEditor and Coldfusion tags

2010-10-20 Thread Kym Kovan

On 21/10/2010 11:26, Torrent Girl wrote:

 Please tell me this can be done :0


yes, indirectly. The editor will by default change any  or  to their 
equivalents lt: and  gt;

One has to ask who is going to write this code? It is the world's second 
biggest security issue letting code be created this way...



-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338408
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: What version-/source control are you using (if any)?

2010-10-06 Thread Kym Kovan

On 6/10/2010 6:59 PM, Michael Christensen wrote:

 Thank you all for the great answers.

 I would like to throw a (potential) monkey wrench into the situation by 
 saying, that we develop on a common set of files.

 How does that play into things?

If that is the case then the distributed engines, git, Mercurial and 
Bazaar, are the wrong answer as they work around everyone having their 
own codebase.

SVN would work fine just use it as a version control on the common codebase.

How do you manage with just one common set of files? How do folk not 
leave it broken most of the time as they code on their bit?

-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337894
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: What version-/source control are you using (if any)?

2010-09-29 Thread Kym Kovan

On 28/09/2010 23:34, Michael Christensen wrote:

 We're thinking about setting up version-/source control for our CF code.

 What are people out there using? What works, what doesn't?

We use both SVN and Mercurial (Hg).

The outside world has SVN to download from but internaly we have 
staggered Hg repositories n every machine so code can be moved about 
without wrecking the centralised SVN repository. As has been mentioned 
you can get out of kilter with SVN rather easily and it gets nasty.

If you mainly develop on Windows machines then Hg is the go, if you are 
mainly unix/Apple then GIT is OK but its Windows client is terrible (in 
our opinion)

-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337618
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: What version-/source control are you using (if any)?

2010-09-29 Thread Kym Kovan

On 29/09/2010 9:28 PM, Russ Michaels wrote:

 I have used this and it works great. Be careful not to listen to the
 Linux-fanboys they slag this off purely because it is a windows solution,
 however it does exactly what it says on the tin, I have never had any issues
 with it.

I might add to my previous comment about using both SVN and Hg as we are 
a Windows shop. The SVN server is a Windows one, the Collabnet SVN 
server download is a click  click  run install and no issues whatsoever.


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337623
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFFM and TinyMCE?

2010-09-23 Thread Kym Kovan

On 23/09/2010 9:52 PM, Rick Root wrote:

 Anyone using a recent version of CFFM with TinyMCE 3?

 Before I spend my time figuring out how to do it, thought I'd ask to
 see if anyone had already spent that time and might be willing to
 donate the knowledge to the project =)

yes, it was not too hard.

I haven't tried the latest cffm version yet but the previous two 
versions went fine except for the issue with paths and the uploadifyer 
thingy in the last version.

I don't have the code in front of me and its late evening here, I'll 
send it directly in the morning...


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337363
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: duplication of cookies on each request

2010-09-17 Thread Kym Kovan

On 17/09/2010 8:27 PM, Michael Grant wrote:

 I thought this was the standard trick:

 !--- This expires the session once the browser window is closed. ---
 cfif IsDefined(cookie.cfid) AND IsDefined(cookie.cftoken)
   cfcookie name=cfid value=cookie.cfid
 cfcookie name=cftoken value=cookie.cftoken
 /cfif

 The other way is just an extra step.

I can't recollect but there was some strange context where that simpler 
version broke.

-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337172
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: duplication of cookies on each request

2010-09-17 Thread Kym Kovan

On 17/09/2010 1:17 PM, Duncan wrote:

  @Kym, creating new cookies on starting a new session I would understand, but
 take a look at my logging, each request is within the current session, CF is
 not calling onSessionStart on each page refresh. We still end up with
 duplicte cookies, all with values accumulated from the previous request.


It is most strange. My immediate thought was that the domain name was 
wrong so it was starting a new session each time but that is not the case.

Have you tried using the domain attribute as an experiment to see if 
that makes a difference? Using the higher domain, eg domain.name rather 
than www.domain.name

-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337173
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: duplication of cookies on each request

2010-09-16 Thread Kym Kovan

On 17/09/2010 10:49, Michael Grant wrote:

 Am I just tired or is this a little redundant? Set a local var equal to the
 cookie value, then overwrite the cookie value with the local var value?
 Surely I'm just reading this wrong.

Its a standard trick to change the expires attribute for the cookie so 
it expires immediately.

Close browser, open browser and it becomes a new session rather than 
using the still-existing cookies from before.


HTH

Kym K


 On Thu, Sep 16, 2010 at 8:35 PM, Andrew Scottandr...@andyscott.id.auwrote:


 You should be doing something like this.

 cfif isDefined(Cookie.CFID) AND
 isDefined(Cookie.CFTOKEN)
 cfset cfId_local = Cookie.CFID
 cfset cftoken_local = Cookie.CFTOKEN
 cfcookie name=CFID value=#cfId_local#
 cfcookie name=CFTOKEN value=#cftoken_local#
 /cfif



-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337166
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Git, CF and best practices

2010-08-30 Thread Kym Kovan

On 31/08/2010 11:16, Mallory Woods wrote:

 I just started looking a git to use for source control for our CF projects.
 I wanted to ask those who are using it a few questions.

git is a distributed version control system so having a central 
repository is fine for later, completed versions but it might be worth 
considering having a local repo for each developer so that they can save 
and version control internally and then when they are happy with their 
current work snippet push that back to a common/shared repo. That way 
you get some independence otherwise you are not doing much more than 
what svn does.

Also you might consider looking at mercurial rather than git as it has a 
better fit with Windows machines.

For example here we use Mercurial and every developer has a local set of 
repos on their workstation which they work with and when they have 
finished code synchronise from that back to a central repo where they 
can share their work with others. We actually have several central repos 
for test/stage levels of goodness of code rather than branching, the two 
are almost synonymous in distributed version control systems and 
synchronising between repos is simplicity itself (in Mercurial at least).

If you want to get really fancy and you have developers on the move or 
with more than one workstation, desktop and notebook for example, then 
you can have another repo on a central server for that developer to sync 
up to from one workstation so that they can then pull that update down 
onto their other workstation. They can then keep code current on two 
machines without having half-good code in the main repos for other 
people to trip over.


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336660
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Alternatives to CFFM?

2010-08-18 Thread Kym Kovan

On 19/08/2010 08:46, Mike Kear wrote:

 Are there any good alternatives to CFFM? ...
 That means i have to find some alternative to it.The problem we've
 got is we get an error message that can't be read whenever we try to
 upload. I asked Rick to help me figure out what might be causing
 the problem, but he doesnt answer my emails.

We had exactly the same issue when we upgraded CFFM in our CMS to the 
latest version of CFFM with the flash tools. After much messing around 
and wasted time we decided it was a path issue in the code that we could 
not find so we back-pedalled to the last, non-flash version which works 
fine with both CKeditor or TinyMCE.


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336381
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Windows File Replication: Suggestions?

2010-07-28 Thread Kym Kovan

On 28/07/2010 7:52 PM, Dominic Watson wrote:

 We have a bunch of Windows 2003 servers (not RC2) and I'd like to have
 a particular directory on them replicated in real time, i.e. file
 change on the master server instantly updates the slaves. In RC2 there
 appears to be some built in goodness for this, DFS Replication - but
 we don't have access to this. Does anyone have suggestions for a *Real
 Time* replication service that might perform the same task?

The SuperFlexible backup/sync tool has an agent so it can do real time sync:

http://www.superflexible.com/realtime.htm



-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335783
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: changing apache documentroot causes CF administrator to break

2010-07-13 Thread Kym Kovan

On 14/07/2010 8:40 AM, joe martinez wrote:

 Hi.  Here is my directory structure:

 c:\webstuff
 c:\webstuff\mainwebsite
 c:\webstuff\CFIDE

 In my httpd.conf, I changed theDocumentRoot  from c:\webstuff to 
 c:\webstuff\mainwebsite.  I also added the following directive to accommodate 
 the change I made earlier since CF Administrator is now outside 
 ofDocumentRoot:

 Alias /cfide/administrator c:/webstuff/CFIDE/administrator

 But, now I can't access CF Administrator.  When I try, I get the following 
 error:

 Could not find the ColdFusion Component or Interface CFIDE.adminapi.security

 Why does this happen?  Is there anything else I need to modify?  I didn't 
 change the physical location of the files so it shouldn't have a problem 
 finding anything.


You need to map CFIDE not the administrator folder within it.


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335328
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: changing apache documentroot causes CF administrator to break

2010-07-13 Thread Kym Kovan

On 14/07/2010 10:37 AM, joe martinez wrote:

 Thanks, that worked!  This might be a dumb question, but why does it matter?

All the CFCs are in a folder under the CFIDE one. Remember the error:

Could not find the ColdFusion Component or Interface CFIDE.adminapi.security

it was looking for CFC called security.cfc in a folder called 
adminapi under the CFIDE one. So you need to map CFIDE itself.

In a production environment it is common to make a copy of the CFIDE 
folder with the admin bits missing and map to that so the CF tags that 
need the mapping will still work but the admin area is missing to reduce 
hack attempts.


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335334
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Shopping carts

2010-06-27 Thread Kym Kovan

Bringing this back on topic has anyone got any opinions about CFShopKart?


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334887
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: HTTP Upload Problems

2010-04-27 Thread Kym Kovan

On 28/04/2010 07:33, John Foster wrote:

 Here's an excerpt from one of the packet traces showing the problems that the 
 uploads seem to be stumbling on:

 33400 277.18  10.162.147.150  169.254.169.254 TCP 49210  http [FIN, ACK] 
 Seq=98 Ack=234 Win=65280 Len=0

The IP address 169.254.169.254 is the I can't find a DHCP server, 
this is the last resort ip address that you should never see in a 
normally configured network setup. I would be chasing up how the network 
is working.

-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333180
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF9 + W2k8 Migration

2010-04-12 Thread Kym Kovan

On 12/04/2010 23:01, Cutter (ColdFusion) wrote:

 We are considering moving from CF8 on 32-bit Windows 2003 to 64-bit CF9
 on Windows 2008. Anyone who has experience with this, if you could
 please give me your feedback on any issues you may have dealt with,
 hurdles you crossed, and gotchas that slowed your progress.



We have done just that and it was almost painless. Code all ran fine, 
but we ran into some bumps with payment gateways and the like as 64bit 
CF won't run 32 bit CFX tags. In every case there was a different 
version or a move to java-based gateway objects that fixed the problem.

2008 is a breeze to set up, add the IIS bits in roles/features in the 
Server Manager, the firewall should adjust itself for http and CF 
installs just fine over it all. Depending on your intentions for email 
sending you will probably have to open up SMTP outbound in the firewall.

Of all of the hundreds of upwards migration we have done over the years 
this was the easiest...

-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332844
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: How to output formatted text from a CFC method

2010-03-30 Thread Kym Kovan

Mike do a view source in the browser, you probably do have CRs and LFs 
but the browser looses them on display of course

Kym


On 30/03/2010 8:51 PM, Mike Kear wrote:

 I'm building a CFC which will write a CFC.  It will do some
 processing, then output to my browser, the code in text form, for me
 to copy and paste into my editor to be modified.  The idea is for the
 CFC i'm building to do a lot of the grunt work I do,  then i spend my
 time doing the tweaks on the code.

 It's a bit like ORM but I build quite a few CFCs for fairly common
 purposes that don't always involve  a database.

 Here's my question:   how can I write a CFC method,  which will output
 formatted text?   I know there'spre   andcfsavecontent   but they
 aren't giving me the output with linefeeds etc. What have I
 forgotten?I know I did this once, a long time ago but I'm dashed
 if I can remember how i got the line feeds and formatting.

 For example here's the method that writes the header of the file, but
 instead of producing a nicely formatted text block to the browser, it
 puts it all in one line. :

cffunction name=Buildheader access=public returntype=string
 output=false hint=Builds the file header text.
   cfargument name=Filename type=string required=yes /
   cfset var headertext= /

  cfsavecontent variable=headertextcfoutput
 lt;cfsilentgt;
 lt;!
 ==
 Filename:#Filename#.cfm
 Description:
 Date:  #dateformat(now(), d/mmm/)#
 Author:   Michael Kear

 Revision history:

 ==
 ---gt;
 /cfoutput/cfsavecontent
 cfreturn headertext /
   /cffunction




-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332427
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Google Weather API XML Question: Getting the value of a node

2010-03-19 Thread Kym Kovan

On 20/03/2010 13:33, Chuck Weidler wrote:

 I have been trying to figure this one out for a while now.  Running the below 
 code will bring back a valid XML string and the XmlParse() is working just 
 fine.  The problem is trying to get the value for Condition in thecfscript. 
  The error I'm getting is:  Element 
 XML_API_REPLY.WEATHER.CURRENT_CONDITIONS.CONDITION.XMLATTRIBUTES.DATA is 
 undefined in XMLGOOGLE.

 I have tried every way I could thing of to address getting at the value, but 
 with no luck.

 I would appreciate another set or two of eyes on this.

try this:


cftry
cfset urlAddress=http://www.google.com/ig/api?weather=21787;
cfhttp url=#urladdress# result=myResponse /
cfdump var=#myResponse.FileContent#
cfset xmlGoogle = 
XmlSearch(XmlParse(myResponse.FileContent),/xml_api_reply/weather/current_conditions/condition)
cfdump var=#xmlGoogle# expand=no
cfscript
Condition = xmlGoogle[1].xmlAttributes.data;
/cfscript
cfoutput
p#Condition#/p
/cfoutput
cfcatch type=any
cfdump var=#cfcatch#
/cfcatch
/cftry


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331914
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Daylight Savings Scheduled Tasks

2010-03-11 Thread Kym Kovan

On 12/03/2010 12:33, Terry Ford wrote:

 I have had the following problem the last couple of time changes, and would 
 like to know if there is a simple solution to fix it:

 I have a number of tasks that I need to run just after midnight, local time 
 (CT), whether it's standard CST or daylight CDT.  12:01 AM.

 I use CF scheduler with settings run daily at 12:01 AM.   However, whenever 
 we hit a daylight savings and switch between CST and CDT, ColdFusion tries to 
 be smart and adjusts that starting time by 1 hour, which means that the tasks 
 start running at 11:01 PM CT.

To me that sounds more like the server is staying on Standard Time. That 
is a fairly common scenario in most hosting companies.

How to handle the daylight savings changes goes in the same basket as 
how do you handle different time zones and the answer is dependent on 
what your site is doing. Our advice to clients for simple sites is to 
have a switch in some convenient spot, code (Application.cfc) or 
database, to flag daylight saving status and have a global variable with 
adjustedNow() in it. For more complex site where you might be working 
over many time zones or international users then you need to make it 
more complex.



-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331629
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: overwriting a component reference variable

2010-03-09 Thread Kym Kovan

On 10/03/2010 14:19, Michael Dinowitz wrote:

 Dave,

 So if your right then a thousand iteration loop with each iteration
 doing a cfinvoke will cause the template request to keep growing in
 memory usage. There is no resource re-usage in the request.

there is a good reference to the effects of this, apparent memory leaks 
here:
http://www.schierberl.com/cfblog/index.cfm/2006/10/16/memoryLeak_variablesScope



 This also means that the statement after a method is invoked using
 cfinvoke, the component instance is destroyed is not 100% true. It is
 destroyed, but nothing is gained by the destruction. I was always
 under the impression that using cfinvoke was 'less costly' than
 creating a variable to contain a component instance. :(

it is only if you copy the result somewhere that you get the reference 
that gets saved. YOu can unsave it by rewriting the variable the 
reference is in.


 It's highly unlikely that GC will happen during a specific single page
 request in such a way to delete component instances created and marked
 within that same request. So, I'd expect that each invocation within
 the request will end up allocating its own memory, and that memory
 won't be reused until sometime after the page request has completed.

correct.

-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331513
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfcomponent inheritance path

2010-02-25 Thread Kym Kovan

On 26/02/2010 16:42, Michael Dinowitz wrote:

 I'm just looking for verification on what I know about extending cfcs
 in the cfcomponent tag.

 Lets say for example I have a component called baseapp.cfc sitting in
 the web root. I also have an application.cfc in a directory named
 /blog. If I want the application.cfc to extend the baseapp.cfc,

I was under the (possibly wrong) impression that the behaviour is 
different when dealing with application.cfc.


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331154
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfcomponent inheritance path

2010-02-25 Thread Kym Kovan

On 26/02/2010 17:43, Judah McAuley wrote:

 And there is a quirk that I did not know. Interesting, I've never
 before seen / in an inheritance declaration. Do you know if this
 follows the Java standard or is this a CF-only thing?

CF certainly.

its a bit old but still relevant:

http://corfield.org/blog/index.cfm/do/blog.entry/entry/Extending_Your_Root_Applicationcfc



-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331157
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Backlash against telecommuting..

2010-02-08 Thread Kym Kovan

On 9/02/2010 02:44, ram d wrote:

 what pay rate we can expect on c2c ?


Curiosity question from afar. What does c2c stand for?


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-jobs-talk/message.cfm/messageid:4283
Subscription: http://www.houseoffusion.com/groups/cf-jobs-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.11


Re: Backlash against telecommuting..

2010-02-08 Thread Kym Kovan

On 9/02/2010 11:52, Maureen wrote:

 Corp-to-corp. It is a payment method where the contractor has a
 corporation that bills the client instead being paid on a W2 or 1099,
 both of which are US tax forms.

Ah, that makes sense. Thanks.

-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-jobs-talk/message.cfm/messageid:4285
Subscription: http://www.houseoffusion.com/groups/cf-jobs-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.11


Re: Parsing a geocode response

2010-01-26 Thread Kym Kovan

Les Irvin wrote:
 I'm rather lousy at the whole string parsing thing...  
Problem (for me) is that one cannot count on a set number of
 digits returned after the decimal.
 

cfset latlng = (38.780144, -104.815308)
cfset lat = removechars(listfirst(latlng, ,),1,1)
cfset lng = listlast(latlng,  )
cfset lng = left(lng, len(lng-1))


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330165
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Can application scope gateways/DAOs returning an array of Objects?

2010-01-14 Thread Kym Kovan

Jonathan Price wrote:
 Thanks for the reply!  I'm definitely trying to get a handle on this as I 
 don't want to chase down the repercussions in the future!  Thank so much for 
 your help.  It almost makes sense to me now...


A useful trick if you are creating your CFC in any persistent scope, 
like the application scope in this case, is to do a cfdump of that 
scope at the end of the page. Look at all of the vars showing in there. 
If you have failed to properly local scope a var in a CFC function you 
will see it sitting there at the top level of the dump.


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329663
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF5 download

2010-01-05 Thread Kym Kovan

Kevin Pepperman wrote:
 The company I work for has a CF5 license and had several non mission
 critical applications running on it on a Linux server.
 
 All attempts at finding the original install discs have failed, so all I
 have is the license key.
 
 Does anyone on this list have a copy, or know where I can get a copy of
 ColdFusion 5?

I just had a look in the museum and we have CDs all the way back to 
version 4 (and floppies even earlier :-) )

I don't know if they are still readable, I can have a look. What 
version, Pro or Enterprise?


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329424
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFC Mapping Issues

2010-01-01 Thread Kym Kovan

webmas...@pegweb.com wrote:
 I'm running CF 9 Enterprise and am having trouble getting a cfc to fire.
 
 Here is my invoke which is run after a file upload in a form field.
 ...
 cfinvoke 
 component = file-upload.FileUploader 
 method = UploadMemberImage 
 returnVariable = rVar 
 argumentCollection = #args# 
 
 Here is my CFC.
 cfcomponent name=FileUploader
 
  The CFC is located in the same directory as the cfm file calling it. The
  cfc file is named file-upload.cfc


You have got your naming tangled up, the name attribute in the 
cfcomponent tag is just for display. If you have called the file 
file-upload.cfc then the invoke should just be to that filename:

  cfinvoke component=file-upload 



-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329381
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Is Infusion Still In Business?

2009-12-14 Thread Kym Kovan

Hi Brook,

you wrote:
 That phone number is out of service. Its weird though, I thought they had a
 decent customer base. They certainly had a good product as I believe anyone
 who used it would attest. Its also strange that the site is still up. Maybe
 they plan to come back at a later date? Maybe they are trying to sell the
 company? It would be nice if they could release their code as open source,
 so that those people who are using it are not 100% screwed...

A lot of us ended up here as a way to keep in touch:
imsm...@googlegroups.com
but we are not being very chatty...

I chatted to Howie Hamlin a long time back about going open source or 
otherwise making the codebase available and he said no, due to legal 
reasons. The code engine that talks from a Win Service to CF was a 
patented thing for a start.


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329150
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CSS Help

2009-10-18 Thread Kym Kovan

Rick Root wrote:
 Anyone want to take a gander at this?
 
 http://www.opensourcecf.com/cfopenchat/layout.html
 
 In the above layout, I only want to hard code the width and height in
 the outermost div (the inside of that div will be code generated)
 
 This works great in Chrome and IE.. but not Firefox... and I don't know why.

There were a couple of html bits missing or duplicated, looks like you 
tried lots of options :-)

 
 Also, if anyone would like to suggest a non-table driven alternative
 layout... please do!
 

Sent to you off-list


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327304
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Dynamic External Javascript Sheet

2009-08-03 Thread Kym Kovan

 You can put a .cfm file in the src attribute of a 
 script tag, serving a dynamic document through. Just make sure that the 
 generated JavaScript is valid, and use the cfcontent tag to tell the 
 browser that it's a javascript file.

What about caching? Won't the browser go for what is in its cache and 
not grab the same-only-we-made-it-different file?


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325190
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: IIS Log Analyzer

2009-07-13 Thread Kym Kovan

Justin Scott wrote:
 So, what are people using for analyzing IIS web traffic logs these days?  I
 know there is Google Analytics, but I'd like to run something against my IIS
 log files to see more detail from the server logs.  I'd prefer something
 free (of course) that runs in the background and chews up the logs and spits
 out reports periodically (to flat HTML and graphs is fine).  


AWstats does a good looking read:

http://awstats.sourceforge.net/

Its not a live log reader like LiveStats from DeepMetrix was (we 
regret losing that) but gives good report


 If it can
 delete the old log files after so many days that would be nice as well.  

Maybe a scheduled task?


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324477
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: What's the best way to run a 4-hour-long CF script?

2009-05-10 Thread Kym Kovan

Philip Kaplan wrote:
 I have a script that needs a few hours to run. It's crawling several large
 web sites/xml feeds.
 
 What's the best way to do this with CF?  I've tried adding
 requestTimeout=100 in the URL but CF still seems to shut it down
 eventually.  Also my browser window gives up eventually...


If you can break up the script into discrete chunks then you can run 
them sequentially from a master script that includes each chunk in turn 
each time it is called.

How do you intend to run the script, from a browser or from a scheduled 
task? The master script will vary depending on which but from a browser 
it just has to do a self-refresh after a few seconds as the meta-refresh 
won't happen until the previous script is finished and the page fully 
loads then. The script then starts into the next section.


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322355
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: What's the best way to run a 4-hour-long CF script?

2009-05-10 Thread Kym Kovan

Philip Kaplan wrote:
 Brilliant!  A meta-refresh should work.
 What if I wanted to run it as a scheduled task?  Hmm.

A counter and flag in a database, run the script once every 10 mins or 
whatever is appropriate and use the flag and counter to see if the next 
section is due and which section.

 
 On Sun, May 10, 2009 at 5:06 PM, Kym Kovan dev-li...@mbcomms.net.au wrote:
 
 Philip Kaplan wrote:
 I have a script that needs a few hours to run. It's crawling several
 large
 web sites/xml feeds.

 What's the best way to do this with CF?  I've tried adding
 requestTimeout=100 in the URL but CF still seems to shut it down
 eventually.  Also my browser window gives up eventually...

 If you can break up the script into discrete chunks then you can run
 them sequentially from a master script that includes each chunk in turn
 each time it is called.

 How do you intend to run the script, from a browser or from a scheduled
 task? The master script will vary depending on which but from a browser
 it just has to do a self-refresh after a few seconds as the meta-refresh
 won't happen until the previous script is finished and the page fully
 loads then. The script then starts into the next section.




-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322357
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cf admin mail location mapping

2009-04-21 Thread Kym Kovan

Michael Dinowitz wrote:
 Does anyone know offhand where the mail directory is mapped in CF8? I'd
 rather not have the mail piled onto the C drive if I can help it.
 Thanks
 


coldfusion8/lib/neo-mail.xml


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321835
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cf admin mail location mapping

2009-04-21 Thread Kym Kovan

Michael Dinowitz wrote:
 Found it but it'll be an ugly change. The value is:
 {neo.rootdir}/mail
 rootdir is basically a 'hard' setting which defaults to c:\coldfusion8. I say 
 hard because changing it will have a massive effect on your CF server. This 
 means that I'll have to edit the value by hand to remove the rootdir 
 reference. This is not good as it will have to be redone anytime a new 
 release of CF or a server patch is applied.
 Ick.

Here is a programmatic fix:

http://www.stillnetstudios.com/2007/03/18/find-coldfusion-installation-spool-directories/



-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321837
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: (OT) W32.Virut.W

2009-03-25 Thread Kym Kovan

Michael Dinowitz wrote:
 The House of Fusion webserver has the W32.Virut.W virus. Does anyone know a
 way to remove this virus remotely on a windows 2000 machine? I can't boot it
 into safe mode so that's not an option.
 Thanks
 


We have used TrendMicro's Housecall successfully on some virii or check 
the other online ones:

http://www.precisesecurity.com/antivirus/online-scan.htm


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320978
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Googlebot got me good last night...Application.cfm question

2009-02-19 Thread Kym Kovan

Les Mizzell wrote:
 Matt Quackenbush wrote:
 
 cfif structKeyExists(cookie, CFID) AND structKeyExists(cookie,
 CFTOKEN)
 cfcookie name=CFID value=#cookie.cfid# /
 cfcookie name=CFTOKEN value=#cookie.cftoken# /
 /cfif
 
 OK, that works, but I don't get exactly what it's doing.

It replaces the two standard CF-generated cookies which don't expire 
with two that will expire immediately the browser closes (the default 
behaviour of cfcookie).



-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319578
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: (ot) WYSIWYG

2009-02-11 Thread Kym Kovan

Gerald Guido wrote:
 
 I am currently using FCK Editor. Mainly because it dovetails with Rick
 Root's CFFM - Coldfusion File Manager

I am using TinyMCE - Mainly because it dovetails so nicely with CFFM! :-)

On factor that might be important is style sheets, making your editor's 
edit area styling work to an external style sheet in TinyMCE is a breeze.


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319205
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Flat File as a Database?

2009-01-26 Thread Kym Kovan
Bob Wright wrote:
 Hi Kym, thanks for the reply.
 
 Very good question. The criteria is really No Database.  There is more 
 detailed and specific language than that, but it pretty much sums it up.
 
 As you pointed out, a filesystem is certainly a database, of sorts.  I have 
 been pondering it.  It seems a bit messy though.  Still, it is my fall-back 
 plan, if I can't get find a flat file solution. But, it is not my preference. 
 
 We expect not more than ten thousand entries.  Likely not more than a few 
 thousand. 

In that case the structure-in-memory is quite viable.

 
 I would not want to risk keeping the data in memory, with periodic writes to 
 disc.  Not with this project.

Hah! what do you think a database server does?

We use the struct  WDDX database for our stats engines with complete 
success. If the hit rate is not too ridiculous you write to disk as soon 
as the structure is updated, for our stats engine we limit it to once a 
second to stop the situation getting too frantic but you only need to 
write when there is an update so how often is the database going to be 
written to?

Remember a flat-file database via ODBC is doing exactly the same thing.

And its a database where do you draw the line, when is it a database 
and when is it not. A database is a collection of data, nothing more


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318515
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Flat File as a Database?

2009-01-25 Thread Kym Kovan
Hi Bob,

OK so you want a flat file. Does it have to be that or is the criteria 
really No database?

What we don't know is your overall site design, is the database going to 
be big, hundreds/thousands/millions of entries, etc?

If it not ridiculously big and depending on what you need to so in terms 
of querying have you considered keeping all of your data in memory and 
just saving to disk for security using XML, a WDDX packet being 
super-easy in this context.

Alternatively have you thought of using the file system as a database? A 
popular email server does just that very effectively for its account 
database. Top folders are tables, then break it up below that depending 
on what your data structure is.

food for thought :-)

Kym



you wrote:
 Thanks all for the replies.
 
 It sounds like some of you are in a position to fire clients. But since I get 
 paid by the job, I can't just do that. Maybe someday, but not today.  
 Besides, the client is not an idiot. 
 
 I'm sorry, I can't go into detail about the reasons why we are limited to a 
 flat file. But the reasons are legitimate, and cannot be circumvented.  
 Absolutely no database can be installed. It is what it is.
 
 Yes, I get that if I can find a solution here, the flat file will be 
 effectively a database. But hey, it's all about meeting the criteria.  And a 
 flat file absolutely will do just that.
 
 As far as what we need to accomplish, it is nothing more than basic CRUD via 
 web forms with data download capabilities.  Nothing fancy.  No interface to 
 other applications or products.  Just simple CRUD on a stand-alone 
 application.
 
 Gerald, I had not thought of ODBC text file thing.  I have seen it over the 
 years, but never messed with it.  I'll look into that, thanks.
 
 Nitai, H2 looks interesting, but I can't use it here. Thanks anyway.
 
 Peter, I did reply to you earlier (from the house of fusion website). Not 
 sure what happened.  Basically, I said that all I had available to me was CF7.
  
 bob
 
 
 
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318513
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ColdFusion method to fade hex color a specific % or amount

2009-01-15 Thread Kym Kovan
Andy Matthews wrote:
 Does anyone have a CFC which will return a tint of a specified hex color?
 
 In other words I provide a dark blue, and get the hex color for a little 
 lighter blue, or darker blue. 

This tool we made ages back does it:
http://mbcomms.net.au/tools/ColourExpander1.cfm?Body=FFpickLeft=+0055eepickRight=+884488

I just had a look at the code and it's all custom tags as it was written 
way back when. IIRC the code is all public domain stuff we found 
rewritten in CF, I'm happy to pass it all on if you want.



-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318030
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Australia

2008-11-14 Thread Kym Kovan
Dave Phillips wrote:
 Any Aussies on this list?  

yes, but its Saturday morning here so you might not get too many 
responses :-)

 I am considering relocating to Australia to do
 ColdFusion work through an Independent Skilled Worker visa.  I am wondering
 what the salary packages are like there, and specifically for a senior level
 developer (I have 10+ years experience with ColdFusion).

There are some large development shops that might be looking for senior 
folk. A lot of the CF work here is permanent work but depending on where 
you end up there are communities of freelance/contractors.

Oz is very capital-city-centric so outside the main state's capitals 
there is little activity. We are a CF-based Hosting Partner and our CF 
coding is more application/utility biased so I don't have a good 
perspective of the general development area. If no-one gets in touch 
with you, via this List or privately then drop me a line and I will send 
you a few firm's names.


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-jobs-talk/message.cfm/messageid:4124
Subscription: http://www.houseoffusion.com/groups/cf-jobs-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.11


Re: inserting a structure...within a structure...within a structure

2008-11-10 Thread Kym Kovan
Hi Ben,

you can shorten it down a bit and go as many levels deep as you want. 
Like this:

  cfquery name=cats datasource=#Application.DSN#
... snip ..
  /cfquery

cfloop query=cats
  cfif NOT StructKeyExists(allcats, #cats.category#)
   cfset allcats[#cats.category#] = StructNew()
   cfset allcats[#cats.category#].created=0
   cfset allcats[#cats.category#].catid=cats.acategoryid
  /cfif
  cfif NOT StructKeyExists(allcats[#cats.category#], 
#cats.subsection#)
cfset allcats[#cats.category#][#cats.subsection#] = StructNew()
cfset allcats[#cats.category#][#cats.subsection#].created=0
cfset allcats[#cats.category#][#cats.subsection#].catid = 
cats.categoryid
  /cfif
  cfif NOT 
StructKeyExists(allcats[#cats.category#][#cats.subsection#], 
#cats.manuf#)
   cfset 
allcats[#cats.category#][#cats.subsection#][#cats.manuf#] = 
StructNew()
   cfset 
allcats[#cats.category#][#cats.subsection#][#cats.manuf#].created=0
   cfset 
allcats[#cats.category#][#cats.subsection#][#cats.manuf#].l3catid 
= cats.l3catid
  /cfif
/cfloop

HTH
Kym K


you wrote:
 Hi,
 
 I'm trying to extend a piece of code in an application and I'm not sure
 what the correct syntax is.
 
 The current code looks like:
 
 cfquery name=cats datasource=#Application.DSN#
SELECT a.categoryname as category, b.categoryname as subsection,
 b.categoryid, a.categoryid as acategoryid
FROM categories a, categories b
WHERE b.levels=2 and b.parentid=a.categoryid
ORDER BY category,subsection
 /cfquery
 
 cfloop query=cats
cfif NOT StructKeyExists(allcats, #category#)
cfset thecat=StructNew()
cfset thecat.created=0
cfset thecat.catid=#acategoryid#
cfset tmp=StructInsert(allcats, #category#, #thecat#)
/cfif
cfif NOT StructKeyExists(allcats[#category#], #subsection#)
cfset thesubcat=StructNew()
cfset thesubcat.created=0
cfset thesubcat.catid=#categoryid#
cfset tmp=StructInsert(allcats[#category#], #subsection#,
 #thesubcat#)
/cfif
 /cfloop
 
 I need to add a 3rd structure level to this, so for each subsection
 there will be 0 or more structures within each subsection.
 Would this be reasonable:
 
 cfquery name=cats datasource=#Application.DSN#
SELECT a.categoryname as category, a.categoryid as acategoryid,
b.categoryname as subsection, b.categoryid,
c.categoryname as manuf, c.categoryid as l3catid
FROM categories a, categories b, categories c
WHERE b.levels=2 and b.parentid=a.categoryid
  and c.levels=3 and c.parentid = b.categoryid
ORDER BY category,subsection
 /cfquery
 
 cfloop query=cats
cfif NOT StructKeyExists(allcats, #category#)
cfset thecat=StructNew()
cfset thecat.created=0
cfset thecat.catid=#acategoryid#
cfset tmp=StructInsert(allcats, #category#, #thecat#)
/cfif
cfif NOT StructKeyExists(allcats[#category#], #subsection#)
cfset thesubcat=StructNew()
cfset thesubcat.created=0
cfset thesubcat.catid=#categoryid#
cfset tmp=StructInsert(allcats[#category#], #subsection#,
 #thesubcat#)
cfif NOT StructKeyExists(allcats[#category#], #subsection#,
 #manuf#)
cfset l3cat=StructNew()
cfset l3cat.created=0
cfset l3cat.l3catid=#l3catid#
cfset tmp=StructInsert(allcats[#category#], #subsection#,
 #manuf#, #l3cat#)
/cfif
 /cfloop
 
 What I'm not sure of is the syntax for referencing the allcats in the
 StructKeyExists and the StructInsert functions. Is the above correct, or
 would it be something like:
 
cfif NOT StructKeyExists(allcats[#category#, #subsection#],
 #manuf#)
cfset l3cat=StructNew()
cfset l3cat.created=0
cfset l3cat.l3catid=#l3catid#
cfset tmp=StructInsert(allcats[#category#, #subsection#],
 #manuf#, #l3cat#)
/cfif
 
 Or something else entirely?
 
 Thanks much!
 
 --Ben
 
 --
 Ben Conner[EMAIL PROTECTED]
 Web World, Inc.   888-206-6486
 PO Box 1122   480-704-2000
 Queen Creek, AZ 85242
 
 
 
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315072
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Google for Domains, mail not being sent

2008-09-20 Thread Kym Kovan
Chuck Weidler wrote:
 I've hardcoded the To email address in the cfmail to an address that I 
 know is good.  Still no good.

Try dropping a local mail server on your server and use that to send the 
mail to Google, or anywhere else for that matter. We use iMS Lite 
(coolfusion.com) on each machine to pass the mail on and that way we can 
get real mail server logs that tell us what it going wrong.

CF is best at sending mail to a local mail server, it does not have the 
error handling ability of a full-blown mail server.

If you are using goggle as a mail server do you have an account that 
allows mail to be relayed on or are the addresses you are sending to all 
at goggle itself?


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312844
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Google for Domains, mail not being sent

2008-09-19 Thread Kym Kovan
Chuck Weidler wrote:
 I have a simple mail application that keeps giving me a log entry of Moved 
 undelivered mail: Mail33655.cfmail to C:\ColdFusion8/Mail/Undelivr directory 
 in the mailsend.log and Invalid Addresses in the mail.log.
 
 When I Verify mail server connection it gives me Connection Verification 
 Successful.

It is probably the To: address of the actual email that is wrong, not 
the mail server's IP address


-- 

Yours,

Kym

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312838
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Apache + Virtual hosts with CF

2008-08-14 Thread Kym Kovan
Stephen Adams wrote:
 Hi,
 
 I'm trying to set up VirtualHosts in apache for the cf sites I'm working on. 
 My setup so far is I have apache2.2.9 installed, with cf8 running on Vista 
 Home Premium. Both are working fine, the CF administrator runs fine 
 everything is ok. When I installed CF I did not use the JRun setting instead 
 I selected the multi-server config and selected the Apache directory and bin 
 file.
 
 But what I want to do is create Virtual Hosts for each site I work on, for 
 example site1.local or site2.local
 
 I have edited my httpd.conf file 


How did you edit your http.conf file? As you have installed Apache in 
C:\Program Files\Apache Group, ie within Vista's protected bit you 
will possibly find that the edited http.conf is sitting in 
C:\Users\youraccountname\AppData\Local\VirtualStore\Program Files\Apache 
Group\Apache2\conf and Apache isn't reading it abd still reading the 
original file. We found we had to copy the file from there back to 
Apache's own conf folder to make it read the edited file.


-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311030
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: SVN in Production

2008-08-11 Thread Kym Kovan
Andrew Scott wrote:
 ... snip  If you
 checkout it might be a copy of the current index from svn, but that is still
 and let me repeat myself this is still double your storage space if in a
 shared environment where space is an issue.

Andrew, that is a major step back from your earlier statements.

I have been sitting back watching the responses, from Andrew's original 
Extreme statement to more measured responses from others and what I 
gather in one aspect at least is that the extra disk space could be an 
issue in that a simple checkout will take double the space of the code 
base itself. Beyond that I have seen no hard comments about security 
risks, etc., only fluffy ones.


Andrew said again:
 No even so, whether it is an issue or not. You should never have .svn
 directories in a production environment, if you do then I can no longer help
 your ignorance. 

Why not Andrew? I asked what I thought was a reasonable question and I 
did it because of a request of a client of ours. I have always thought 
SVN is not for prod servers but when I saw that thread I thought it 
might be sensible to ask why? You suggested doing some Googling, I found 
a whole bunch of folk who do use SVN clients on their Production servers 
as well as folk who say never just like you but also not with 
explanations as to why, just like you. So why?

To put the whole thing in perspective a little context may come in 
handy. We started as a CF development shop back in the 1.5 days and took 
up hosting CF sites as no-one else did back then. The wheels have turned 
and now we do development work again as well as serious hosting and have 
a nice environment with workstations that run several versions of CF 
flowing through to test and stage servers where clients can make sure 
all is right before their sites get flipped over into production. SVN in 
the background, etc, all nicely civilized. On the hosting side we have 
many sites that we have had nothing to do with from a development 
perspective but suddenly one of those clients has hit a wall in terms of 
the size of their site and maintaining it and they want to drop into 
version control with us and do it properly.

Umm, 400MB+ of cfm files, the site with base gifs, js, css, etc to make 
it work was over 1.5GB. The whole site with client upload areas, etc is 
about 7GB. We did an initial copy of code, js, etc., onto an 
intermediate server to import it into SVN and then checked it out to the 
test server and then ran some file sync tools to the Production boxes 
which are FTP distance away. It took over an hour to say no difference!

So our problem is how to push out changes to the Production boxes in a 
sensible fashion and hence our question that has raised such ire amongst 
one person at least :-)




-- 

Yours,

Kym Kovan
mbcomms


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310693
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: SVN in Production

2008-08-11 Thread Kym Kovan
Andrew Scott wrote:
 I could create an image, this image could be used for 10 different sites and
 slight changes to each version, but it is only relevant to one of my
 clients. I would not be making that an export from SVN because you will end
 up with images that do not belong to the project wasting HD space...

I think the above paragraph describes where we are at. In your context 
Andrew what you are saying is correct. I someone has one client with one 
codebase and one website then your concerns are not theirs.


 Think about it for a minute

Yeah, do that, not all the world is the same colour.



-- 

Yours,

Kym Kovan
mbcomms


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310695
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: SVN in Production

2008-08-11 Thread Kym Kovan
Tom Chiverton wrote:
 On Monday 11 Aug 2008, Kym Kovan wrote:
 intermediate server to import it into SVN and then checked it out to the
 test server and then ran some file sync tools to the Production boxes
 which are FTP distance away. It took over an hour to say no difference!
 
 That's one of the great steps SVN decided to take over CVS - keeping a clean 
 local copy so 'diff' is fast and doesn't need access to the network.

Yes, and that lends me to the thought that the best scenario for our 
particular problem would be to have an exported copy on each production 
box (yes, they are clustered) and use a standard diff tool from there to 
flip the changes over to the actual production site. It would not be too 
hard to set off the flip to happen on all servers at the same time to 
avoid mayhem. I should have mentioned in my previous explanation that 
this site is on dedicated boxes so disk space is not an issue.

Anyone see a difficulty in doing that?



-- 

Yours,

Kym Kovan
mbcomms


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310701
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: SVN in Production

2008-08-11 Thread Kym Kovan
Andrew Scott wrote:
 And how are you going to migrate small changes in a midst of other changes?
 

Good response Andrew to my question, just what I wanted. Unfortunately 
your response is top-replied with your signature as well, with its 
correct --, so in Thunderbird my question below that is lost.

But this brings up a point I noticed in your earlier replies, you talked 
of 20 tickets open and sending one ticket to production. You also talked 
in another reply about the work in maintaining multiple branches for 
them all but surely this is what keeping tight control over your code is 
all about? A change is A branch, merge it when it is right and there 
is no problem surely? You talked about one application but many clients 
running off it, with variations for all of them. If changing one 
client's code affects others then surely the site architecture is wrong, 
it isn't one application is it many similar ones. I feel motivated to 
shout at you like you shout at everyone else about how bad that is, but 
I won't


-- 

Yours,

Kym Kovan
mbcomms


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310706
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: SVN in Production

2008-08-11 Thread Kym Kovan
Andrew Scott wrote:
 You have my curiosity now...
 
 Explain to me how, SVN automation is going to know that I have 4 changes and
 only 3 of these are going to need to go to production.

Andrew, I think the point being made is that if you have 4 changes they 
should be in 4 branches or something similar so you can merge into your 
production tag the ones you want and leave the rest. No mention of 
automation, just the way things are arranged. The way I understand what 
you describe of your workflow is that you do not do that, all the 
changes are in one branch and if so the problem is in your 
methodology/workflow arrangements in your place of work. Maybe I 
understand you wrongly.


-- 

Yours,

Kym Kovan
mbcomms


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310817
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: SVN in Production - back to the original question

2008-08-11 Thread Kym Kovan
It seems I started something by asking if I was understanding some 
folk's practices correctly. Actually I just asked a question, someone 
else started something :^)

Meanwhile I filled in a few details of an issue we have with this new 
client need with their monster site and in amongst all of the flames 
there was an answer or two that was useful so thank you for that.

I was toying with the idea of doing an export from SVN to each 
production server but the code set is too big so I thought about doing a 
diff from the staging server to production but Jochem mentioned the risk 
of a corrupt file at the destination not getting picked up which is a 
legitimate concern. I was never considering in a month of Sundays doing 
file merges on the Production boxes or even using such a tool for 
deployment as was suggested by someone as that is what they do, the 
thought is too scary, when I mention diff I mean the directory/file 
difference tools not the file merge tools.

One of those tools runs every day to keep a running backup of content on 
a backup file server and taking a peek at the logs it takes about 7 
minutes to scan all 6.8GB of website across the network, much better 
than the 50-odd minutes done via FTP from here, and we are only 20mSec 
away! :-), hence my thoughts about doing the diff locally. One thing we 
currently do for the client is a twice a week backup of that mass of 
website down to a local server here in our second datacentre so we do 
have a copy of the production site right here next to the staging 
servers so now I am mulling over the possibility of doing the diffs 
locally and then only a few files need to be sent out for each update. I 
gather the client currently updates their site several times a week so 
we need to make the whole exercise as painless as possible. So the 
scenario would still be the A  B send to C scenario that Jochem 
described but in this case B and C are synonymous.

I find it interesting, we have been hosting CF for 11 years and still 
are finding new things to think over...


-- 

Yours,

Kym Kovan
mbcomms


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310821
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: SVN in Production

2008-08-11 Thread Kym Kovan
Andrew Scott wrote:
 Kym,
 
 Which is why I painted the scenario of this, and I will repeat it again
 because it seems to be getting lost in translation.

yes, yours Andrew. The original question came up because you stated that 
you could not send out 3 of 4 changes. In one of the many replies 
automation got mentioned but I avoided that in my response just now and 
took it back to the original point.

 
 The client has come to us and have asked for a number of changes to the
 system, over a period of time these changes are completed and placed into QA
 - UAT. Now the client is happy with 3 out of the 4 changes that you have
 made, and has requested that these changes go live straight away. But the
 4th needs some more tweaking.

I will repeat: Why are the 4 changes not in their own branches? Or if I 
get to the rub: why is your system so broken that you cannot manage 
something like that? No mention of automation just getting organised and 
doing it right in the first place.

I am starting to get peeved Andrew and like others am signing off on 
this conversation with you unless you start responding to what was asked 
and not drop into defensive mode or push your own line to the detriment 
of other legitimate ones. I asked a question as I was surprised that I 
was reading that folk use SVN into production, ie have SVN clients on 
Production boxes. You responded rather strongly and war broke out. In 
amongst the dross thrown up by you, directly or indirectly, there were 
some good answers. I will mind them and ignore the rest.




-- 

Yours,

Kym Kovan
mbcomms


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310822
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


SVN in Production

2008-08-10 Thread Kym Kovan
Hello,

Looking at some of the responses in the recent thread on SVN v ftp I get 
an impression that some folk are using SVN clients on Production boxes. 
What are people's thoughts on this? Is it a security risk, is it 
dangerous in some other way, or is it a bad thing because of all of 
those extra files that cause havoc with backups?

-- 

Yours,

Kym Kovan
mbcomms



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310651
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Character by Character File Compare

2008-06-19 Thread Kym Kovan
  Comparing a hash of
 each file would surely reduce the amount of text CF had to throw around
 especially if you are performing several tests with the same set of
 files.

I'd be tempted to split the work buy doing a simple check at the start 
on file sizes. If they are different then you _know_ the files are not 
the same. If the file's sizes are the same then hash them to see if the 
content is the same


-- 

Yours,

Kym Kovan
mbcomms


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307810
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


  1   2   >