Re: Passing arguments into base class

2015-02-06 Thread Nathan Strutz

You're using ColdSpring and you say CS is not autowiring the field on a
base class? It's supposed to, FYI, it just is. If it does not, you can do
it explicitly in your xml file (if you use the DefaultXMLBeanFactory.cfc).
Also, make sure the autowire option is on, at least for this object if not
for all of your beans. It's strange that it is not working, maybe this
would be a question for the ColdSpring list.

Nathan Strutz

On Fri Feb 06 2015 at 3:30:14 PM Dean Lawrence dean...@gmail.com wrote:


 Thanks Nathan,

 I am familiar with IoC and am using ColdSpring for this very purpose.
 However, it doesn't really work in this situation because the base class is
 never called directly though the beanfactory. The bean that is extending
 the base class may, but not the baseclass itself. This is my issue.

 I am actually already doing something identical to what Byron suggested,
 but by calling the utility class through the beanfactory (which is stored
 in the application scope) instead of creating a new instance of the utility
 class using New. In either case, the utility class variable is being
 explicitly called/created within the base class, not passed in as an
 argument.

 On Fri, Feb 6, 2015 at 2:14 PM, Nathan Strutz str...@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:360073
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Passing arguments into base class

2015-02-06 Thread Nathan Strutz

Dean,

Byron's suggestion is a good one, and the right way to go unless you use an
IoC container. It's an object-oriented programming idea where, when you
come to the point of not wanting to instantiate all your objects. You
invert the control of creating away from what normally creates them into
some kind of bean factory. There are a number of them out there for
ColdFusion. ColdSpring, WireBox, and DI/1 to name the big ones off the top
of my head. An ioc container/factory will keep it all internally for you,
wire your bean up, then hand you what you asked for, all ready to go.

The only other solution is to send in your utility object each time you
create something that needs it.

On Fri Feb 06 2015 at 1:24:38 PM Dean Lawrence dean...@gmail.com wrote:


 Thanks Byron,

 I wasn't wanting my utility class to inherit my base class, I am wanting to
 inject the utility class into the base class. I'm trying to get away from
 explicitly defining the utility class from within the base class. Since the
 base class is not called directly, I don't know how to pass the utility
 class in as a required argument during initialization.

 On Fri, Feb 6, 2015 at 12:11 PM, Byron Mann byronos...@gmail.com wrote:

 
  Think you might want something like this in your base cfc? I think you'd
  not want the UtilClass to inherit the base class however, or this would
  lead to a circular reference and probably kill the app.
 
  component name='baseClass' {
 
   variables.utilClass = new UtilClass();
 
  }
 
 
 

 --

   [image: profile picture]  *Dean Lawrence*
 *President*
 Internet Data Technology
 *Phone:* 888-438-4381 x701
 *Web:* www.idatatech.com
 *Email:* d...@idatatech.com
   Programming | Database | Consulting | Training


 

~|
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:360065
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: postParametersLimit in CF11

2014-12-11 Thread Nathan Strutz

I'm sorry that I don't have an answer to your question or a solution to
your problem, but I just have to ask, is it possible that your application
just needs to adapt to what is a fairly standard security practice across
the industry? It sounds like one of those jokes that ends in just because
you can, it doesn't mean you should. What is this process that forces you
to submit over one thousand form fields in one POST? Perhaps you can
serialize it into one big string that's parsed out on the server? You say
it's for importing a spreadsheet - couldn't you import the whole
spreadsheet file and use cfspreadsheet to do individual fields? I have
trouble believing a user can even see 1000 items on a single page - did you
set up the whole spreadsheet as a grid with form fields like a1, a2, b1,
b2? Can you piecemeal it and send partials via ajax, live, as the user
updates them?

You don't really have to answer, as interesting as it may be, but maybe you
can ask these questions internally and find some better kind of
architecture to solve the problem. Good luck!

On Thu Dec 11 2014 at 12:31:18 PM Chris 0404tow...@gmail.com wrote:


 Hi, we see the postParametersLimit (post request parameters) in CF11 is
 100, the same as in CF9. This is from the CF11 Lockdown Guide.

 Can anyone confirm the default limit is 100? That seems low, but perhaps
 Adobe did not change the hash methods or hash collision resolution methods.


 We set postParametersLimit to 1,100 for CF9, and now have an application
 that wants 2,000! This is for regularly importing spreadsheets into a
 database :-(

 thank you,

 Chris


 

~|
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:359834
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Eclipse CFEclipse

2014-12-04 Thread Nathan Strutz

Yeah, you've got to hit the sweep button as soon as you get Inbox to clear
out all your old stuff.

BTW, I have invites to anyone who wants to try Google Inbox. Yes, you too
can have the opportunity to reply to seven year old threads.

Nathan Strutz

On Thu Dec 04 2014 at 8:57:53 AM Matt Quackenbush quackfu...@gmail.com
wrote:


 Lol. That's awesome. :-)
  On Dec 4, 2014 7:55 AM, Casey Dougall casey.doug...@gmail.com wrote:

 
  Omg, this is what I get for archiving mail...
 
  I'm totally not going to do that anymore.
 
  Stupid inbox.google.com made it so easy to archive we hen I switched
 back
  to gmail unread messages from eons ago made there way to the top, front
 and
  center
 
  On Thu, Dec 4, 2014, 8:50 AM Matt Quackenbush quackfu...@gmail.com
  wrote:
 
  
   You realize that this thread is over 7 YEARS old, right? Lol
   On Dec 4, 2014 7:38 AM, Casey Dougall casey.doug...@gmail.com
 wrote:
  
   
We've gone down this road many a time, and I was a hard convert when
coldfusion builder 1.0 came out myself but it really didn't take long
  to
get use to.
Today I switch between CB3 and sublimetext depending on what I'm
  working
on.
   
Svn is best when you tie it into continuous integration where your
  commit
to trunk can be built to DEV server automatically with the likes of
   Jenkins
installed. Then those build are promoted to QA, UAT and to
 production.
   
Stop saying you can't or its too much work or I like the old way,
 just
   suck
it up and do it.
   
Teams of 1 to 1000 say yes..  But I would jump right to Git over Svn
  any
day.
On Dec 6, 2007 6:29 AM, Tom Chiverton 
 tom.chiver...@halliwells.com
wrote:
   
 On Thursday 06 Dec 2007, Tom Chiverton wrote:
  On Thursday 06 Dec 2007, mac jordan wrote:
   I the way that it seems to insist on setting a up a project on
 my
   machine,
 
  Ahh, yes, that's an Eclipse-ism I think.

 Just checked, and you shouldn't need a project to use the FTP view.

 --
 Tom Chiverton
 Helping to competently compete performance-oriented relationships
 on: http://thefalken.livejournal.com

 

 Please note, as of 10th December 2007 the registered office address
  of
 Halliwells LLP will be at 3 Hardman Square, Spinningfields,
  Manchester,
M3
 3EB

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in
  England
 and Wales under registered number OC307980 whose registered office
address
 is at St James's Court Brown Street Manchester M2 2JF.  A list of
   members
 is available for inspection at the registered office.  Any
 reference
   to a
 partner in relation to Halliwells LLP means a member of Halliwells
  LLP.
 Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named
 above
   and
 may be confidential or legally privileged.  If you are not the
   addressee
 you must not read it and must not use any information contained in
  nor
copy
 it nor inform any person other than Halliwells LLP or the addressee
  of
its
 existence or contents.  If you have received this email in error
  please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com
 .


   
   
  
  
 
 

 

~|
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:359762
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: # in variables

2014-02-07 Thread Nathan Strutz

My guess is much like Tim Healt's. If you're calling a web service like a
WSDL/SOAP service, the # should be fine. If you're calling it directly via
URL params, like ?method=xargument1=v#riable, the # is a sign to your web
server that the URL params stop there - it's a href hash, which goes to the
browser not the server.

If that's the case, then URL encoding on the client would be necessary. The
bad news is URL encoding may pass on this because # is a valid URL
parameter, just not what you want. In that case, you may have to manually
replace # with %23.

nathan strutz
[www.dopefly.com] [about.me/nathanstrutz]


On Fri, Feb 7, 2014 at 12:14 PM, Adam Cameron dacc...@gmail.com wrote:


 On 7 February 2014 18:07, Jon Clausen jon_clau...@silowebworks.com
 wrote:

 
  Bryan,
 
  For clarification, how are the comments content being evaluated by CF and
  causing it to choke?  It seems to me that those should be handled as
  strings and that they wouldn't be evaluated by CF, unless they are
 wrapped
  in an eval().
 

 Seconded. I think people are suggesting treating a symptom here, rather
 than the problem.

 How is this problem of yours manifesting itself? CF chokes on the single
 pound in the variable is not a very clear description of what's going
 wrong.

 Can you pls clarify?

 --
 Adam


 

~|
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:357625
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: best portable db for ColdFusion

2013-09-24 Thread Nathan Strutz

Yeah Evernote is fantastic for this. If you really wanted to make it
yourself and you want a portable DB, I like Derby, just for the fact that
it's file-based and works really well with CF.

nathan strutz
[www.dopefly.com] [about.me/nathanstrutz]


On Tue, Sep 24, 2013 at 11:44 AM, Cameron Childress camer...@gmail.comwrote:


 On Tue, Sep 24, 2013 at 2:30 PM, Michael Dinowitz wrote:

  I'd keep 'daynotes' with me when I move from computer to computer.
  Currently it's all text files but I'd like to move it to a database that
 I
  can move with me. MS Access is an option but is there something better?
  Derby? SQLite?


 Have you looked at Evernote (http://evernote.com/)?

 Syncs on all devices known to man and is very flexible. Watch this tutorial
 for some great ideas on using it along with the Getting Things Done
 methodology: http://www.thesecretweapon.org/

 ...unless I am misunderstanding what you need to use this for.

 -Cameron

 ...


 

~|
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:356826
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Best way to use LESS CSS with CF?

2013-09-10 Thread Nathan Strutz

I don't think it's recorded anywhere, but if you want me to give it
somewhere, let me know. ;)

nathan strutz
[www.dopefly.com] [about.me/nathanstrutz]


On Tue, Sep 10, 2013 at 1:10 PM, Billy Cravens bdcrav...@gmail.com wrote:


 Surprised I haven't seen info on Nathan Strutz's CF+LESS talk here:


 https://github.com/NathanStrutz/Write-LESS-CSS-Presentation-Material

 I know he's given this talk a few times; unsure if there's a recording
 anywhere.


 Billy Cravens
 bdcrav...@gmail.com



 On Sep 10, 2013, at 1:11 PM, Roger Austin raust...@nc.rr.com wrote:

 
  On 9/10/2013 2:05 PM, =?ISO-8859-1?Q?Claude_Schn=E9egans wrote:
 
  How would you perform CSS pre-processing with CF?
 
  Well, if the job is just to create dynamic CSS, CF can do the same way
 it can create dynamic HTML.
  It can either create static .CSS files whenever styles muste be
 changed. For instance, in my CMS I have a styles editor with all parameters
 stored in a database.
  It can also create 100% dynamic CSS, like in
  LINK HREF=myStyles.cfm...
  although in that case CSS files cannot be cached on client side, but I
 suppose it will be the same with LESS files.
 
  The LESS files are processed to get your CSS files. LESS=source;
  CSS=compiled. Probably a bad analogy. :)
 
  --
  LinkedIn: http://www.linkedin.com/pub/8/a4/60
  Twitter:  http://twitter.com/RogerTheGeek
  Blog: http://rogerthegeek.wordpress.com/
 
 

 

~|
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:356758
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion 11?

2013-06-18 Thread Nathan Strutz

Unfortunately, the traditional way the CF betas works is that you can't
know unless you're in and no one who is in is allowed to even hint that
they are. Kind of frustrating. We may never know what's in CF11 until we're
close to release time. Maybe there will be a public beta like the last
couple versions have had.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz]


On Tue, Jun 18, 2013 at 8:07 PM, Byron Mann byronos...@gmail.com wrote:


 Ray mentioned CF 11.

 Is there a published backlog of features and enhancements that might make
 its way into the product?

 Something like a Trello board where people could vote on and suggest
 features would be nice.

 Byron Mann
 Lead Engineer  Architect
 HostMySite.com


 

~|
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:356007
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ??

2013-05-17 Thread Nathan Strutz

Yea, we are all in Minneapolis :D
www.cfobjective.com

Consider coming next year, this is a great conference!

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz]


On Fri, May 17, 2013 at 2:48 AM, Russ Michaels r...@michaels.me.uk wrote:


 Cf.objective

 Regards
 Russ Michaels
 www.michaels.me.uk
 www.cfmldeveloper.com - Free CFML hosting for developers
 www.cfsearch.com - CF search engine
 On 17 May 2013 08:34, Stephens, Larry V steph...@iu.edu wrote:

 
  According to HoF I'm still subscribed but I've seen no messages for
  several days? Has everyone gone to a convention or is CF now quiescent?
 
 
 

 

~|
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:355754
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Need RegEx help for unknown/odd characters.

2013-05-17 Thread Nathan Strutz

How about deAccent() ?
http://cflib.org/udf/deAccent


nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz]


On Wed, May 15, 2013 at 9:20 AM, Che Vilnonis ch...@asitv.com wrote:


 Good morning. Occasionally when parsing a RSS feed, I get RSS data I cannot
 parse. Click for screenshot below (text highlighted in green). In this
 example, Montreal should return Montréal but does not. What regex could I
 use to remove or replace such odd characters?

 http://www.asitv.com/images/_funkychar.jpg

 Thanks, Che




 

~|
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:355757
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Code Design help

2013-05-09 Thread Nathan Strutz

Marty,
Depending on your mail provider and client, often you will not get a copy
of the message you sent. I got one email on this thread from you that
started If this application is multi-user consider that the [...] and of
course this one that I am replying to.

If you reply to a large thread, often the HoF mail server will let you know
that you sent a large post and it didn't appreciate it, but it by no means
blocks it.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz]


On Thu, May 9, 2013 at 7:51 AM, Marty Franklin ma...@assetresearch.comwrote:


 Hello,

 It appears my posts do not appear on this list? I am curious why?

 Martin Franklin
 ma...@assetresearch.com

 Thanks




~|
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:355667
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Trying to check if username exists in table prior to form submit

2013-04-09 Thread Nathan Strutz

Dustin,

First things first, load your page with a javascript console or browser dev
tools and you will see that there is an error in your javascript. If it
can't compile, it can't get on to running your code and checking the
username. Hope that helps.

Also, make sure you run the same username check on the server side, after
they submit the form, because javascript can be pretty easily bypassed, or
errors like this can cause it to not validate on the client side.

Another thing, you've written a lot of jQuery to be hardcoding an onChange
event on your html input element. You can (and should) replace this:
onchange=chkUsernameUnique(this.value); with this:

$(input[name=Username]).on(change, chkUsernameUnique); - this will pass
the input in as an argument instead of the value of the input, but it
allows you to divorce your javascript from your html.


nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz]


On Tue, Apr 9, 2013 at 1:34 PM, Dustin Lennon demonicpa...@gmail.comwrote:


 There anyone that can assist me in this?

  I've been trying for some time trying to get various examples that
  I've found online how to do this, but none seem to do any checking
  after I leave the input field that contains the username to be checked.
  I'll first post the link to my work in progress and then post my code
  to my .cfm and .cfc pages.
 
  Link: http://students.uwf.edu/dsl13/mva/new_user.cfm
 
 
  new_user.cfm
  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  html xmlns=http://www.w3.org/1999/xhtml;
  head
  meta http-equiv=Content-Type content=text/html; charset=utf-8 /
  titleNew User Registration/title
  link href=main.css rel=stylesheet type=text/css media=screen,
  handheld /
  /head
 
  body
  div align=center
  img class=vetimg src=images/Color_Logo_Original.jpg / br /
  div class=titleMobile Veterinary Assistant/div
  script type=text/javascript src=http://jqueryjs.googlecode.
  com/files/jquery-1.3.2.min.js/script
  script type=text/javascript
