RE: More fun with regular expressions
I repeat: "^[[:alnum:]]*([a-z][0-9]|[0-9][a-z])[[:alnum:]]*$" > -Original Message- > From: Charlie Griefer [mailto:[EMAIL PROTECTED] > Sent: woensdag 30 juni 2004 3:37 > To: CF-Talk > Subject: RE: More fun with regular expressions > > ...but that won't ensure at least one alpha and one numeric... > > A will pass (should fail) > 12345 will pass (should fail) > > Maybe it should just be two separate regex calls? One to > check for an alpha and a number...and another to check for no > non-alphanumerics (?) > > Charlie > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Debugging CFMX
I'm utterly perplexed as to how you could possibly have three log entries, unless your server cycled between each one. Did you try shortening the timeout lengths? That way request will just error out, rather than waiting around and putting pressure on CF. Since they only need to be aquired a single time, setting the timeout to 1 be perfectly adequate. > -Original Message- > From: Brook Davies [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 10:24 PM > To: CF-Talk > Subject: RE: Debugging CFMX > > Well, I restarted the service to 'test' the new code (after > testing under > no load on the dev server) and the requests again started > stacking up and I > could not get the server to start without adding conditional > code to only > allow my IP through... > > The new code looks like this: > > > > > structKeyExists(application,"app_vars_loaded") /> > > > > > > > > > "lfcomponents.triggers.triggerAction" name = > "application.ComponentInstance.triggerAction"> > > "application.ComponentInstance.lfInsertData"> > > "application.ComponentInstance.lfincrement"> > > "application.ComponentInstance.lfcreatetable"> > > "lfcomponents.lfdescript_string" name = > "application.ComponentInstance.lfdescript_string"> > > > > > > > and now my log shows (see the cflog above): > > "Information","jrpp-0","06/29/04","22:12:24","LOGIFORMSV2","Running > Instantiation of application components" > "Information","jrpp-2","06/29/04","22:12:26","LOGIFORMSV2","Running > Instantiation of application components" > "Information","jrpp-1","06/29/04","22:15:41","LOGIFORMSV2","Running > Instantiation of application components" > > So I guess that did not work...I wonder why... > > Brook > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Debugging CFMX
Well, I restarted the service to 'test' the new code (after testing under no load on the dev server) and the requests again started stacking up and I could not get the server to start without adding conditional code to only allow my IP through... The new code looks like this: structKeyExists(application,"app_vars_loaded") /> "application.ComponentInstance.triggerAction"> "application.ComponentInstance.lfInsertData"> "application.ComponentInstance.lfincrement"> "application.ComponentInstance.lfcreatetable"> "application.ComponentInstance.lfdescript_string"> and now my log shows (see the cflog above): "Information","jrpp-0","06/29/04","22:12:24","LOGIFORMSV2","Running Instantiation of application components" "Information","jrpp-2","06/29/04","22:12:26","LOGIFORMSV2","Running Instantiation of application components" "Information","jrpp-1","06/29/04","22:15:41","LOGIFORMSV2","Running Instantiation of application components" So I guess that did not work...I wonder why... Brook At 10:16 PM 6/29/2004, you wrote: >You are "mostly" correct. I missed the inner isDefined() with all the >wrapping, so you're right about that. However, since the variable you're >checking isn't the last variable initialized and/or the check isn't within a >CFLOCK, you can potentially get request that proceed past the >initialization, before everything is initialized, undoubtedly causing chaos. > >Glad to hear you got it fixed though. Hope I was of some assistance, and >not just a blundering, half-understanding idiot. > >Cheers, >barneyb > > > -Original Message- > > From: Brook Davies [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, June 29, 2004 10:00 PM > > To: CF-Talk > > Subject: RE: Debugging CFMX > > > > Barney, I'm just re-reading this now and about to implement > > some of your > > suggestions. I though that this did the same thing, because > > the isdefined > > is checked inside the lock also? What am I missing? > > > > > > (attributes.refreshnow)> > > > > > > > > > > isdefined("application.ComponentInstance.lfInsertData")> > > > > > > > > > > > > > > > >-- >[Todays Threads] >[This Message] >[Subscription] >[Fast > Unsubscribe] [User Settings] >[Donations >and Support] > >-- > >1182d672.jpg > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Debugging CFMX
You are "mostly" correct. I missed the inner isDefined() with all the wrapping, so you're right about that. However, since the variable you're checking isn't the last variable initialized and/or the check isn't within a CFLOCK, you can potentially get request that proceed past the initialization, before everything is initialized, undoubtedly causing chaos. Glad to hear you got it fixed though. Hope I was of some assistance, and not just a blundering, half-understanding idiot. Cheers, barneyb > -Original Message- > From: Brook Davies [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 10:00 PM > To: CF-Talk > Subject: RE: Debugging CFMX > > Barney, I'm just re-reading this now and about to implement > some of your > suggestions. I though that this did the same thing, because > the isdefined > is checked inside the lock also? What am I missing? > > > (attributes.refreshnow)> > > > > > isdefined("application.ComponentInstance.lfInsertData")> > > > > > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Debugging CFMX
Ahh, I think I just figured it out! The flag, is based on an application var that is locked when being created, so the check can't run until that lock finishes which makes it safe. lol Thx Brook [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Debugging CFMX
Barney, I'm just re-reading this now and about to implement some of your suggestions. I though that this did the same thing, because the isdefined is checked inside the lock also? What am I missing? (attributes.refreshnow)> isdefined("application.ComponentInstance.lfInsertData")> At 02:09 PM 6/29/2004, you wrote: >Your lock will still cause every request that comes in before the first >request finishes to recreate all the application-scope CFCs, because the >conditional is _outside_ the CFLOCK tag. In other words, request 1 will >come in, do the conditional, do the lock, do the initialization. Request 2 >will come in, do the conditional, wait for the lock, get it, do the >initialization. Repeat for as many requests as come in before the first one >finishes. > >If you move the conditional inside the CFLOCK tag, you'll solve that >problem. However, then you'll force every request to get that lock, which >is bad. To solve both problems, use a dual-lock, dual-conditional setup. >Here's how we do it: > > > >"app_vars_loaded") /> > > > > > > > > > > > > > > >The first CFLOCK is read-only, so it won't generate any contention on >requests after the first, and sets a local variable about whether >initialization is needed. The first conditional skips initialization if >it's not needed. The second CFLOCK single threads access to the >initialization code. The second conditional checks to see if initialization >is still needed, now that this request is the ONLY request that could >possibly influence the outcome of that decision. That's the part you're >missing, which is allowing multiple requests to initialize the application, >thereby slowing it down. > >I'm also using a dedicated variable for indicating whether the application >is loaded or not, rather than one of the actual application variables. I'd >recommend that, just for clarity's sake. > >A side benefit of this, is that if you never write to any of the application >variables that you set in the initialization block, you never have to lock >any of the reads anywhere in the application. Keep in mind that instance >variables of application-scoped CFCs are actually application-scope >variables, so they count. However, if access to the instance variables is >synchronized inside the CFC using instance-specific named locks (a good >idea), then you needn't worry about them > >Cheers, >barneyb > > > -Original Message- > > From: Brook Davies [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, June 29, 2004 1:49 PM > > To: CF-Talk > > Subject: RE: Debugging CFMX > > > > Thanks for the feedback Barneyb, I appreciate it. I'm having massive > > trouble getting this app to start-up under load. I have > > already de-selected > > the save class files option because there were LOTS of class > > files, and I > > think this helped a bit. > > > > There is definitely something fishy going on, but I am not > > sure where it is > > exactly. My application contains two parts, they share an > > application.cfm > > file, but within that application.cfm file there are two different > > cfapplication tags. The main application is all pages other > > than a single > > cfm page that is used to handle 'external' requests. So, in > > pseudo code, > > the application.cfm does this: > > > > > > > > > > > > > > > > > > > > > > > > > > > > clientmanagement="yes" clientstorage="logiforms_clientvars"> > > > > > > > > > > > > The reason I am pointing this out, is because one of the > > applications, the > > site logiformsV2, starts up much more smoothly than the > > external request > > handling site (which essentially handles form submissions) > > which can hang > > forever... > > > > If we focus on the 'problem' app, the initialization code in the > > application.cfm looks like this: > > > > > > (attributes.refreshnow)> > > > > > > > > > > isdefined("application.ComponentInstance.lfInsertData")> > > > > > > "lfcomponents.triggers.triggerAction" name = > > "application.ComponentInstance.triggerAction"> > > > > "lfcomponents.lfinsert_record" name > > = "application.ComponentInstance.lfInsertData"> > > > > "lfcomponents.lfincrement" name = > > "application.ComponentInstance.lfincrement"> > > > > "lfcomponents.lfcreatetable" name = > > "application.ComponentInstance.lfcreatetable"> > > > > "lfcomponents.lfdescript_string" > > name = "application.ComponentInstance.lfdescript_string"> > > > > > > > > > > Now, my startup log file only contains one line, which I > > guess indicates > > that this is working, and only being run by one thread. > > > > "Information","jrpp-18","06/29/04","12:20:49","LOGIFORMSV2_EXT > > ERNAL","Running > > Instantiation of external app
Re: Notifying Server of Client Side Events
I think Brent's rpc library is overkill these days (ns4?) but maybe you need it. Pengoworks also has an api using an iframe. For new browsers, you can also just load scripts dynamically except in Safari (annoyingly won't act on them), or use httpRequest in Moz/IE Win/Safari. Apple developer has a good recent article on the latter. I use dynamic scripts now where a small window pops up and loads the page if no dynamic script support, but was thinking to combine methods and use httpRequest but load scripts for IE Mac and Opera. Each method has it's uses and issues. For example, with dynamic scripts, you get back js (i.e., "alert('hi')" will simply run), which can be handy. With httpRequest, you get data, xml, html, whatever. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: dynamic path in cfc
Perfectly legal. Go for it. On Tue, 29 Jun 2004 23:19:19 -0400, Ben Densmore <[EMAIL PROTECTED]> wrote: > > If I create an instance of a cfc using createObject() can I use an application variable in the path that points to the cfc or does the path have to be hard coded? > > > > Thanks, > Ben > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: dynamic path in cfc
You can use a variable to create objects. You can't, however, use a variable in the type attribute of CFARGUMENT or the returntype attribute of CFFUNCTION. Cheers, barneyb > -Original Message- > From: Ben Densmore [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 8:19 PM > To: CF-Talk > Subject: dynamic path in cfc > > If I create an instance of a cfc using createObject() can I > use an application variable in the path that points to the > cfc or does the path have to be hard coded? > > > "#application.cfcPath#.components") /> > > Thanks, > Ben > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
dynamic path in cfc
If I create an instance of a cfc using createObject() can I use an application variable in the path that points to the cfc or does the path have to be hard coded? Thanks, Ben [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: More fun with regular expressions
You might be able to do it in one regexp but 2 will be a lot less effort & a lot easier to understand 6 months from now. Dick On Jun 29, 2004, at 6:37 PM, Charlie Griefer wrote: > ...but that won't ensure at least one alpha and one numeric... > > A will pass (should fail) > 12345 will pass (should fail) > > Maybe it should just be two separate regex calls? One to check for an > alpha and a number...and another to check for no non-alphanumerics (?) > > Charlie > > -Original Message- > From: Dick Applebaum [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 6:11 PM > To: CF-Talk > Subject: Re: More fun with regular expressions > > ReFindNoCase("[^A-Z0-9]", yourSource) > > HTH > > Dick > > On Jun 29, 2004, at 1:40 PM, Charlie Griefer wrote: > > > Hey regexp gurus... > > > > I'm trying to formulate an _expression_ that checks a string for at > > least one > > alpha and at least one numeric character, but -no- non-alphanumeric > > characters. > > > > Getting the alphanumeric combo I seem to have been able to do...but > > adding > > the 'no non-alphanumerics' into the _expression_ isn't working out > for > > me. > > > > Much appreciation in advance. > > > > Charlie > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Create Links Symlinks with CFMX/Java
Nothing happened So I added a File Exists test (entire code below) Then tried "escaping" the & BTW, CFContent could not resolve a manually created symlink --- interesting Dick #Application.Tracks[URL.TID]["Location"]# "")) /> #FilePath# #FileType# file=#FilePath# deleteFile = "No"> VALUE="attachment; filename=song.mp3"> file=#FilePath# deleteFile = "No"> On Jun 29, 2004, at 6:22 PM, Jordan Michaels wrote: > Interesting. Mind if I ask what went wrong? Was it passing an incorrect > path or was the path not being interpreted correctly? > > Warm regards, > Jordan > > Dick Applebaum wrote: > > > I actually tried "escaping" the ampersand with: > > > > 2 ampersands > > \& > > > > neither works. > > > > Dick > > On Jun 29, 2004, at 5:32 PM, Jordan Michaels wrote: > > > > > Would it be possible for you to do a Replace function on the path > > > before > > > you pass it on to the tag? Just replace the one ampersand with > two of > > > them and CF should interpret it correctly. > > > > > > Just an idea... > > > > > > -- > > > Warm regards, > > > Jordan Michaels > > > Vivio Technologies > > > http://www.viviotech.net/ > > >[EMAIL PROTECTED] > > > > > > Dick Applebaum wrote: > > > > > > > On Jun 29, 2004, at 12:56 PM, Mark Drew wrote: > > > > > > > > > I am not sure if this would work (as I am not sure what > precicely > > > you > > > > > are trying to achieve) but would CF mappings help in this > case? > > > > > > > > I don't think mappings are the answer. > > > > > > > > Here's an example of the specific problem -- I want to serve > an .mp3 > > > > (could be a .mov) file from Apples iTunes directory > sub-structure > > > which > > > > might look as follows: > > > > > > > > --artist > > > > album > > > > ---track (song) name > > > > > > > > or > > > > > > > > --Willie Nelson & Ray Charles > > > > unKnown Album > > > > --Seven Spanish Angels.mp3 > > > > > > > > AFAIK, these fields can contain any valid character except > colon (:) > > > > > > > > Now, I get the path to the tracks by parsing an XML file which > > > yields a > > > > path: > > > > > > > > /iTunes Music/Willie Nelson & Ray Charles/unKnown > Album/Seven > > > > Spanish Angels.mp3 > > > > > > > > If I try to serve this with CFContent : > > > > > > > > > > > > file=#FilePath# > > > > deleteFile = "No"> > > > > > > > > CFMX can't find the file -- it barfs on the & -- and I don't > know > > > how > > > > to escape it > > > > > > > > I suppose I could use a mapping and cflocation, but that > exposes my > > > > file/directory structure. > > > > > > > > Dick > > > > > > > > "In times like these, it helps to recall that > > > > there have always been times like these." > > > > - Paul Harvey - > > > > > > > > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
John, Just plugging in the ethernet cable is dangerous :) I'm not suggesting creating any client-side code providing any type of description of the database. Basically, I'm just suggesting that CFFORM be combined, slightly, with CFINSERT/CFUPDATE so that on post the CFFORM tag would realize it's posted to itself and invoke the appropriate cfInsert/cfUpdate functionality. I imagine/hope the underpinnings of these two tags (since they've been around awhile) use parameterized queries (cfqueryparam), providing a good layer of data security, and the client-side validation provided by CFFORM would probably be "good enough" for anyone using this functionality. I doubt I'd use it anywhere except on quick app I'd do for personal use only, but ColdFusion has always been about abstracting complex processes for easier use by less, um, hard-core developers, so why not take that to the Nth and simpify data binding? -joe [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
John, Just plugging in the ethernet cable is dangerous :) I'm not suggesting creating any client-side code providing any type of description of the database. Basically, I'm just suggesting that CFFORM be combined, slightly, with CFINSERT/CFUPDATE so that on post the CFFORM tag would realize it's posted to itself and invoke the appropriate cfInsert/cfUpdate functionality. I imagine/hope the underpinnings of these two tags (since they've been around awhile) use parameterized queries (cfqueryparam), providing a good layer of data security, and the client-side validation provided by CFFORM would probably be "good enough" for anyone using this functionality. I doubt I'd use it anywhere except on quick app I'd do for personal use only, but ColdFusion has always been about abstracting complex processes for easier use by less, um, hard-core developers, so why not take that to the Nth and simpify data binding? -joe - Original Message - From: Burns, John D <[EMAIL PROTECTED]> Date: Tue, 29 Jun 2004 17:48:15 -0400 Subject: RE: Blackstone @ CF-FUN '04 To: CF-Talk <[EMAIL PROTECTED]> This sounds like it could be dangerous though. If there was some sort of code generated on the client side that could pass directly to some kind of "auto-input" to a database, it seems like someone could spoof the client and do some damage to your server or something. I wouldn't like putting any kind of controls on the client side of things, especially passing any kind of information about my database that would be passed to the next page for an "auto-insert". Plus, I usually like to do some kind of validation before anything goes into the database. John From: Joe Rinehart [mailto:[EMAIL PROTECTED] Sent: Tue 6/29/2004 11:43 AM To: CF-Talk Subject: Re: Blackstone @ CF-FUN '04 Ben, Thanks - forgot about the Drumbeat, that was a while back! Didn't quite mean as far as auto-generating the form itself, just defining a relationship between the form and a table, but, hey, the less we have to do... -joe [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: More fun with regular expressions
...but that won't ensure at least one alpha and one numeric... A will pass (should fail) 12345 will pass (should fail) Maybe it should just be two separate regex calls? One to check for an alpha and a number...and another to check for no non-alphanumerics (?) Charlie -Original Message- From: Dick Applebaum [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 6:11 PM To: CF-Talk Subject: Re: More fun with regular expressions ReFindNoCase("[^A-Z0-9]", yourSource) HTH Dick On Jun 29, 2004, at 1:40 PM, Charlie Griefer wrote: > Hey regexp gurus... > > I'm trying to formulate an _expression_ that checks a string for at > least one > alpha and at least one numeric character, but -no- non-alphanumeric > characters. > > Getting the alphanumeric combo I seem to have been able to do...but > adding > the 'no non-alphanumerics' into the _expression_ isn't working out for > me. > > Much appreciation in advance. > > Charlie > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
Is this an original feature of common web development platforms? Is something like this already available in .NET, J2EE, Websphere etc? -F - Original Message - From: Samuel R. Neff To: CF-Talk Sent: Monday, June 28, 2004 12:14 PM Subject: RE: Blackstone @ CF-FUN '04 What he demoed was the ability to call CFC methods in response to non-HTTP events, such as socket connections, database changes, file changes, etc. The example he showed had CF watching a "drop" folder and he copied a text file to the folder and CF automatically detected that the file was added and ran a CFC method to process the template and import the data into a database. Also related on the "not before seen" list was asynchronous method calls so you can have one request set off a separate cf template call and have things run in parallel. No example shown and no more details given. Very neat though. Best regards, Sam Blog http://www.rewindlife.com TeamMM http://www.macromedia.com/go/team > -Original Message- > From: Alexander Sherwood [mailto:[EMAIL PROTECTED] > Sent: Monday, June 28, 2004 11:56 AM > To: CF-Talk > Subject: SOT: Blackstone @ CF-FUN '04 > > Slight OT here: > > Anyone catch Ben's Blackstone keynote(s) at CF-FUN? It was > rumored that he was going to demo some features not > previously shown on the User Group tour this summer. > > Anyone have the details?! ;-) > > Thanks! > > -- > Alex [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: J2EE SessionID with CFMX6.1 and Applets
The session data exists only in memory on the server side and the client applet has no knowledge of them and no way to directly access them on the server. You could have a cfm page configured to serialize the session parameters and the applet could periodically connect back to the server to this special page in order to view the serialized session data, and then the applet could replicate the session data internally on the client each time. -Steven Erat _ From: Dr ML [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 9:13 PM To: CF-Talk Subject: J2EE SessionID with CFMX6.1 and Applets Hi everyone! I am having a problem and hopefully someone here can give me a hand. I have an appication running in J2EE, CFMX 6.1. When the user logs in to the system, a series of session values are set. On one of the pages, a java applet runs that uploads a file. I need to share the user's SESSION values with the applet so the system knows what to do with the file and the security measures don't activate. I tried passing URLtoken in the URL that the applet uses, but this fails. I also attempted to put the jsessionID in the URL as index.cfm;jsessionID=1234 None of the approaches that I have used so far work. The Java console shows that that applet is being caught by the security system and isn't seeing any of the user's session values. Can someone please tell me how to pass the session values to an applet? Thanks, Mark [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Create Links Symlinks with CFMX/Java
Interesting. Mind if I ask what went wrong? Was it passing an incorrect path or was the path not being interpreted correctly? Warm regards, Jordan Dick Applebaum wrote: > I actually tried "escaping" the ampersand with: > > 2 ampersands > \& > > neither works. > > Dick > On Jun 29, 2004, at 5:32 PM, Jordan Michaels wrote: > > > Would it be possible for you to do a Replace function on the path > > before > > you pass it on to the tag? Just replace the one ampersand with two of > > them and CF should interpret it correctly. > > > > Just an idea... > > > > -- > > Warm regards, > > Jordan Michaels > > Vivio Technologies > > http://www.viviotech.net/ > > [EMAIL PROTECTED] > > > > Dick Applebaum wrote: > > > > > On Jun 29, 2004, at 12:56 PM, Mark Drew wrote: > > > > > > > I am not sure if this would work (as I am not sure what precicely > > you > > > > are trying to achieve) but would CF mappings help in this case? > > > > > > I don't think mappings are the answer. > > > > > > Here's an example of the specific problem -- I want to serve an .mp3 > > > (could be a .mov) file from Apples iTunes directory sub-structure > > which > > > might look as follows: > > > > > > --artist > > > album > > > ---track (song) name > > > > > > or > > > > > > --Willie Nelson & Ray Charles > > > unKnown Album > > > --Seven Spanish Angels.mp3 > > > > > > AFAIK, these fields can contain any valid character except colon (:) > > > > > > Now, I get the path to the tracks by parsing an XML file which > > yields a > > > path: > > > > > > /iTunes Music/Willie Nelson & Ray Charles/unKnown Album/Seven > > > Spanish Angels.mp3 > > > > > > If I try to serve this with CFContent : > > > > > > > > > file=#FilePath# > > > deleteFile = "No"> > > > > > > CFMX can't find the file -- it barfs on the & -- and I don't know > > how > > > to escape it > > > > > > I suppose I could use a mapping and cflocation, but that exposes my > > > file/directory structure. > > > > > > Dick > > > > > > "In times like these, it helps to recall that > > > there have always been times like these." > > > - Paul Harvey - > > > > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Create Links Symlinks with CFMX/Java
I am on the Mac -- but I want the app to run on windows, too. I will need to do some reading & fillding to try the Java suggestions, but I will. IF I can find/access the file with Java, then I guess I will need to read it into a variable so I can serve it with cfcontent. I'd rather just cfcontent the file, but this would be acceptable. Dick leaning towards learning Java -- then I'll really be dangerous! On Jun 29, 2004, at 5:29 PM, Barney Boisvert wrote: > Can you create a java.io.File object with the path, and get any > attributes > (like it's size)? What does getCanonicalPath() return? > > You on windows, or your Mac? If you're on windows, you could manually > conver the directories to the progra~1 style, and then use that. > > Cheers, > barneyb > > > -Original Message- > > From: Dick Applebaum [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, June 29, 2004 5:19 PM > > To: CF-Talk > > Subject: Re: Create Links Symlinks with CFMX/Java > > > > On Jun 29, 2004, at 12:56 PM, Mark Drew wrote: > > > > > I am not sure if this would work (as I am not sure what > > precicely you > > > are trying to achieve) but would CF mappings help in this case? > > > > I don't think mappings are the answer. > > > > Here's an example of the specific problem -- I want to serve an .mp3 > > (could be a .mov) file from Apples iTunes directory > > sub-structure which > > might look as follows: > > > > --artist > > album > > ---track (song) name > > > > or > > > > --Willie Nelson & Ray Charles > > unKnown Album > > --Seven Spanish Angels.mp3 > > > > AFAIK, these fields can contain any valid character except colon (:) > > > > Now, I get the path to the tracks by parsing an XML file > > which yields a > > path: > > > > /iTunes Music/Willie Nelson & Ray Charles/unKnown Album/Seven > > Spanish Angels.mp3 > > > > If I try to serve this with CFContent : > > > > > > file=#FilePath# > > deleteFile = "No"> > > > > CFMX can't find the file -- it barfs on the & -- and I don't know > how > > to escape it > > > > I suppose I could use a mapping and cflocation, but that exposes my > > file/directory structure. > > > > Dick > > > > "In times like these, it helps to recall that > > there have always been times like these." > > - Paul Harvey - > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Create Links Symlinks with CFMX/Java
I actually tried "escaping" the ampersand with: 2 ampersands \& neither works. Dick On Jun 29, 2004, at 5:32 PM, Jordan Michaels wrote: > Would it be possible for you to do a Replace function on the path > before > you pass it on to the tag? Just replace the one ampersand with two of > them and CF should interpret it correctly. > > Just an idea... > > -- > Warm regards, > Jordan Michaels > Vivio Technologies > http://www.viviotech.net/ > [EMAIL PROTECTED] > > Dick Applebaum wrote: > > > On Jun 29, 2004, at 12:56 PM, Mark Drew wrote: > > > > > I am not sure if this would work (as I am not sure what precicely > you > > > are trying to achieve) but would CF mappings help in this case? > > > > I don't think mappings are the answer. > > > > Here's an example of the specific problem -- I want to serve an .mp3 > > (could be a .mov) file from Apples iTunes directory sub-structure > which > > might look as follows: > > > > --artist > > album > > ---track (song) name > > > > or > > > > --Willie Nelson & Ray Charles > > unKnown Album > > --Seven Spanish Angels.mp3 > > > > AFAIK, these fields can contain any valid character except colon (:) > > > > Now, I get the path to the tracks by parsing an XML file which > yields a > > path: > > > > /iTunes Music/Willie Nelson & Ray Charles/unKnown Album/Seven > > Spanish Angels.mp3 > > > > If I try to serve this with CFContent : > > > > > > file=#FilePath# > > deleteFile = "No"> > > > > CFMX can't find the file -- it barfs on the & -- and I don't know > how > > to escape it > > > > I suppose I could use a mapping and cflocation, but that exposes my > > file/directory structure. > > > > Dick > > > > "In times like these, it helps to recall that > > there have always been times like these." > > - Paul Harvey - > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
J2EE SessionID with CFMX6.1 and Applets
Hi everyone! I am having a problem and hopefully someone here can give me a hand. I have an appication running in J2EE, CFMX 6.1. When the user logs in to the system, a series of session values are set. On one of the pages, a java applet runs that uploads a file. I need to share the user's SESSION values with the applet so the system knows what to do with the file and the security measures don't activate. I tried passing URLtoken in the URL that the applet uses, but this fails. I also attempted to put the jsessionID in the URL as index.cfm;jsessionID=1234 None of the approaches that I have used so far work. The Java console shows that that applet is being caught by the security system and isn't seeing any of the user's session values. Can someone please tell me how to pass the session values to an applet? Thanks, Mark - Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: More fun with regular expressions
ReFindNoCase("[^A-Z0-9]", yourSource) HTH Dick On Jun 29, 2004, at 1:40 PM, Charlie Griefer wrote: > Hey regexp gurus... > > I'm trying to formulate an _expression_ that checks a string for at > least one > alpha and at least one numeric character, but -no- non-alphanumeric > characters. > > Getting the alphanumeric combo I seem to have been able to do...but > adding > the 'no non-alphanumerics' into the _expression_ isn't working out for > me. > > Much appreciation in advance. > > Charlie > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Notifying Server of Client Side Events
Here's an old article I wrote with a simple mechanism to do that: http://www.depressedpress.com/DepressedPress/Content/ColdFusion/Essays/GIFAs Pipe/Index.cfm Should be just what you need. Jim Davis From: Nick Baker [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 11:20 AM To: CF-Talk Subject: Notifying Server of Client Side Events CF 5.0 I am converting an HTML site that uses a lot of Bookmark linking to CF. I need to track when the visitor moves from one Bookmark to another on the same page. I could break each section of the page into a separate CFM template, but that would cause a server request, and slow down response time. Is there some kind of client side (or JS) function that would communicate back to the CF server when a link was click on? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
Thanks Brandon I tried RealBASIC years ago and it still carried many of the disadvantages that are inherent in the BASIC language. A quick google shows me that they have just added SQL query support to the latest release. Prolly a step backwards for what I want to do> Dick On Jun 29, 2004, at 12:25 PM, Brandon Harper wrote: > Dick, > > You might want to check out REALbasic, it seems to have most all of > what you are looking for: > > http://www.realsoftware.com/ > > I've never used it myself, but one of my friends at IBM uses it to > write cross platform utilities. > > Hopefully that's of some help. > > - Brandon > > -- > -- > http://devnulled.com > http://spooled.net > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
On Jun 29, 2004, at 1:58 PM, Jochem van Dieten wrote: > > > app in the "ultimate" way -- having the ability to get the results I > > need, can outweigh how "elegantly" the program was written. > > > > I have nothing against learning other languages -- if I have a need. > > All we are saying is that you have that need. > > I am not yet convinced -- I can use Director for some of what I want to do -- but the languages are lingo and _javascript_ and it's more expensive than CFMX! I could use RealBasic, but am not convinced that it is a step forward, Java seems overkill -- cannot justify the long learning curve and longer (than CFML) development time. PHP is an alternative, but CFML is superior for most things, (IMO) Could brush up on Pearl .. but CFML is easier to code and maintain. Dick "In times like these, it helps to recall that there have always been times like these." - Paul Harvey - [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
On Jun 29, 2004, at 2:11 PM, Ben Forta wrote: > Correct, CF runs on top of a J2EE server (whether integrated or not), > and > that does not change. Gateways allow for all sorts of events (perhaps > not > HTTP originated events) to trigger ColdFusion processing, and > gateways allow > CF to return data to "clients" other than the web browser. The > underlying > Java server is still needed. And sure, you could indeed have an app > that > never interacted with a web server or browser, if you so needed. Does this include Jetty's Servlet Container instead of a j2EE server? Could the UI app be a Flash standalone app (or Rob Rohan's Neuromancer) that communicates with CF via Flash remoting. Of course, we could always use Blackstone's tag %^)> Dick "In times like these, it helps to recall that there have always been times like these." - Paul Harvey - [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Create Links Symlinks with CFMX/Java
Would it be possible for you to do a Replace function on the path before you pass it on to the tag? Just replace the one ampersand with two of them and CF should interpret it correctly. Just an idea... -- Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ [EMAIL PROTECTED] Dick Applebaum wrote: > On Jun 29, 2004, at 12:56 PM, Mark Drew wrote: > > > I am not sure if this would work (as I am not sure what precicely you > > are trying to achieve) but would CF mappings help in this case? > > I don't think mappings are the answer. > > Here's an example of the specific problem -- I want to serve an .mp3 > (could be a .mov) file from Apples iTunes directory sub-structure which > might look as follows: > > --artist > album > ---track (song) name > > or > > --Willie Nelson & Ray Charles > unKnown Album > --Seven Spanish Angels.mp3 > > AFAIK, these fields can contain any valid character except colon (:) > > Now, I get the path to the tracks by parsing an XML file which yields a > path: > > /iTunes Music/Willie Nelson & Ray Charles/unKnown Album/Seven > Spanish Angels.mp3 > > If I try to serve this with CFContent : > > > file=#FilePath# > deleteFile = "No"> > > CFMX can't find the file -- it barfs on the & -- and I don't know how > to escape it > > I suppose I could use a mapping and cflocation, but that exposes my > file/directory structure. > > Dick > > "In times like these, it helps to recall that > there have always been times like these." > - Paul Harvey - > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Create Links Symlinks with CFMX/Java
Can you create a java.io.File object with the path, and get any attributes (like it's size)? What does getCanonicalPath() return? You on windows, or your Mac? If you're on windows, you could manually conver the directories to the progra~1 style, and then use that. Cheers, barneyb > -Original Message- > From: Dick Applebaum [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 5:19 PM > To: CF-Talk > Subject: Re: Create Links Symlinks with CFMX/Java > > On Jun 29, 2004, at 12:56 PM, Mark Drew wrote: > > > I am not sure if this would work (as I am not sure what > precicely you > > are trying to achieve) but would CF mappings help in this case? > > I don't think mappings are the answer. > > Here's an example of the specific problem -- I want to serve an .mp3 > (could be a .mov) file from Apples iTunes directory > sub-structure which > might look as follows: > > --artist > album > ---track (song) name > > or > > --Willie Nelson & Ray Charles > unKnown Album > --Seven Spanish Angels.mp3 > > AFAIK, these fields can contain any valid character except colon (:) > > Now, I get the path to the tracks by parsing an XML file > which yields a > path: > > /iTunes Music/Willie Nelson & Ray Charles/unKnown Album/Seven > Spanish Angels.mp3 > > If I try to serve this with CFContent : > > > file=#FilePath# > deleteFile = "No"> > > CFMX can't find the file -- it barfs on the & -- and I don't know how > to escape it > > I suppose I could use a mapping and cflocation, but that exposes my > file/directory structure. > > Dick > > "In times like these, it helps to recall that > there have always been times like these." > - Paul Harvey - [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Create Links Symlinks with CFMX/Java
On Jun 29, 2004, at 12:56 PM, Mark Drew wrote: > I am not sure if this would work (as I am not sure what precicely you > are trying to achieve) but would CF mappings help in this case? I don't think mappings are the answer. Here's an example of the specific problem -- I want to serve an .mp3 (could be a .mov) file from Apples iTunes directory sub-structure which might look as follows: --artist album ---track (song) name or --Willie Nelson & Ray Charles unKnown Album --Seven Spanish Angels.mp3 AFAIK, these fields can contain any valid character except colon (:) Now, I get the path to the tracks by parsing an XML file which yields a path: /iTunes Music/Willie Nelson & Ray Charles/unKnown Album/Seven Spanish Angels.mp3 If I try to serve this with CFContent : file=#FilePath# deleteFile = "No"> CFMX can't find the file -- it barfs on the & -- and I don't know how to escape it I suppose I could use a mapping and cflocation, but that exposes my file/directory structure. Dick "In times like these, it helps to recall that there have always been times like these." - Paul Harvey - [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: How does CF generated Java bytecode compare with Native Java ytecode
On Jun 29, 2004, at 12:01 PM, Samuel Neff wrote: > The advantage of CF is you can use CF for most things and when you > have > something that is processor intensive you can use Java, either a > class in > the classpath, javabean, ejb, or even a jsp page (I like to use jsp > pages > since it simplifies deployment). Or use Java to compensate for a deficiency in CFML, e.g. the inability of CFFile to read a large file line-by-line. I kinda' like the feeling of cruising in "Programming Overdrive" but dropping into a lower, more powerful, gear when the situation warrants. P_R_N_D_L_CFMX Dick "In times like these, it helps to recall that there have always been times like these." - Paul Harvey - [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
You can use Jetty's Servlet Container -- Jetty also has a Web Server, but I am not sure that you need that if you aren't responding to HTTP events. Others have suggested that you could a desktop Flash application to provide the GUI and initiate events similar to web service calls. This is probably all speculation until we can get our hands on Blackstone. Dick On Jun 29, 2004, at 12:53 PM, Samuel Neff wrote: > That wasn't it at all... it was that CF can respond to events other > than > HTTP events. You still need a J2EE server to host the CFMX server. > > Sam > > -- > Blog: http://www.rewindlife.com > Chart: http://www.blinex.com/products/charting > -- > > Dick Applebaum wrote: > > > > But, from what Ben is demoing, it looks as if you don't need a web > > server or a browser. > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: E-mail Marketing/Tracking Software
DRK7 included a sample app called InTouch. I don't know that it includes the tracking features you want, but might be a good starting point for writing your own. Regards, Matt - Original Message - From: Butch Zaccheo <[EMAIL PROTECTED]> Date: Tue, 29 Jun 2004 14:55:38 -0700 Subject: E-mail Marketing/Tracking Software To: CF-Talk <[EMAIL PROTECTED]> I¹m looking for pre-written application to start a permission based e-mail campaign. Is there anything that already exists written in coldfusion? I need to be able to track email after it¹s been sent (has e-mail been opened, how many times viewed, etc.). Any suggestions would be much appreciated BZaccheo [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Debugging CFMX
Thanks for the feedback regarding locking from Barney and also how to debug running threads from Steve. I'm gonna try these tonight! Brook [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: E-mail Marketing/Tracking Software
There are interesting things in the marketing world - although I personally know very little about it (not being a marketing major or anything). First off, there is such a thing called "Push marketing" and another thing called "Pull Marketing". The kind of marketing where you see a message that say something like "Click here for more information on a product that could help you do such and such." - that would be "pull" marketing. If you see a message that has all or most of the sales pitch right in front of you (eg: your HTML email example), that would be known as push marketing. Clearly, push marketing is typically more effective because it requires less action on the part of the customer - so that's what spammers have typically gone for. There are email systems out there that use pull marketing methods - and work well (under their given conditions) for outlook users in the situation you describe. They're out there. You just have to look. =) -- Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ [EMAIL PROTECTED] Burns, John D wrote: > Won't be very successfuly if it is written. Outlook now won't load > images by default unless the user specifically asks for it and that > would be the only way to track how many have been opened. This is a > great thing to be able to do, but, thanks to SPAMmers, we have lost > some of that ability. Good luck finding what you need, but be > forewarned that it's not going to be able to give you everything you > want completely. > > > John > > > > From: Butch Zaccheo [mailto:[EMAIL PROTECTED] > Sent: Tue 6/29/2004 5:55 PM > To: CF-Talk > Subject: E-mail Marketing/Tracking Software > > I¹m looking for pre-written application to start a permission based e-mail > campaign. Is there anything that already exists written in coldfusion? I > need to be able to track email after it¹s been sent (has e-mail been > opened, > how many times viewed, etc.). > > Any suggestions would be much appreciated > > BZaccheo > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Duplicate inserts
Thanks 2 birds with one stone and unfortunately a troll hides behind them what a headache ok so theres this wintertree spell checking script on this site that I'm working on. it requires the onsubmitbt() script that changes the action of the form and then submits the form. this script is run on every submit button of the page so it explains both the locking and the double inserts. so I take it out. . . bad move it turns out as the spellchecking feature alters the action of the form to popup a spellchecking asp page (that I can't access unfortunately). so I rewrite the script to not submit the form and put it back on the submit buttons. I think this is working (a few tests prove it's ok) yet another monster lurks however. Spellchecking won't run if the enctype of the form is multipart/form-data which sort of defeats the purpose of the added functionality. I guess it's time to look for another spell checker -Joshua O'Connor-Rose -All is Good --- George Abraham <[EMAIL PROTECTED]> wrote: > Pascal's right. I had the same problem and I kept > looking at the > action page, thinking that was to blame. But the > problem was a double > submit on the form page. > > George > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: E-mail Marketing/Tracking Software
Won't be very successfuly if it is written. Outlook now won't load images by default unless the user specifically asks for it and that would be the only way to track how many have been opened. This is a great thing to be able to do, but, thanks to SPAMmers, we have lost some of that ability. Good luck finding what you need, but be forewarned that it's not going to be able to give you everything you want completely. John From: Butch Zaccheo [mailto:[EMAIL PROTECTED] Sent: Tue 6/29/2004 5:55 PM To: CF-Talk Subject: E-mail Marketing/Tracking Software I¹m looking for pre-written application to start a permission based e-mail campaign. Is there anything that already exists written in coldfusion? I need to be able to track email after it¹s been sent (has e-mail been opened, how many times viewed, etc.). Any suggestions would be much appreciated BZaccheo [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
E-mail Marketing/Tracking Software
I¹m looking for pre-written application to start a permission based e-mail campaign. Is there anything that already exists written in coldfusion? I need to be able to track email after it¹s been sent (has e-mail been opened, how many times viewed, etc.). Any suggestions would be much appreciated BZaccheo [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Blackstone @ CF-FUN '04
This sounds like it could be dangerous though. If there was some sort of code generated on the client side that could pass directly to some kind of "auto-input" to a database, it seems like someone could spoof the client and do some damage to your server or something. I wouldn't like putting any kind of controls on the client side of things, especially passing any kind of information about my database that would be passed to the next page for an "auto-insert". Plus, I usually like to do some kind of validation before anything goes into the database. John From: Joe Rinehart [mailto:[EMAIL PROTECTED] Sent: Tue 6/29/2004 11:43 AM To: CF-Talk Subject: Re: Blackstone @ CF-FUN '04 Ben, Thanks - forgot about the Drumbeat, that was a while back! Didn't quite mean as far as auto-generating the form itself, just defining a relationship between the form and a table, but, hey, the less we have to do... -joe [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Blackstone @ CF-FUN '04
Correct, CF runs on top of a J2EE server (whether integrated or not), and that does not change. Gateways allow for all sorts of events (perhaps not HTTP originated events) to trigger ColdFusion processing, and gateways allow CF to return data to "clients" other than the web browser. The underlying Java server is still needed. And sure, you could indeed have an app that never interacted with a web server or browser, if you so needed. --- Ben _ From: Samuel Neff [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 3:53 PM To: CF-Talk Subject: RE: Blackstone @ CF-FUN '04 That wasn't it at all... it was that CF can respond to events other than HTTP events. You still need a J2EE server to host the CFMX server. Sam -- Blog: http://www.rewindlife.com Chart: http://www.blinex.com/products/charting -- Dick Applebaum wrote: > > But, from what Ben is demoing, it looks as if you don't need a web > server or a browser. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Debugging CFMX
Your lock will still cause every request that comes in before the first request finishes to recreate all the application-scope CFCs, because the conditional is _outside_ the CFLOCK tag. In other words, request 1 will come in, do the conditional, do the lock, do the initialization. Request 2 will come in, do the conditional, wait for the lock, get it, do the initialization. Repeat for as many requests as come in before the first one finishes. If you move the conditional inside the CFLOCK tag, you'll solve that problem. However, then you'll force every request to get that lock, which is bad. To solve both problems, use a dual-lock, dual-conditional setup. Here's how we do it: "app_vars_loaded") /> The first CFLOCK is read-only, so it won't generate any contention on requests after the first, and sets a local variable about whether initialization is needed. The first conditional skips initialization if it's not needed. The second CFLOCK single threads access to the initialization code. The second conditional checks to see if initialization is still needed, now that this request is the ONLY request that could possibly influence the outcome of that decision. That's the part you're missing, which is allowing multiple requests to initialize the application, thereby slowing it down. I'm also using a dedicated variable for indicating whether the application is loaded or not, rather than one of the actual application variables. I'd recommend that, just for clarity's sake. A side benefit of this, is that if you never write to any of the application variables that you set in the initialization block, you never have to lock any of the reads anywhere in the application. Keep in mind that instance variables of application-scoped CFCs are actually application-scope variables, so they count. However, if access to the instance variables is synchronized inside the CFC using instance-specific named locks (a good idea), then you needn't worry about them Cheers, barneyb > -Original Message- > From: Brook Davies [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 1:49 PM > To: CF-Talk > Subject: RE: Debugging CFMX > > Thanks for the feedback Barneyb, I appreciate it. I'm having massive > trouble getting this app to start-up under load. I have > already de-selected > the save class files option because there were LOTS of class > files, and I > think this helped a bit. > > There is definitely something fishy going on, but I am not > sure where it is > exactly. My application contains two parts, they share an > application.cfm > file, but within that application.cfm file there are two different > cfapplication tags. The main application is all pages other > than a single > cfm page that is used to handle 'external' requests. So, in > pseudo code, > the application.cfm does this: > > > > > > > > > > > > > > clientmanagement="yes" clientstorage="logiforms_clientvars"> > > > > > > The reason I am pointing this out, is because one of the > applications, the > site logiformsV2, starts up much more smoothly than the > external request > handling site (which essentially handles form submissions) > which can hang > forever... > > If we focus on the 'problem' app, the initialization code in the > application.cfm looks like this: > > > (attributes.refreshnow)> > > > > > isdefined("application.ComponentInstance.lfInsertData")> > > > "lfcomponents.triggers.triggerAction" name = > "application.ComponentInstance.triggerAction"> > > "lfcomponents.lfinsert_record" name > = "application.ComponentInstance.lfInsertData"> > > "lfcomponents.lfincrement" name = > "application.ComponentInstance.lfincrement"> > > "lfcomponents.lfcreatetable" name = > "application.ComponentInstance.lfcreatetable"> > > "lfcomponents.lfdescript_string" > name = "application.ComponentInstance.lfdescript_string"> > > > > > Now, my startup log file only contains one line, which I > guess indicates > that this is working, and only being run by one thread. > > "Information","jrpp-18","06/29/04","12:20:49","LOGIFORMSV2_EXT > ERNAL","Running > Instantiation of external application components" > > But, for whatever reason, this app still has a hell of a time > starting up. > Sometimes the thread count will grow and grow and the > processor will sit at 0! > > If I set the server's timeout to 20 seconds, that seems to > help get the > server started, about 10 threads will timeout, but then the > server will get > started. The threads that timeout are usually, > cfquery,cfmail and cfloops > in various places. The really strange thing is that, on the > first run, if > I look at the template execution stack and look for what took > so bloody > long, there
Re: Blackstone @ CF-FUN '04
Dick Applebaum wrote: > On Jun 29, 2004, at 12:00 PM, Adrocknaphobia wrote: >> >> The one that had to install >> a webserver to work, wouldn't even make it to my top 5. > > But, from what Ben is demoing, it looks as if you don't need a web > server or a browser. It looks like you can replace the webserver and browser by something else that can signal CF, upon which CF does processing and returns an answer. That something else will have to carry the UI and get the signals into the J2EE framework underlying CF. What would you use for that? > That's not always true -- I may not have time to ramp up to write the > app in the "ultimate" way -- having the ability to get the results I > need, can outweigh how "elegantly" the program was written. > > I have nothing against learning other languages -- if I have a need. All we are saying is that you have that need. Jochem [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Debugging CFMX
Everyone can stop rubbing their eyes now... Michael's email parser stripped out the example included at the end of my previous message. But you get the point. _ From: Steven Erat [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 4:31 PM To: CF-Talk Subject: RE: Debugging CFMX Brook, You could generate a thread dump shortly after starting or some other point in time. A thread dump will show all the ColdFusion requests that came in via the webserver connector, shown as having a prefix of "jrpp-xx". http://www.macromedia.com/support/coldfusion/ts/documents/tn18339.htm You could search those individual jrpp stack traces in the thread dump to see which ones are actively running a cfm template. I typically search for the string ".cfm:" to match on stack trace lines referencing an active cfm request. The line number appears just after the colon. Read the stack trace from that point up to the top line with the jrpp-xx and then take an educated guess at what's happening in the thread/template by looking at the classes and methods reported in the stack trace for that thread. It's a lot of work, but that's how you know what the templates are doing at any instant. Compare thread dumps taken at short intervals to see if some jrpp thread id is doing exactly the same thing in each thread dump. If so, then that's a likely bottleneck. - Example of jrpp threads waiting on a lock: - Sometimes you might see that one or more threads are waiting on lock and that some other thread actually has the lock. Snippet of two threads waiting on a lock id 0x1391e818: _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: DSNless Connection
cfhelp wrote: > Here is the full problem. > > For the last few months I have had nothing but problems with CFMX Timing out > connection to Access Databases or JRUN Shutting Down. I decided to move all > the Access Database Websites to a separate server to see if I could isolate > the problem but now I can't even setup a datasource on that server. I am > getting "The ColdFusion MX ODBC Server service is not running or has not > been installed". Don't use ODBC, use the Access Unicode Drivers. Jochem [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Debugging CFMX
Thanks for the feedback Barneyb, I appreciate it. I'm having massive trouble getting this app to start-up under load. I have already de-selected the save class files option because there were LOTS of class files, and I think this helped a bit. There is definitely something fishy going on, but I am not sure where it is exactly. My application contains two parts, they share an application.cfm file, but within that application.cfm file there are two different cfapplication tags. The main application is all pages other than a single cfm page that is used to handle 'external' requests. So, in pseudo code, the application.cfm does this: clientmanagement="yes" clientstorage="logiforms_clientvars"> The reason I am pointing this out, is because one of the applications, the site logiformsV2, starts up much more smoothly than the external request handling site (which essentially handles form submissions) which can hang forever... If we focus on the 'problem' app, the initialization code in the application.cfm looks like this: (attributes.refreshnow)> "lfcomponents.triggers.triggerAction" name = "application.ComponentInstance.triggerAction"> = "application.ComponentInstance.lfInsertData"> "application.ComponentInstance.lfincrement"> "application.ComponentInstance.lfcreatetable"> name = "application.ComponentInstance.lfdescript_string"> Now, my startup log file only contains one line, which I guess indicates that this is working, and only being run by one thread. "Information","jrpp-18","06/29/04","12:20:49","LOGIFORMSV2_EXTERNAL","Running Instantiation of external application components" But, for whatever reason, this app still has a hell of a time starting up. Sometimes the thread count will grow and grow and the processor will sit at 0! If I set the server's timeout to 20 seconds, that seems to help get the server started, about 10 threads will timeout, but then the server will get started. The threads that timeout are usually, cfquery,cfmail and cfloops in various places. The really strange thing is that, on the first run, if I look at the template execution stack and look for what took so bloody long, there is usually always one template that took a really long time. But this changes from time to time, and if I manually exclude that template from the startup sequence, another template (unrelated) becomes the long running template Anyways, I got some serious problems, and If I don't fix em, I ain't going to Mexico this summer! lol I wish there was a way to get a more detailed look at what the server is doing internally while it was starting up, like what templates/code it is hanging on etc... Brook Davies logiforms.com At 01:18 PM 6/29/2004, you wrote: >Do you have a lot of application variables/CFC instances that you're setting >up on the first reqeust to the application? Make sure that you're locking >them correctly, effectively single threading requests until the first >request has finished initializing everything. That's has the side effect of >piling up all kinds of requests on the server that are just waiting for the >initialization to commence, and then when the first request finishes, >they'll all be released to do their tasks. > >You could use a short timeout on the CFLOCK tag that prevents multiple >requests from initializing the app vars, catch the exception, and abort the >request at that point. That'd make sure that no requests were stacking up, >but at the expense of not servicing requests until the app is up and >running. > >Also, you might consider switching the "save class files" setting in the CF >admin. If you've got a huge number of files, it's probably faster to leave >it unchecked (scanning huge directories is expensive), but if you have a >smaller number, it'll be faster with it checked, because CF won't have to >recompile everything when it starts. > >Cheers, >barneyb > > > -Original Message- > > From: Brook Davies [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, June 29, 2004 12:41 PM > > To: CF-Talk > > Subject: Debugging CFMX > > > > My CFMX server has tons of trouble starting up under load. Is there a > > debugging method I can use to see exactly what each thread is > > doing when > > trying to start up or someother way I can find the problem? > > > > Brook > >-- >[Todays Threads] >[This Message] >[Subscription] >[Fast > Unsubscribe] [User Settings] >[Donations >and Support] > >-- > >[] > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: More fun with regular expressions
The difficulty is at least one of each. I think this should do it "^[[:alnum:]]*([a-z][0-9]|[0-9][a-z])[[:alnum:]]*$" Not tested Pascal > -Original Message- > From: Charlie Griefer [mailto:[EMAIL PROTECTED] > Sent: dinsdag 29 juni 2004 22:40 > To: CF-Talk > Subject: More fun with regular expressions > > Hey regexp gurus... > > I'm trying to formulate an _expression_ that checks a string > for at least one alpha and at least one numeric character, > but -no- non-alphanumeric characters. > > Getting the alphanumeric combo I seem to have been able to > do...but adding the 'no non-alphanumerics' into the > _expression_ isn't working out for me. > > Much appreciation in advance. > > Charlie > > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
More fun with regular expressions
Hey regexp gurus... I'm trying to formulate an _expression_ that checks a string for at least one alpha and at least one numeric character, but -no- non-alphanumeric characters. Getting the alphanumeric combo I seem to have been able to do...but adding the 'no non-alphanumerics' into the _expression_ isn't working out for me. Much appreciation in advance. Charlie [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Debugging CFMX
Brook, You could generate a thread dump shortly after starting or some other point in time. A thread dump will show all the ColdFusion requests that came in via the webserver connector, shown as having a prefix of "jrpp-xx". http://www.macromedia.com/support/coldfusion/ts/documents/tn18339.htm You could search those individual jrpp stack traces in the thread dump to see which ones are actively running a cfm template. I typically search for the string ".cfm:" to match on stack trace lines referencing an active cfm request. The line number appears just after the colon. Read the stack trace from that point up to the top line with the jrpp-xx and then take an educated guess at what's happening in the thread/template by looking at the classes and methods reported in the stack trace for that thread. It's a lot of work, but that's how you know what the templates are doing at any instant. Compare thread dumps taken at short intervals to see if some jrpp thread id is doing exactly the same thing in each thread dump. If so, then that's a likely bottleneck. - Example of jrpp threads waiting on a lock: - Sometimes you might see that one or more threads are waiting on lock and that some other thread actually has the lock. Snippet of two threads waiting on a lock id 0x1391e818: [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Debugging CFMX
Do you have a lot of application variables/CFC instances that you're setting up on the first reqeust to the application? Make sure that you're locking them correctly, effectively single threading requests until the first request has finished initializing everything. That's has the side effect of piling up all kinds of requests on the server that are just waiting for the initialization to commence, and then when the first request finishes, they'll all be released to do their tasks. You could use a short timeout on the CFLOCK tag that prevents multiple requests from initializing the app vars, catch the exception, and abort the request at that point. That'd make sure that no requests were stacking up, but at the expense of not servicing requests until the app is up and running. Also, you might consider switching the "save class files" setting in the CF admin. If you've got a huge number of files, it's probably faster to leave it unchecked (scanning huge directories is expensive), but if you have a smaller number, it'll be faster with it checked, because CF won't have to recompile everything when it starts. Cheers, barneyb > -Original Message- > From: Brook Davies [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 12:41 PM > To: CF-Talk > Subject: Debugging CFMX > > My CFMX server has tons of trouble starting up under load. Is there a > debugging method I can use to see exactly what each thread is > doing when > trying to start up or someother way I can find the problem? > > Brook [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Create Links Symlinks with CFMX/Java
I remember CYGWIN from redhat included "ln". You can use it to create links. I think it worked for files as well as directories. Percy _ From: Mark Drew [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 3:56 PM To: CF-Talk Subject: Re: Create Links Symlinks with CFMX/Java I am not sure if this would work (as I am not sure what precicely you are trying to achieve) but would CF mappings help in this case? On Tue, 29 Jun 2004 13:55:58 -0400, Dave Watts <[EMAIL PROTECTED]> wrote: > > > Can these file/directory names contain characters like &, smart quotes > > -- any thing that could be found in song titles, etc. > > Almost anything: > > http://msdn.microsoft.com/library/default.asp?url=""> > /naming_a_file.asp > > http://blogs.msdn.com/brian_dewey/archive/2004/01/19/60263.aspx > > > If so, can CFMX file access these files on windows (and not on 'Nix). > > Honestly, I don't know. I would assume so, although how to do so may not be > immediately obvious. That is, you may have to escape characters in your > CFFILE tag, or something like that. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > phone: 202-797-5496 > fax: 202-797-5444 > > > _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: No default zero
If I understand correctly, you want to replace empty form fields by zero? form["ACRES_" & i] = Val(form["ACRES_" & i]); form["AMT_" & i] = Val(form["AMT_" & i]); amtInsurance = form["ACRES_" & i] * form["AMT_" & i]; Pascal > -Original Message- > From: Jillian Carroll [mailto:[EMAIL PROTECTED] > Sent: dinsdag 29 juni 2004 21:52 > To: CF-Talk > Subject: No default zero > > I've been playing with this for a while. I don't want zero's > to be visible in these form fields, I just want them to be > blank until/unless a value is entered. The problem is that I > get an error when the calculation is done (for amtInsurance) > on the fields that are 'blank'. > > > "Form.ACRES_#i#"=val(spanincluding(replace(Evaluate("Form.ACRE > S_#i#"),",","" > ,"all"),"0123456789"))> > > > style="text-align:right"> > > "Form.AMT_#i#"=val(spanincluding(replace(Evaluate("Form.AMT_#i > #"),",","","al > l"),"0123456789"))> > $ > value="#Evaluate("Form.AMT_#i#")#" > size="4" style="text-align:right" > > > > Any ideas? > > -- > Jillian > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
On Tue, 29 Jun 2004 15:31:14 -0400, Tom Jordahl <[EMAIL PROTECTED]> wrote: > > Macromedia Central was designed around "occasionally connected computing". > Things like DB queries would be refreshed when the computer was connected; > otherwise the cached data is used. > > Check it out. > Tom, has there been any update of the licensing program? From what I've read in a number of places, the biggest obstacle to developing Central applications was the licensing model. There's a lot of references to "more changes coming," but I haven't seen them anywhere. Here's some reference links, which has comments from MM employees as well: http://www.centralmx.com/archives/000478.html http://www.centralmx.com/archives/000123.html http://www.markme.com/mesh/archives/004448.cfm Regards, Dave. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Blackstone @ CF-FUN '04
That wasn't it at all... it was that CF can respond to events other than HTTP events. You still need a J2EE server to host the CFMX server. Sam -- Blog: http://www.rewindlife.com Chart: http://www.blinex.com/products/charting -- Dick Applebaum wrote: > > But, from what Ben is demoing, it looks as if you don't need a web > server or a browser. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Create Links Symlinks with CFMX/Java
I am not sure if this would work (as I am not sure what precicely you are trying to achieve) but would CF mappings help in this case? On Tue, 29 Jun 2004 13:55:58 -0400, Dave Watts <[EMAIL PROTECTED]> wrote: > > > Can these file/directory names contain characters like &, smart quotes > > -- any thing that could be found in song titles, etc. > > Almost anything: > > http://msdn.microsoft.com/library/default.asp?url=""> > /naming_a_file.asp > > http://blogs.msdn.com/brian_dewey/archive/2004/01/19/60263.aspx > > > If so, can CFMX file access these files on windows (and not on 'Nix). > > Honestly, I don't know. I would assume so, although how to do so may not be > immediately obvious. That is, you may have to escape characters in your > CFFILE tag, or something like that. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > phone: 202-797-5496 > fax: 202-797-5444 > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
No default zero
I've been playing with this for a while. I don't want zero's to be visible in these form fields, I just want them to be blank until/unless a value is entered. The problem is that I get an error when the calculation is done (for amtInsurance) on the fields that are 'blank'. "Form.ACRES_#i#"=val(spanincluding(replace(Evaluate("Form.ACRES_#i#"),",","" ,"all"),"0123456789"))> style="text-align:right"> "Form.AMT_#i#"=val(spanincluding(replace(Evaluate("Form.AMT_#i#"),",","","al l"),"0123456789"))> $ size="4" style="text-align:right" > Any ideas? -- Jillian [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
On Jun 29, 2004, at 11:10 AM, Dave Watts wrote: > > Well, here's the dilemma(s) > > > > I want to write apps that: > > > > -- run on Mac, 'Nix, windows desktops > > > > ... > > > > So what are the tools available? > > > > Java > > JSP > > _javascript_ > > C > > Perl > > Other cross-platform scripting languages > > PHP > > CFML > > Off the top of my head, I might suggest Director Why, that's Marc Cantor's old program -- saw him demo that years ago at the SF Computer Faire (circa 1985) I sat through the preso and found these limitations 1) Mac and Win only 2) no real good DB capability 3) orientation wrong for what I want to do It seems that director would be very good to publish a CD/DVD with the results of the apps I want to write -- rather than use director to write the apps themselves > or Central > as possible > solutions. I'd guess that Director would do everything that you need. > Or, > you might look at cross-platform general-purpose programming > languages like > Java or Python and cross-platform windowing toolkits like SWT, > wxWindows, > wxPython, Tk. > Ill look at these, but think that some would be a step backwards. Thx Dick > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > phone: 202-797-5496 > fax: 202-797-5444 > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
Dick Applebaum wrote: > > But, from what Ben is demoing, it looks as if you don't need a web > server or a browser. Sure, if user interaction is not required. - Rick [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Debugging CFMX
My CFMX server has tons of trouble starting up under load. Is there a debugging method I can use to see exactly what each thread is doing when trying to start up or someother way I can find the problem? Brook [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
On Jun 29, 2004, at 12:00 PM, Adrocknaphobia wrote: > I'd learn Java or VB. Writing a desktop application in CF seems like a > work-around. > From an IT manager's perspective, I have 10 proposals on my desk to > develop a new desktop app for my company. There are other perspectives than an IT manager -- how about the user who just wants to get something done, the programmer with a killer app, yadda, yadda, yadda > The one that had to install > a webserver to work, wouldn't even make it to my top 5. But, from what Ben is demoing, it looks as if you don't need a web server or a browser. Or, if it was a combo desktop/internet app you could optionally use a web server. But, if I could do the job better/faster/cheaper -- why would you care if it is written in APL. Forth, Lisp, AlGoL, > From my > perpective there are only disadvantages. The fact that you as a > developer dont have to learn a new language or that you may be able to > do it a little bit faster, doesnt really matter. That's not always true -- I may not have time to ramp up to write the app in the "ultimate" way -- having the ability to get the results I need, can outweigh how "elegantly" the program was written. I have nothing against learning other languages -- if I have a need. > > Besides the bottom line is that they still have to buy a server per > install. CF is too expensive and BlueDragon isn't free to > redistribute. That's because the pricing model is based on a small # of licenses and providing support for each copy. NA has publicly expressed willingness to work with anyone on this & get it done! > > -Adam > > Dick "In times like these, it helps to recall that there have always been times like these." - Paul Harvey - [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Duplicate inserts
Form.fieldnames can have duplicate entries if you have a group of checkboxes or a multiple select. I haven't examined the code closely and I have no idea what is in the form, but it could be an explanation. > -Original Message- > From: Joshua OConnor-Rose [mailto:[EMAIL PROTECTED] > Sent: dinsdag 29 juni 2004 19:34 > To: CF-Talk > Subject: Re: Duplicate inserts > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Duplicate inserts
>>The problem was that he was doing a JS submit in the onsubmit of the form. This would submit the form twice. I confirm, also had this problem a few week ago... Pretty hard to trace. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Blackstone @ CF-FUN '04
Macromedia Central was designed around "occasionally connected computing". Things like DB queries would be refreshed when the computer was connected; otherwise the cached data is used. Check it out. -- Tom Jordahl Macromedia Server Development -Original Message- From: Perez, Percy [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 8:54 AM To: CF-Talk Subject: RE: Blackstone @ CF-FUN '04 for me the problem with Flash is the lack of connectivity to a database. Yes, I know you can connect via a webservice; however it would be nice if it could interface with an offline database. I have been tempted several times to learn flash, but everytime I think about the lack of database support, I look the other way. I know that it is very nice to think that all computers have internet connectivity; unfortunately that's not the case for me. -- Percy _ From: Joe Rinehart [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 8:46 AM To: CF-Talk Subject: Re: Blackstone @ CF-FUN '04 Flash supports XML sockets throught its XMLSocket object. :) -joe - Original Message - From: Rick Root <[EMAIL PROTECTED]> Date: Tue, 29 Jun 2004 08:19:22 -0400 Subject: Re: Blackstone @ CF-FUN '04 To: CF-Talk <[EMAIL PROTECTED]> Sure you can use Central to run Flash on the desktop, but you could also just use the Flash Player. I actually have some flash games downloaded to my desktop and they are associated to the flash player so it doesn't even launch a browser. Of course, Flash doesn't have the capability (I don't think) to make socket connections. But maybe it will in the future. - Rick _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
Dick, You might want to check out REALbasic, it seems to have most all of what you are looking for: http://www.realsoftware.com/ I've never used it myself, but one of my friends at IBM uses it to write cross platform utilities. Hopefully that's of some help. - Brandon -- -- http://devnulled.com http://spooled.net [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Duplicate inserts
Pascal's right. I had the same problem and I kept looking at the action page, thinking that was to blame. But the problem was a double submit on the form page. George [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: How does CF generated Java bytecode compare with Native Java ytecode
It really depends on what you're doing. For the vast majority of cases,the performance different in cf vs java is not significant, but in some cases it is. I re-wrote one snippet of code from cfml to jsp and reduced processing time from ~20 seconds to under 100 milliseconds. This particular snippet looped through a large string processing each character. Large loops like this are significantly faster in Java. The advantage of CF is you can use CF for most things and when you have something that is processor intensive you can use Java, either a class in the classpath, javabean, ejb, or even a jsp page (I like to use jsp pages since it simplifies deployment). Best regards, Sam -- Blog: http://www.rewindlife.com Chart: http://www.blinex.com/products/charting -- -Original Message- From: Calvin Ward [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 1:49 PM To: CF-Talk Subject: RE: How does CF generated Java bytecode compare with Native Java ytecode ahhh, but is it a significant difference? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: cfMail senior moment - including grouped query results
I have no answer, but is one of the partners related to the Jason Voorhees? Ray At 02:54 PM 6/29/2004, you wrote: >Sorry to burden the list with my stupid question, but my brain is >withholding CF knowledge from me today. > >I'm trying to send a single message to a single address that contains a >"grouped Query". > >I want to send a list of items grouped by individual. When I use >inside the tags I get an error. > >If I add query="my query" and group="personName" to the cfmail tag it sends >multiple messages broken by the personname. > >I only want to send a single e-mail message that contains the output of a >grouped query, what am I missing? > >Thanks. > >-Nate > > >Nathan Smith McKee, Voorhees & Sease, P.L.C. > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
I'd learn Java or VB. Writing a desktop application in CF seems like a work-around. >From an IT manager's perspective, I have 10 proposals on my desk to develop a new desktop app for my company. The one that had to install a webserver to work, wouldn't even make it to my top 5. From my perpective there are only disadvantages. The fact that you as a developer dont have to learn a new language or that you may be able to do it a little bit faster, doesnt really matter. Besides the bottom line is that they still have to buy a server per install. CF is too expensive and BlueDragon isn't free to redistribute. -Adam - Original Message - From: Dick Applebaum <[EMAIL PROTECTED]> Date: Tue, 29 Jun 2004 10:41:12 -0700 Subject: Re: Blackstone @ CF-FUN '04 To: CF-Talk <[EMAIL PROTECTED]> On Jun 29, 2004, at 6:49 AM, Dave Watts wrote: > > > So are you playing devil's advocate or do you really believe CF > > > would be good to use for desktop apps?? :-) > > > > No, I am serious ... Dave Watts pointed out that "If all you have is > > a hammer, everything looks like a nail" > > > > Well, I have lots of nails! > > I think you may have misunderstood me. CF may be the hammer for > nailing web > applications, but if you start building desktop apps because you > think it's > the best way to do that, you'll be screwed. > Well, here's the dilemma(s) I want to write apps that: -- run on Mac, 'Nix, windows desktops -- have an acceptable UI that won't be more difficult to write/ maintain than the app, itself. A browser is acceptable, procedural Flash should be better in most cases. -- the apps need the ability to manipulate local databases and files to generate reports, syndication, graphics, or present drill-down/search results -- some apps need the ability to control (script) the OS and other desktop applications. -- some apps will need to manipulate files created by other desktop apps (PDF, MP3, MOV, ,DOC, etc). -- some apps will interface the web (FTP, HTTP, web services, mail, etc) -- the actual processing time of the app is not especially critical and would largly be limited by db or file I/O -- in fact, performance is prolly less important on the desktop (1 user) than on a server (multiple, concurrent users). -- The ability to create an ad hoc RADD app is important -- important enough to sacrifice UI and performance So what are the tools available? Java JSP _javascript_ C Perl Other cross-platform scripting languages PHP CFML Given, the above requirements, CFMX or BD can do 95% of what I want at acceptable performance. I could use another language to compensate for any CFML deficiencies, prolly in descending order: Java, JSP, PHP, Perl (based on ease of integration and my experience/abilities). Is there a better way? TIA Dick [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
cfMail senior moment - including grouped query results
Sorry to burden the list with my stupid question, but my brain is withholding CF knowledge from me today. I'm trying to send a single message to a single address that contains a "grouped Query". I want to send a list of items grouped by individual. When I use inside the tags I get an error. If I add query="my query" and group="personName" to the cfmail tag it sends multiple messages broken by the personname. I only want to send a single e-mail message that contains the output of a grouped query, what am I missing? Thanks. -Nate Nathan Smith McKee, Voorhees & Sease, P.L.C. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: regex in studio/dreamweaver
On the other hand, before I get the caffeine flow going, I can't spell "caffeiene". :-) Glad it worked for you. --Ben Deanna Schneider wrote: > *sigh* See, even without caffeine you are better at this than I am. I hadn't > thought of doing that. *g* > > - Original Message - > From: "Ben Doom" > > > If I were just trying to remove all beginning and end span tags, I'd use > > something like > > > > ]*> > > > > and replace it with the empty string. > > > > Not tested, I've barely started the caffeiene, YMMV. :-) > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CFGRAPH issues?
In 5.0 (their debut, I believe), I just heard that there were a lot of bugs. If that is the consensus, then I would be thrilled. I don't remember where or when I saw that, since it was so long ago. Ray At 02:46 PM 6/29/2004, you wrote: >I've only used CFCHART with CFMX, but I've never had any problems with >it at all. What kind of problems were users saying that they were >having? I found them easy-to-use and extremely useful. Users seem like >them a lot too. > >-- >Warm regards, >Jordan Michaels >Vivio Technologies >http://www.viviotech.net/ >[EMAIL PROTECTED] > > > >Ray Champagne wrote: > > > anybody? > > > > Ray > > > > At 10:24 AM 6/29/2004, you wrote: > > >I am re-deploying a CF based app that was written in CF in 2001, which > > >extensively uses KavaChart for graphs of emissions from a trash burning > > >plant. The charts do not get that complicated, usually just bar and line > > >graphs as a value extended over time. > > > > > >My question is, in past (5.0) versions of CF, I heard through the > > grapevine > > >that there were a LOT of problems with CFCHART/CFGRAPH. I don't remember > > >or know what they were, so I just wanted to know if the MX version has > > >fixed these problems or not. If not, what do others use for their > > graphing > > >solutions? Price is somewhat not an issue, this company has money > > budgeted. > > > > > >Advice? > > > > > >Thanks, > > > > > >Ray > > >http://www.crystalvision.org > > > > > > > > > > > >= > > >Ray Champagne - Senior Application Developer > > >CrystalVision Web Site Design and Internet Services > > >603.433.9559 > > >www.crystalvision.org > > >= > > > > > >The information contained in this transmission (including any attached > > >files) is CONFIDENTIAL and is intended only for the person(s) named > > >above. If you received this transmission in error, please delete it > > >from your system and notify us immediately. If you are not an intended > > >recipient, please note that any use or dissemination of the information > > >contained in this transmission (including any attached files) and the > > >copying, printing, or retransmission of that information is strictly > > >prohibited. You can notify us by return email or by phone at > > 603.433.9559. > > >Thank you. > > > > > > > > > > > > > > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CFGRAPH issues?
I've only used CFCHART with CFMX, but I've never had any problems with it at all. What kind of problems were users saying that they were having? I found them easy-to-use and extremely useful. Users seem like them a lot too. -- Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ [EMAIL PROTECTED] Ray Champagne wrote: > anybody? > > Ray > > At 10:24 AM 6/29/2004, you wrote: > >I am re-deploying a CF based app that was written in CF in 2001, which > >extensively uses KavaChart for graphs of emissions from a trash burning > >plant. The charts do not get that complicated, usually just bar and line > >graphs as a value extended over time. > > > >My question is, in past (5.0) versions of CF, I heard through the > grapevine > >that there were a LOT of problems with CFCHART/CFGRAPH. I don't remember > >or know what they were, so I just wanted to know if the MX version has > >fixed these problems or not. If not, what do others use for their > graphing > >solutions? Price is somewhat not an issue, this company has money > budgeted. > > > >Advice? > > > >Thanks, > > > >Ray > >http://www.crystalvision.org > > > > > > > >= > >Ray Champagne - Senior Application Developer > >CrystalVision Web Site Design and Internet Services > >603.433.9559 > >www.crystalvision.org > >= > > > >The information contained in this transmission (including any attached > >files) is CONFIDENTIAL and is intended only for the person(s) named > >above. If you received this transmission in error, please delete it > >from your system and notify us immediately. If you are not an intended > >recipient, please note that any use or dissemination of the information > >contained in this transmission (including any attached files) and the > >copying, printing, or retransmission of that information is strictly > >prohibited. You can notify us by return email or by phone at > 603.433.9559. > >Thank you. > > > > > > > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: regex in studio/dreamweaver
Same error in studio - bad _expression_ format or internal error. Maybe it's just reboot time (or install that homesite disk sitting on my desk over there that I haven't gotten to yet). - Original Message - From: "Pascal Peters" > Did you try ]*>(.*) > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CFGRAPH issues?
anybody? Ray At 10:24 AM 6/29/2004, you wrote: >I am re-deploying a CF based app that was written in CF in 2001, which >extensively uses KavaChart for graphs of emissions from a trash burning >plant. The charts do not get that complicated, usually just bar and line >graphs as a value extended over time. > >My question is, in past (5.0) versions of CF, I heard through the grapevine >that there were a LOT of problems with CFCHART/CFGRAPH. I don't remember >or know what they were, so I just wanted to know if the MX version has >fixed these problems or not. If not, what do others use for their graphing >solutions? Price is somewhat not an issue, this company has money budgeted. > >Advice? > >Thanks, > >Ray >http://www.crystalvision.org > > > >= >Ray Champagne - Senior Application Developer >CrystalVision Web Site Design and Internet Services >603.433.9559 >www.crystalvision.org >= > >The information contained in this transmission (including any attached >files) is CONFIDENTIAL and is intended only for the person(s) named >above. If you received this transmission in error, please delete it >from your system and notify us immediately. If you are not an intended >recipient, please note that any use or dissemination of the information >contained in this transmission (including any attached files) and the >copying, printing, or retransmission of that information is strictly >prohibited. You can notify us by return email or by phone at 603.433.9559. >Thank you. > > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: regex in studio/dreamweaver
*sigh* See, even without caffeine you are better at this than I am. I hadn't thought of doing that. *g* - Original Message - From: "Ben Doom" > If I were just trying to remove all beginning and end span tags, I'd use > something like > > ]*> > > and replace it with the empty string. > > Not tested, I've barely started the caffeiene, YMMV. :-) > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: How does CF generated Java bytecode compare with Native Java ytecode
I don't think so. That was my original point: who cares how efficient CF's generated Java is? If you're very concerned about performance, you might consider switching to another platform, but I'm pretty confident that you can get good enough performance out of CF if you handle your DB interactions efficiently, and cache data appropriately. Here's a REMARKABLY contrived example, but it illustrates the point. Say JSP is 20% faster than CF. That's pulled from a hat, by the way. You've got a CF request that's 500ms to execute. 200 is DB queries (same for both platforms, basically), so 300ms of actual processing. JSP will give you 240ms, a 12% overall savings. Now we optimise the queries so that 200ms drops down to 120ms. That'll drop the overall request time by 16% for CF and 18% on JSP. Now lets cache. We get to cut out some queries (probably not all of them though), so we'll have a optimized DB time of say 20ms. We also get to do some caching of generated content, so we can trim that processing time down to say 50ms, for a total of 70ms on CF. Now the 20% JSP improvement (pulled from a hat, I remind you), is really only worth 10ms per request. So optimizing the DB and caching gives a 84% reduction in request time. If you add the 20% improvement you'd get from converting to JSP, you'll bump it up a whopping 4% to a 88% reduction. Not very good ROI, in my book. Cheers, barneyb > -Original Message- > From: Calvin Ward [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 10:49 AM > To: CF-Talk > Subject: RE: How does CF generated Java bytecode compare with > Native Java ytecode > > ahhh, but is it a significant difference? > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Duplicate inserts
I don't think thats it. I'm not mapped to the server where the database is. When I refresh I don't get the same error. -Joshua O'Connor-Rose -All is Good --- Barney Boisvert <[EMAIL PROTECTED]> wrote: > The "locked by admin" error is because you've got > the table open in design > view in the Access program, so it won't allow anyone > to change it. > > Cheers, > barneyb > > > -Original Message- > > From: Joshua OConnor-Rose > [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, June 29, 2004 10:34 AM > > To: CF-Talk > > Subject: Re: Duplicate inserts > > > > I do have the code (some things to note) > > > > -I claim no credit for this code > > -I did check debuging and the inserts only list > once > > in the debugging code > > -The database is access (and unfortunately won't > be > > changed) > > > > Oh and while I'm here anybody come up with any > > solutions around. > > > > [Microsoft][ODBC Microsoft Access Driver] Could > not > > update; currently locked by user 'admin' on > machine > > > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: verity error help
Hi Doug, This seems to be a somewhat common Verity error, outside of ColdFusion even: http://www.google.com/search?q=%22Error+%23+-2%22++Error+E3-0005 &num=100&hl=en&lr=&ie=UTF-8&c2coff=1&safe=off&filter=0 Maybe you could try my custom tag CF_MKVDK to generate a verity mkvdk log file. The log might have more information with details since there is a highly verbose logging option built into mkvdk, and ColdFusion normally doesn't make use of that option. Description: http://www.talkingtree.com/blog/index.cfm?data=""> Custom Tag and pre-made test files to index: http://www.talkingtree.com/downloads/index.cfm?item=mkvdk%5Fgood%5Ftest%2Ezi p t.zip> Custom Tag with caller demo: http://www.talkingtree.com/downloads/index.cfm?item=mkvdk%2Ezip Also, the custom tag will write a bulk file and shell script to the /tmp directory. You can run the shell script manually from the command line to run mkvdk outside of ColdFusion to see if you get the same error message or not. If this is a "custom" collection built from a query then my tag won't help. Its only for file based collections. HTH, Steven Erat _ From: Doug James [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 1:16 PM To: CF-Talk Subject: verity error help We are using RedHat AS2.1 and we have just migrated to 6.1MX. I received a note from a user that they got a verity error message. "An error occurred while performing an operation in the Search Engine native library. ...CFIndexTagException: Error # -2 Error E3-0005 ...Attach: /opt/coldfusionmx/verity/collections/myColl/custom is not a directory..." Can some please shed a bit of light on what it all means? Thanks for the help. Doug _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Blackstone @ CF-FUN '04
> Well, here's the dilemma(s) > > I want to write apps that: > > -- run on Mac, 'Nix, windows desktops > > ... > > So what are the tools available? > > Java > JSP > _javascript_ > C > Perl > Other cross-platform scripting languages > PHP > CFML Off the top of my head, I might suggest Director or Central as possible solutions. I'd guess that Director would do everything that you need. Or, you might look at cross-platform general-purpose programming languages like Java or Python and cross-platform windowing toolkits like SWT, wxWindows, wxPython, Tk. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Share the ASP session
ok here I am so far. #cfhttp.responseHeader.Location# #cfhttp.header# #cfhttp.statuscode# #cfhttp.FileContent# the url is basically the link of the ASP file which is checking that the use is logged in or not. It always return to the redirect location. Infact if I put the URL directly in the Browser, its open(not redirecting me) but throught cfhttp, it alwasy return the Object move message. Any idea where I am wrong Regards, > Is there any way to share the ASP session. > > I have an existing application in ASP and I need to create another > module for that, that application uses the existing ASP login which > creates the SeSSion variables. > > Is there anyway that I can use those session VAR in coldfuison files? > > also if I include the asp file in my cfm its just importing the whole > codes, is there any other way that I can include the execute type > thing coldfusion template? > > Regards, > Asim Manzur [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Duplicate inserts
A colleague of mine had that problem. The problem was that he was doing a JS submit in the onsubmit of the form. This would submit the form twice. Pascal > -Original Message- > From: Joshua OConnor-Rose [mailto:[EMAIL PROTECTED] > Sent: dinsdag 29 juni 2004 19:08 > To: CF-Talk > Subject: Duplicate inserts > > I'm having an issue with duplicate records being created on a > single insert (at least on the debugging > side) > > does anybody know of any issues regarding this. > > Its not the first time I've seen it. > > I thought I posted this before but it didn't come up on a search. > > -Joshua O'Connor-Rose > -all is Good > > > > > > > __ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: How does CF generated Java bytecode compare with Native Java ytecode
ahhh, but is it a significant difference? -Original Message- From: Barney Boisvert Date: 6/29/04 12:44 pm To: CF-Talk Subj: RE: How does CF generated Java bytecode compare with Native Java ytecode I don't know by how much, but it'll definitely be slower than a comparable Servlet, and likely slower than a comparable JSP page. The actual time difference would greatly depend on the specific setup you're using. Nothing against the language, that's just the tradeoff you make for the extra niceties that CF provides. The reason is greatly due to scoping of variables. CF is typeless, but Java isn't. Thus if you're using actual Java (JSP, Servlets), you the runtime engine doesn't have to go through an AMAZING about of hoops to get a variable that you can interact with. I'd love to see CF grow an option to use strong typing, but I don't know how much of a pipe dream that is. Just to be clear, I'm not saying CF doesn't have suitable performance for building web applications. Much the contrary. It does an amazing job at still running fast, even though it does a huge amount of work behind the scenes to make things easier on the developer. It's just not the fastest you're going to find. Cheers, barneyb > -Original Message- > From: Calvin Ward [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 4:40 AM > To: CF-Talk > Subject: RE: How does CF generated Java bytecode compare with > Native Java ytecode > > It is slow compared to what and by how much? > > -Original Message- > From: Barney Boisvert > Date: 6/28/04 8:12 pm > To: CF-Talk > Subj: RE: How does CF generated Java bytecode compare with > Native Java bytecode > > > > If you want a fast application server, don't use CF, > pick something > else. > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Create Links Symlinks with CFMX/Java
> Can these file/directory names contain characters like &, smart quotes > -- any thing that could be found in song titles, etc. Almost anything: http://msdn.microsoft.com/library/default.asp?url=""> /naming_a_file.asp http://blogs.msdn.com/brian_dewey/archive/2004/01/19/60263.aspx > If so, can CFMX file access these files on windows (and not on 'Nix). Honestly, I don't know. I would assume so, although how to do so may not be immediately obvious. That is, you may have to escape characters in your CFFILE tag, or something like that. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Blackstone @ CF-FUN '04
On Jun 29, 2004, at 6:49 AM, Dave Watts wrote: > > > So are you playing devil's advocate or do you really believe CF > > > would be good to use for desktop apps?? :-) > > > > No, I am serious ... Dave Watts pointed out that "If all you have is > > a hammer, everything looks like a nail" > > > > Well, I have lots of nails! > > I think you may have misunderstood me. CF may be the hammer for > nailing web > applications, but if you start building desktop apps because you > think it's > the best way to do that, you'll be screwed. > Well, here's the dilemma(s) I want to write apps that: -- run on Mac, 'Nix, windows desktops -- have an acceptable UI that won't be more difficult to write/ maintain than the app, itself. A browser is acceptable, procedural Flash should be better in most cases. -- the apps need the ability to manipulate local databases and files to generate reports, syndication, graphics, or present drill-down/search results -- some apps need the ability to control (script) the OS and other desktop applications. -- some apps will need to manipulate files created by other desktop apps (PDF, MP3, MOV, ,DOC, etc). -- some apps will interface the web (FTP, HTTP, web services, mail, etc) -- the actual processing time of the app is not especially critical and would largly be limited by db or file I/O -- in fact, performance is prolly less important on the desktop (1 user) than on a server (multiple, concurrent users). -- The ability to create an ad hoc RADD app is important -- important enough to sacrifice UI and performance So what are the tools available? Java JSP _javascript_ C Perl Other cross-platform scripting languages PHP CFML Given, the above requirements, CFMX or BD can do 95% of what I want at acceptable performance. I could use another language to compensate for any CFML deficiencies, prolly in descending order: Java, JSP, PHP, Perl (based on ease of integration and my experience/abilities). Is there a better way? TIA Dick [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Duplicate inserts
The "locked by admin" error is because you've got the table open in design view in the Access program, so it won't allow anyone to change it. Cheers, barneyb > -Original Message- > From: Joshua OConnor-Rose [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 10:34 AM > To: CF-Talk > Subject: Re: Duplicate inserts > > I do have the code (some things to note) > > -I claim no credit for this code > -I did check debuging and the inserts only list once > in the debugging code > -The database is access (and unfortunately won't be > changed) > > Oh and while I'm here anybody come up with any > solutions around. > > [Microsoft][ODBC Microsoft Access Driver] Could not > update; currently locked by user 'admin' on machine > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Create Links Symlinks with CFMX/Java
On Jun 29, 2004, at 10:27 AM, Dave Watts wrote: > > BTW, doesn't windows provide a "Alias" or pseudo-file capability -- > > like those little things on the desktop that represent an > application > > contained elsewhere in the file system. > > Those are called shortcuts, and they're not really the same as a > symbolic > link. They're simply files that contain information about other > files, and > when the user interacts with them in certain ways, they trigger some > action > (typically, the execution of some program). > > Within NTFS, you can actually create symbolic links to directories, > but not > to files. > OK! Can these file/directory names contain characters like &, smart quotes -- any thing that could be found in song titles, etc. If so, can CFMX file access these files on windows (and not on 'Nix). TIA Dick "Frisbeetarianism is the belief that when you die, your soul goes up on the roof and gets stuck." - George Carlin - [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Duplicate inserts
I do have the code (some things to note) -I claim no credit for this code -I did check debuging and the inserts only list once in the debugging code -The database is access (and unfortunately won't be changed) Oh and while I'm here anybody come up with any solutions around. [Microsoft][ODBC Microsoft Access Driver] Could not update; currently locked by user 'admin' on machine errors -Joshua O'Connor-Rose -All is Good code below - '_') eq this_id> insert into custom_bullets (media_id,custom_ad_id,ordering,content) values (#url.id#,#this_id#,#evaluate('BULLETORDERNEW_' & this_id & '_' & listlast(y, '_'))#,'#evaluate(y)#') '_') eq this_id> update custom_bullets set content = '#evaluate(y)#', ordering = #evaluate('BULLETORDERold_' & this_id & '_' & listlast(y, '_'))# where custom_bullet_id = #listlast(y, '_')# delete * from custom_bullets where custom_bullet_id = #listlast(y, '_')# --- [EMAIL PROTECTED] wrote: > got code? > > > > > > Joshua OConnor-Rose <[EMAIL PROTECTED]> > 06/29/2004 01:07 PM > Please respond to cf-talk > > > To: CF-Talk <[EMAIL PROTECTED]> > cc: > Subject:Duplicate inserts > > > I'm having an issue with duplicate records being > created on a single insert (at least on the > debugging > side) > > does anybody know of any issues regarding this. > > Its not the first time I've seen it. > > I thought I posted this before but it didn't come up > on a search. > > -Joshua O'Connor-Rose > -all is Good > > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Create Links Symlinks with CFMX/Java
> BTW, doesn't windows provide a "Alias" or pseudo-file capability -- > like those little things on the desktop that represent an application > contained elsewhere in the file system. Those are called shortcuts, and they're not really the same as a symbolic link. They're simply files that contain information about other files, and when the user interacts with them in certain ways, they trigger some action (typically, the execution of some program). Within NTFS, you can actually create symbolic links to directories, but not to files. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Duplicate inserts
got code? Joshua OConnor-Rose <[EMAIL PROTECTED]> 06/29/2004 01:07 PM Please respond to cf-talk To: CF-Talk <[EMAIL PROTECTED]> cc: Subject:Duplicate inserts I'm having an issue with duplicate records being created on a single insert (at least on the debugging side) does anybody know of any issues regarding this. Its not the first time I've seen it. I thought I posted this before but it didn't come up on a search. -Joshua O'Connor-Rose -all is Good [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
verity error help
We are using RedHat AS2.1 and we have just migrated to 6.1MX. I received a note from a user that they got a verity error message. "An error occurred while performing an operation in the Search Engine native library. ...CFIndexTagException: Error # -2 Error E3-0005 ...Attach: /opt/coldfusionmx/verity/collections/myColl/custom is not a directory..." Can some please shed a bit of light on what it all means? Thanks for the help. Doug [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Duplicate inserts
show the code! - Original Message - From: Joshua OConnor-Rose To: CF-Talk Sent: Tuesday, June 29, 2004 12:07 PM Subject: Duplicate inserts I'm having an issue with duplicate records being created on a single insert (at least on the debugging side) does anybody know of any issues regarding this. Its not the first time I've seen it. I thought I posted this before but it didn't come up on a search. -Joshua O'Connor-Rose -all is Good __ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Duplicate inserts
I'm having an issue with duplicate records being created on a single insert (at least on the debugging side) does anybody know of any issues regarding this. Its not the first time I've seen it. I thought I posted this before but it didn't come up on a search. -Joshua O'Connor-Rose -all is Good __ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Create Links Symlinks with CFMX/Java
kind of a long story ... I have lots of files buried in the file structure of the OS (Mac OS X). They consist of audio tracks, images and movies. All of these (and the file structure) are maintained by Apple-supplied iLife programs (iTunes, iPhoto, iMovie, etc.) The file names/directory names can contain any valid characters except colon; This naming flexibility gives CFFile fits -- especially names that contain an ampersand (&) I don't want to interfere with directory structure, I just want to provide an alternate, CF-acceptable path to the files. PHP provides a native capability (non-windows) to create links and symlinks -- I am surprised that Java doesn't have the equivalent. BTW, doesn't windows provide a "Alias" or pseudo-file capability -- like those little things on the desktop that represent an application contained elsewhere in the file system. TIA Dick On Jun 29, 2004, at 9:38 AM, Joe Eugene wrote: > Are you trying to access your files across a Network or Remote Server? > Yes, we have implemented some Java Classes to accomplish this > > I.E. File Copy/Delete etc across the Network. > > Joe > > - Original Message - > From: "Dick Applebaum" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Tuesday, June 29, 2004 12:04 PM > Subject: SOT: Create Links Symlinks with CFMX/Java > > > Is it possible to create a file system link or symlink with > CFMX/Java? > > > > TIA > > > > Dick > > > > "Frisbeetarianism is the belief that when you > > die, your soul goes up on the roof and gets stuck." > > - George Carlin - > > > > > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: first time array
Frank, Yep, you're going down the right track - that'd pretty much copy elements out of someCollection into your books structure. An example pulling the "books" from a database: SELECT isbn, author, title FROM books -joe [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Image details
>>This tag looks perfect. It IS ;-) -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: first time array
Thanks Joe... I wouldn't mind seeing some code samples of an array of structures... that would be a great help >-Original Message- >From: Joe Rinehart [mailto:[EMAIL PROTECTED] >Sent: Tuesday, June 29, 2004 03:54 PM >To: 'CF-Talk' >Subject: Re: first time array > >Tim, > >Arrays and structure are both good places to store stuff. The >question is what type of stuff you want to store. > >If you just need to store "something," an array can be a good way to >go. If you need to store "something" and "stuff" (properties) about >it, a structure may be a good bet. > >Example: If I wanted to store the ISBN numbers of a bunch of books, >I'd use an array called "books" - books[1] would be the ISBN of the >first book, books[2] the second, and so on. > >If I wanted to store a single book and "stuff" about it, I'd use a >structure - book.ISBN, book.author, book.title, etc. Sure, you could >do this with an array: book[1] being title, book[2] being author, >etc., but then you have to remember that 1 = title, 2=author. Think >of a structure as an array where instead of using numbers for each >element, you use a unique name. > >More powerful still is an array of structures. Going back to the >books example, you could have the books array with book[1] being a >structure, book[2] being a structure, etc., so that you have >book[1].title, book[2].title, book[3].title, and so on. > >Lastly, you can have a structure of structures! Say you developed >the app using the array of structures - then you suddenly need a >feature where you need to access the title of a book in the array by >knowing only its ISBN number. You could create a structure called >"books", and inside put elements using their ISBN number as the name. >So you'd have books["222-442-5534"].title, >books["1232-442-5534"].title, and so on. > >Whew. If you'd like code samples for this, I can type those after lunch. :) > > > > >- Original Message - >From: Tim Laureska <[EMAIL PROTECTED]> >Date: Tue, 29 Jun 2004 10:35:21 -0400 >Subject: RE: first time array >To: CF-Talk <[EMAIL PROTECTED]> > > >Tony... why are structures a better way to go than than arrays > > > > >-Original Message- > >From: Tony Weeg [mailto:[EMAIL PROTECTED] > >Sent: Tuesday, June 29, 2004 10:08 AM > >To: CF-Talk > >Subject: RE: first time array > > > >tim, then there is this GREAT > >thing called a structure, play with this one... > > > > > > > > > > > > > > > > > > > > > > > > > >Hello world, my name is #me.myFirstName# #me.myLastName# and i > >live in #me.myCity# > > > >-Original Message- > >From: Pascal Peters [mailto:[EMAIL PROTECTED] > >Sent: Tuesday, June 29, 2004 10:06 AM > >To: CF-Talk > >Subject: RE: first time array > > > >A 2D array requires 2 indexes. Change the first line to > > > > > >> -Original Message- > >> From: Tim Laureska [mailto:[EMAIL PROTECTED] > >> Sent: dinsdag 29 juni 2004 16:09 > >> To: CF-Talk > >> Subject: RE: first time array > >> > >> Thomas... I changed what I had to this: (but now getting the > >> error below, which is a bit cryptic). > >> > >> > >> > >> > >> > >> > >> > >> Error Diagnostic Information > >> An error occurred while evaluating the _expression_: > >> cassettes_Array[1]=form.issue > >> Error near line 11, column 22. > >> Cannot set element of indexed object > >> > >> The element at position 1 of the object cannot be set. May be > >> the object is read-only. The object has elements in positions > >> 1 through 0. > >> The error is in dimension 1 of object "cassettes_Array". > >> > >> > >> -Original Message- > >> From: Thomas Chiverton [mailto:[EMAIL PROTECTED] > >> Sent: Tuesday, June 29, 2004 9:42 AM > >> To: CF-Talk > >> Subject: Re: first time array > >> > >> On Tuesday 29 Jun 2004 14:42 pm, Tim Laureska wrote: > >> > > >> > > >> > > >> > > >> > > >> > cassettes_Array[ArrayLen(cassettes_Array)+1][4]=#form.publication#> > >> > >> That should be > >> cfset cassettes_Array[1]=form.issue > >> cfset cassettes_Array[2]=form.title > >> cfset cassettes_Array[3]=form.date1 > >> to match your cfloop. > >> > >> cfdump var="#cassettes_Array#" is useful for figuring out > >> what you've just built when constructing nested structures. > >> -- > >> Tom Chiverton > >> Advanced ColdFusion Programmer > >> > >> Tel: +44(0)1749 834997 > >> email: [EMAIL PROTECTED] > >> BlueFinger Limited > >> Underwood Business Park > >> Wookey Hole Road, WELLS. BA5 1AF > >> Tel: +44 (0)1749 834900 > >> Fax: +44 (0)1749 834901 > >> web: www.bluefinger.com > >> Company Reg No: 4209395 Registered Office: 2 Temple Back > >> East, Temple Quay, BRISTOL. BS1 6EG. > >> *** This E-mail contains confidential information for the > >> addressee only. If you are not the intended recipient, please > >> not
Re: Blackstone @ CF-FUN '04
Cool, I'll take a look, thanks. - Original Message - From: Massimo Foti <[EMAIL PROTECTED]> Date: Tue, 29 Jun 2004 18:35:31 +0200 Subject: Re: Blackstone @ CF-FUN '04 To: CF-Talk <[EMAIL PROTECTED]> > Of course, there's probably a DW wizard out there to do it already, > but if I hit alt-tab right now I got to studio :). > Have you checked the "Application Objects" in DW MX? They are very similar to what you are asking for. Massimo Foti http://www.massimocorner.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: DSNless Connection
Windows 2003 Ships with MDAC 2.8 Rick Eidson Partner & CTO ArcRiver Technology, LLC ASP, PHP, PERL, Cold Fusion Hosting Kansas City http://www.arcriver.com/ Kansas City Musicians http://www.1sourceentertainment.com/ -Original Message- From: Joe Eugene [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 11:34 AM To: CF-Talk Subject: Re: DSNless Connection Is your MDAC Version Current? But really you should be using a DeskTop DB (Access) in a Production Enviroment. If you are pressed for funds for purchase a Production Type DB(MSSQL/Oracle etc), i would look into MySQL or some other DB that supports JDBC. I think Oracle has a Version that sells for around $800. Joe - Original Message - From: "cfhelp" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, June 29, 2004 12:32 PM Subject: RE: DSNless Connection > Here is the full problem. > > For the last few months I have had nothing but problems with CFMX Timing out > connection to Access Databases or JRUN Shutting Down. I decided to move all > the Access Database Websites to a separate server to see if I could isolate > the problem but now I can't even setup a datasource on that server. I am > getting "The ColdFusion MX ODBC Server service is not running or has not > been installed". It won't let me start the service either. So because I am > pressed for time I thought I would try the DSNless Connection (Band Aid). > > I am just getting a bit frustrated with CFMX. I had a great stable CF5.0 > running and hadn't updated (Money reasons). Until I needed to setup > Sandbox's for my clients I didn't think much of it. > > All my servers are patched both Macromedia and Windows. > > CFMX 6.1 > Windows 2003 > Dual XEONs > > > Rick Eidson > Partner & CTO > ArcRiver Technology, LLC > ASP, PHP, PERL, Cold Fusion Hosting Kansas City > http://www.arcriver.com/ > > Kansas City Musicians > http://www.1sourceentertainment.com/ > > -Original Message- > From: Pascal Peters [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 10:03 AM > To: CF-Talk > Subject: RE: DSNless Connection > > Actually, you can't. There are workarounds, but if you have no DSN at > all on your CF server, it's not possible unless you use CF5 AFAIK > > > -Original Message- > > From: Samuel Neff [mailto:[EMAIL PROTECTED] > > Sent: dinsdag 29 juni 2004 16:48 > > To: CF-Talk > > Subject: RE: DSNless Connection > > > > Yes you can. Question has been asked many many many times > > (and just yesterday). Please search the archives for "how". > > > > Sam > > > > -Original Message- > > From: cfhelp [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, June 29, 2004 10:45 AM > > To: CF-Talk > > Subject: DSNless Connection > > > > > > Can you do this in CFMX 6.1? The EasyCFM Site shows it for CF5. > > > > > > Rick Eidson > > > > > > > > > > _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: How does CF generated Java bytecode compare with Native Java bytecode
Absolutely. As long as you've got a server running the CF app, and you're connected to the internet. And since it's a single server running the app, you have to deal with lots of extra headaches that don't manifest themselves if you're all client-side. For example, user preferences client side could be an INI file, but server side, you'd need to have users log in to be able to recall their prefs from a DB. I'm not saying that client-side CF is necessarily a clever thing, but it would open up some interesting stuff. Cheers, barneyb > -Original Message- > From: Thomas Chiverton [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 2:15 AM > To: CF-Talk > Subject: Re: How does CF generated Java bytecode compare with > Native Java bytecode > > On Tuesday 29 Jun 2004 04:12 am, Barney Boisvert wrote: > > is simple. I'd love to implement a controller and backend > in CFCs, write > > the UI in flash, and away you go. Hell of a lot faster > than Swing or AWT, > > even with a good tool to help you do the GUI. > > You can do that already, invoking CFC-based web services from > Flash, can't > you ? > > -- > Tom Chiverton > Advanced ColdFusion Programmer > > Tel: +44(0)1749 834997 > email: [EMAIL PROTECTED] > BlueFinger Limited > Underwood Business Park > Wookey Hole Road, WELLS. BA5 1AF > Tel: +44 (0)1749 834900 > Fax: +44 (0)1749 834901 > web: www.bluefinger.com > Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple > Quay, BRISTOL. BS1 6EG. > *** This E-mail contains confidential information for the addressee > only. If you are not the intended recipient, please notify us > immediately. You should not use, disclose, distribute or copy this > communication if received in error. No binding contract will > result from > this e-mail until such time as a written document is signed > on behalf of > the company. BlueFinger Limited cannot accept responsibility for the > completeness or accuracy of this message as it has been > transmitted over > public networks.*** > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: How does CF generated Java bytecode compare with Native Java ytecode
I don't know by how much, but it'll definitely be slower than a comparable Servlet, and likely slower than a comparable JSP page. The actual time difference would greatly depend on the specific setup you're using. Nothing against the language, that's just the tradeoff you make for the extra niceties that CF provides. The reason is greatly due to scoping of variables. CF is typeless, but Java isn't. Thus if you're using actual Java (JSP, Servlets), you the runtime engine doesn't have to go through an AMAZING about of hoops to get a variable that you can interact with. I'd love to see CF grow an option to use strong typing, but I don't know how much of a pipe dream that is. Just to be clear, I'm not saying CF doesn't have suitable performance for building web applications. Much the contrary. It does an amazing job at still running fast, even though it does a huge amount of work behind the scenes to make things easier on the developer. It's just not the fastest you're going to find. Cheers, barneyb > -Original Message- > From: Calvin Ward [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 4:40 AM > To: CF-Talk > Subject: RE: How does CF generated Java bytecode compare with > Native Java ytecode > > It is slow compared to what and by how much? > > -Original Message- > From: Barney Boisvert > Date: 6/28/04 8:12 pm > To: CF-Talk > Subj: RE: How does CF generated Java bytecode compare with > Native Java bytecode > > > > If you want a fast application server, don't use CF, > pick something > else. > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: Raymond's Blog for Bluedragon
But without fairly tight integration into the system (as FarCry does), it's not very useful for dynamic pages such as blog entries. Not to say that integrating it would be difficult, but I'd imagine that switching to ints over UUIDs would be a simpler task, and make installation and setup easier (no need to go add the classes, or change web.xml). Cheers, barneyb > -Original Message- > From: Geoff Bowers [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 12:38 AM > To: CF-Talk > Subject: Re: Raymond's Blog for Bluedragon > > Folks really ought to consider Spike's FriendlyURL servlet. > We use it > for FarCry CMS that leverages UUIDs. The results are fabulous. > > FriendlyURL: > http://www.spike.org.uk/blog/index.cfm?section=fuservlet > > -- geoff > http://farcry.daemon.com.au/ > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: regex in studio/dreamweaver
On Jun 29, 2004, at 9:53 AM, Deanna Schneider wrote: > (.*) Maybe: (.*) .. and just use \2 instead of \1 to access the string you want. -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 "Nothing endures but change." - Heraclitus [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]