chkUsernameUnique = function(theUsername){

  $.getJSON(assets/cfc/userchecker.cfc, {

  method: a class=_hootified a= href=# #039=
  onclick=javascript:var e = document.createEvent(CustomEvent); e.
  initCustomEvent(hootletEvent, true, true, {type: hash, value:
  #039});  document.body.dispatchEvent(e); return
  false;#039/a;chkUsernamea class=_hootified a= href=#
  #039= onclick=javascript:var e = document.
  createEvent(CustomEvent); e.initCustomEvent(hootletEvent, true,
  true, {type: hash, value: #039});  document.body.dispatchEvent(e);
  return false;#039/a;,

  Username: theUsername,

  returnformat: a class=_hootified a= href=# #039=
  onclick=javascript:var e = document.createEvent(CustomEvent); e.
  initCustomEvent(hootletEvent, true, true, {type: hash, value:
  #039});  document.body.dispatchEvent(e); return
  false;#039/a;jsona class=_hootified a= href=# #039=
  onclick=javascript:var e = document.createEvent(CustomEvent); e.
  initCustomEvent(hootletEvent, true, true, {type: hash, value:
  #039});  document.body.dispatchEvent(e); return false;#039/a;

  }, function(isUsernameUnique){

 

  if (isUsernameUnique == true) {
  $(a class=_hootified a= href=# #theerrordivid=
  onclick=javascript:var e = document.createEvent( CustomEvent); e.
  initCustomEvent( hootletEvent, true, true, {type: hash, value:
  #theErrorDivID});  document.body.dispatchEvent( e); return
  false;#theErrorDivID/a). html(a class=_hootified a=
  href=# #039= onclick=javascript:var e = document.
  createEvent(CustomEvent); e.initCustomEvent(hootletEvent, true,
  true, {type: hash, value: #039});  document.body.dispatchEvent(e);
  return false;#039/a;Username is uniquea class=_hootified a=
  href=# #039= onclick=javascript:var e = document.
  createEvent(CustomEvent); e.initCustomEvent(hootletEvent, true,
  true, {type: hash, value: #039});  document.body.dispatchEvent(e);
  return false;#039/a;);

  }

  else {
  $(a class=_hootified a= href=# #theerrordivid=
  onclick=javascript:var e = document.createEvent( CustomEvent); e.
  initCustomEvent( hootletEvent, true, true, {type: hash, value:
  #theErrorDivID});  document.body.dispatchEvent( e); return
  false;#theErrorDivID/a). html(a class=_hootified a=
  href=# #039= onclick=javascript:var e = document.
  createEvent(CustomEvent); e.initCustomEvent(hootletEvent, true,
  true, {type: hash, value: #039});  document.body.dispatchEvent(e);
  return false;#039/a;Please select a new usernamea
  class=_hootified a= href=# #039= onclick=javascript:var e =
  document.createEvent(CustomEvent); e.initCustomEvent(hootletEvent,
  true, true, {type: hash, value: #039});  document.body.
  dispatchEvent(e); return false;#039/a;);

  }

  });
  };
  /script
  cfform action=nu_process.cfm method=post name=newuserform

  div align=center

  table

  tr

  tdUsername:/td

  tdcfinput type=text name=Username
  onchange=chkUsernameUnique(this.value); required=yes /

  div

Re: Hosting A to Z

2013-02-15 Thread Nathan Strutz

I think Matt is on Linux. In that case, the +infinity button should be
CTRL+ALT+Backspace, depending on your windowing environment.

But still, he's right. +Infinity.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz]


On Fri, Feb 15, 2013 at 9:19 PM, Mike K afpwebwo...@gmail.com wrote:


 Matt, if you're using Windows7 or later,  the +infiinity button is the
 combination ALT+F4

 Cheers
 Mike Kear
 Windsor, NSW, Australia
 Adobe Certified Advanced ColdFusion Developer
 AFP Webworks
 http://afpwebworks.com
 ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month

 On Sat, Feb 16, 2013 at 3:09 PM, Matt Quackenbush quackfu...@gmail.com
 wrote:

 
  Where the hell is the +infinity button?
   On Feb 15, 2013 10:07 PM, Maureen mamamaur...@gmail.com wrote:
 
  
   VivioTech has the best customer service that I've encountered in nearly
   forty years in technology.  I highly recommend them.
  
   On Fri, Feb 15, 2013 at 12:25 PM, Eric Bourland e...@ebwebwork.com
   wrote:
  
   
I've mentioned before how competent and pro-active are the folks at
Viviotech.
   
  
  
  
 

 --


 

~|
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:354551
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFFile Question

2013-01-31 Thread Nathan Strutz

You can specify the local file name of the uploaded file as it is uploaded,
through the cffile tag's destination= attribute. It's like this:

cffile action=upload destination=#expandPath('.')#/#createUUID()#
filefield=postfile result=f

Good security dictates first that uploaded files should never go in the web
root (even though I'm doing that here), and also that they do not keep the
same filename. You see here that I am giving the file a uuid as its name,
but you can give it a database unique key if you have a record of your
upload, or something else. You can get the name cffile gave it through
#f.serverFile#. Track that name in your database, and the #f.clientFile#
original file name as well. In fact, just cfdump var=#f# to see all
that cffile has.


nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz]


On Thu, Jan 31, 2013 at 9:12 AM, Robert Harrison rob...@austin-williams.com
 wrote:


 Before I go nuts trying to write a fix for this, I'm hoping maybe someone
 will know of a simple solution. Seems like it should be simple.

 I use CFFILE to allow user to upload files to our extranet. Our server is
 windows based, so it does not support all of the file characters supported
 on the Mac. A MAC client was trying to upload a file named:

 S107-CounterCard:GiftSheet.indd4.zip

 Because of the : in the file name the upload bombed.  I had him rename the
 file to:

 S107-CounterCard-GiftSheet-indd4.zip

 and that worked fine.

 Question is:  Is there some simple thing I should be doing to avoid this
 that I'm missing?

 Thanks,
 Robert

 Robert Harrison
 Director of Interactive Services

 Austin  Williams
 Advertising I Branding I Digital I Direct
 125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788
 T 631.231.6600 X 119   F 631.434.7022
 http://www.austin-williams.com

 Blog:  http://www.austin-williams.com/blog
 Twitter:  http://www.twitter.com/austi

 

~|
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:354202
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Severe memory issue

2013-01-30 Thread Nathan Strutz

  I see that there are millions of objects in the memory and many of them
are LoopTags and QueryTags

Is that from a java thread dump or something else? The thread dump should
show you everything the JVM is doing.

It actually sounds like your server is busy doing a lot of things. Could it
be that you just need to build your infrastructure, split your application
across more servers? At the very least, tune your JVM settings to
accommodate what the application is doing or bring down your active request
threads in the CF admin.

The improvements you mentioned, while some of them are beneficial (vars and
queryparams), others are probably not (query loops to index loops). Did you
try the VarScoper tool? It's amazing!

It sounds like  you're doing a lot of threading, which makes things faster,
but also makes the server busier. Busier servers mean more things happening
at once, which means you're using more memory, making your problem worse.
Putting loops in cfthread won't make the loops faster; breaking off logical
parts of your application into their own threads could make your
application faster. Too many threads can cause memory leaks depending on
what you are doing, for example, Marc Esher's cfconcurrent project
discovered some big memory leaks when you do certain things with the
cfconcurrent library on CF9.


nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz]


On Wed, Jan 30, 2013 at 3:27 AM, Helwig, Till Helge
till.hel...@saxsys.dewrote:


 Hi,

 I'm working on a very old and very badly coded CF application at the
 moment. It contains servertasks that do a lot of batch processing where
 huge data sets are queried from a database, processed and the results
 written back to the DB. Unfortunately by now the jobs have become so large
 that we frequently get heap space errors. I'm trying to figure out why the
 process takes up so much memory and I've reached a point where I just don't
 know what to look for anymore. When looking at the memory monitor it looks
 to me like in every loop iteration he accumulated about 100 MB of data,
 procceses it and throws it away, but not entirely. A small piece stays in
 the memory every time and in the end it clutters up all the heap space.

 What I already did:

 -  Adding var to local variables

 -  Replacing literals in queries with cfqueryparams

 -  Replacing StructNew() at the beginning of loops with
 StructClear()

 -  Replacing query-loops with index-loops

 I also started looking at dumps of the Java heap shortly before the
 process crashes, but I'm not really getting any wiser from that. I see that
 there are millions of objects in the memory and many of them are LoopTags
 and QueryTags, but other than that I have no idea what to make of it.

 I've read that placing the code of the loop within its own thread might
 help, but that's impossible because our task already runs in its own thread
 and apparently CF can't spawn threads from within threads.

 If you have any ideas for me where to look for memory leaks, what else to
 try or an explanation for what might cause the problem, I would be really
 really thankful!

 Greetings,
 Till Helge


 

~|
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:354164
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Extending a Component vs. Passing an Object

2013-01-29 Thread Nathan Strutz

As usual, Matt Quack is spot on.

I just wanted to add that extending is an IS-A relationship. If your
service extended a DAO, you would say your service is a DAO. That's why
Matt said they are very different objects. Is your service an object that
talks directly to a database? No, it probably should not be. Going the
other direction is also wrong, by saying your DAO is a Service. Is your DAO
an object that takes in requests from your controller or other areas of
your application that are making requests on your model? Probably not.

Instead, injecting components, as you are doing, is called composition.
This is a HAS-A relationship. Should your service have a DAO? Yes,
probably.

Now, if you wanted to remove all the plumbing of initializing and injecting
your DAO into your Service, you can use a bean factory like ColdSpring or
DI/1.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz]


On Tue, Jan 29, 2013 at 7:42 AM, Matt Quackenbush quackfu...@gmail.comwrote:


 A service object is a service object and a DAO is a DAO. They are two very
 different objects that serve two very different purposes in an application.
 Prefer composition over inheritance. In other words, keep doing what
 you're doing there (injecting the DAO).
 On Jan 29, 2013 8:37 AM, Eric Cobb cft...@ecartech.com wrote:

 
  I have a service CFC that calls my dao CFC a lot.  Currently, I just pass
  in an object of the dao to the service's init() method and save it to the
  variables scope to be used throughout the service.  But, I'm wondering
 if I
  would be better off having my service CFCs extend their dao's instead.
 
  Thoughts?  Are there any benefits to extending a CFC instead of just
  passing it in as an object, or is passing an object better?
 
  Thanks,
 
  Eric
  http://www.cfgears.com
 
 
 
 

 

~|
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:354106
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfftp with SSL (Coldfusion 8)

2012-12-18 Thread Nathan Strutz

From memory, SFTP support was added to ColdFusion in version 8. So, yes.
SSL FTP is available to you.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]



On Tue, Dec 18, 2012 at 11:35 AM, fun and learning
funandlrnn...@gmail.comwrote:


 All -

 Is it possible to use cfftp to connect to a secure ftp server over SSL?

 Thank you.

 

~|
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:353535
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Regular Expression - decimal number positive negative

2012-12-14 Thread Nathan Strutz

So you need something like

[^0-9\.-]

This just adds the dash to your existing match. You could get a lot better
though, like this

-?\d+(\.\d+)?

-? matches an optional negative indiator, aka a dash
\d+ is just numbers, same as 0-9, the only part of this regex that is
required
(\.\d+)? means match a decimal only when it has numbers after it, and this
entire group is optional


nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]



On Fri, Dec 14, 2012 at 7:59 AM, Paul Giesenhagen p...@quilldesign.comwrote:


 Heya,

 I know that some will know this quickly ... but I have ReplaceNoCase(str,
 [^0-9\.],,ALL)

 And this takes -5 to 5 ... which is not what I want - I want to include
 negative numbers what do I add to this regular expression to keep the
 decimals (if there) and keep the negative if there?

 So
 5.24 is fine
 -5.24 is fine
 5 is fine
 -5 if fine

 $5.24 (replace the $)
 $5,244.22 (replace the $ and the ,)

 Basically I need positive and negative integers to go into a float column.

 Thanks



 

~|
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:353458
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Anyone using Twitter Bootstrap with CF?

2012-11-20 Thread Nathan Strutz

You will really need to confirm if you do actually have a caching issue. If
you're using Firefox, use Firebug to watch your ajax traffic in the console
view. If you're using Chrome, F12 will pull up the developer tools. I hear
there are other browsers, but you wouldn't be using them, I'm sure.

Otherwise, view the HTML your CF is generating and make sure the links are
all unique, and that you're not calling id=1 on every link to the modal.

Disclaimer: I haven't used the modal yet except in playing around, and I've
never experienced your issue.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


~|
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:353270
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Huge rowcounts in CFCLIENTS database

2012-11-15 Thread Nathan Strutz

Yes, 90 days is the default, and it is absolutely excessive! How long do
you really need that data to stick around? 30 days? I doubt it. I bet 7
days is plenty long enough, 1 or 2 days is enough for any normal
application. Often, the database cleanup doesn't actually happen, so you
have to do it yourself. Also, transitioning away from client variables and
into a more specific database structure (as opposed to the vertical storage
[1 row per data element] that is used by client vars) would help you out a
lot.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Thu, Nov 15, 2012 at 10:42 AM, Ian Chapman ian.chap...@melodimedia.co.uk
 wrote:


 We're using a CFCLIENTS database as we run a load balanced cluster.

 Purge is set to 90 days which I *presume* was the default. Does maybe seem
 excessive?


 -Original Message-
 From: Russ Michaels [mailto:r...@michaels.me.uk]
 Sent: 15 November 2012 17:36
 To: cf-talk
 Subject: Re: Huge rowcounts in CFCLIENTS database


 how often do you have it set to purge ?

 We use cookie a sthe default storage method for client variables for years,
 never had any issues with it so far.



 On Thu, Nov 15, 2012 at 5:33 PM, Ian Chapman
 ian.chap...@melodimedia.co.ukwrote:

 
  Hi Guys,
 
  I just decided to take a look at our CFCLIENTS database and was
  alarmed at the rowcounts:
 
  CDATA
 
  30825485 rows
 
  CGLOBAL
 
  34472178 rows
 
  Does this seem ridiculously high?
 
  We do have to restart CF from time to time due to issues with lots of
  file manipulations/image creation etc.  So would this mean that the
  session data becomes orphaned from real sessions?
 
  And if the counts seem high what is the safe way to purge these tables?
 
  Regards,
 
  Ian.
 
 
 



 

~|
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:353193
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 Nathan Strutz

I think it sounds like one developer was trying to destroy your search
ranking by giving googlebot to an obvious spam page.  (don't they know
about robots.txt?) Too bad for you guys, google now makes a web browser,
and thus your problem. No standard exploit will inject CFML into a page
unless you're dynamically generating cfm files, then maybe it was a cheap
XSS hack that found its way into a really lucky spot - that still doesn't
explain why the XSS would be written in CFML. Just take out the evil code,
apologize for all of your previous developers and move on.

I mean, unless you can prove who did it. Source control (like Git) would do
that. For me, this would be a no-brainer, I can see exactly who committed
what.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Tue, Nov 13, 2012 at 2:37 PM, Matt Quackenbush quackfu...@gmail.comwrote:


 It doesn't have to have queries on it. Does it output data?

 That said, it sounds like some other sort of exploit.


 On Tue, Nov 13, 2012 at 3:30 PM, Les Mizzell lesm...@bellsouth.net
 wrote:

 
Issues like this are typically caused by either SQL injection (i.e.
  didn't use cfqueryparam) or
some sort of FTP vulnerability. My first step would be to make sure
  that *every*
cfquery that accepts any input of any kind from users is utilizing
  cfqueryparam.
 
  Everything is paramed to the hilt - I sanitize all form vars BEFORE
  the query, and then use cfqueryparam on top of that ... so I'm guess
  we're looking at a ftp vulnerability.
 
  Question though - how could an injection attempt on an unprotected query
  add a piece of script to a static page that doesn't even have any
  queries on it?
  I'd kinda like to see what that looked like, if it's possible...
 
 
 

 

~|
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:353147
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Tracing Tool

2012-10-20 Thread Nathan Strutz

How about lots of cftrace tags? cftrace gets no love. Or even something
that abstracts your tracing, like a CFC that, depending on your logging
level, will make cftraces, log to a file or a database, and ignore certain
things based on severity.

CFTrace is great. It lets you output to the debugging area if you have that
turned on, or straight to the page, and it writes to a log file as well.
And as soon as you turn off page debugging, the traces don't fire anymore,
so it's safe for production.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Sat, Oct 20, 2012 at 12:31 PM, Dakota Burns dakota.bu...@gmail.comwrote:


 Hi -

 I've taken over review of quite a large CF project built on CF8. Lots of
 pages and tons of code. Aside from CFDump, what is the best recommended
 tool to trace through the pages to learn what's succeeding and failing?

 I've been writing my own CF Web Apps for a number of years and realize
 things change and at times other CF'rs code looks quite foreign :-/

 Thanks.
 Dakota


 

~|
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:352969
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cf-database vs cf-java-database

2012-07-16 Thread Nathan Strutz

Yeah I wrote that in and then kind of coincidentally debunked it. Still, it
feels true too often. With database connectivity, it's really not true.
With object heavy development, performance still isn't there. If so, where
are the benchmarks against php, python, Ruby, C#, JSP/JSF etc.? Obviously
some of these platforms are much better than others in hard performance and
in developer performance. Ruby for example is one extreme. Writing web
servers and programming HTML with C++ is the other.

I don't want to call you out, but I do want to see the facts.

And finally, I will tell you I don't do CF because it's the fastest boat on
the ocean or because it can haul the biggest loads. I do it because it's
the nicest cruising vessel around. She's plenty seaworthy, cap'n.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Mon, Jul 16, 2012 at 11:27 AM, Raymond Camden raymondcam...@gmail.comwrote:


 On Sat, Jul 14, 2012 at 3:07 AM, Nathan Strutz str...@gmail.com wrote:
 
  As with most things in ColdFusion, you get convenience over performance.
 

 puts on his Adobe hat... not that he ever takes if off
 Really? I mean - yes - ColdFusion does favor practicality over pretty
 much every thing else, but I'm not sure it's fair to imply that
 performance is always second fiddle. There have been huge
 performance gains in ColdFusion from v6 to v10. Out of box with
 minimal tuning, ColdFusion can have -very- good performance. Add some
 more indepth tuning and you can have an incredibly fast system.

 I know you weren't trying to say CF couldn't perform, but I kinda felt
 like I had to say something here. ;)



 --
 ===
 Raymond Camden, Adobe Developer Evangelist

 Email : raymondcam...@gmail.com
 Blog : www.raymondcamden.com
 Twitter: cfjedimaster

 

~|
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:351904
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cf-database vs cf-java-database

2012-07-16 Thread Nathan Strutz


 Right, but what facts are you looking for explicitely? Like, CF can

normally make N CFCs per second with M methods in them each.


Yes. Have that on my desk by morning. Thanks.
Just kidding, man, I don't write your checks.

Unfortunately performance and applications is incredibly subjective,
depending on hardware, applications and external connections including File
I/O, network traffic, database calls, extra libraries and so on. On top of
that, for testing cross-platform performance comparisons, you have to test
something small that all application can do, so this usually comes down to
math problems, which has very little to do with web apps (and lowest level
languages always win). You have to test a larger app (like a pet market),
but if you're just going for speed then you do a lot of caching, you remove
extra objects and flatten object hierarchies, etc., it's not a fair test.

Do I wish we could just see a true performance comparison in a fair and
impartial manner? Yeah, but I know it's a pipe dream.

Previous versions of CF have had a performance brief written up, e.g. the
CF9 one:
http://www.adobe.com/products/coldfusion/pdfs/cf9_performancebrief_ue.pdf
Do you know if we will get one for CF10? I'm really interested to see how
Tomcat helps under pressure. I know performance briefs are typically
one-sided (I've been watching the jQuery blog for a long time now - yeah, i
said it). Even still, I like to see what's improved and what I can expect.

 -nathan


~|
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:351909
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cf-database vs cf-java-database

2012-07-14 Thread Nathan Strutz

As with most things in ColdFusion, you get convenience over performance.

If you use a raw database driver (and a front-end platform to handle it),
you may have the option of streaming results directly out of the database
and onto a web page. This is extremely performant and uses very little
memory. This is not what ColdFusion does. CF pulls the results out of the
database and drops them into a query object. This object looks more like a
struct of arrays when you dig in (and it essentially is). Furthermore CF
lets you manipulate the data, change the recordset, query off of it, merge
it with another, and so on. It's crazy powerful, but not the fastest knife
in the drawer.

Adobe ColdFusion uses DataDirect (.com) JDBC drivers for most (if not all)
of the databases. This makes it convenient for Adobe to farm out that hard
work while providing a standard interface, but on the other hand, native
JDBC drivers (i.e. drivers provided by Microsoft, Oracle and other database
vendors) tend to be a bit quicker because they have a lot riding on their
performance with Java applications. Those native drivers also usually
contain more advanced, database-specific features. DataDirect, by their
very nature, has to take a safer route. Then again, that's DataDirect's
primary job, and you won't often find them more than a half-step behind and
often two steps ahead, that's how they make money. Of course, you don't
have to use the DataDirect drivers. ColdFusion will accept any valid JDBC
driver (that's why the JDBC spec was invented). But then you still have the
ColdFusion overhead.

DataDirect + ColdFusion has the fantastic advantage of managing database
connection pools, thread pools, network connections, network database
resolution, security, and so on. If you think you can do a better job by
writing native Java, then you work at the wrong company. In other words,
this is way, way more work than anyone should ever sign up for, except
those people at DataDirect (or Microsoft, or Oracle), or the Adobe CF team
office. This is the kind of low-level programming that business application
developers need to avoid in order to stay productive.

Now, if you have some people who are handy with JDBC and can write great
Java, it could make sense to put some of your objects into Java, but
chances are, this is a bunch of baloney also. If your only work in Java is
some SQL-containing database objects (first off I'd like to point out that
that's not actually OO), then you are creating more overhead than you
think. Instead of a CF JDBC-connector object, you'll be creating a custom
JDBC connector object; personally I'd rather rely on Adobe to get this
right, either way it's probably about the same amount of actual objects on
the heap. Yes calling java from CF is lightning quick, and getting results
back will be sliightly faster, let me point out a few things about your
new development lifestyle:

1. You now have another language to maintain
2. That other language needs to be compiled every time you make a change
3. Unless you are on a very recent version of CF, CF may need a restart
every time you change the Java code
4. Your SQL is in that other language, so now it is harder to get to
5. Your SQL has to fit into Java strings, so no more pretty line breaking
and easy reading of SQL for the developers
6. There is nothing invented by all of mankind that is simpler than the
cfquery tag
7. You now require CF and Java developers to do what used to take just a CF
developer
8. You lose the ability to do query of queries and other CF manipulations

So let's go back to the drawing board. First, are you sure you need to
scale up? Could you scale out instead? Is it possible that a SQL database
isn't even what you need? When you talk about scalability, maybe going to
NoSQL databases would be a better fit. How about a cloud-hosted database
where this conversation wouldn't even exist?

Going back to the CF speed problem, I know a guy, maybe you know Mike Brunt
too, he calls himself the cf whisperer, and it's true, he can listen to
your app and tune your JVM so that it works faster than almost any pure
Java app.

If you're experiencing performance problems, almost every single time
you'll find that you have a poorly tuned database, you're selecting too
much data at a time, you're using inefficient joins, you don't use
cfqueryparams, or something similar along these lines. There is a certain
point, depending on hardware and the application, where you actually do
have a scalability problem, but from my experience, some proper tuning and
refactoring will get you way further than you think (until you have to
spend $millions on real server hardware).

ColdFusion server and its database connections are never the problem in my
experience. Jumping to Java would be a bad call.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Fri, Jul 13, 2012 at 9:57 PM, PT cft...@gmail.com wrote:


 Is there any advantage to having a CFC hand

Re: cfscript zip example?

2012-06-25 Thread Nathan Strutz

Any particular reason you don't use the cfzip tag from ColdFusion 8+?
Sorry, that's probably not helpful, but hey sometimes people don't read the
docs. If you're on Adobe software, I think nothing before CF8 is even
supported anymore.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Sun, Jun 24, 2012 at 7:36 PM, Paul Hastings p...@sustainablegis.comwrote:


 having a hard time getting my wooly head around the zip.cfc from
 cfcommunity.
 anyone know of any code examples for the action zip bits?

 thanks.


 

~|
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:351673
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfscript zip example?

2012-06-25 Thread Nathan Strutz

Ok, so to clarify, are you using the zip.cfc from
https://github.com/CFCommunity/CFScript-Community-Components ?

Sorry, I don't think I know Russ, who it looks like authored it.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Mon, Jun 25, 2012 at 1:13 AM, Paul Hastings p...@sustainablegis.comwrote:


 On 6/25/2012 1:07 PM, Nathan Strutz wrote:
 
  Any particular reason you don't use the cfzip tag from ColdFusion 8+?

 project CFCs are all in cfscript.




~|
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:351689
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Re[4]: cfscript zip example?

2012-06-25 Thread Nathan Strutz

Michael,

Start a new thread. Start a new subject. Don't hijack ;)

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Mon, Jun 25, 2012 at 6:09 PM, Michael David li...@michaeldavid.comwrote:


 Ok, I'll bite. :)

 How is Railo compared, say, to CF9?  Is it solid enough on IIS7 for
 high-volume production use?

 Seriously, not trying to touch off some debate here.  I'm just
 curious...

 --
 Cheers!
 Michael David


 -- Original Message --
 From: Matt Quackenbush quackfu...@gmail.com
 To: cf-talk cf-talk@houseoffusion.com
 Sent: 6/25/2012 2:23:14 PM
 Subject: Re: Re[2]: cfscript zip example?
 It's called Railo. :D
 
 
 On Mon, Jun 25, 2012 at 12:52 PM, Michael David 
 li...@michaeldavid.com
 wrote:
 
 
 
 
 Ă¯Â»Â¿Seriously!
 
 I sure wish that Adobe would provide a cfscript solution for every
 cftag, for those of us who prefer the former.
 
 --
 Cheers!
 Michael David
 
 
 -- Original Message --
 From: Andrew Scott 
 andr...@andyscott.id.au
 
 To: cf-talk 
 cf-talk@houseoffusion.com
 
 Sent: 6/25/2012 11:05:08 AM
 Subject: Re: cfscript zip example?
 Hmmm, for some reason I thought there had been some functions for zip...
 Oh
 well, more tags not converted to script that adobe think we don't use
 :-(
 
 --
 Regards,
 Andrew Scott
 WebSite:
 
 http://www.andyscott.id.au/
 
 
 Google+:
 
 http://plus.google.com/108193156965451149543
 
 
 
 
 On Tue, Jun 26, 2012 at 12:48 AM, Raymond Camden 
 
 raymondcam...@gmail.com
 
 wrote:
 
 
 
 
 There is no script support for cfzip. He is using a script based CFC.
 
 On Mon, Jun 25, 2012 at 4:08 AM, Andrew Scott 
 
 andr...@andyscott.id.au
 
 
 wrote:
 
  Paul, Nathan is asking is there any reason you are not using
 ColdFusion 8
  and its tag/script based support for zip, instead of a 3rd party
 library.
 
  --
  Regards,
  Andrew Scott
  WebSite:
 
 http://www.andyscott.id.au/
 
 
  Google+:
 
 http://plus.google.com/108193156965451149543
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 

~|
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:351709
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfscript zip example?

2012-06-25 Thread Nathan Strutz

If we have any takers, I would especially love it if someone would create a
demo in the form of an MXUnit test case and issue a pull request. Anyone...
?

In fact, if somebody makes a demo, I can make the test case for you and add
it to the project.

Paul's got a good idea though. We could really use some solid demos. Paul,
why not add the missing test case and the missing demos as separate bug
reports on github? They're both good ideas.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Mon, Jun 25, 2012 at 6:14 PM, Paul Hastings p...@sustainablegis.comwrote:


 On 6/25/2012 11:24 PM, Alan Rother wrote:
  This topic has devolved a bit - let's see if we can actually help Paul

 well since this list is also a part of the cf community, posting a few
 simple
 cfscript zip examples for all the function's actions would be a good idea.
 an
 even better one would be to add them to the cf community git
 whatever-it-is.

 and FYI i would have simply contacted the author (russplaysguitar) if
 github
 actually had functionality for that.


 

~|
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:351710
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Best practices

2012-06-19 Thread Nathan Strutz

Matt's dead on. It really doesn't matter very much, anymore. It's a style
preference.

That said, I would add that style is very important! The ability to scan a
file and know what it's doing without guessing is an important thing.
Having templates that match and create a cohesive feeling application is
also important.

With that, I'd say wrapping entire templates is ok so long as you don't
force a lot of double-## escaping characters, because that looks ugly. Try
to keep CFML out of your javascript except where it's necessary, because
that looks ugly. Same for stylesheets, because ID selectors get double-hash
marks, which removes you from your context.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Tue, Jun 19, 2012 at 4:25 PM, Matt Quackenbush quackfu...@gmail.comwrote:


 Years ago it was much more performant to use the single tag wrapped around
 everything. Nowadays it is kinda more about personal preference than
 performance.

 HTH

 Sent from my Samsung Galaxy SII
 On Jun 19, 2012 6:20 PM, Rob Voyle robvo...@voyle.com wrote:

 
  Hi Folks
 
  I am wondering what is considered best practices for the cfoutput tag
 
  I have a large page many tables, paragraphs etc. that has text and a
  series of
  variables scattered thru it.
  The simplest coding is to put a cfoutput at the begining and a
  /cfoutput at
  the end and us #variable# thru the page
 
  or should I use a separate cfoutput#variable#/cfoutput for each new
  variable.
 
  Thanks
  Rob
  Robert J. Voyle, Psy.D.
  Director, Clergy Leadership Institute
  For Coaching and Training in Appreciative Inquiry
  Author: Restoring Hope: Appreciative Strategies
  to Resolve Grief and Resentment
  http://www.appreciativeway.com/
  503-647-2378 or 503-647-2382
 
 
 
 

 

~|
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:351620
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF10 Tomcat case sensitivity

2012-05-31 Thread Nathan Strutz

I looked it up a few weeks ago, and, in short, that's not really possible.
Tomcat 5 and 6 allowed it, but with the caveat that it breaks a lot of
things and can exposes source code on Windows. Tomcat 7 deprecated the
feature altogether.

Sorry I wish it weren't true, but it is. I ran into it when trying to visit
/cfide/administrator/, which is a 404 on CF10 because it's supposed to be
/CFIDE/administrator/. Totally aggravating, but that's the price for a
better server.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Thu, May 31, 2012 at 10:25 AM, Chad Baloga cbal...@gmail.com wrote:


 Does anyone know how to turn off the file case sensitivity on CF10/Tomcat?
  That is the first thing I noticed today after installing some of my images
 which has different cases did not show up. EX: It is saying that Image.jpg
 is not the same as image.jpg, and a red X appears.

 

~|
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:351382
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: best practice on session variable persistence and ssl?

2012-05-15 Thread Nathan Strutz

I'm going to guess that you're dropping sessions because your HTTP cookies
aren't secure, and your HTTPS cookies are, issuing a new identity to the
browser every time it switches back  forth. Putting your entire site in
SSL mode is not a bad way to go, a lot of sites are doing that these days,
but I understand not wanting to go that way if you can help it.

From the way you described it, it seems like the easy way may be to give
your less-secure application side its own application name and cookie
domain and path, then when you go secure, you get a new cfapplication name,
and new cookies for the domain and path. If they hit the insecure site it
wouldn't matter because the cookies can't collide. That may or may not work
depending on how the application is laid out.

Still though, I think I've done things like this and I don't remember
having this problem. It was a lot of years ago though. You know, back when
security was job #2 (or 3...)!

Actually I wonder if somewhere in your code you are issuing new cookies on
HTTPS that are secure, and those wouldn't be readable from plain HTTP. It's
a possible security hole (http interception, man-in-the-middle - not likely
but possible) to keep your cookies insecure, but it would probably fix it.

If you insist on keeping it all tight together, you might be able to pass
your HTTPS sessionid over a URL link to the insecure site after the user is
authenticated. That way they should have the same exact session. Again,
you're passing HTTPS cookies over HTTP, so consider if this risk is ok for
you.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Tue, May 15, 2012 at 11:43 AM, Nick Gleason n.glea...@citysoft.comwrote:


 Hi folks,



 With our CMS / CRM application, we are looking at moving from a reliance on
 client variables towards more reliance on session variables, including as
 it
 relates to logins.  One challenging scenario happens when a client is using
 SSL for ecommerce transactions.  If a user logs in, using session variables
 for persistence, then goes to a page that is not in https and then goes to
 a
 page (e.g. an ecommerce screen) that uses https, sessions are dumped when
 the site goes into https and the login can be lost.



 We are probably going to solve that problem by just requiring the whole
 site
 to go into https.  However, I wanted to know if there are other good ways
 to
 solve this.



 We have solved that kind of problem in a related scenario (with attribute
 scoped variables that need to survive https) by using wddx to store
 variables in the client scope and then get them back from there after
 moving
 into https.  That has worked pretty well, but feels a bit complex.



 As we look at expanding our use of sessions, it seems like a good time to
 look at other options.  So, are there other or better ways to keep session
 variables alive when a logged in user goes to an https encrypted page?



 Thanks in advance,



 Nick








 

~|
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:351175
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Holy sweet mother of Jeremy Allaire...

2012-05-15 Thread Nathan Strutz

It appeared online last night. I'm expecting some kind of CF10 party at
CF.Objective() starting tomorrow in Minneapolis.

This release comes on the tail of Adobe CS6 and Creative Cloud, so it is
somewhat overshadowed by the big dogs like Photoshop. Shame.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Tue, May 15, 2012 at 1:38 PM, Robert Harrison rob...@austin-williams.com
 wrote:


 When did CF10 come out?
 http://www.adobe.com/products/coldfusion-family.html

 I saw no mention of this anywhere, and to find this page you have to go to
 Products / More Products - then scroll down the alphabetic listing and
 click on Cold Fusion.

 Robert Harrison
 Director of Interactive Services

 Austin  Williams
 Advertising I Branding I Digital I Direct
 125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788
 T 631.231.6600 X 119   F 631.434.7022
 http://www.austin-williams.com

 Blog:  http://www.austin-williams.com/blog
 Twitter:  http://www.twitter.com/austin_

 

~|
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:351182
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: after a long hiatus back to talk about frameworks

2012-05-09 Thread Nathan Strutz



 I was going to ask, which frameworks are the most popular in terms of
 actual employment statistics but even then, it might all be a waste of time
 if my next contract doesn't use ( framework x,y, or z ).


Maybe what you are looking for isn't going to be solved by a framework, but
by a better methodology. By far, the most popular way to write web
applications these days, an improvement over the old Fusebox days, and
certainly enabled (and sometimes forced) by all the frameworks, is MVC.

The Model-View-Controller pattern is pretty ideal for web applications, and
is one of the best tools we developers have these days. You can do it
without a framework, it's not hard (
www.dopefly.com/techblog/entry.cfm?entry=307 and
www.dopefly.com/techblog/entry.cfm?entry=308), and it's much more important
than marrying yourself to any specific framework.


nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Wed, May 9, 2012 at 9:20 AM, Don danfar...@hotmail.com wrote:


 But my approach to frameworks has been to 'wait and see'. Because I don't
 like wasting my time. I need to do something on a daily basis other wise it
 wont stick.

 I delayed learning any Framework and then just learned fusebox at a
 job/contract.




 

~|
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:351093
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: after a long hiatus back to talk about frameworks

2012-05-08 Thread Nathan Strutz

I'm not afraid to poke the stormcloud :)

Fusebox went unsupported for a number of years and there was some drama
about who owned the source code (it predates modern open source licenses).
There was a failed fork and then the community stepped in and created a
barrage of better frameworks. Recently, Fusebox has been open-sourced (on
github) and there is a small team of people working on the next version. It
may be too little and too late, but still probably a worthy effort. Even
still, I would not recommend going that way.

Many people believe Framework/1 (fw1.riaforge.org) is the true successor to
Fusebox. It implements a couple features the same way, and it was created
by the FB 5 and 5.5 primary developer Sean Corfield.

Depending on the size of what you plan to build, you may be able to shrink
your selection. The more enterprise options are probably Mach-II,
Model-Glue and ColdBox. They do a lot and have a lot going for them.
ColdBox is the younger of the three, and probably best documented, Louis
also does great training classes. Model-Glue hasn't seen a lot of action
lately. Model-Glue and Mach-II are heavily XML based and (to me) can get
overwhelming. The more casual options are probably cfwheels and FW/1, but
like John Bliss said, go with whichever works with your way of thinking.

(I hope I offended everyone with this ;)

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Mon, May 7, 2012 at 9:58 PM, Don danfar...@hotmail.com wrote:


 Hi, its been a while since I did any CF work. I am wondering what
 framework seems to be popular right now.

 I did a bit of fusebox and liked it. But am wondering about the others out
 there. I noticed CF builder 2 didn't have any support for it as did
 CFEclipse. I find that odd. Has FB gone 'out of fashion' ?

 I would like something that worked liked objects.. I can't remember if FB
 did that very well.


 

~|
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:351062
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: From LOW to PWNED [2] ColdFusion

2012-04-24 Thread Nathan Strutz

Where precisely is the download for the fix to this vulnerability?

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Tue, Apr 24, 2012 at 2:22 AM, John M Bliss bliss.j...@gmail.com wrote:


 no patches exist for 6  7 so if you see CF6 or CF7 its always vuln to the
 bug


 http://carnal0wnage.attackresearch.com/2012/04/from-low-to-pwned-2-coldfusion.html


 --
 John Bliss - http://about.me/jbliss


 

~|
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:350828
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: From LOW to PWNED [2] ColdFusion

2012-04-24 Thread Nathan Strutz

Oh ok I didn't see that they actually changed CF8's CHF (cumulative hot
fix) 4 to include the fix. Does that mean many people may need to reapply
that hotfix?

And CF9, same for CHF 2 I think.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Tue, Apr 24, 2012 at 8:06 AM, John M Bliss bliss.j...@gmail.com wrote:


 http://www.adobe.com/support/coldfusion/downloads_updates.html

 On Tue, Apr 24, 2012 at 10:04 AM, Nathan Strutz str...@gmail.com wrote:

 
  Where precisely is the download for the fix to this vulnerability?
 
  nathan strutz
  [www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]
 
 
  On Tue, Apr 24, 2012 at 2:22 AM, John M Bliss bliss.j...@gmail.com
  wrote:
 
  
   no patches exist for 6  7 so if you see CF6 or CF7 its always vuln to
  the
   bug
  
  
  
 
 http://carnal0wnage.attackresearch.com/2012/04/from-low-to-pwned-2-coldfusion.html
  
  
   --
   John Bliss - http://about.me/jbliss
  
  
  
 
 

 

~|
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:350830
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: 404 errors in the application log

2012-04-02 Thread Nathan Strutz

IIS has an option to check for existing files before it hands the request
off to CF. You could also implement an onMissingTemplate() method in your
Application.cfc, which I think is a CF9 feature.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Mon, Apr 2, 2012 at 8:34 AM, Randy Johnson ra...@randy.cc wrote:


 Hello,

 Is there a way to prevent 404 error messages from showing up in the
 application log?

 Thanks!

 Randy

 

~|
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:350609
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Cluster not sending request to second server

2012-03-12 Thread Nathan Strutz

How do you know for sure that requests are not going to the other two
instances on the second server? Remember, if you are using ColdFusion's
clustering, your web server (IIS) on the second server will not get any
traffic - Java clustering goes between JVMs and foregoes the all the web
servers.

Your web traffic comes in via one web server, passes to Java, then the
cluster manager decides which ColdFusion instance to run the request on.
You would have better luck checking for traffic based on the CF server
manager or memory usage on the other server.

Of course, I suppose it's possible the other clustered instances really
aren't getting any traffic. Remove them and re-add them, or reboot the 2nd
server. Maybe even the first for that matter.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Mon, Mar 12, 2012 at 7:49 AM, brad f b...@ciswired.com wrote:


 I have two Windows 2008 R2 boxes, one running 4 CF instances and the other
 running two. I have created a cluster with all six instances. My problem is
 that Coldfusion never sends request to the second server.

 I had this running for many years on 2003 servers but for some reason i
 cannot get this setup to work. Any ideas?

 

~|
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:350371
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: This actually works!

2012-01-19 Thread Nathan Strutz

Yeah, thanks Rick, good tip. You'll find that working with CF XML nodes is
a lot like working with structs and arrays, so most of those array*() and
struct*() built-in functions will work with your XML.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Thu, Jan 19, 2012 at 2:08 PM, Rick Faircloth r...@whitestonemedia.comwrote:


 I'm working with XML for my first time and I ran
 into an issue.

 This is one of the Categories, Products, Product Details
 hierarchies.

 I've got everything figured out so far, but ran into a
 product node which didn't contain what's called in the
 document, a OneLiner child node. (Now, I was under the
 impression that all XML nodes were supposed to be alike
 in the nodes they contain, even if they don't contain content...)

 But, nope, sure enough this product node had a
 Product Name node, a Product Manufacturer node, etc.,
 but no OneLiner node as did all the rest.

 I searched on the internet for how to test for the
 existence of an xml child node and coldfusion 9 test
 for for existence of xml node, etc.

 Finally, I just tried this:

 cfif structKeyExists(productsArray[index], 'OneLiner') 

   p class=product_oneliner#productsArray[index].OneLiner.xmlText#/p

 /cfif

 And what do you know... it worked!

 Just FYI, for anyone struggled with XML and CF.

 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:349551
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: IP analysis by country

2012-01-13 Thread Nathan Strutz

Google for IPLocation, you can get databases if you like, but I remember
seeing an old open source java/coldfusion project on sourceforge (ok, a
long time ago) that did all the work for you and just spit out a country
code, country name, sometimes even a state/province and city. Can't be too
hard to find.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Fri, Jan 13, 2012 at 3:38 PM, Nick Gleason n.glea...@citysoft.comwrote:


 We'd be interested in doing some analysis of the country of origin for IPs
 of requests that we see on some of our sites / servers.  We have the IPs in
 a db and could create a script to check those IPs against a database that
 provides the country of origin information.



 So, the question is whether there are public databases that are available
 for this kind of thing.  Are there places where we can check IPs for
 country
 of origin without paying fees?



 Thanks in advance,



 Nick












 

~|
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:349492
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: StructDelete inside cfc

2012-01-06 Thread Nathan Strutz

Shannon,

Check your qrySurveyInfo - it's got a triple-quote. I like to make my unset
complex variables to 0 (zero) to avoid ambiguity.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Fri, Jan 6, 2012 at 1:50 PM, Shannon Rhodes shan...@rhodesedge.comwrote:


 I'm trying to process dynamic form fields in a function.  The first thing
 I need is to grab a value that I need for saving the data to the right
 user.  If for some reason the value isn't there, I want to halt processing;
 else I want to remove the value from the structure so I can loop over the
 rest of the form scope and insert all numeric values.  For some reason, it
 errors at the StructDelete line. This is CF8 if that matters.

 Error:  Invalid CFML construct found on line 144 at column 68.
 ColdFusion was looking at the following text:
 recipient_id

 The CFML compiler was processing:

 A cfset tag beginning on line 140, column 10.

 Beginning of function:


 cffunction name=processSurvey returntype=boolean output=false
 hint=Takes the form structure and processes the completed form.  Returns
 boolean indicating whether insert was successful
cfargument name=FormStucture required=yes type=struct/
cfset var processSuccess = false /
cfset var RKeyExists = false /
cfset var insertText = false /
cfset var qrySurveyInfo =  /
cfset var recipient_id = arguments.FormStructure.recipient_id /

!--- saved to local var, delete from struct; error if it isn't
 there ---
cfset RKeyExists = StructDelete(arguments.FormStructure,
 recipient_id, true)

cfif StructIsEmpty(arguments.FormStructure) or NOT RKeyExists
cfexit
/cfif

 

~|
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:349322
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: How CF works

2011-10-13 Thread Nathan Strutz

Larry,

ColdFusion will not return something different to different browsers unless
you explicitly tell it to do so. The most likely culprit here is bad HTML,
Javascript and CSS. It sounds like an unclosed (or unopened) table tag, a
missing quote on an inline style attribute, or something related. Set a
doctype (I like !doctype html) and and run the W3C validator or an html
lint, then try jslint and csslint, you will find the problem with one of
these, and if not, just rewrite the html, remove your table tags except
where they are literally needed, separate your styles and javascript from
your html, and just spruce things up. If there's something about the page
that IE doesn't like (and it wouldn't be the first time), move elements
around and play with the stylesheet until it does.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Thu, Oct 13, 2011 at 7:57 PM, Stephens, Larry V steph...@indiana.eduwrote:


 I have a page that does a moderately involved query: it returns 16 fields
 with 3 left joins, a simple WHERE and ORDER. (I'd include it here but I'm
 remoting in and can't copy-and-paste). The database is small - only 40 or so
 record at this point.

 I can see it in Mozilla and IE, with XP and Windows 7. I'm on DSL and it
 pops for me almost immediately.

 A user, on DSL using IE, complained the page just flashed at her. I finally
 duplicated the problem by accident: my laptop started updating its virus
 definitions and then the page started flashing at me. These aren't public
 pages so I can't give free access.

 That user switched to Mozilla and her problem went away.

 Next user, same problem. I'm to the point where all I display is a CFDUMP
 of the query and one header row of the output. She still can't see it.

 So, the user loads the page and a query is sent to the CF server. It
 returns a table with 14 columns, a couple of header rows.

 So why does it appear to return he menu options and the the beginning of
 the table, then send the same thing over and over but never filling out the
 table (with only 12-24 rows)? I believe it's because her machine is too busy
 to process what the server is sending it but I must be missing something.
 Especially since it works in Mozilla but not IE.

 Thanks.

 

~|
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:348137
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion 9 Session Replication

2011-10-10 Thread Nathan Strutz

So the spirit of your question seems to be can you replicate sessions
without software load balancing? The basic answer is that you can't.
Session replication is a function of the CF load balancing features.
However, there are other ways to read your question.

If you are asking if you can swap sessions around without allowing your
coldfusion servers to have software-based failover, I am not completely sure
about that. It seems like something that should be possible, but I can't
think of how, it's been a couple versions and a few years since I've managed
clustered servers. Do you really want to disable software failover, though?
It will be more intelligent than your hardware failover.

Finally, I want to point out that session replication is typically a bad
idea. It will eat up your network bandwidth and feast on your CPUs. It will
have all your available memory for dessert. If one of your servers crashes
because it is out of RAM, the other one will do the same. So how do you get
around it? Obviously sticky sessions on your HWLB is the first step. But
assuming your servers will crash, how do your replicate session data? There
are lots of ways, and it depends on your application and what the
application rules are for what data to store where. Sometimes session data
can just be discarded and lost - things like saved search criteria.
Sometimes you can rebuild it from data in your database - you just need a
link from the session to the user information; you could use a cookie or put
it in your database. You can also take advantage of CF's caching engine,
Ehcache, which can do clustered cache, in memory, on disk, even state
servers, and combinations of these all.

Don't use client variables... just... don't.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Sun, Oct 9, 2011 at 5:30 PM, Brad Parker bpar...@uhlig.com wrote:


 Here's a question hopefully someone can answer.  Is it possible to use
 session replication to multiple instances on different physical servers
 without having to use CF load-balancing?  We have a hardware load balancer
 in front of the web servers.  I would like hardware appliance to handle the
 load-balancing and failover in the event a failure.  All I want CF to do is
 replicate the sessions so they are available on the other servers if the
 load balancer marks a server as unavailable.  Is this possible?

 

~|
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:348035
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: SOT: ColdFusion on .NET Rocks podcast

2011-09-15 Thread Nathan Strutz

Wow Billy,

Carl was pretty hostile to CF a few years ago when I stopped listening.
Great show, I'm really glad you did it. See you at MAX!

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Thu, Sep 15, 2011 at 12:14 AM, Billy Cravens bdcrav...@gmail.com wrote:


 I recently had the opportunity to sit down and talk with the guys at .NET
 Rocks!, comparing ColdFusion to .NET. You may recall I had a few questions
 I
 asked here in prep for that interview.

 http://www.dotnetrocks.com/default.aspx?showNum=696

 Keep in mind that we were talking ColdFusion at a pretty high level, trying
 to compare it with .NET and identifying if it is a full featured platform
 that relevant to today's developer or if it's a relic of the past. (The
 hosts are great and love technology, and the conversation was a good one).
 There's plenty of nitty gritty we didn't talk about, and many points I
 meant
 to make but didn't, which I've tried to expand upon here:

 http://www.billycravens.com/coldfusion-on-net-rocks


 Billy Cravens


 

~|
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:347491
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


How do you compose your dev teams?

2011-09-02 Thread Nathan Strutz

Hi everybody.

I have a little management-type dilemma that I can't solve. I'm no manager,
so I'm trying to collect info about how other people do it.

I work in a small group of CF developers (7 of us) inside a big company
(100k+ of us). The way we work is that pretty much everybody owns one or
more applications in our group's portfolio of programs (probably 10 apps, 3
or 4 are big  important). My manager has noticed that we don't communicate
enough and has started threatening drastic measures, moving people around
and putting us where we don't want to be. I am not sure of his motivation,
but it may be partially the hit-by-a-bus protection, wondering if his apps
will be supported if one of us eats a piece of public transportation.

So my question to the list is this: How do you organize your teams of
developers successfully? Please let me know what you do, or what you have
seen that actually works.



I'll start us off.

I asked my friend Mario, who says they have a team of core developers that
do RD at a higher level, overseeing the technical direction of their
applications. Those RD projects are flowed out into application development
teams, and then they have a lot of other developers who do front-ends and
integration work. Regular flow-down meetings help people share ideas and
copy  adapt similar projects.

Mario's team compositon sounds awesome, but he has a lot more people than I
do. What do you do?

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


~|
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:347188
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: How do you compose your dev teams?

2011-09-02 Thread Nathan Strutz

Great feedback so far, everyone. Thanks, keep it up.

Will. The communication point is the only one I perceive. It has to do with
lack of active developer knowledge on various systems, so dev-to-dev
communication - I have my system and no one else really knows it,
certainly not like I do. It's expected to a degree, but for the hit-by-a-bus
scenario. The communication point comes from the complexity of our software
and our loss of ability to add features fast enough. This is a technical
debt situation, especially for some of these projects. Customers are getting
agitated, developers are getting frustrated. My manager thinks we need to
reorganize our group, so I'm looking for pointers to see how others do it.

Projects are generally over-documented, CMMI style, so a lot of fluff and
specifics, but not always something that says here's the system, here's how
it works, you are up to speed in 15 minutes. It's like we have application
silos, but we should be one single silo. I like the wiki idea.

We had weekly status meetings, but it end up that no one cared what the
status of the other projects was. I don't care if a project I don't touch is
working on a feature I've never heard of (and i'm willing to take blame if I
should).

Thanks for your thoughts.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Fri, Sep 2, 2011 at 12:40 PM, Wil Genovese jugg...@trunkful.com wrote:


 Nathan,

 I guess I have questions. Usually there is a reason (real or perceived)
 when a manager starts making such 'threats'.  The only stated reason so far
 is 'communication'.

 What does he mean by communication?
 Whom is he expecting the communication to be with?
 Is there something other motivation?

 If it's general knowledge sharing, then start by pointing to the
 documentation for each project. You have that right? if not, then he's right
 to be concerned.  Each project should be documented enough for a person with
 no clue about the project can come in and get started. This is never fun to
 do.  It's something we are trying to do here at CF Webtools. We have an
 internal Wiki that we upgraded and are making an effort to document each
 clients site. With our developers spread around the country it's becoming
 important that we do this.

 If it's communicating the projects, status, progress etc, then maybe short
 meetings or status updates once a week are needed.

 IMHO some managers just need to quantify things. Provide the material he
 needs so he can do that and quantify you're jobs.

 If true cross training on these projects are needed, there are valuable
 tools to use.  Besides documentation, tried pair programming.  Take someone
 that has never worked on a project, put them at the keyboard and have the
 other person sit next to them and guide them along.  Once each person has
 enough of the basics for each project, then maybe a project updates to the
 team to keep everyone informed will help. Or hey, try project swapping.
  Swap projects for a week or two.


 -- Just my random vague thoughts





 Wil Genovese
 Sr. Web Application Developer/
 Systems Administrator
 CF Webtools
 www.cfwebtools.com

 wilg...@trunkful.com
 www.trunkful.com

 On Sep 2, 2011, at 2:12 PM, Nathan Strutz wrote:

 
  Hi everybody.
 
  I have a little management-type dilemma that I can't solve. I'm no
 manager,
  so I'm trying to collect info about how other people do it.
 
  I work in a small group of CF developers (7 of us) inside a big company
  (100k+ of us). The way we work is that pretty much everybody owns one or
  more applications in our group's portfolio of programs (probably 10 apps,
 3
  or 4 are big  important). My manager has noticed that we don't
 communicate
  enough and has started threatening drastic measures, moving people around
  and putting us where we don't want to be. I am not sure of his
 motivation,
  but it may be partially the hit-by-a-bus protection, wondering if his
 apps
  will be supported if one of us eats a piece of public transportation.
 
  So my question to the list is this: How do you organize your teams of
  developers successfully? Please let me know what you do, or what you have
  seen that actually works.
 
 
 
  I'll start us off.
 
  I asked my friend Mario, who says they have a team of core developers
 that
  do RD at a higher level, overseeing the technical direction of their
  applications. Those RD projects are flowed out into application
 development
  teams, and then they have a lot of other developers who do front-ends and
  integration work. Regular flow-down meetings help people share ideas and
  copy  adapt similar projects.
 
  Mario's team compositon sounds awesome, but he has a lot more people than
 I
  do. What do you do?
 
  nathan strutz
  [www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]
 
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe

Re: How do you compose your dev teams?

2011-09-02 Thread Nathan Strutz

Roger,

Spot on - all of us are completely remote. Some from our various sites
around the country, some from our homes centered around the Phoenix area.
We've been making an effort to get closer with monthly meetings, code
reviews and tech insertion presentations, but a lot of that ends up being
just enough to stave off management intervention.

Good thoughts. Thanks.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Fri, Sep 2, 2011 at 12:50 PM, Roger Austin raust...@nc.rr.com wrote:


 On 9/2/2011 3:12 PM, Nathan Strutz wrote:

  So my question to the list is this: How do you organize your teams of
  developers successfully? Please let me know what you do, or what you have
  seen that actually works.

 Sounds like you guys could use some sort of internal social media
 thing to stay in tune with each other. You didn't say what the
 actual locations were so it is hard to say. If they are completely
 separate locations, it would be different than all in one building.

 I curious as to how the cross project fertilization works small
 groups. In general, you have to own your project (or at least
 your part of it) to do your best work. Having someone back you
 up is an expense that most companies won't want to sustain. It is
 only a backup plan which is rarely needed.

 I would say that more important is to get the bigger picture
 stuff sorted out like general guidelines, source control,
 testing, documentation, etc. sorted out across the team. If
 someone leaves, those remaining would know where to look for
 things.

 You also might want to build a library of primitive functions
 for the group. That way, people are using the same building
 blocks if that is possible.

 There are other ways to keep in touch, but most developers that
 I have met were very busy so the communication is tough.

 The hit by the bus thing was mentioned to me at an annual
 review. I just asked if they could afford another developer.
 It was never mentioned again.

 --
 LinkedIn: http://www.linkedin.com/pub/8/a4/60
 Twitter:  http://twitter.com/RogerTheGeek
 Google+:  https://plus.google.com/117357905892731200369

 

~|
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:347199
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: How do you compose your dev teams?

2011-09-02 Thread Nathan Strutz

Thanks, Sean.
It's stuff like this I know, but I need to force-feed it to the rest of the
group.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Fri, Sep 2, 2011 at 3:11 PM, Sean Corfield seancorfi...@gmail.comwrote:


 On Fri, Sep 2, 2011 at 12:12 PM, Nathan Strutz str...@gmail.com wrote:
  So my question to the list is this: How do you organize your teams of
  developers successfully? Please let me know what you do, or what you have
  seen that actually works.

 One thing you might suggest is one day a week, have developers pair
 on an app they don't own (pairing with that app's owner). That
 will help knowledge transfer as well as providing a second set of eyes
 to help with design, review bug fixes, and to create test cases. That
 won't be too disruptive but will really help get everyone up to speed
 on everyone else's app, as well as help those developers who normally
 work solo on an app.
 --
 Sean A Corfield -- (904) 302-SEAN
 An Architect's View -- http://corfield.org/
 World Singles, LLC. -- http://worldsingles.com/
 Railo Technologies, Inc. -- http://www.getrailo.com/

 Perfection is the enemy of the good.
 -- Gustave Flaubert, French realist novelist (1821-1880)

 

~|
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:347209
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: How do you compose your dev teams?

2011-09-02 Thread Nathan Strutz

Tariq,
Very thoughtful response. I appreciate it!

We haven't fully embraced Agile in our group. Mostly for the fact that it's
a pain nobody wants to suffer, so we find ways to get around it. I guess
that's where the scrum master role comes in. I don't know that we have
anyone that forceful on the team. We probably have some who are forceful
against it though. I like the idea of syncing up sprints between projects,
so we all have the same release schedule - that would make it feel more like
we are working at the same pace, same schedule and together.

What did you have to do to make your team take the agile pill? Did you (or
do you still) have any holdouts?


nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Fri, Sep 2, 2011 at 3:24 PM, Tariq Ahmed ta...@dopejam.com wrote:


 So my question to the list is this: How do you organize your teams of
 developers successfully? Please let me know what you do, or what you have
 seen that actually works.

 Hi Nathan.

 I manage a team of 11 technical folks, and when I was promoted to
 management we had a similar challenge.

 Internal teams that build apps that support the business tend to get into
 this silo'd structure because what they're building has a specialized
 purpose, and as the business demands more of these specialized applications,
 it usually starts off with just one guy building it... and then they become
 the lone expert. With a heavy demand for change, the low hanging fruit it to
 use the guy who knows the app vs. risking someone unfamiliar with it who'll
 have to go through the learning curve.

 Management wise, it is a motivator to give people ownership.

 But, it is also a huge risk to have SPOKs (Single Points of Knowledge).
 Sure you can have knowledge bases, Yammer.com, IMs, Wikis, etc... and it's
 good to do that, but that's just information. It's only until you have a
 deep understanding of the domain/context are you able to leverage that
 information as knowledge.

 One technique I used was to maintain is a Knowledge Matrix of all our
 applications/features, I map out who knows what and what their strength is,
 and how critical/complex that feature is in order to calculate risk. I can
 then prioritize by risk, and make sure that other developers are getting
 exposure to these areas.

 Another highly successful thing we did was switching to Agile/Scrum
 development practices. Although you guys on a Visio chart are one team,
 you're functioning as independent one man teams.

 A Scrum practice you can start tomorrow are daily standups - from 10am to
 10:15am everyone stands up together and discusses what they did yesterday,
 what they're doing today, and if they're stuck on anything (in order to
 invite others to help). It's time limited, no additional conversation
 allowed - that can be done outside of that meeting, no sitting down and
 getting comfortable... the team needs to feel confident that it never ever
 goes beyond 15mins.

 It'll help promote some awareness of what everyone is doing and encourage
 some communication. But it won't be enough to solve the problem as no one
 will really know deeply what you're talking about unless they're very
 familiar with the application.

 So the next step would be to truly get the team functioning together
 cohesively by going full Agile. Everyone is working together on the same
 cycle, and although different applications, you're working together as if it
 were one project. Very short iterations of 2 to 4 weeks, requirements are
 broken down into small little pieces - the team picks who is working on
 what, but no one is limited to working on just their app.

 You can try to learn it yourself - but getting in an agile training
 organization like cPrime.com to give your company a 3 day onsite bootcamp on
 how the process works is the fastest way to make it happen.

 Hope that helps.

 Tariq Ahmed
 http://www.aftershox.com

 

~|
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:347210
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Run a class file generated with CF outside of CF

2011-08-07 Thread Nathan Strutz

Brook,

Great solution. Kind of complicated but totally doable.

I won't pretend to understand the complexity of the cfc you have, but all
that overhead to run one cfc seems extreme. I have a couple suggestions.

1- use native Ant to do it all. You can concat files and run jsmin or yui
compressor straight from ant. I was experimenting with this most of
yesterday with some pretty good success and can share it if you are
interested.

2- use scripting from within ant. You can include the Rhino js.jar scripting
engine, or groovy, or any number of JSR-223 compatible scripting languages
and get access to Ant's methods like making a fileset from within
javascript, as well as all the underlying java libraries. This works really
well because you can still use a cool programming language and keep it all
within Ant, no railo or cfml dependencies required.

Anyways, just some ideas, and like I said, I can share some of that with
you. I plan on talking about this stuff a little bit from my CF Unconference
talk at MAX this October, so if you're in the neighborhood...

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Sun, Aug 7, 2011 at 6:37 AM, Brook Davies cft...@logiforms.com wrote:


 Hey Nathan,

 So what I was doing was this. I am working on a new web app written with
 extJS. I have a CFC that I call that builds the client side app. It reads
 all of the ux and util directories and generates a config file used by
 jsBuilder to compress, combine and minify the JS used on the client side as
 well as compress and move CSS and resources.

 I am working towards getting a CI server setup and also need to ensure all
 developers can run a build locally. That's where the problem arises. The
 developers (JS developers) will not have CF installed on their local
 machine
 (or our pre-configured EC2 instance), and so I need to move the process of
 generating the jsBuilder config and executing it out of CF and into
 something that can run on any developers workstation - without a big
 install
 and setup.

 Since its just 1 CFC, I thought I could just use the java classes. But of
 course there are dependencies.

 I found a wicked, super cool solution to this last night! I downloaded
 Ralio
 Express and was able to get it to execute my CFC with basically zero setup.
 Ralio Express is freakin  awesome! There's no installer, you just run
 start.bat to start the server and stop.bat to stop it. So I've added it to
 my SVN and written an ANT task that starts it up and then runs the CFC that
 indexes all the directories, read in an XML config file and calls (via
 cfexcecute) the CFC that handles the build.

 My ANT task has these targets:

 target name=startRalio description=Starting Ralio Server
 depends=MakeDirectories
java jar=tools/build/ralio/lib/start.jar
   dir=tools/build/ralio/
   fork=true
   spawn=true
   maxmemory=512M
arg value=-h/
arg value=-DSTOP.PORT=8887/
arg value=-DSTOP.KEY=railo/
/java

!-- wait for server to start up --
waitfor maxwait=10 maxwaitunit=second
and
socket server=localhost port=/
http url=http://localhost:/index.cfm/
/and
/waitfor


/target

target name=doBuild description=Call the Ralio script to in turn
 call JsBuilder and do compilation depends=startRalio
get src=http://localhost:/build/doBuild.cfm;
 dest=buildresult.txt /

!-- look for buildresult.txt, read the result and throw an
 error if any errors exist --
 loadfile property=buildresult
 srcFile=${desktop.build.dir}buildresult.html/
 echo message=${buildresult}/

 antcall target=checkResult /
 antcall target=stopRalio /
/target


 Never used Ralio before, but very impressed with it!

 Brook

 -Original Message-
 From: Nathan Strutz [mailto:str...@gmail.com]
 Sent: August-06-11 12:39 PM
 To: cf-talk
 Subject: Re: Run a class file generated with CF outside of CF


 Yeah, it's probably not going to happen. I mean, I am getting famous for
 saying that it's software, so we can do anything, but the problem is the
 amount of work it takes to do a thing. In this case you have to load a good
 amount of the CF server into memory, all the other related classes (one
 ..class for the cfc, one for each cffunction, etc.), then fake a request 
 response object, or whatever servlets do (I knew at one point). Your best
 bet is to not do this.

 It would be much easier to call your CF server rather than try to use the
 generated code out of context. There are many ways to call into CF from
 Java. The easiest one would be to hit it via a HTTP URI. Second easiest
 would be a web service. Third, you can use the CF services gateway - you
 can

Re: timing software

2011-08-07 Thread Nathan Strutz

Ben,

There is a Firebug plugin (yes, a plugin for a plugin) called YSlow (from
Yahoo!) that will show you download speeds from uncached files. I don't know
if you can export from YSlow, but I know it gives you a very complete view
of why a page is slow. Another one that seems less complete (to me) is
Google Page Speed, again, a plugin for firebug, and this one I know you can
export.

After digging a little, I noticed they both work for chrome and firefox.

Also, your web log files may have an upload time, that is, how long it took
to send a given file from the web server to a client. It could be that you
don't have to have your user install anything. Just a thought.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Sun, Aug 7, 2011 at 6:41 PM, Ben Conner b...@webworldinc.com wrote:


 Wow.  Impressive.  Is there somewhere I can disable caching?  Can this
 timing
 report be printed and/or saved?

 --Ben

 On 8/7/2011 6:30 PM, Azadi Saryev wrote:
  wrench - tools - developer tools
 
  Azadi

 --
 Ben Conner  b...@webworldinc.com
 Web World, Inc. 888-206-6486 or
 PO Box 1122 480-704-2000
 Queen Creek, AZ 85142



 

~|
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:346581
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Run a class file generated with CF outside of CF

2011-08-06 Thread Nathan Strutz

Yeah, it's probably not going to happen. I mean, I am getting famous for
saying that it's software, so we can do anything, but the problem is the
amount of work it takes to do a thing. In this case you have to load a good
amount of the CF server into memory, all the other related classes (one
.class for the cfc, one for each cffunction, etc.), then fake a request 
response object, or whatever servlets do (I knew at one point). Your best
bet is to not do this.

It would be much easier to call your CF server rather than try to use the
generated code out of context. There are many ways to call into CF from
Java. The easiest one would be to hit it via a HTTP URI. Second easiest
would be a web service. Third, you can use the CF services gateway - you can
set up a local socket listener, which should be really performant. Also, I
think Terrence Ryan had a project on RIAForge that lets you call it via the
command line console.

I wonder, what is the underlying reason for wanting to call the generated
classes? Sort of an odd request. Why are you doing this? Maybe there's a
better way to accomplish your end goal.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Sat, Aug 6, 2011 at 10:53 AM, Brook Davies cft...@logiforms.com wrote:


 Hey, I don't know if this is possible. I want to take a class file from the
 cfclasses/ directory and run it from the command line outside of the CF
 server.  It complains about not being able to find some cf related classes.
 I assume this is not at all possible since the classes include lots of CF
 specific classes for various functions. Is that right? Is this not
 possible?



 Brook




 

~|
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:346560
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: OO ColdFusion, somebody tell me if this is overkill

2011-08-04 Thread Nathan Strutz

Sounds like it's not a terrible idea. The pattern you're looking toward
moving to is called the Service Pattern. It puts an interface into your
Model. It's a good strategy if you are trying to reduce complexity (like
number of functions in a component), split out concerns (like public versus
private), accommodate a changing architecture (like you're doing), and
especially if you will expose any of your application through web services
later.

Be careful that you don't put all your business logic in the services you
create, creating an anemic domain model problem.

Also, I would say congrats to you for seeing a problem, realizing a viable
solution, and only later finding out that it's an already-well-known
pattern. I think that's the mark of really knowing your stuff (and also that
you should read up on your design patterns).

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Thu, Aug 4, 2011 at 8:40 AM, Scott Stewart sstwebwo...@bellsouth.netwrote:


 Ok, here goes..

 I've got a component with a bunch of database calls, each db call function
 is private. The component also contains public methods that call the
 private
 methods. My thought is this..

 Separate the private functions into their own component, and use the
 extends
 property to stitch everything back together  Any instantiation would call
 the public methods.





 Any thoughts? Am I going to far with code separation..



 Thanks



 Scott



 

~|
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:346525
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: OO ColdFusion, somebody tell me if this is overkill

2011-08-04 Thread Nathan Strutz

Oh Dave, you're such a literalist and a pessimist.

Since we're talking literals, having a component with nothing but private
methods is usually wrong, they will likely change to package access. So
there :p

I disagree with what you said about reducing complexity. Reducing the number
of methods in a component and reducing the number of lines in a file, does
reduce the complexity of the file, which can be a serious problem in a lot
of applications. If the file is getting unwieldy and excessively large,
splitting out functionality (in a logical way) is always a good
idea. However it does add another complexity of having more files.

Realize that the reverse of this is a single-file-do-all-spaghetti-chaos
application, but taken normalization to an extreme gives you hundreds of
useless files. Your software will be always be complex. How you handle it
always matters.

Finally, changing architecture is exactly what Scott was asking about in
the first place, even though he didn't say it directly.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Thu, Aug 4, 2011 at 1:05 PM, Dave Watts dwa...@figleaf.com wrote:


  Sounds like it's not a terrible idea. The pattern you're looking toward
  moving to is called the Service Pattern. It puts an interface into your
  Model. It's a good strategy if you are trying to reduce complexity (like
  number of functions in a component), split out concerns (like public
 versus
  private), accommodate a changing architecture (like you're doing), and
  especially if you will expose any of your application through web
 services
  later.

 I think you're assuming facts not in evidence here. The OP didn't
 mention any potential reuse or services layer. And simply creating two
 classes from one doesn't reduce complexity, it just moves it around.
 Finally, it's extremely common for classes to contain both private and
 public methods - objects are supposed to manage themselves without
 exposing implementation details, and that's what private methods let
 us do. Simply separating private and public methods into two objects
 doesn't really solve any problem if you're simply going to extend the
 class with the private methods in one new class. Finally, there's no
 mention of accommodating a changing architecture in the OP's
 question.

 I'm not trying to be unpleasant here, but I just don't see any of
 those concerns in the original question.

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

 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or onsite.

 

~|
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:346541
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Label Printer

2011-08-03 Thread Nathan Strutz

Chad,

I recommend you get a 3rd party printing application that is easy to
integrate with. Seagull Scientific's BarTender works with Zebra printers,
among many others, and integrates with web services, databases, COM
automation, ActiveX controls, command-line calls, and probably more. That
way it doesn't really matter what printer you use, as long as the software
supports it and you can integrate with that.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Wed, Aug 3, 2011 at 8:50 AM, Chad Gray cg...@careyweb.com wrote:


 I have an inventory website and it would be nice to be able to print
 barcodes and product data to a label printer.

 Has anyone tried sending webpage content to a label printer?  Or maybe
 there are some printers that can take XML content??

 Looks like Zebra printers have their own printer language, but I dont see
 any way of using it with ColdFusion or any web browser content.
 http://www.zebra.com/id/zebra/na/en/index/products/software.html

 They also mention using XML with their printers, but I have not read up on
 how it works and the way it talks the printers that support this may be out
 of our price range.

 http://www.zebra.com/id/zebra/na/en/index/resource_library/getting_started/introduction_to_bar_code_printing/xml_enabled_printing.html

 If anyone has ideas or has done this let me know.
 Chad


 

~|
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:346484
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: application.cfm

2011-06-22 Thread Nathan Strutz

First, I will say that this is a strange request, and chances are, you're
doing something wrong. Compile errors mean that there was more than an
error, it's that the template has serious problems that the CFML compiler
couldn't parse. The fact that you still want one page to execute and another
to not compile is weird, strange, odd. I can't think of a logical case for
this, and would love to hear it if you have one.

That said, you should be able to do this with an Application.cfc file
instead of Application.cfm. Make an onRequest method, which will compile and
run that function, then from there you cfinclude the requested template,
which should be compiled only when execution reaches that include.

I always use Ray's Application.cfc reference, for reference:
http://www.coldfusionjedi.com/downloads/application.cfc.txt

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Wed, Jun 22, 2011 at 7:33 AM,  wrote:


 Hi,

 I've noticed that application.cfm is indeed run before the template called
 in the url, but the template itself is compiled BEFORE application.cfm is
 called.
 I need to have the ability in application.cfm to run some code and NOT
 compile the template.

 Is it possible ?
 CF 9

 

~|
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:345524
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Homesite 5.5

2011-06-11 Thread Nathan Strutz

I love how this thread is comparing HomeSite to punch cards and other old
fashioned computing technologies.

In one sense, it's amazing that HomeSite had the staying power that it did.
Kudos to the original Delphi developers for creating such a great platform.
The only problem is that they did it in the 1990's. 15 years in computing,
15 years on the internet, we're talking about ancient history.

I switched to Eclipse early on. I found myself at a company that had
questionable licensing ethics, so when I started to hear about Eclipse, I
made the switch as soon as I could and haven't missed the annoyances of HS+
one bit. It turned out great for me, I could tell there was a lot of promise
in the platform, so now (7 years later?) it seems like I picked a winner.
These days I use a combination of CFEclipse and Notepad++, both FOSS.
Notepad++ is a great pick-up-and-edit tool.

At home I have been using CF Builder 2, it's good. It's really good. I also
have IntelliJ IDEA, which is surprisingly advanced for CFML development.

In summary, and bringing it back to the thread, try new tools, they are
better. They do more things. Force yourself to try it for a couple weeks and
see if you can be as efficient at it.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Sat, Jun 11, 2011 at 12:49 PM, Wil Genovese jugg...@trunkful.com wrote:


 Sticks of RAM? Wow that's new tech! My RAM come on individual IC Chips.
  I need 8 to get to 64K.



 Wil Genovese
 Sr. Web Application Developer/
 Systems Administrator
 CF Webtools
 www.cfwebtools.com

 wilg...@trunkful.com
 www.trunkful.com

 On Jun 11, 2011, at 12:29 PM, Gerald Guido wrote:

 
  I am personally coding by rubbing a tiny magnet across my hard-drive
 
  I will see your tiny magnets and raise you rubbing two sticks of ram
  together.
 
  G!
 
  On Sat, Jun 11, 2011 at 1:05 PM, Mark Drew mark.d...@gmail.com wrote:
 
 
  I am personally coding by rubbing a tiny magnet across my hard-drive,
  moving
  the bits. I should state that this is TRS 80, and my hard-drive is
 actually
  a cassette tape.
 
  My code is VERY precise. Just saying.
 
  Mark Drew
 
 
 
 
  On Sat, Jun 11, 2011 at 5:56 PM, Larry Lyons larrycly...@gmail.com
  wrote:
 
 
  Glad I'm not the only one who still prefers it over the newer stuff
 :)
 
  I use it everyday.
 
  I try other applications, but I always come back.
 
  J
 
  Let me guess, you also use flint knives and wear fur underwear, and use
  DOS
  3
 
 
 
 
 
 

 

~|
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:345177
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Where did it go

2011-04-16 Thread Nathan Strutz

http://sqlsurfer.riaforge.org/ ?

One of my many pet projects that I never finished, but I use it just about
every day.


nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Sat, Apr 16, 2011 at 6:17 PM, Kevin Parker tras...@internode.on.netwrote:


 About 6 months or so ago is my guess a thread appeared on this list to do
 with a sql/database manager thing someone was developing in CFML (like a
 phpMySQL thing) - they made it available for everyone to have a look at -
 it
 was pretty slick - I can't find the thread or location it was at for love
 not money - does anyone recall this please?


 ++
 Kevin Parker
 Advanced Imaging

 e: webmas...@advancedimaging.com.au
 w: www.advancedimaging.com.au
 m: 0418 815 527

 ++

 http://au.linkedin.com/in/krparker



 

~|
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:343795
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: I hate CFScript and I'm willing to pay for a CFScript -- CFtag parser

2011-04-07 Thread Nathan Strutz

That's funny. Actually I created a tags -- script converter a few weeks
ago, kind of for fun, kind of for upgrading to CF9. It works for basic
stuff, components, functions, some loops, try/catch, etc, but gets confused
with queries or anything else complicated.

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Thu, Apr 7, 2011 at 4:20 PM, Jeff Gladnick jeff.gladn...@gmail.comwrote:


 I actually don't hate cfscript, but I do hate that we have both tags and
 script based syntax for CFML.  And since it started off as tags, I firmly
 believe that's the way it should stay.

 I understand lots of people feel differently, but it really sucks (for me)
 seeing all the new great open source projects being released in cfscript.

 Therefore I have created a $1000 bounty (I have pledged $250) to the first
 developer who can deliver a working cfscript -- cftag based parser for
 eclipse.

 http://www.pledgebank.com/CFScriptSucks

 People can still write in cfscript if they want to, but people who feel
 like me won't have to deal with it anymore.

 Please post flames below.

 

~|
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:343611
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Do people still name their UPDATE, INSERT DELETE queries?

2011-03-15 Thread Nathan Strutz

If you aren't using any kind of returned data from a query, don't worry
about giving the cfquery tag a name attribute. It's a few extra bytes you
can save on your fingers. I would even go so far as to recommend you delete
it. Less code means less bugs.

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Tue, Mar 15, 2011 at 7:26 AM, Dain Anderson da...@terradotta.com wrote:


 I may have missed conversation of this over the years, so I figured I would
 ask.

 What's the current take on this (old?) practice? If I have a CFC function
 that deletes a record, and that CFC contains a single query, do you find it
 necessary to scope that query with a name?

 cffunction name=DeleteMe
cfset var q =  /
cfquery datasource=#variables.ds# name=q
delete mah stuff...
/cfquery
 /cffunction

 I've been refactoring some CFCs and ran into some named deletions and
 thought this seemed odd to name them -- thoughts?

 -Dain

 Â…Â…Â…
 *Dain M. Anderson
 *Lead Developer
 Terra Dotta, LLC
 501 W. Franklin Street, Suite 105
 Chapel Hill, NC 27516
 Phone/Fax: 877-DOTTA-77 (877-368-8277)
 http://TerraDotta.com http://terradotta.

 

~|
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:343036
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFC argument best practice question

2011-03-07 Thread Nathan Strutz

If you have a lot of arguments, one way to refactor that is to make a
component that encompasses those arguments - essentially a bean, maybe a
couple of beans if the arguments are unrelated. In your first public method,
instantiate that bean with the arguments, then just pass that bean around.
Follow that, and you've gone from just using components to actual
object-oriented programming.

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Mon, Mar 7, 2011 at 10:06 AM, Brook Davies cft...@logiforms.com wrote:


 Hello,



 Just a quick Best Practices question. I have a CFC, I call a method and
 pass a slew of arguments to it. Internally it calls a private method using
 argumentCollection=arguments. My question is, should I repeat the argument
 definitions on the private method?



 The arguments are available regardless of whether or not the private method
 has the actual argument definitions. What is the best practice here? Define
 the arguments or just use them knowing they are the same as the public
 method?



 Brook








 

~|
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:342806
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Downloading database tables

2011-02-18 Thread Nathan Strutz

This one comes up from time to time. The best way to do it is with you
chosen database's own development and management tools. If you use MS SQL
Server Management Studio, they have integrated tools to copy a database. If
you use Toad, they have something too. I have always had... let's say
limited luck with those, but if you can get by with that, you should

Now, if you wanted to do this in CF, it probably means work. I actually have
a semi-functioning model of downloading one database and applying it to
another, even works across database engines (e.g. download from oracle and
apply to derby). Plus it takes snapshots so you can save versions of the
database, including basic schema snapshots that you can import into another
database, too. Then I got distracted, lost interest and have a 75% finished
program. I'd open source it, but like I said it's not fully functional (not
even fully baked), and I don't know that there's a real market for it.

Umm, I can probably hook you up with a copy, no promises that it will even
compile.

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Fri, Feb 18, 2011 at 12:32 PM, Rob Voyle robvo...@voyle.com wrote:


 Hi folks

 What is the best way of downloading web database to a local desktop
 machine.

 clients register for programs and the information is on the web database.
 I want to use coldfusion to update my local desktop database

 Thanks
 Rob


 

~|
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:342443
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: why is cf_builder so slow? (was: expensive)

2011-01-27 Thread Nathan Strutz

That's a great tip, Steve. I've heard it before from the old CFEclipse days
and practice it regularly. It works especially well if the projects you
close are remote. You can also turn off automatic project refreshing, but
then you will have to refresh each project/directory tree when a change is
made outside the IDE.


nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Thu, Jan 27, 2011 at 12:57 PM, Steve Bryant 
st...@bryantwebconsulting.com wrote:


 Nathan,

 I have experienced quite a bit of slowness in ColdFusion Builder. It will
 randomly hang, sometimes it recovers and sometimes it takes so long that I
 shut it done and restart (at which point the long restart is annoying).

 A friend recently suggested that closing large projects (not the files -
 the projects themselves, right-click on the project and click Close
 Project). I tried that about a week ago and I haven't had any problem
 since.

 Here's hoping that holds up...

 Steve

 Does that affect anything other than Builder's startup time?

 

~|
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:341573
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


why is cf_builder so slow? (was: expensive)

2011-01-26 Thread Nathan Strutz

Gerald,

Your comments about CFB being slow bother me, and warrant some exploration.
Can you provide more detail? Do you have projects set up into a shared dev
environment over the network? I can't imagine that would be fast for any
IDE.

I have a copy of all my projects locally, I install CF servers locally (4
different server versions), and I update my dev  test servers only by
exporting from source control. Having these projects locally lets me do
development without screwing with other developers' dev environments. I
can't tell you how many times I was refactoring an application's guts at the
same time a co-worker was working on a new feature (sorry Alan!). That kind
of separation earlier in my career would have really cut down on people
yelling at me.


nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Wed, Jan 26, 2011 at 8:02 AM, Gerald Guido gerald.gu...@gmail.comwrote:


  Who is being flippant? It's a fact of life that some developer tools
 cost money.


 Going out on a limb here

 It is all relative. Good tools cost do cost good money. But For some
 here, $300 is chump change. For others, even the gainfully employed, that
 could mean making a car or mortgage payment, or not. Times are tough. I
 would wager that some of the folks here vocal about not complaing about it
 not being expensive have incomes in excess of six figures, or close to it.
 For those people it is *not* expensive, but for independents or 9-5ers that
 are struggling to put their kids though college  $300 *is* a good chunk of
 change.

 I like CFB but it is a dog @ work. Our intranet has thousands of cfm's and
 cfc's (it handles *all* of our internal business proccesses) and CFB is
 about as nimble as a mastodon in a tar pit. So is it worth $300 in this
 instance? Arguably not.

 Flame on Garth!

 G!




~|
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:341426
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: why is cf_builder so slow? (was: expensive)

2011-01-26 Thread Nathan Strutz

So the solution to that one is just to have CF running before you start
CFBuilder. Does that affect anything other than Builder's startup time?

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Wed, Jan 26, 2011 at 12:28 PM, Russ Michaels r...@michaels.me.uk wrote:


 I had the same problems but I found the cause.
 I had CFB set to connect to CF automatically and check the server state,
 RDS
 etc.
 If you don't have coldFusion running when u launch CFB (normal on a dev
 machine) then this will make it slow to start up.





~|
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:341434
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: why is cf_builder so expensive?

2011-01-25 Thread Nathan Strutz

Wow that's kind of a loaded question, and potential flame bait.

CFB is expensive because it's in line with other products from Adobe. They
don't make cheap software, they don't make bad software. They do a good job
and they support it really well. CFEclipse was created on free time and
borrowed time and, even once in a while, bought time. On the other hand,
Adobe pays people to create their software, they don't get it or make it for
free.

I would also add that CF Builder is important in the marketplace because it
solidifies CF as a fully supported platform, end to end. Many people
purchasing software want to buy from one vendor because they know homogeny
always works. Not offering CFB means Adobe loses money.

CFBuilder is not actually all that expensive considering what you get with
it, and compared to a lot of other professional development tools. IntelliJ
Idea is $700. Visual Studio's pricing structure needs a full map, but the
pro version is around $800. Unfortunately for all of these companies, there
are great open source alternatives.

Personally, I use CFEclipse, but that's just because I'm waiting for my
company to come through with the CFBuilder licenses. Though I would probably
keep CFE on hand for those special times. Also, I have Notepad++ (with CF
plugin) as a quick pick-up editor for one-off things.

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Tue, Jan 25, 2011 at 7:00 PM, Michael Firth mfsqlser...@gmail.comwrote:


 Thoughts about cf builder.  Do you use it?  Or do you use cf eclipse or
 another alternative?  Not sure if I am going to get it so I like to hear
 some thoughts on it.

 Thanks

 

~|
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:341261
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: relative path for images

2011-01-21 Thread Nathan Strutz

You have to remember your context. Your CF application's context is on the
server side, and usually includes are relative to the page you are including
from. Images are included from the client side - the browser, so they are
relative to the URL of the current page.

Often, it helps to include your images in a web-root-relative path, so your
src would always start with a slash. /images/photo.jpg instead of the
relative locations images/photo.jpg or ../images/photo.jpg - this way,
it doesn't matter where your page is, as long as it's on the same site.

HTH

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Fri, Jan 21, 2011 at 12:31 PM, fun and learning
funandlrnn...@gmail.comwrote:


 Hi All -

 I have a strange situation with relative paths. When I use a relative path
 in cfinclude it works. But when I use a relative path is src attribute of
 img, it does not work. Can anyone suggest why could this be happening?

 Thanks

 

~|
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:341101
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Regex to strip out non-numerics but leave decimal point

2011-01-18 Thread Nathan Strutz

[:digit:] seems like a lot of typing to just say \d, and why the extra
character brackets around the outside?

I would do this:

reReplace(str, [^\d\.], , all)

less typing = improvement

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Tue, Jan 18, 2011 at 1:04 PM, Jason Fisher ja...@wanax.com wrote:


 reReplace(rc.hourlyRateInvoicedToClient, [^[:digit:]\.], , all)


 A set [] takes all the options in it as options, so escape the . with \.
 and you should be good to go.

 

 From: Nando d.na...@gmail.com
 Sent: Tuesday, January 18, 2011 2:09 PM
 To: cf-talk cf-talk@houseoffusion.com
 Subject: Regex to strip out non-numerics but leave decimal point

 I'm trying to strip out all non-numeric characters from some fields. The
 catch is I need the regex to leave in the decimal point, cuz these are
 rates
 that include cents.

 rereplace(rc.hourlyRateInvoicedToClient,'[^[:digit:]]','','all')

 I'm not sure how to work something like [^\.] into it. Can anyone help?

 Thanks,

 Nando



 

~|
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:340987
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Is Coldfusion losing it biggest asset?

2011-01-13 Thread Nathan Strutz

Mission already accomplished by a friend and former CFUG manager:

http://www.jumpbox.com/

http://www.jumpbox.com/
nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Thu, Jan 13, 2011 at 11:01 AM, Bryan Stevenson 
br...@electricedgesystems.com wrote:


 Great idea.just setup a base VMcopy the virtual disks (one per
 language)then setup each as needed

 On Thu, 2011-01-13 at 17:51 +, Dominic Watson wrote:

  Just a thought: I bought the book and haven't yet started it. Something
  encouraging my procrastination is the horrid thought of having various
  language server services setup on my machine with noob configurations (me
  being the noob). It struck me that using some sort of Linux VM for
 learning
  would be beneficial (perhaps a separate clean VM per language), boot up
 the
  VM, get the language configs in a mess and not worry about it, just scrap
  the VM and start over.
 
  Perhaps that's me being a little Lady Macbeth like though :p
 
  On 13 January 2011 17:43, Sean Corfield seancorfi...@gmail.com wrote:
 
   pect to have to spend time on Google with each language. Tate gives
   only brief notes on where to find the installers and you'll need to
   spend time on each language's site figuring out how to get it
   installed and running. For Io, I ended up having to build it from
   source from an older releases because the latest downloads simply
   didn't work for me on Mac OS X (they worked on Ubuntu tho'). You'll
   find most of the language sites are *nix-centric so you'll probably
   have an easier time on Mac / Linux than Windows - most open source
   language development has occurred on Linux.
  
 
 
 

 

~|
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:340756
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Is Coldfusion losing it biggest asset?

2011-01-13 Thread Nathan Strutz

Because it's open source, they can't put Adobe CF on there. He did make a
video (#21, http://blog.jumpbox.com/2009/09/28/deployment-ramp-ups/) on
installing a CFML app into Railo into Tomcat on a JumpBox VM. A few quick
steps and he gets the whole thing running. You're right though, it's a
shame, but I asked him about it and he said there just hadn't been enough
interest in a Railo VM. If a few more people ask for it, and would actually
pay for it the service, he would probably put a supported VM with Railo up,
probably within a couple days.

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Thu, Jan 13, 2011 at 11:25 AM, Russ Michaels r...@michaels.me.uk wrote:


 Shame CF is not listed

 -Original Message-
 From: Nathan Strutz [mailto:str...@gmail.com]
 Sent: 13 January 2011 18:07
 To: cf-talk
 Subject: Re: Is Coldfusion losing it biggest asset?


 Mission already accomplished by a friend and former CFUG manager:

 http://www.jumpbox.com/

 http://www.jumpbox.com/
 nathan strutz
 [http://www.dopefly.com/] [http://hi.im/nathanstrutz]


 On Thu, Jan 13, 2011 at 11:01 AM, Bryan Stevenson 
 br...@electricedgesystems.com wrote:

 
  Great idea.just setup a base VMcopy the virtual disks (one per
  language)then setup each as needed
 
  On Thu, 2011-01-13 at 17:51 +, Dominic Watson wrote:
 
   Just a thought: I bought the book and haven't yet started it. Something
   encouraging my procrastination is the horrid thought of having various
   language server services setup on my machine with noob configurations
 (me
   being the noob). It struck me that using some sort of Linux VM for
  learning
   would be beneficial (perhaps a separate clean VM per language), boot up
  the
   VM, get the language configs in a mess and not worry about it, just
 scrap
   the VM and start over.
  
   Perhaps that's me being a little Lady Macbeth like though :p
  
   On 13 January 2011 17:43, Sean Corfield seancorfi...@gmail.com
 wrote:
  
pect to have to spend time on Google with each language. Tate gives
only brief notes on where to find the installers and you'll need to
spend time on each language's site figuring out how to get it
installed and running. For Io, I ended up having to build it from
source from an older releases because the latest downloads simply
didn't work for me on Mac OS X (they worked on Ubuntu tho'). You'll
find most of the language sites are *nix-centric so you'll probably
have an easier time on Mac / Linux than Windows - most open source
language development has occurred on Linux.
   
  
  
  
 
 



 

~|
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:340764
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Issues with session variables

2011-01-13 Thread Nathan Strutz

For the timeout issue, there are a couple things, but most likely, your CF5
server is crashing. This is especially true if you have a busy server or use
session  application variables a good amount without using cflock. I think
(and it's been a LONG time) you can check to see if your server is actually
restarting itself by finding your windows event log. This is very possibly
the case especially if you are experiencing this on your production server
but not your development server (assuming you have one and they are separate
machines).

The solution? Upgrade your server to CF9 or if it's a money thing, go to
Railo, it's perfectly fine and will do the job as well as give you a million
new features that you can start to use. CF5 is well over a decade old. Stop
running it. Stop punishing yourself. You are worth more than this.

Oh I just noticed you said it works with client variables, too. Check the
client timeout, check your cookie timeout, especially with Firebug to make
sure they aren't set to expire within a minute. Then look for anything that
interacts with cookies, cfide  cftoken. You can pass #session.urltoken# in
all your links to eliminate any possibilities of having a cookie issue.

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Thu, Jan 13, 2011 at 11:26 AM, Maneesha Aggarwal ma...@columbia.eduwrote:


 We have an issue with early timeout using session and client variables. We
 are using ColdFusion 5. We have set up sessiontimeout for 2 hours in
 CFAPPLICATION as well as in CF Admin (maximum timeout and default timeout).
 But Session variables expire in approximately 45 sec. The same behavior is
 with client variables.

 Do you have any idea what it can be? Any help is appreciated.
 Thanks.


 

~|
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:340767
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Converting JPG/etc to ICO

2011-01-09 Thread Nathan Strutz

Rick,

Imagemagick is pretty much the best thing in the world. It's very fast and
works with about any image file format, plus it's free and even ships with
most linux distributions.

http://www.imagemagick.org/script/formats.php

Call it via command line, like this:\ convert.exe myimage.jpg myimage.ico

You can even batch it :\ convert *.jpg *.ico

You can call it via cfexecute, which works great. Don't be fooled into using
a CFX object, it won't work as well as the command-line.

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Sat, Jan 8, 2011 at 6:02 PM, Rick Root rick.r...@gmail.com wrote:


 Hey folks, I'm looking for a tool that can convert JPG, GIF, and other
 images to true .ICO files.

 We currently use cfx_imagecr3 for most of our image conversion (it
 works better than cfimage) but neither actually support writing of ICO
 files.

 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:340604
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: More rewrite rule fun

2010-12-22 Thread Nathan Strutz

Mark,

If your regex ^([^/]*)/parts(/)?$ captures anything after the parts/, you
have a bad regex engine.

You probably want something like this: ^.*/parts/([\w/]+)$

Using the same replace pattern, you will end up
with 
/controllerScript.cfm?prodtype=productdisplayaction=displayProductCategoriesmodel=subcategory1/subcategory2/subcat3

Not sure if that's what you're going for, but a bad response is better than
no response from the list ;)

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Wed, Dec 22, 2010 at 7:23 AM, Mark A. Kruger mkru...@cfwebtools.comwrote:


 Ok regex gurus. here's what I have. I'm using IsapiRewrite (Helicon) on an
 IIS server.



 I have links like the following:



 http://domain/model/parts/subcat1/subcat2/subcat3/subcat4/subcat5



 From 1 to 6 levels of sub categories.



 My rule finds parts and the model .. So I need a rule that gives me the
 rest of the url (everything after /parts/) and directs it to my controller
 -
 which figures out what to display. Here's what I have that works for  the
 first level..



 RewriteRule ^([^/]*)/parts(/)?$

 /controllerScript.cfm?prodtype=productdisplayaction=displayProductCategorie
 smodel=$1 [L,QSA]





 So what do I need to work with subsequent levels.  I'm trying to add
 something to the end of /parts(/)?$ . like (/*) or (/)*? . something that
 variablizes the rest of the URL .but I'm falling flat.



 Any rewrite gurus out there know what I'm doing wrong? Will I need a rule
 for each possible level maybe?



 -mark





 Mark A. Kruger, MCSE, CFG

 (402) 408-3733 ext 105

 Skype: markakruger

  http://www.cfwebtools.com www.cfwebtools.com

  http://www.coldfusionmuse.com www.coldfusionmuse.com

  http://www.necfug.com/ www.necfug.com








 

~|
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:340203
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: More rewrite rule fun

2010-12-22 Thread Nathan Strutz

Will, that's right. The \w switch is roughly equivalent to [A-Za-z0-9_],
aka, letters, numbers and underscores. I put \w/ in there to capture the \w
words and / forward slashes. This regex just captures any words  slashes
after /parts/, which is pretty good because it makes the ending slash
optional. If you have other characters in your subcategories (like dashes),
you can just add those to the [\w/] char group. You could get fancier, and
capture the subcategories individually, but it gets trickier, and making
that replacement in CF is so much easier.

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Wed, Dec 22, 2010 at 8:10 AM, Wil Genovese jugg...@trunkful.com wrote:


 The \w typically means match any word. I think it's allowed in mod_rewrite
 rules.

 So this rule says look for /part/ and any word ending in / and find 1 or
 more of those words ending in /

 Nate, is that right?




 Wil Genovese
 Sr. Web Application Developer/
 Systems Administrator

 651-894-4238
 wilg...@trunkful.com
 www.trunkful.com

 On Dec 22, 2010, at 8:57 AM, Mark A. Kruger wrote:

 
  Nate ok... what's the \w/ for?  I'm not seeing that in my list of
 stuff
  I can use in the docs.
 
  Mark A. Kruger, MCSE, CFG
  (402) 408-3733 ext 105
  Skype: markakruger
  www.cfwebtools.com
  www.coldfusionmuse.com
  www.necfug.com
 
 
 
  -Original Message-
  From: Nathan Strutz [mailto:str...@gmail.com]
  Sent: Wednesday, December 22, 2010 8:53 AM
  To: cf-talk
  Subject: Re: More rewrite rule fun
 
 
  Mark,
 
  If your regex ^([^/]*)/parts(/)?$ captures anything after the parts/, you
  have a bad regex engine.
 
  You probably want something like this: ^.*/parts/([\w/]+)$
 
  Using the same replace pattern, you will end up
  with
 
 /controllerScript.cfm?prodtype=productdisplayaction=displayProductCategorie
  smodel=subcategory1/subcategory2/subcat3
 
  Not sure if that's what you're going for, but a bad response is better
 than
  no response from the list ;)
 
  nathan strutz
  [http://www.dopefly.com/] [http://hi.im/nathanstrutz]
 
 
  On Wed, Dec 22, 2010 at 7:23 AM, Mark A. Kruger
  mkru...@cfwebtools.comwrote:
 
 
  Ok regex gurus. here's what I have. I'm using IsapiRewrite (Helicon) on
 an
  IIS server.
 
 
 
  I have links like the following:
 
 
 
  http://domain/model/parts/subcat1/subcat2/subcat3/subcat4/subcat5
 
 
 
  From 1 to 6 levels of sub categories.
 
 
 
  My rule finds parts and the model .. So I need a rule that gives me
  the
  rest of the url (everything after /parts/) and directs it to my
 controller
  -
  which figures out what to display. Here's what I have that works for
  the
  first level..
 
 
 
  RewriteRule ^([^/]*)/parts(/)?$
 
 
 
 /controllerScript.cfm?prodtype=productdisplayaction=displayProductCategorie
  smodel=$1 [L,QSA]
 
 
 
 
 
  So what do I need to work with subsequent levels.  I'm trying to add
  something to the end of /parts(/)?$ . like (/*) or (/)*? . something
 that
  variablizes the rest of the URL .but I'm falling flat.
 
 
 
  Any rewrite gurus out there know what I'm doing wrong? Will I need a
 rule
  for each possible level maybe?
 
 
 
  -mark
 
 
 
 
 
  Mark A. Kruger, MCSE, CFG
 
  (402) 408-3733 ext 105
 
  Skype: markakruger
 
  http://www.cfwebtools.com www.cfwebtools.com
 
  http://www.coldfusionmuse.com www.coldfusionmuse.com
 
  http://www.necfug.com/ www.necfug.com
 
 
 
 
 
 
 
 
 
 
 
 
 

 

~|
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:340208
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Counting photos on a remote server

2010-12-15 Thread Nathan Strutz

 Our server use ColdFusion 5 and MySQL 3.51.
 ...
 Does anybody have a suggestion? (Please keep it G rated.)

Funny. I bet you can guess what my suggestion is. And if it's really about
the money, switch to Railo, it's free, it's fast, and it works pretty well,
certainly better than CF5.

Per what Jerry said, do you have access to that remote server - like can you
put a file in the web root to execute it on the other server? That's what I
would go for.

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Wed, Dec 15, 2010 at 9:08 AM, Dave Long d...@northgoods.com wrote:


 Our server use ColdFusion 5 and MySQL 3.51.

 My application displays photos stored on a server remote from the server on
 which the app is hosted. The number of photos varies from one to twenty.
 The
 image files are named using a constant ID number plus a sequential number
 for each file, like this: 12345_p01.jpg, 12345_p02.jpg, and so on in order
 to relate them to a specific record on my server.

 My problem is this: I want to create a slide show of these photos but if
 there are only two photos, not twenty, how can I end the slide show after
 only two have been called for? If the files were on my server, I could use
 a
 conditional FileExists but that doesn't work for a remote server.

 Does anybody have a suggestion? (Please keep it G rated.)

 Dave Long


 --
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.


 

~|
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:340085
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF 9 demo videos on adobe.com

2010-12-10 Thread Nathan Strutz

I've have this problem, too. I think it is my corporate firewall - sometimes
it blocks flash that runs content on non-standard ports and it blocks some
CDNs. For whichever reason, ATV tends to be a victim of that.

Hmm, suddenly I have an idea for a mobile app. Stream ATV content over 3G...

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Fri, Dec 10, 2010 at 12:06 PM, Greg Morphis gmorp...@gmail.com wrote:


 I have tried to view these demos in Chrome, FireFox and out of desperation
 IE. Sometimes I get sound, no video, sometimes nada..
 What gives?


 

~|
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:339996
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: UTF-8 Languages

2010-12-09 Thread Nathan Strutz

Also, sometimes your editor will default to the wrong file encoding, so if
you made one file with Dreamweaver and one with Eclipse (like CFBuilder),
one or the other could have picked up the windows file encoding. Open them
in Notepad (or equivalent) to see if the characters are there after you save
them to disk.

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Thu, Dec 9, 2010 at 1:01 PM, Leigh cfsearch...@yahoo.com wrote:


  Both the HTML and CFM pages has UTF-8 content type.

 Are you using cfprocessingdirective pageEncoding=utf-8 along with the
 proper font?







 

~|
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:339944
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF9/Win7 64 bit issues

2010-12-06 Thread Nathan Strutz

I'm not a pro in this field, but I know a few tricks. First, did you install
the IIS 6 management console? If not, CF has trouble connecting to IIS7. I
think you just have to have it installed, you can still manage via IIS7
tools. Second, you can always use the built-in web server. You can enable it
through an XML file somewhere, but I find it's easier to reinstall CF and
turn on the internal web server in the installer. Finally, my last trick is
the wsconfig app, Web Services Configuration Tool in your start menu. You
should be able to delete and recreate the connection to your web server.

As for debugging, I wonder if your CF server thinks somehow it has a
different context root other than just / - you could look for that and who
knows, maybe you will find your /inetpub/wwwroot/*.cfm files answer to
localhost/cfusion/*.cfm. Weird, but I guess possible.

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Mon, Dec 6, 2010 at 2:29 PM, Eric Roberts 
ow...@threeravensconsulting.com wrote:


 I have banging my head on this for the past couple of days.  I cannot get
 CF9 (either 64 bit or 32 bit) to install properly on a fresh install of
 Win7
 Ultimate 64 bit.  It adds the .cfm doc, but there isn't an entry for the
 handler.  If I fire up the connector program to add it, it acts like it is
 already there, but no connectors are listed and when I try to add, if I go
 to put in the directory, it is greyed out and won't let me add it, and the
 site is listed as None and that is the only option.  I have tried
 uninstalling CF.uninstalling both cf and IIS7 and then reinstalling (IIS
 then CF).no joy.  When I get done with the installation and it directs you
 to the administrator, even though I am going to the right path, I get a 404
 error.  If I try to go to a html page using the same path, it comes up with
 no issues.  Any ideas or does anyone know of a site that has info? I am
 totally stumped.  Usually this just works.  I just reinstalled my OS to
 clean up some stuff and it was previously installed and running with no
 issues prior to the reinstallation. Thanks!



 Eric



 

~|
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:339847
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Memory Usage Question

2010-12-04 Thread Nathan Strutz

Brook,

At first glance, I'd say you need a consultant like Charlie Arehart (
http://www.carehart.org/) to see why your application is performing like
this. Usually, there is a way to fix the offending memory hole. If you think
you can do it, hire Charlie for an hour or so and he will give you some
pointers. If your staff doesn't have the talent he can probably fix it
completely. There are some alternatives to that plan including hiring Adobe
support, or find and hire another expert. Some names that come to mind with
deep server experience are Mike Brunt  Steven Erat.

Ok, back to your problem.

1. Windows task manager reports used memory by default, not allocated
memory. Turn on the Virtual Memory Size column in task manager and you
should see the full amount.

2. I don't really know about SeeFusion and what it reports on. Maybe ask
them about it?

3. It sounds like the request is still running even though the browser
request has ended.

I think overall what you need to do is fix the offending code. You have a
memory leak. It's not ColdFusion, it's not the server, it's your CFML. I
would guess that the client storage / array looping operation is a pretty
hairy one. Move your client storage into actual database tables and columns
and turn off client variables. Think about how you may be able to pre or
post-process some of the long-running operations. Run them on a different
server. If you have a lot of database operations, cut them down. If you have
a lot of components, cut them down.

Oh, and good luck.

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Fri, Dec 3, 2010 at 10:51 AM, Brook Davies br...@logiforms.com wrote:


 Hello,



 I have a question about a memory usage pattern that I am trying to figure
 out. I am using seefusion to watch our server and this is what I am seeing:



 1.   We have two webservers and a loadbalancer with equal distribution
 and sticky sessions enabled

 2.   Memory usage will be constant around 20%-30% in use throughout the
 day.

 3.   When I check the taskManager on the machine I see jrun using only
 300-400 megs.

 4.   The arguments to the JVM are  -Xms1024m -Xmx1024m
 -XX:MaxPermSize=384m -XX:+UseParallelGC

 5.   The app uses client variable storage with a MSSQL database backend

 6.   The client variable data per client (in some edge cases) can grow
 to be very large



 What I am seeing is a specific customer comes along and  uses our app  and
 they have some very large strings of data stored in the client scope and
 invoke some operations that do a lot of array processing on large arrays.
 These requests are big and slow. We see a big spike in the memory usage. It
 continues to grow and grow.  Then the client appears to disconnect and
 leave
 the website (in fact, we verified by banning their IP to test). But the
 memory never gets released. The task manager now reports jrun up at over 1
 gig of memory.



 We have a script that runs every 30 seconds that checks memory usage and
 does a full GC when less than 100 megs of memory remain. Prior to
 implementing that script, we were seeing some out of memory errors.



 While watching seefusion we can see the memory creep up to 90%+, and then
 to
 10% when the GC script runs.  But it immediately begins to climb again. And
 this process repeats. The traffic on this server is no different than our
 other server which sits  at 19% memory usage.  Now, if we restart CF, the
 problem goes away, and memory usage stays at under 20%.



 My questions are:



 1.   I understand that setting -Xms1024m -Xmx1024m should immediately
 allocate that amount of ram to the JVM. So why does the taskManager report
 the memory usage at 300 megs (prior to the event)?

 2.   If a bunch of requests cause memory usage to spike and then those
 requests die off, should seefusion show memory usage at 90% because thats
 whats allocated to the JVM and now 'claimed'? So would that be a normal
 operating condition?

 3.   What would cause the memory to immediately climb back up after a
 full GC after 'something' happened but not climb after the service is
 restarted?



 Thanks for your insights guys!



 Brook




 

~|
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:339772
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Dumping VAR Scope?

2010-12-03 Thread Nathan Strutz

Rick,

Short answer: You can't.

Long answer: This was a design flaw that was corrected in ColdFusion 9. In
CF9, you can dump #local#, which is the function local var scope. Earlier
than that, you best option is to create a struct for your function-local
variables, so many people do this:

[pseudocode, writeDump and abort are CF9 specific]
function foo(arg, etc) {
  local = structNew();
  local.myLocalVariable = 1234;

  writeDump(local);abort;
}

Hope that helps.

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Fri, Dec 3, 2010 at 9:15 AM, Rick Root rick.r...@gmail.com wrote:


 How do you dump the var scope inside a CFC?

 Qualifiers - not on CF9, and not using cfset var LOCAL = StructNew()

 I can tell you what DOESN'T work.

 cfdump var=#variables#
 cfdump var=#variables.myFunctionName#

 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:339749
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Quick Regex Question

2010-10-29 Thread Nathan Strutz

Robert,

Actually, the underscore is counted as an alphanumeric in regular
expressions. Try just replacing \W with nothing and see what you get.

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Fri, Oct 29, 2010 at 7:41 AM, Robert Harrison rob...@austin-williams.com
 wrote:


 I have the regex statement - ReReplace(new_dir,\W,,all)

 That removes all non-alphanumeric characters from a sting.

 If I want to remove all non-alphanumeric characters except the underscore,
 is that:ReReplace(new_dir,\W/_,,all) or ?

 Thanks


 Robert B. Harrison
 Director of Interactive Services
 Austin  Williams
 125 Kennedy Drive, Suite 100
 Hauppauge NY 11788
 P : 631.231.6600 Ext. 119
 F : 631.434.7022
 http://www.austin-williams.com

 Great advertising can't be either/or.  It must be .

 Plug in to our blog: AW Unplugged
 http://www.austin-williams.com/unplugged




 

~|
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:338671
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Find city/state by IP Address?

2009-12-04 Thread Nathan Strutz

The classic http://javainetlocator.sourceforge.net/ works. It's a Jar you
add to your java classpath, but I think they ship with a CFC... It's been a
few years so I don't remember precisely.

nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]
[Twitter @nathanstrutz]


On Fri, Dec 4, 2009 at 9:05 AM, Jason Durham jdur...@cti-stl.com wrote:


 Anybody know of a web service that provides a city/state based upon an IP
 address?  I found many sites that perform the service, but none of them will
 allow me to use their tools remotely.

 Jason

 
 Confidentiality Warning: This e-mail contains information intended only for
 the use of the individual or entity named above. If the reader of this
 e-mail is not the intended recipient or the employee or agent responsible
 for delivering it to the intended recipient, any dissemination, publication
 or copying of this e-mail is strictly prohibited. The sender does not accept
 any responsibility for any loss, disruption or damage to your data or
 computer system that may occur while using data contained in, or transmitted
 with, this e-mail. If you have received this e-mail in error, please
 immediately notify us by return e-mail.


 

~|
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:328854
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: How to display LARGE amounts of Data in a Timely Fashion

2009-10-22 Thread Nathan Strutz

Your problem is probably render time, which makes sense if you have a ton of
data coming out in a table layout.

What you can do is remove as many of the tables as possible, especially for
any layout stuff, headers, footers and the like. If you wrap the entire
contents of the page in a table, your page has to finish downloading and
then figure out how to render, which takes time. You can streamline this
process by using CSS to lay your page out.

Another thing, and probably the best increase, is if you use a fixed table
layout (table-layout:fixed; in CSS). That will render your table with the
same dimensions as your first table row, thus forcing the rest of the rows
to fall in line. With that set, the browser doesn't have to download the
whole table to start rendering it, it renders as it downloads.

Another trick that I see around lately is the automatic scroll loading
(don't know the official term). The idea is that once someone reaches the
bottom of a page of data, more data loads, so you never really reach the
bottom until the data has all been loaded. Google Reader was one of the
first big sites to do this, but now it's more common. With this trick, you
only need to load a couple pagefuls of data at a time.

Consider that last one, sure, but DO those first two, for real.


nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]
[Twitter @nathanstrutz]


On Wed, Oct 21, 2009 at 8:22 PM, Rick Colman rcol...@cox.net wrote:


 I need to query, retrieve and display a large amount of data; i.e. 4100
 rows by 50 columns of numerics, to the browser screen. It is really
 slow, and after some testing, the bottleneck seems to be on the page
 that displays the data. The query is OK and connection is ok. But, the
 user has to wait an unacceptably long time for the results to show.

 Ideally, I would like to break the returned data into about 10
 spreadsheet-style grids, with one grid per tab. TABLES is way too slow.

 Any ideas on how to render the displayed data quickly would be appreciated.

 Rick.

 

~|
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:327529
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) Teamwork and comments in code

2009-10-21 Thread Nathan Strutz

Dominic,

That's brilliant. Thanks for sharing it. I think there may be a special
place on thedailywtf.com for it :)

nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]
[Twitter @nathanstrutz]


On Wed, Oct 21, 2009 at 1:23 AM, Dominic Watson 
watson.domi...@googlemail.com wrote:


 A team mate found a piece of old code from an old dev that we were (and
 still are) both very fond of; partly for pieces of code like this:

 cfif len(trim(searchquery)) AND Morgan has fixed this EQ Yes i have
 ...

 Thought I'd share it,

 Dominic


 

~|
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:327448
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFC's.. Why use them?

2009-09-08 Thread Nathan Strutz

Brad, I love the microwave analogy.

Phillip, CFCs as a fancy include tends to be the first step on your way to
really understanding components and objects. I've been with a few groups who
have gone (and taken me) through the course. The evolution is like this:

---
CFC as a function utility library. Functions are a small piece of reusable
code, putting them together makes sense.

Put that util.cfc in the application scope, seems to make it faster. (now
it's a singleton)

CFC as a place to put your queries. Moves them out of separate files or the
top of your cfm pages. Some get stuck here because this is the least
reusable stage. This is not OO and makes working with CFCs very
uncomfortable.

CFC as the action back-end (the model) to an area of your application.
Similar to the above, but may have more processing, and some functions
without any queries.

CFC as a black-box to a specific concept in your application. Finally a real
object with properties and methods. Now, finally, you have an object that
can be reused. This step usually comes out of need for something that has to
be used in multiple apps or laziness (in a good way), not wanting to re-type
boilerplate stuff like a user/login system.

And finally, eventually, an actual model, with more objects and some actual
layers of objects. Here, you will recognize larger pieces of your
application that can be reused, not just single CFCs.
---

This is not to say that everybody will do this, everyone's experiences are
different, but it's just a pattern I've seen.

nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]
[Twitter @nathanstrutz]


On Tue, Sep 8, 2009 at 10:47 AM, b...@bradwood.com wrote:


 I'd sure hate to write a SOAP webservice in a .cfm file.

 Also, cfm files don't give you objects that can be passed around,
 provide encapsulation of data, and support code re-use via inheritance
 and method overriding.  I mean, you can do anything you want in cfm
 files, but there are some things that are just way cleaner and easier in
 a component if you want to drink the koolaid and change your paradigm.
 CFCs can be used as glorified include files with no ill side affects,
 but if that is all you are doing with them it's kind of like starting
 your microwave on fire to cook your supper over it. :)
 ~Brad

  Original Message 
  Subject: CFC's.. Why use them?
  From: Phillip Vector vec...@mostdeadlygame.com
  Date: Tue, September 08, 2009 9:39 am
  To: cf-talk cf-talk@houseoffusion.com


  Besides the code being reusable, is there a specific reason why I
  should use a CFC rather then a CFM file?



 

~|
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:326098
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFC's.. Why use them?

2009-09-08 Thread Nathan Strutz

Peter,

I understand the singleton pattern. It's lovely, on a cloudy day or sipping
some tea or whatever, but in CF, don't you think that implementing the true
singleton pattern is overkill and generally unnecessary? Consider our lack
of true constructors, the stateless nature of the web, and multiple server
configurations that many of us use. Honestly, I'm just interested in your
opinion.

Or, are you just saying we throw the word around like candy at a parade and
should stop before we hit someone in the eye? What then should we call it?

nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]
[Twitter @nathanstrutz]


On Tue, Sep 8, 2009 at 10:59 AM, Peter Boughton bought...@gmail.com wrote:


 Just a quick thought:  If, for example, you are building reusable,
 singleton components (sorry for the OO buzzwords, but it is descriptive
 terminology), then you can load those CFCs into Application scope and have
 them exist in memory only once but still be used across all requests in
 the
 app.

 Putting a CFC in the Application scope is *NOT* creating a Singleton.

 A CFC in the Application scope is an instance of that object, but there is
 nothing stopping you creating multiple instances of that CFC - whether still
 in the Application scope or other scopes.

 A Singleton is an object that *can only have one instance*, returning that
 same instance even if you try to create a new instance.

 And, particularly with OO, the times when you actually want an enforced
 single instance are rare - so if someone starts talking about Singletons,
 there's a good chance they've misunderstand OO's concepts.




~|
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:326099
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) Twitter down

2009-08-06 Thread Nathan Strutz

On Thu, Aug 6, 2009 at 11:58 AM, David McGuigan davidmcgui...@gmail.comwrote:


 I think you mean DOSN attack.



If that's a joke, I don't get it.
http://en.wikipedia.org/wiki/Denial-of-service_attack

I've heard it also called DDOS, distributed denial of service, which is more
in reference to what you're saying. A DOSN or DOSNet (Denial of Service
Network) is the malware/software behind the attack, in reference to its
network. You don't get a DOSN attack, you get a DDOS attack via a DOSNet or
you get a DOS attack.

nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]
[Twitter @nathanstrutz]



 On Thu, Aug 6, 2009 at 11:50 AM, Robert Harrison 
 rob...@austin-williams.com
  wrote:

 
  It's a self-fulfilling problem. Spread enough news there's a DOS attack
 so
  everyone goes to check it out, and there is a DOS attack.
 
 
  Robert B. Harrison
  Director of Interactive Services
  Austin  Williams
  125 Kennedy Drive, Suite 100
  Hauppauge NY 11788
  P : 631.231.6600 Ext. 119
  F : 631.434.7022
  http://www.austin-williams.com
 
  Great advertising can't be either/or.  It must be .
 
  Plug in to our blog: AW Unplugged
  http://www.austin-williams.com/unplugged
 
 
 
 
  __ Information from ESET Smart Security, version of virus
 signature
  database 4312 (20090806) __
 
  The message was checked by ESET Smart Security.
 
  http://www.eset.com
 
 
 

 

~|
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:325253
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Question re: Reactor

2009-07-27 Thread Nathan Strutz

Caroline,

There haven't been very many big changes in Reactor for a few years. You
should update to the latest version and see what breaks. (but no, I can't
confirm that it works or doesn't in SQL2005)

You may be able to win if you just update reactor, (making sure to delete
the cache files in the reactor directory) and refreshing your app...

nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]
[Twitter @nathanstrutz]


On Mon, Jul 27, 2009 at 4:47 PM, Caroline Wise caracol...@gmail.com wrote:


  We have a rather old application that uses an early version of Reactor
 (vintage 2006-ish). It works fine with SQL 2000 in the development
 environment. We don't get many change requests for this app so while it
 gets
 a lot of use in the production environment, things on dev and staging are
 pretty quiet. Recently I had to make an extremely minor content update and
 it turned out that the staging box version had an issue inserting a new
 user, a problem we could not duplicate in development or production.

 When I compared the the Reactor code it turned out that it was different
 for
 this part of the application. The user table is using some defaults and
 they
 were not picked up in the Reactor code. The client, who has control over
 the
 staging environment, updated the database to SQL 2005 some time ago and my
 suspicion is that our version of Reactor can't cope.

 I'm wondering if anyone out there is using a newer version of Reactor and
 can confirm that it works fine with SQL 2005. Also of course I'm trying to
 gauge the risk and effort involved with updating Reactor to that newer
 version. Would I have to replace the whole thing or are we talking about
 something akin to a plugin for 2005?

 Thanks in advance for your insights,


 Caroline Wise


 

~|
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:325023
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Function Encapsulation Gone Too Far? - Opinions

2009-07-21 Thread Nathan Strutz

It's hard to say if you're really overdoing it.

In one sense, the component is pretty well encapsulated.

Accessing the cgi scope just in the constructor is fair enough, though for
the true purists, you could move that out, and for the OO realists, you
could just put cgi references anywhere.

Also the use of the constructor, while not a no-no, is usually overlooked in
support of an init method. I know I always look first for an init method
well before looking for constructor code. Still, it's perfectly fine.

If you think this is an area of your app that will change, then by all
means, encapsulate it, give it its own object etc.

However...

It's like 3 lines of code you could drop in your onRequestStart method.
You'd eliminate an entire object creation, 2 cffunctions, 20+ lines of code:

cfif cgi.server_name neq listFirst(arguments.hostName, .)  .
evansville.edu or cgi.https neq on
   cflocation https://;  listFirst(arguments.hostName, .)  .
evansville.edu/ /
/cfif


But if you are going to need to overwrite that functionality in certain
cases or add complexity later on, you might as well separate it out at least
a little.


nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]
[Twitter @nathanstrutz]


On Tue, Jul 21, 2009 at 12:01 PM, Dawson, Michael m...@evansville.eduwrote:


 The code below contains a couple functions that determine if HTTPS is on
 and if the server_name is the same as the full domain name.

 On our internal network, we don't need to specify the full domain name.
 In other words, we can just use mywebsite rather than
 mywebsite.evansville.edu. However, I want to redirect the browser to
 the full domain name as well as turn HTTPS on if it is off.

 I'm trying to follow best practices where my functions do not assume to
 know anything.  This is why I'm passing in the CGI scope variables
 rather than coding them directly in the functions.  Is this correct or
 am I just making the code too hard to read?

 Would it be bad form to use the getFullHostName function directly
 inside the redirectBrowser function?

 --

 cfcomponent output=no

 cfset redirectBrowser(getFullHostName(cgi.server_name),
 cgi.server_name, cgi.https)

 cffunction name=getFullHostName access=private returntype=string
 output=no
cfargument name=hostName type=string required=yes

cfreturn listFirst(arguments.hostName, .)  .evansville.edu
 /cffunction

 cffunction name=redirectBrowser access=private returntype=void
 output=no
cfargument name=fullHostName type=string required=yes
cfargument name=serverName type=string required=yes
cfargument name=https type=string required=yes

cfif not findNoCase(arguments.fullHostName, arguments.serverName)
 or not findNoCase(arguments.https, on)
cflocation url=https://#arguments.fullHostName#/
 https://#arguments.fullHostName#/  addtoken=no statuscode=301
/cfif
 /cffunction

 /cfcomponent

 Michael Dawson
 Manager of Web Applications
 Office of Technology Services
 University of Evansville

 Each time you send an email message with a background pattern
 or loud background color, an endangered tree dies.
 Please help us save a tree. Just say NO to email backgrounds.



 

~|
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:324768
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Function Encapsulation Gone Too Far? - Opinions

2009-07-21 Thread Nathan Strutz

Mike,

I can get behind one method that determines if it needs redirection and
another that does the redirecting. Actually, because it's simply 1 if
statement, I don't oppose putting it all together in the same method.

Think about this procedure changing in the future. Again, that's what it all
comes down to. If you are going to change the if-check to see if it needs
redirection, you're very likely to change the location you redirect to -
IMO, they are related too closely to separate.

Also remember that less is less. Fewer methods means less complication,
fewer lines to maintain, faster code navigation, faster developer ramp-up
speed. (reference: http://gettingreal.37signals.com/toc.php)

nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]
[Twitter @nathanstrutz]


On Tue, Jul 21, 2009 at 12:50 PM, Dawson, Michael m...@evansville.eduwrote:


 Nathan, thanks for the reply.

 I should have mentioned that this is the Application.cfc that I'm
 buildling.  That is why I'm using the CGI scope in the constructor.

 This is sort of a follow-up to a post I had a few weeks ago.  This code
 will be placed in the constructor of the Application.cfc to redirect a
 browser to a secured connection.  It was determined that the
 most-logical place was the constructor just so no Application.cfc
 methods would have to fire before the redirect took place.

 I am fine with that logic.

 However, it seems like I am making my code too-complex for this simple
 task of redirecting a browser.  On the other hand, I would still like to
 adhere to best practices.

 After looking at my code, again, I noticed that my redirectBrowser is
 doing two things:  Determining if the browser should be redirected and
 then doing the actual redirect.

 If I were to refactor this code, I should have a method to determine if
 the browser should be redirected, then, if so, call the
 redirectBrowser method.

 But, then I think that I'm making it too complex for the deed.

 Thanks,
 Mike

 -Original Message-
 From: Nathan Strutz [mailto:str...@gmail.com]
 Sent: Tuesday, July 21, 2009 2:38 PM
 To: cf-talk
 Subject: Re: Function Encapsulation Gone Too Far? - Opinions


 It's hard to say if you're really overdoing it.

 In one sense, the component is pretty well encapsulated.

 Accessing the cgi scope just in the constructor is fair enough, though
 for the true purists, you could move that out, and for the OO realists,
 you could just put cgi references anywhere.

 Also the use of the constructor, while not a no-no, is usually
 overlooked in support of an init method. I know I always look first for
 an init method well before looking for constructor code. Still, it's
 perfectly fine.

 If you think this is an area of your app that will change, then by all
 means, encapsulate it, give it its own object etc.

 However...

 It's like 3 lines of code you could drop in your onRequestStart method.
 You'd eliminate an entire object creation, 2 cffunctions, 20+ lines of
 code:

 cfif cgi.server_name neq listFirst(arguments.hostName, .)  .
 evansville.edu or cgi.https neq on
   cflocation https://;  listFirst(arguments.hostName, .)  .
 evansville.edu/ /
 /cfif


 But if you are going to need to overwrite that functionality in certain
 cases or add complexity later on, you might as well separate it out at
 least a little.


 nathan strutz
 [Blog and Family @ http://www.dopefly.com/] [AZCFUG Manager @
 http://www.azcfug.org/] [Twitter @nathanstrutz]

 

~|
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:324776
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF based forums ap?

2009-07-15 Thread Nathan Strutz

Did you check out Ray Camden's Galleon forums app? I would bet it's on
riaforge.org. Pretty simple to figure out and modify.

On Wednesday, July 15, 2009, Paul Henderson pa...@d2phosting.com wrote:

 I'm trying to find a CF based forums ap, open source preferred but not
 required. The ones I've been able to find any postings about seem to be out
 dated. Does anyone have any recommendations?



 Thanks in advance,

 -Paul









 

~|
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:324573
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Regex wrapping div tags round img tags

2009-07-02 Thread Nathan Strutz

A regex question on this list that doesn't already have 5 answers? Wow.
Holiday weekend must be in full effect already.

Ok, you want something like this...

reReplace(string, (img[^]+), div class='cover'\1/div, ALL)

That is...

( -- capture a sub-group
img -- html image tags
[^] -- anything not a tag closer, 
+ -- for at least one character
 -- followed by the tag closer
) -- end the subgroup

and the replacement:

div class='cover'\1/div -- \1 is a backreference to the first (and only)
sub-group we captured


nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]
[Twitter @nathanstrutz]


On Thu, Jul 2, 2009 at 2:56 AM, Matthew Allen a.matthe...@yahoo.com wrote:


 Hi,

 I'll really appreciate if anyone could help. I have image tags outputted to
 my page from a database, what can I write to to wrap div tags round the
 img tags so e.g;

 img src=...images/jpgs/ducks.jpg alt= /

 I would like to change it to;
 div class=coverimg src=...images/jpgs/ducks.jpg alt= //div

 Many thanks,

 Matt

 

~|
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:324154
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: AJAX

2009-07-02 Thread Nathan Strutz

Yes, the frameworks are different, but really, there is only a few that
matter, and only one of those that really actually matter.

jQuery is, by far, the best.

If you pay attention to most javascript questions people have these days,
it's something like this:

   Q: How do I do X in javascript?
   A: You don't. Just use jQuery.

If you want a whole widget ui framework, use ExtJs. Otherwise, just use
jQuery. It's unbelievably good.

jquery.com has a tutorial area http://docs.jquery.com/Tutorials which is
good. For me, it helps to have videos, so google it or hit up youtube for
them.

nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]
[Twitter @nathanstrutz]


On Thu, Jul 2, 2009 at 11:32 AM, webmas...@pegweb.com wrote:


 Thanks a lot Andy. I knew there were different frameworks out there but
 wasn't sure how that fit in with AJAX. I assume they are all AJAX but
 much like .NET they all have different built in functions etc?


 -Original Message-
 From: Andy Matthews [mailto:li...@commadelimited.com]
 Sent: Thursday, July 02, 2009 2:26 PM
 To: cf-talk
 Subject: RE: AJAX


 I'd avoid a book on AJAX and instead pick a book focusing on a
 specific
 JavaScript framework such as jQuery, or ExtJS. If you just want AJAX
 then it
 might be worth it to write your own code, but if you're wanting rich
 internet apps then you'll be needing DOM manipulation and effects
 anyway.

 My choice has, for the last 3 years, been jQuery. It's lightweight and
 super
 easy to use. jQuery is to JavaScript like ColdFusion is to server side
 languages. It makes it fast, easy, and good.

 The Learning jQuery 1.3 book comes highly recommended. I'd also suggest
 you
 jump on the official jQuery mailing list over at Google Groups:
 http://groups.google.com/group/jquery-en


 andy

 -Original Message-
 From: webmas...@pegweb.com [mailto:webmas...@pegweb.com]
 Sent: Thursday, July 02, 2009 12:56 PM
 To: cf-talk
 Subject: AJAX


 Can anyone recommend a good book for AJAX? I want to start working on
 more
 web 2.0 style apps and with the new CF server it seems to make it
 easier. I
 just need to understand more about it and how it all works. I can
 JavaScript
 and I can CF so I wouldn't think it would be too hard to pickup. Any
 recommendations for reading material on the subject? Thanks in advance.













 

~|
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:324165
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: pagination and large recordsets (mysql)

2009-06-18 Thread Nathan Strutz

Mike,

The idea is pretty good - in fact, the mysql function found_rows() is very
intriguing. Now, with the code example, I would say that is really, really
bad SQL, putting the entire where clause in the URL - you're right to be
suspicious.

I am sure you could just rig up the query to use queryparams and it would be
fine.

Now, having said that, I also think reinventing pagination isn't useful at
this point. I have this project at riaforge -
http://paginationcfc.riaforge.org/ - a well documented CFC that handles
pagination. The problem between my component and using mysql like Jules, is
my component uses the recordcount of the query to determine how many pages
there are. You can, however, extend it to do just that. Check the docs under
extending to see an example:

http://www.dopefly.com/projects/pagination/pagination_cfc_documentation.cfm#Section6

It looks like, to do it, you will probably have to make
setTotalNumberOfItems() a public method, then also override the private
method configureInputs. Let me know if you want any help with that.


nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]
[Twitter @nathanstrutz]


On Thu, Jun 18, 2009 at 1:19 PM, Mike Little m...@nzsolutions.co.nz wrote:


 hey guys, came across the following blog post...


 http://www.webveteran.com/blog/index.php/web-coding/coldfusion/mysql-and-coldfusion-pagination-version-2/

 it is really great and works very fast indeed on a large amount of data.
 however i was wondering if anyone has seen a similar concept in cfc format
 eg. not having to put the WHERE clause in the url.

 mike

 

~|
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:323668
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 style paging navigation

2009-06-15 Thread Nathan Strutz

Thanks, Ryan.
I would have replied earlier if I had seen it.

Mike P, check out my Pagination.cfc project:
http://paginationcfc.riaforge.org/
I have an example of how to emulate the google paging here:
http://www.dopefly.com/projects/pagination/examples/index.cfm?style=google

The examples app, including images and css, are included in the download
from riaforge.

nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]
[Twitter @nathanstrutz]


On Sun, Jun 14, 2009 at 3:34 PM, Ryan Letulle bayous...@gmail.com wrote:


 Nathan Strutz at
 http://www.dopefly.com/projects/pagination/examples/

 --
 Ryan LeTulle


 On Sun, Jun 14, 2009 at 5:25 PM, mike pop mikepoplaw...@gmail.com wrote:

 
  does anybody have snippets for creating google style like paging
  navigation.
 
  First Rec - Previous Rec  31 32 33 34 35 36 37 38 39 40 Next Rec - Last
 Rec
 
  The current page should not display a link
  The Next Rec will increment the page link by one
  (e.g. if the user in this case clicks Next Rec, the links displayed will
 be
  32..41)
 
  google is a bit different but I want to display the page numbers
  sequentially and only 10 items or whatever cfparam is set to.
 
  I've found the most basic tutorials on navigation but nothing like google
  style navigation.  I can't find code snippets from a previous project.
 
  Please help me
 
  Thank you for your help
 
 

 

~|
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:323514
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: SOA Coldfusion best practices

2009-06-09 Thread Nathan Strutz

In all reality, the best thing I've seen on the subject is Sean Corfield's
PDF preso - the first result in that google search. As far as getting into
it and engaging in discussions and asking am I doing this right? type
questions, you can ask here, but the ColdSpring mailing list is probably a
better resource for that (http://coldspringframework.org).

nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]
[Twitter @nathanstrutz]


On Tue, Jun 9, 2009 at 9:55 AM, Tim Oommen toom...@duoconsulting.comwrote:


 That was actually pretty funny, but yes I have done searches on the subject
 and come back a lot of info. I guess I was hoping to find out which approach
 people leaned towards and it there were any pitfalls people have run into.

 Tim
 I hate to do this, but, did you try http://tinyurl.com/nx44fe ?
 
 
 nathan strutz
 [Blog and Family @ http://www.dopefly.com/]
 [AZCFUG Manager @ http://www.azcfug.org/]
 [Twitter @nathanstrutz]
 
 
 
 
 
  Are there any good sites or presentations that people can recommend for
  best practices when implementing a SOA architecture using ColdFusion?
 
 

 

~|
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:323286
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: SOA Coldfusion best practices

2009-06-08 Thread Nathan Strutz

I hate to do this, but, did you try http://tinyurl.com/nx44fe ?


nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]
[Twitter @nathanstrutz]


On Mon, Jun 8, 2009 at 2:49 PM, Tim Oommen toom...@playboy.com wrote:


 Are there any good sites or presentations that people can recommend for
 best practices when implementing a SOA architecture using ColdFusion?

 

~|
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:323249
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: SOA Coldfusion best practices

2009-06-08 Thread Nathan Strutz

Well, my weekend was no surprise trip to Magic Mountain or anything ;o)
I attribute all sass to lack of caffeine, but I think we all know the real
reason is that working for the man has made me a cranky person.

nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]
[Twitter @nathanstrutz]


On Mon, Jun 8, 2009 at 3:36 PM, Alan Rother alan.rot...@gmail.com wrote:


 Geez Nate,
 Someone is sassy today... Rough weekend?

 =]

 --
 Alan Rother
 Adobe Certified Advanced ColdFusion MX 7 Developer
 Manager, Phoenix Cold Fusion User Group, AZCFUG.org


 

~|
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:323257
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Old CF project (1000 .cfm and .cfc), refactor into framework

2009-05-27 Thread Nathan Strutz

Isaac's got some great stuff in there. I just wanted to throw in a couple
things and reword what he said my own way...

Typically, a non-frameworked app with thousands of cfm and cfc files is
either made very well, or it's coded like spaghetti with meatballs.

If it's well constructed*, why move to a framework at all? If you are really
into it, you may fare pretty well with a framework that does a lot more
convention over configuration. Fusebox 5.5 (without xml), CFWheels and I
think the new Model Glue beta can pick up a lot of your files without you
having to configure them all.

* My idea of well constructed means it's MVC where the model is a nice and
complete thing, portable between frameworks or different front-ends - not
necessarily the 4 objects per database table and certainly not all our
queries in this cfc, util functions in this one. Also, bonus points if you
have unit tests, more if they pass. Read up on Hal Helms' stuff if you need
hints on how to get to this point, he has a lot of thought provoking what
should the model be, really? kind of stuff.

If your app has a lot of includes, especially if nested (it's spaghetti
code), and meatballed objects thrown in for whatever random thing, and
especially if you have more than 1 cfc call per cfm, then you could be in
trouble. Depending on how bad it is, you are looking at months of work and a
partial rewrite.

Of cours then if your HTML stinks too, and you have a lot of inline styles
and use tables for design, you may want to re-do that as well, so, that's
essentially a full rewrite.


Now, to choose a framework or not. It sounds like you're doing some
high-level rethinking of your app. If you decide to go non-framework, won't
you just end up in this same spot again in 2 years? Do something that will
last. Do something that's structured the most obvious way for new people and
for yourself in the coming years.

If nothing else, get your entire model into well encapsulated CFCs and your
app into a generic MVC structure, then you can port it pretty freely to any
MVC compatible framework. Trust me, you will thank yourself repetedly every
time you need to update it, and programmers down the line will bless you
instead of curse you.


nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]
[Twitter @nathanstrutz]


On Wed, May 27, 2009 at 9:17 AM, s. isaac dealey i...@turnkey.to wrote:


  I want your opinion ( or experience ) with refactoring an old project
  into a framework. I am working now on a old non-frameworked project
  with plain cfm files with .cfc function and object libraries. This
  projects contains a bunch of .cfm files and .cfc. About 1000 items.
  The discussion with my colleagues is that some want to refactor the
  whole project in a framework. I think it's to much work, and you can
  better start from scratch. My other colleagues disagrees. Do you have
  any experience or opinions?

 Both approaches work. There are a lot of variables involved, so it would
 be difficult to offer a blanket suggestion about how to approach this
 problem. The amount of business logic that's been placed in or left out
 of the CFCs will have a dramatic impact on the amount of time it's
 likely to require to convert the application to a framework. If most of
 the business logic is already in the CFCs, then converting to the
 framework shouldn't take very long.

 If you've got a lot of business logic in .cfm files currently, you might
 want to start by converting that logic into objects -- which is what you
 want anyway, irrespective of which framework you choose. And at least
 for that portion of the migration project, I would tend to say that it
 makes more sense to keep the business logic you have rather than start
 over from scratch, since that has nothing to do with your framework.

 The rest of the project will be converting the views (HTML) and creating
 events in the framework's controllers. It's not difficult but it can be
 tedious. The onTap framework is designed in a particular way that allows
 you to convert individual pages incrementally in a time permitting
 fashion. None of the other frameworks I've seen will allow you to do
 this yet, you either convert them all at once, or not at all. The onTap
 framework will also allow you to maintain your existing links and form
 actions, which again, it's the only framework I've seen that will
 eliminate that step from your workload (though I've heard that upcoming
 versions of FuseBox will have features that allow this... I think).

 Incidentally, I converted Ray Camden's Galleon Forums application to 5
 different frameworks - ColdBox, Mach-II, Model-Glue, 2 versions of
 FuseBox (with  without XML) and the onTap framework. In total the
 project took me about 2 week. I don't think it had 1000 files, however,
 I was able to replicate the migration to 5 different frameworks all by
 myself during that time while still maintaining a 9-5 job. So I think
 that says

  1   2   3   4   5   6   7   >