Re: Verity Collections
iirc, there is only a max number of items all your collections can index before you have to purchase a separate verity license. i think it is something like 250,000 items combined between all your collections under one CF license... Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Phi Dinh wrote: > This might be a dumb question, but does anyone know if there is a > theoretical number of maximum verity collections I can have on CF8 > Enterprise? Or is it just a matter of disk space? > > Thanks! > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315944 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: DOS is ugly
> > Dress makes a lady? True or false is another question. Say true > for now. A crazy question > > is, could one create/have some sort of GUI as wrapper for DOS > command prompt? In other > > words, {aGUI}.exe would produce the following: > > > execution)/> > > > > First, this strikes me as a bit OT. Yeah, OT, I'm still a bit on 'borrow' end of HOF. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315943 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: DOS is ugly
>>> A crazy question is, could one create/have some sort of >>> GUI as wrapper for DOS command prompt? >> >> First, this strikes me as a bit OT. >> >> Second, what is there to present? What kind of presentation can you >> provide for a box in which to type and read? > >Well there's a help command in dos that spits back a list of commands. >Say you created a GUI that contained an address bar at the top like an >explorer shell, and in the window panel it had a series of links or >buttons to launch all the commands that are normally returned from the >help command. When you select an individual command it produces a dialog >box to receive your input, similar to the way we have dialogs for >creating tags in CF IDEs (that I never use personally, but... that would >be a reasonable analogy imo). I wouldn't be using the DOS GUI either. > >-- >s. isaac dealey ^ new epoch > isn't it time for a change? > ph: 781.769.0723 > >http://onTap.riaforge.org/blog Ok, it looks like all these types of solution may still make the DOS batch process looks ugly. Hmmm, I have another type of solution soon. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315942 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: DOS is ugly
> I think they did this already (a GUI for DOS) - it was called Windows > :D heh... Yeah, but they didn't include GUIs for COMP and FOR - I can't work without those. ;) -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 781.769.0723 http://onTap.riaforge.org/blog ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315941 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Encryption Recommendation
Exactly. If you want URL parameters to be encrypted in transmission, use SSL. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2008/11/26 Dave Watts: > Tom's question is really on point here. If you're providing it in the > URL, and presumably passing it back to the server, the fact that it's > encrypted is probably irrelevant - anyone could copy the URL > parameter, without knowing what it means, and use it elsewhere. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315940 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: DOS is ugly
I think they did this already (a GUI for DOS) - it was called Windows :D mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2008/11/26 s. isaac dealey <[EMAIL PROTECTED]>: >>> A crazy question is, could one create/have some sort of >>> GUI as wrapper for DOS command prompt? >> >> First, this strikes me as a bit OT. >> >> Second, what is there to present? What kind of presentation can you >> provide for a box in which to type and read? > > Well there's a help command in dos that spits back a list of commands. > Say you created a GUI that contained an address bar at the top like an > explorer shell, and in the window panel it had a series of links or > buttons to launch all the commands that are normally returned from the > help command. When you select an individual command it produces a dialog > box to receive your input, similar to the way we have dialogs for > creating tags in CF IDEs (that I never use personally, but... that would > be a reasonable analogy imo). I wouldn't be using the DOS GUI either. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315939 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfdirectory directory to a another server
> That was my conclusion as well - only way it can work is if a domain is > involved. It is possible, however, to use credentials that aren't valid locally to connect to a remote server: net use * \\server\share password /user:username Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315938 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: DOS is ugly
>> A crazy question is, could one create/have some sort of >> GUI as wrapper for DOS command prompt? > > First, this strikes me as a bit OT. > > Second, what is there to present? What kind of presentation can you > provide for a box in which to type and read? Well there's a help command in dos that spits back a list of commands. Say you created a GUI that contained an address bar at the top like an explorer shell, and in the window panel it had a series of links or buttons to launch all the commands that are normally returned from the help command. When you select an individual command it produces a dialog box to receive your input, similar to the way we have dialogs for creating tags in CF IDEs (that I never use personally, but... that would be a reasonable analogy imo). I wouldn't be using the DOS GUI either. -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 781.769.0723 http://onTap.riaforge.org/blog ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315937 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Encryption Recommendation
>> Client uses ASP, wants to send user info via url encrytped string, which >> needs to be decrypted, preferably by CF. We have been wading in the shallow >> end of TripleDes without success. > > rot13 is much easier to get right. > TripleDes seems overkill for something so non-sensitive it's in the URL. > > What are you exchanging, and who does it need to be safe from ? Tom's question is really on point here. If you're providing it in the URL, and presumably passing it back to the server, the fact that it's encrypted is probably irrelevant - anyone could copy the URL parameter, without knowing what it means, and use it elsewhere. I would recommend that you consider using something like a session token, with no inherent meaning at all, if that's all the functionality you need. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315936 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfdirectory directory to a another server
On Tue, Nov 25, 2008 at 3:37 PM, Dave Watts <[EMAIL PROTECTED]> wrote: > > That was a type on my part, but just to be sure I tried it again. The > "Name > > not found" dialog states "The following object is not from a domain > listed > > in the select location dialog box, and is therefore not valid." > > I'm pretty sure you can't refer to local accounts on one machine from > another machine. You can refer to domain accounts if both machines are > within the same domain, or if an appropriate trust relationship has > been created between the domains. > That was my conclusion as well - only way it can work is if a domain is involved. Dan ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315935 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Encryption Recommendation
AES is considered more modern than other types of encryption. Blowfish is both fast and secure. Not all browsers allow for very long URL strings. If your encrypted and encoded string is more than 255 characters you might want to do some browser testing. -Mike Chabot On Tue, Nov 25, 2008 at 11:12 AM, Tom Chiverton <[EMAIL PROTECTED]> wrote: > On Tuesday 25 Nov 2008, Randy Messer wrote: >> Client uses ASP, wants to send user info via url encrytped string, which >> needs to be decrypted, preferably by CF. We have been wading in the shallow >> end of TripleDes without success. > > rot13 is much easier to get right. > TripleDes seems overkill for something so non-sensitive it's in the URL. > > What are you exchanging, and who does it need to be safe from ? > > -- > Tom Chiverton > Helping to adaptively coordinate viral users > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315934 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PDF Compression Tag/SW
Try to set "Document Properites" - "Fast Web View" to Yes. It should decrease file size. >Hi list, >we have a coldfusion application >producing .pdf-files with the cffile-tag. >Our problem right now is, that each file >is 500-600 KByte (app. 2000 pdf-files). >The customer complained that the file size >is too large for sending those files to customers. >Is there any coldfusion-tag or other CF/non CF >solutions to descrease/compress the file size ? > >Thank you in advance. > >Uwe ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315933 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfajax broken in CF 8.0.1?
If you create a sample test page that has nothing but a single AJAX feature on it, like a cfwindow tag, does that single test page work? On a complex page remember that a single JavaScript error can break all the JavaScript on the page. Is the CFIDE folder in a standard location that the updater could find? If not, then you might have to make sure the directory that your Web site is using has the latest cfide files in it. -Mike Chabot On Tue, Nov 25, 2008 at 5:41 PM, Chris Hampton <[EMAIL PROTECTED]> wrote: > Mike, > > Thanks for the response. However, the only thing I can find in the release > notes about Ajax is an update to the FCKEditor, addition of > ColdFusion.Window.destroy and a change to ColdFusion.Window.create. > > Is there something in the docs that I am missing? > >>Ajax functionality was updated in the 8.0.1 release. The release notes >>have the details. >> >>-Mike Chabot ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315932 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Verity Collections
> This might be a dumb question, but does anyone know if there is a > theoretical number of maximum verity collections I can have on CF8 > Enterprise? Or is it just a matter of disk space? I'm not aware of any maximum number of collections in Verity. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315931 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Third-party web services and soap
> Okay so you obviously were correct that I can instantiate locally. > > > >KinteraWS = createObject("webservice", "URL to KinteraConnect.wsdl"); > >LoginRequest = > createObject("java","com.kintera.schema.API.LoginRequest"); > >LoginRequest.setLoginName("foo"); >LoginRequest.setPassword("bar"); > >KinteraWS.login(LoginRequest); > > > > I can cfdump the objects and see their methods. The KinteraWS has a login > method that > displays like this in the cfdump: > > login(com.kintera.schema.API.LoginRequest) > > So I instantiated a LoginRequest object using the code above and added the > username and > password. However, when I call KinteraWS.login(LoginRequest); I get the > following error. > Any idea as to what I'm missing here in my syntax? > > Cannot perform web service invocation login. > The fault returned when invoking the web service operation is: > > AxisFault > faultCode: {http://www.w3.org/2003/05/soap-envelope}Server.userException > faultSubcode: > faultString: org.xml.sax.SAXParseException: Content is not allowed in prolog. > faultActor: > faultNode: > faultDetail: >{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: > Content is not allowed in prolog. >at > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown > Source) >at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown > Source) >at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) >at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) >at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) >at > org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown > Source) >at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown > Source) >at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) >at org.apache.xerces.parsers.XML11Configuration.parse(... '' I can only guess that there's something in the XML being passed around. Can you use a packet sniffer or recording proxy to examine the traffic? Can you use something else beside CF to attempt to connect to the web service, then record that traffic also, then compare the two? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315930 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: DOS is ugly
> Dress makes a lady? True or false is another question. Say true for now. A > crazy question > is, could one create/have some sort of GUI as wrapper for DOS command prompt? > In other > words, {aGUI}.exe would produce the following: > > First, this strikes me as a bit OT. Second, what is there to present? What kind of presentation can you provide for a box in which to type and read? Third, you can customize the appearance of your command prompt in various ways. I like mine Unix green-on-black, for example. You can also customize the prompt itself. Mine, for example, shows me the current time in 24-hour format, followed by my login name and machine name, followed by the current directory path. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315929 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
DOS is ugly
Dress makes a lady? True or false is another question. Say true for now. A crazy question is, could one create/have some sort of GUI as wrapper for DOS command prompt? In other words, {aGUI}.exe would produce the following: Thanks. Don Chunshen Li ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315928 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PDF Compression Tag/SW
Hello Peter, the problem seems to be the adding of a watermark. the customer wants to have a watermark on every pdf-file. The size of this watermark (pdf-file) is about 60KB. But when I add this watermark to a blank pdf-file (about 10KB) using the cfpdf-tag the result is a watermarked pdf with about 400KB. What can be the problem here? Is there any chance to reduce the size of watermarked pdfs? regards ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315927 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Making a Recently Viewed list
Reverse will reverse the whole string, not order of the list. Do something like this: ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315926 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfgrid is slow
> I am experimenting with binding a cfc to a HTML cfgrid tag in CF8. > > It is only returning 13 records and it takes like 10seconds for the > grid to display. > > The CFC is not complicated so I don't think it is the CFC that is slow. > I think it is the CFGrid tag that is slow. > > Anyway to speed this up? > > Is the speed of cfgrid determined by the CF server speed (our dev > server is REALLY OLD!) or the Internet users computer speed? Hi Chad I'm experiencing the same thing. Internet Explorer taking 15 to 20 seconds to connect and FF is only taking 1 second if that. Did you ever resolve this problem?? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315925 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Third-party web services and soap
Well, I tried changing to UTF in the JVM settings using -Dfile.encoding=UTF-8. It now shows it using UTF in the summary. But alas, no dice. Anyone have any other thoughts? Thanks Dave for setting me straight on the wsdl issue. Silly of me to not have realized that. --Jeff -Original Message- From: Jeff Langevin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2008 5:37 PM To: cf-talk Subject: RE: Third-party web services and soap So I've been trying to figure this one out. I've come across a lot of talk about BOM (byte order marks) causing this issue. Anyone come across this? I obviously am not writing anything that has to do with how the data is passed. Even if I knew where I could interrupt the process before the data was sent I'd rather not have to. Is there a way to force the character encoding in Java at the CF server level so I can see if this is the problem? -Original Message- From: Jeff Langevin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2008 3:58 PM To: cf-talk Subject: RE: Third-party web services and soap Okay so you obviously were correct that I can instantiate locally. KinteraWS = createObject("webservice", "URL to KinteraConnect.wsdl"); LoginRequest = createObject("java","com.kintera.schema.API.LoginRequest"); LoginRequest.setLoginName("foo"); LoginRequest.setPassword("bar"); KinteraWS.login(LoginRequest); I can cfdump the objects and see their methods. The KinteraWS has a login method that displays like this in the cfdump: login(com.kintera.schema.API.LoginRequest) So I instantiated a LoginRequest object using the code above and added the username and password. However, when I call KinteraWS.login(LoginRequest); I get the following error. Any idea as to what I'm missing here in my syntax? Cannot perform web service invocation login. The fault returned when invoking the web service operation is: AxisFault faultCode: {http://www.w3.org/2003/05/soap-envelope}Server.userException faultSubcode: faultString: org.xml.sax.SAXParseException: Content is not allowed in prolog. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(... '' ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315924 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Making a Recently Viewed list
I am trying to build a 'Recently Viewed' feature for an ecommerce site to display thumbnail images and product names with links on them in the reverse order that customers click on them; in other words, the product they last viewed should appear at the top of the list. I am having problems using either a Structure or Array to do this, although either should work. But neither seems to work according to the documentation and I am stymied. Here is how it might work, if it did work, using arrays. Every time a customer lands on a new Product page the ProductID of the product is appended to a list in a cookie named RECENTLYVIEWED, so that COOKIE.RECENTLYREVIEWED might have a value something like "647,73,123,621,733,818,290" from oldest to newest product viewed All the product data are in a cached query named AllProducts so that numerous subqueries like this one RecentlyViewed to get the rest of the data do not require another hit to the database: SELECT ProductID, ProductName, ThumbNail FROM AllProducts WHERE ProductID IN (#COOKIE.RECENTLYVIEWED#) Unfortunately the query doesn't output the records in the same order specified in the IN clause or it would be too easy; consequently the data have to be put into the correct order somehow. Logically I would first initialize three arrays: Then loop over the output of the RecentlyViewed query to set an array like this: (except it doesn't work) This SHOULD produce an array with values like so: (except it doesn't work) AryProductID[647] = 647 AryProductName[647] = 'Lemon Cake' AryThumbNail[647] = 'LemonCake.jpg' AryProductID[73] = 73 AryProductName[73] = 'Cranberry Muffins' AryThumbNail[73] = 'CranMuffins.jpg' AryProductID[123] = 123 AryProductName[123] = 'Blueberry Muffins' AryThumbNail[123] = 'BlueMuffins.jpg' etc. With arrays coded by the ProductID I should be able to use the COOKIE.RECENTLYVIEWED list of ProductIDs to output everything in its proper order like so by the use of Reverse(COOKIE.RECENTLYVIEWED): (except it doesn't work) #AryProductID[ii]# (using the ProductID to construct a dynamic URL to the product, I know it's redundant and unnecessary in this particular case but it's just for illustration) #AryProductName[ii]# (to display the product name on the customer's Recently Viewed list) #AryThumbNail[ii]# (to display the product image with the product name on the customer's Recently Viewed list I don't care if I have to use Arrays, Structures, or anything else to get the data displayed the way I want, this is just an example of one way it might be done if ColdFusion actually worked the way it is documented to work. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315923 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfgrid is slow
> I am experimenting with binding a cfc to a HTML cfgrid tag in CF8. > > It is only returning 13 records and it takes like 10seconds for the > grid to display. > > The CFC is not complicated so I don't think it is the CFC that is slow. > I think it is the CFGrid tag that is slow. > > Anyway to speed this up? > > Is the speed of cfgrid determined by the CF server speed (our dev > server is REALLY OLD!) or the Internet users computer speed? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315922 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Size of session data
Since you demanded ;-) It's on my pathetic little blog http://www.trunkful.com . As it notes at the top "I am not a designer!" Wil Genovese On Mon, Nov 24, 2008 at 10:12 PM, s. isaac dealey <[EMAIL PROTECTED]> wrote: > > You can use java 1.5 (and up) features to run the java sizeOf() > > package in CF8: > > > > http://sourceforge.net/projects/sizeof > > http://sizeof.sourceforge.net/ > > > > I've tried it and it does work. You just need the JVM startup option > > to start the java agent as shown in the docs. > > Awesome, thanks James! :) > > I was looking at Charlie's server monitor presentations again and coming > back around to the same thing... The server monitor stops giving me > information far too early for me to learn anything practical... At least > in CF8 - maybe CF9 will include the enhancement that lets me get past > the first level deep, but in CF8 it's just not useful for me personally > in terms of memory analysis because I don't have gobs of variables in > the application or server scopes -- I keep everything either in > structures like application.tap or application.datafaucet or as private > members in CFCs like application.datafaucet.sources that contains > whatever datasource objects are available for the current app. CF8 > server monitor will only tell me that "hey, you've got a bunch of stuff > in application.datafaucet" which to me is like "thanks for the tip, > captain obvious!" > > I'll have to look into sizeOf() hopefully it'll make optimization easier > for me. :) > > > -- > s. isaac dealey ^ new epoch > isn't it time for a change? > ph: 781.769.0723 > > http://onTap.riaforge.org/blog > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315921 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfajax broken in CF 8.0.1?
Mike, Thanks for the response. However, the only thing I can find in the release notes about Ajax is an update to the FCKEditor, addition of ColdFusion.Window.destroy and a change to ColdFusion.Window.create. Is there something in the docs that I am missing? >Ajax functionality was updated in the 8.0.1 release. The release notes >have the details. > >-Mike Chabot > > >> ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315920 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PDF Compression Tag/SW
Do the PDFs contain any images? If so, can the filesizes of these be reduced? (Or, if there are non-essential images, they could be removed entirely.) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315919 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Third-party web services and soap
So I've been trying to figure this one out. I've come across a lot of talk about BOM (byte order marks) causing this issue. Anyone come across this? I obviously am not writing anything that has to do with how the data is passed. Even if I knew where I could interrupt the process before the data was sent I'd rather not have to. Is there a way to force the character encoding in Java at the CF server level so I can see if this is the problem? -Original Message- From: Jeff Langevin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2008 3:58 PM To: cf-talk Subject: RE: Third-party web services and soap Okay so you obviously were correct that I can instantiate locally. KinteraWS = createObject("webservice", "URL to KinteraConnect.wsdl"); LoginRequest = createObject("java","com.kintera.schema.API.LoginRequest"); LoginRequest.setLoginName("foo"); LoginRequest.setPassword("bar"); KinteraWS.login(LoginRequest); I can cfdump the objects and see their methods. The KinteraWS has a login method that displays like this in the cfdump: login(com.kintera.schema.API.LoginRequest) So I instantiated a LoginRequest object using the code above and added the username and password. However, when I call KinteraWS.login(LoginRequest); I get the following error. Any idea as to what I'm missing here in my syntax? Cannot perform web service invocation login. The fault returned when invoking the web service operation is: AxisFault faultCode: {http://www.w3.org/2003/05/soap-envelope}Server.userException faultSubcode: faultString: org.xml.sax.SAXParseException: Content is not allowed in prolog. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(... '' ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315918 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: single quote issue
Are you using cfqueryparam? If not you should be and this will go away. Wil Genovese On Tue, Nov 25, 2008 at 4:11 PM, Brian Dumbledore <[EMAIL PROTECTED]>wrote: > I know this is age old, but couldn't find a solution for my case. > > Ihave a text area where user inputs 20 single quotes. I post the form and > save the data to a field in mssql db. > '#form.txtfld#' > I see only 10 single quotes in the db. what is the workaround > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315917 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Verity Collections
This might be a dumb question, but does anyone know if there is a theoretical number of maximum verity collections I can have on CF8 Enterprise? Or is it just a matter of disk space? Thanks! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315916 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: single quote issue
On Tue, Nov 25, 2008 at 2:11 PM, Brian Dumbledore <[EMAIL PROTECTED]>wrote: > I know this is age old, but couldn't find a solution for my case. > > Ihave a text area where user inputs 20 single quotes. I post the form and > save the data to a field in mssql db. > '#form.txtfld#' > I see only 10 single quotes in the db. what is the workaround > preserveSingleQuotes() and/or cfqueryparam -- I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315915 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
single quote issue
I know this is age old, but couldn't find a solution for my case. Ihave a text area where user inputs 20 single quotes. I post the form and save the data to a field in mssql db. '#form.txtfld#' I see only 10 single quotes in the db. what is the workaround ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315914 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
PDF Compression Tag/SW
Hi list, we have a coldfusion application producing .pdf-files with the cffile-tag. Our problem right now is, that each file is 500-600 KByte (app. 2000 pdf-files). The customer complained that the file size is too large for sending those files to customers. Is there any coldfusion-tag or other CF/non CF solutions to descrease/compress the file size ? Thank you in advance. Uwe ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315913 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Parse text into structure.
Ah, gotcha :-) >I got that. The part I was missing was, "variable[x] and variable["#x#"] >are the same." > >On Tue, Nov 25, 2008 at 2:53 PM, Jas > >> ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315912 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfajax broken in CF 8.0.1?
Ajax functionality was updated in the 8.0.1 release. The release notes have the details. -Mike Chabot On Tue, Nov 25, 2008 at 12:17 PM, Chris Hampton <[EMAIL PROTECTED]> wrote: > I recently updated our servers to CF 8.0.1 and now none of my AJAX code > works. I checked the XHR response in Firebug and instead of returning the > requested data, it returns the HTML code for my site's home page. > > All of this was working before the update and I have not changed any code. > Has anyone else seen this before? > > Thanks, > > Chris Hampton > Colorado State University > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315911 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Parse text into structure.
I got that. The part I was missing was, "variable[x] and variable["#x#"] are the same." On Tue, Nov 25, 2008 at 2:53 PM, Jason Fisher <[EMAIL PROTECTED]> wrote: > myVariable[1] may be referring to a numbered element in an array (which > have to be integers): > > > > > #myVariable[1]# would = my first value > > whereas myVariable["one"] may be referring to a named element of a > structure (which can be any string): > > > > > > #myVariable["one"]# would = my first value > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315910 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Parse text into structure.
myVariable[1] may be referring to a numbered element in an array (which have to be integers): #myVariable[1]# would = my first value whereas myVariable["one"] may be referring to a named element of a structure (which can be any string): #myVariable["one"]# would = my first value ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315909 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Third-party web services and soap
Okay so you obviously were correct that I can instantiate locally. KinteraWS = createObject("webservice", "URL to KinteraConnect.wsdl"); LoginRequest = createObject("java","com.kintera.schema.API.LoginRequest"); LoginRequest.setLoginName("foo"); LoginRequest.setPassword("bar"); KinteraWS.login(LoginRequest); I can cfdump the objects and see their methods. The KinteraWS has a login method that displays like this in the cfdump: login(com.kintera.schema.API.LoginRequest) So I instantiated a LoginRequest object using the code above and added the username and password. However, when I call KinteraWS.login(LoginRequest); I get the following error. Any idea as to what I'm missing here in my syntax? Cannot perform web service invocation login. The fault returned when invoking the web service operation is: AxisFault faultCode: {http://www.w3.org/2003/05/soap-envelope}Server.userException faultSubcode: faultString: org.xml.sax.SAXParseException: Content is not allowed in prolog. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(... '' ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315908 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfdirectory directory to a another server
> That was a type on my part, but just to be sure I tried it again. The "Name > not found" dialog states "The following object is not from a domain listed > in the select location dialog box, and is therefore not valid." I'm pretty sure you can't refer to local accounts on one machine from another machine. You can refer to domain accounts if both machines are within the same domain, or if an appropriate trust relationship has been created between the domains. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315907 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Parse text into structure.
Sweet. Thanks. Like the game Othello, CFML is "a moment to learn...a lifetime to master." :-) On Tue, Nov 25, 2008 at 2:07 PM, Peter Boughton <[EMAIL PROTECTED]> wrote: > Well variable["one"] is different to variable["#one#"] > > You still need quotes if you are referring to the name of a key directly, > rather than using a variable to indirectly reference it. > > > > > > > variable["one"] is 1 > variable[one] is variable["elephant"] is 3 > variable["#one#"] is variable["elephant"] is 3 > variable["two"] is 2 > variable[two] causes error (variable two is undefined) > variable["#two#"] causes same error > > So variable[x] and variable["#x#"] are the same, but the first is easier to > read and quicker to type. > > However, sometimes you might have, say variable.fish1 variable.fish2 > variable.fish3 etc. Ideally that'd be an array, but if you cant use an array > then you might end up doing variable["fish#x#"] instead. You can also use > variable["fish"&x] as well. > > > Does that all make sense? > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315906 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Parse text into structure.
Well variable["one"] is different to variable["#one#"] You still need quotes if you are referring to the name of a key directly, rather than using a variable to indirectly reference it. variable["one"] is 1 variable[one] is variable["elephant"] is 3 variable["#one#"] is variable["elephant"] is 3 variable["two"] is 2 variable[two] causes error (variable two is undefined) variable["#two#"] causes same error So variable[x] and variable["#x#"] are the same, but the first is easier to read and quicker to type. However, sometimes you might have, say variable.fish1 variable.fish2 variable.fish3 etc. Ideally that'd be an array, but if you cant use an array then you might end up doing variable["fish#x#"] instead. You can also use variable["fish"&x] as well. Does that all make sense? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315905 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfdirectory directory to a another server
On Tue, Nov 25, 2008 at 10:47 AM, Dawson, Michael <[EMAIL PROTECTED]>wrote: > Try using server\CFService (Use the other slash) > > Mike > That was a type on my part, but just to be sure I tried it again. The "Name not found" dialog states "The following object is not from a domain listed in the select location dialog box, and is therefore not valid." Dan ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315904 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: xml data referencing
> Your intuition was correct, you can indeed use > "/entry[index]/category" - except that index would want to be a > numerical value; ie. > > ah alright - thanks. > XML and XPath are wonderful beasts. While it may not help you in > terms > of your deadline; I'd highly recommend getting a copy of "XML In A > Nutshell". XML can be tricky to explain and this book does it really > comprehensively and readably. W3Schools also have a fairly good > reference and forum: Well I plan on doing alot of XML in the future. I didn't know alot of that XPath stuff until Judah referenced it and I started looking into it. I didn't know there was that much to learn - wow! I'll definitely get the book. Thanks. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315903 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: xml data referencing
Your intuition was correct, you can indeed use "/entry[index]/category" - except that index would want to be a numerical value; ie. http://www.blogger.com/feeds/1550840680584738668/posts/default?published-min=2008-11-11T00:00:00&published-max=2008-11-25T23:59:59')> A quick example of what else can be done using XPath in this way: //[EMAIL PROTECTED]"http://www.google.com"]/category This will select all the category elements with in an entry element that has an 'id' attribute with a value of 'http://www.google.com'. XML and XPath are wonderful beasts. While it may not help you in terms of your deadline; I'd highly recommend getting a copy of "XML In A Nutshell". XML can be tricky to explain and this book does it really comprehensively and readably. W3Schools also have a fairly good reference and forum: http://www.w3schools.com/Xpath/ HTH Dominic 2008/11/25 daniel kessler <[EMAIL PROTECTED]>: > I thought I was gonna have it off of that, but after mucking with it for > quite awhile, I still don't have it working. > > > In your example, coming off of my batch of data, there's only one entry. In > my case, I have several entries and I'm already rooting through each one. I > don't know how to set the XPath to designate a particular indexed entry. For > example you have: > categories = XMLSearch(xml, "/entry/category"); > > but I need it to be something like: > categories = XMLSearch(xml, "/entry[index]/category"); > > Here's the actual structure: > http://www.blogger.com/feeds/1550840680584738668/posts/default?published-min=2008-11-11T00:00:00&published-max=2008-11-25T23:59:59 > > I'm really totally lost at this point and I'm just shooting from the hip. > > > >> >> xml = XMLParse(xml); >> categories = XMLSearch(xml, "/entry/category"); >> total_categories = ArrayLen(categories); >> >> >> >> >> >> #categories[currentitem].XMLAttributes.term# >> >> > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315902 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
cfchart and item label not showing
Hello, I have a bar chart and i'm having an issue where the item/label on the x-axis does not always show. Is it possible for me to force it/them to show? thanks, tom ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315901 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Parse text into structure.
Nice. Why did I think that CFML used: variable[1] but required quotes here: variable["one"] Was that *ever* the case? On Tue, Nov 25, 2008 at 1:05 PM, Peter Boughton <[EMAIL PROTECTED]> wrote: > >How would some of you take this text file and parse it into a structure? > > I might do something like the code below. > > Specific points in comparison to other response: > - Uses cfsavecontent not a multi-line cfset > - Strips off unwanted stuff before looping, instead of cfif inside loop. > - Does Positions[Name] instead of Positions["#Name#"] > But also has other simplifications. > > (Ideally I'd use reMatch instead of reReplace, but this way will run on > CF7.) > > --- > > options (direct=true, errors=99) > load data > into table raw_i > append > (record_id position(1:1) CHAR, > process_mt position(2:3) CHAR, > process_yr position(4:5) CHAR, > *snip* > summary_cd position(121:124) CHAR, > file_date position(125:144) DATE "DD-MON- HH24:MI:SS", > file_name position(*) CHAR TERMINATED BY X'0A' > > > > > > > > > > > > > > > --- > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315900 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: xml data referencing
I thought I was gonna have it off of that, but after mucking with it for quite awhile, I still don't have it working. In your example, coming off of my batch of data, there's only one entry. In my case, I have several entries and I'm already rooting through each one. I don't know how to set the XPath to designate a particular indexed entry. For example you have: categories = XMLSearch(xml, "/entry/category"); but I need it to be something like: categories = XMLSearch(xml, "/entry[index]/category"); Here's the actual structure: http://www.blogger.com/feeds/1550840680584738668/posts/default?published-min=2008-11-11T00:00:00&published-max=2008-11-25T23:59:59 I'm really totally lost at this point and I'm just shooting from the hip. > > xml = XMLParse(xml); > categories = XMLSearch(xml, "/entry/category"); > total_categories = ArrayLen(categories); > > > > > > #categories[currentitem].XMLAttributes.term# > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315898 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Parse text into structure.
>How would some of you take this text file and parse it into a structure? I might do something like the code below. Specific points in comparison to other response: - Uses cfsavecontent not a multi-line cfset - Strips off unwanted stuff before looping, instead of cfif inside loop. - Does Positions[Name] instead of Positions["#Name#"] But also has other simplifications. (Ideally I'd use reMatch instead of reReplace, but this way will run on CF7.) --- options (direct=true, errors=99) load data into table raw_i append (record_id position(1:1) CHAR, process_mt position(2:3) CHAR, process_yr position(4:5) CHAR, *snip* summary_cd position(121:124) CHAR, file_date position(125:144) DATE "DD-MON- HH24:MI:SS", file_name position(*) CHAR TERMINATED BY X'0A' --- ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315899 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Read an uploaded file.
Rob Parkhill wrote: > But I thought that in the upload process the CF Server made a temp copy of > the file. Can you use that to read the data from? That is an interesting thought, I believe it is the web server that creates the temp file, but maybe I can just go to that source... hmmm. Off to the laboratory for experiments. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315897 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Read an uploaded file.
Here is a new one for me. I'm in the middle of creating a simple tool that is going to take a data file and display a grid of the data for users to review. So I have a basic form for the user to select a local data file they would like to review. What occurred to me is I have no need to store this file on the server. There is no purpose for it. I am just going to take the data from the file, parse it into a grid and display it. My question is, is there a simple way to just read the data from the http request? Looking at the tag I have used for years, it is geared to saving the uploaded file to the server. But I don't need this. It would require me to write the file to the server, read the file to get its content, and then delete the file as I do not want it hanging around the server. It could be simpler if I could just get the data from the request and use it from there. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315894 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Read an uploaded file.
But I thought that in the upload process the CF Server made a temp copy of the file. Can you use that to read the data from? I know that I have to explicitly tell the form results page that I want to put the uploaded file in a specific place with a specific name when I upload files. I thought if you looked at the form field with the filename you would have access to the temp file. Now, I am not sure what CF does with the temp file when you are done, but you could just set up a scheduled task to clear those out. Rob On Tue, Nov 25, 2008 at 12:40 PM, Ian Skinner <[EMAIL PROTECTED]> wrote: > Here is a new one for me. > > I'm in the middle of creating a simple tool that is going to take a > data file and display a grid of the data for users to review. So I have > a basic form for the user to select a local data file they would like to > review. What occurred to me is I have no need to store this file on the > server. There is no purpose for it. I am just going to take the data > from the file, parse it into a grid and display it. > > My question is, is there a simple way to just read the data from the > http request? Looking at the tag I have > used for years, it is geared to saving the uploaded file to the server. > But I don't need this. It would require me to write the file to the > server, read the file to get its content, and then delete the file as I > do not want it hanging around the server. It could be simpler if I > could just get the data from the request and use it from there. > > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315896 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Read an uploaded file.
I've done this with a CSV file in the past. I used CFFILE in conjunction with CFFTP to upload the file and move it to a web-accessible location. Then, I read the CSV file using CFHTTP as a query. For my purposes, I had to do some pre-processing on the CSV file to ensure that CFHTTP would read it properly, and that was a pain, but once that was done it worked pretty well. Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Open BlueDragon Steering Committee Adobe Solution Provider Ian Skinner wrote: > Here is a new one for me. > > I'm in the middle of creating a simple tool that is going to take a > data file and display a grid of the data for users to review. So I have > a basic form for the user to select a local data file they would like to > review. What occurred to me is I have no need to store this file on the > server. There is no purpose for it. I am just going to take the data > from the file, parse it into a grid and display it. > > My question is, is there a simple way to just read the data from the > http request? Looking at the tag I have > used for years, it is geared to saving the uploaded file to the server. > But I don't need this. It would require me to write the file to the > server, read the file to get its content, and then delete the file as I > do not want it hanging around the server. It could be simpler if I > could just get the data from the request and use it from there. > > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315895 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cfajax broken in CF 8.0.1?
I recently updated our servers to CF 8.0.1 and now none of my AJAX code works. I checked the XHR response in Firebug and instead of returning the requested data, it returns the HTML code for my site's home page. All of this was working before the update and I have not changed any code. Has anyone else seen this before? Thanks, Chris Hampton Colorado State University ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315893 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Third-party web services and soap
Sorry for my ignorance on this. I've written my own web services in CF and consumed in CF before. But the complexity of their API is new to me. I didn't realize you could host it locally and still make the proper calls like that. Totally makes sense. Let me play with it and see if I can get that working. Maybe I've been completely over-complicating things. --Jeff -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2008 11:32 AM To: cf-talk Subject: Re: Third-party web services and soap > I'm pounding my head against using soap requests with Kintera Sphere > API. The problem I have is that while I have a local copy of their > wsdl file, there is no URL that I can call to instantiate a web > service. I need to be able to make soap requests and more > specifically set soap headers. I've tried everything I can think of > to create a manual soap request and send it using CFHTTP and also > xmlHTTP.send(). But to no avail. All I get is a response back saying that > there is a missing Session header (which is included in my soap request. > Can this even be done? > > I've used Axis to create class files from the local WSDL copy and my > next step is to try to write something at the Java level, but being > completely green in that area, I was trying to avoid it. > I've been searching the archives here and googling for the past three > days with failure at every single thing I've tried. Any suggestions would be > really appreciated. I may be missing something here, but the WSDL file should contain the URL for the SOAP endpoint. You should, in turn, be able to point CF at the URL of the WSDL file, regardless of whether it's a local copy or a remote WSDL URL. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315892 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Third-party web services and soap
> I'm pounding my head against using soap requests with Kintera Sphere API. > The problem > I have is that while I have a local copy of their wsdl file, there is no URL > that I can call to > instantiate a web service. I need to be able to make soap requests and more > specifically > set soap headers. I've tried everything I can think of to create a manual > soap request and > send it using CFHTTP and also xmlHTTP.send(). But to no avail. All I get is > a response back > saying that there is a missing Session header (which is included in my soap > request. > Can this even be done? > > I've used Axis to create class files from the local WSDL copy and my next > step is to try to > write something at the Java level, but being completely green in that area, I > was trying to avoid it. > I've been searching the archives here and googling for the past three days > with failure at > every single thing I've tried. Any suggestions would be really appreciated. I may be missing something here, but the WSDL file should contain the URL for the SOAP endpoint. You should, in turn, be able to point CF at the URL of the WSDL file, regardless of whether it's a local copy or a remote WSDL URL. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315891 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Prevent direct access to XML data file?
> There's a list on their site. One of them claims to rewrite all the links on > your site to have unique time bomb'ed URIs... Yeah, that sounds like a great idea. No, wait, it doesn't. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315890 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: xml data referencing
On Tue, Nov 25, 2008 at 6:31 AM, daniel kessler <[EMAIL PROTECTED]> wrote: >>Hi Daniel, >> >>Yes you'll need to loop through and append them to a string if you are >>trying to save them to one query record. What does the entire xml file look, >>I assume that previous piece of code is just one of the entries? >> > > Thing is, I don't know how many of them there are, or rather I don't know how > to determine how many 'category' entries there are, so I can't loop through > them. I don't want to repeat information in a second post, so if you check > out my earlier post, I describe my current quandry > (http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:57962#314699) > You might want to look into XPath queries using the XMLSearch function, that's how I did it. Here's my code to get and loop through the categories: tag:blogger.com,1999:blog-1550840680584738668.post-851696689458182282 2008-10-29T09:49:00.002-04:00 2008-10-29T09:56:21.122-04:00 Family Election Guide with Dr. Elaine Anderson xml = XMLParse(xml); categories = XMLSearch(xml, "/entry/category"); total_categories = ArrayLen(categories); #categories[currentitem].XMLAttributes.term# ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315889 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Encryption Recommendation
On Tuesday 25 Nov 2008, Randy Messer wrote: > Client uses ASP, wants to send user info via url encrytped string, which > needs to be decrypted, preferably by CF. We have been wading in the shallow > end of TripleDes without success. rot13 is much easier to get right. TripleDes seems overkill for something so non-sensitive it's in the URL. What are you exchanging, and who does it need to be safe from ? -- Tom Chiverton Helping to adaptively coordinate viral users This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315888 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Third-party web services and soap
I'm pounding my head against using soap requests with Kintera Sphere API. The problem I have is that while I have a local copy of their wsdl file, there is no URL that I can call to instantiate a web service. I need to be able to make soap requests and more specifically set soap headers. I've tried everything I can think of to create a manual soap request and send it using CFHTTP and also xmlHTTP.send(). But to no avail. All I get is a response back saying that there is a missing Session header (which is included in my soap request. Can this even be done? I've used Axis to create class files from the local WSDL copy and my next step is to try to write something at the Java level, but being completely green in that area, I was trying to avoid it. I've been searching the archives here and googling for the past three days with failure at every single thing I've tried. Any suggestions would be really appreciated. --Jeff ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315887 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Prevent direct access to XML data file?
On Tuesday 25 Nov 2008, Dave Watts wrote: > > I've looked at securing it using http_referrer but was looking for a > > solution that was a bit more robust. > I'm pretty sure that's all the Helicon solution looks at. There isn't There's a list on their site. One of them claims to rewrite all the links on your site to have unique time bomb'ed URIs... -- Tom Chiverton Helping to widespreadedly accelerate attention-grabbing front-end markets This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315886 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Parse text into structure.
Fun! On Tue, Nov 25, 2008 at 9:25 AM, Ian Skinner <[EMAIL PROTECTED]> wrote: > How would some of you take this text file and parse it into a structure? > > I would like to take this text: > > options (direct=true, errors=99) > load data > into table raw_i > append > (record_id position(1:1) CHAR, > process_mt position(2:3) CHAR, > process_yr position(4:5) CHAR, > batch_no position(6:9) CHAR, > nursery_indposition(14:14) CHAR, > county_cd position(15:16) CHAR, > sectionposition(17:18) CHAR, > township position(19:20) CHAR, > tship_dir position(21:21) CHAR, > range position(22:23) CHAR, > range_dir position(24:24) CHAR, > base_ln_merposition(25:25) CHAR, > aer_gnd_indposition(26:26) CHAR, > grower_id position(27:37) CHAR, > cedts_ind position(38:38) CHAR, > site_loc_idposition(39:46) CHAR, > acre_planted position(47:54) CHAR, > unit_planted position(55:55) CHAR, > applic_dt position(56:61) CHAR, > site_code position(62:67) CHAR, > qualify_cd position(68:69) CHAR, > planting_seq position(70:70) CHAR, > acre_treated position(71:78) CHAR, > unit_treated position(79:79) CHAR, > mfg_firmno position(80:86) CHAR, > label_seq_no position(87:91) CHAR, > revision_noposition(92:93) CHAR, > reg_firmno position(94:100) CHAR, > amt_prd_used position(101:110) CHAR, > unit_of_meas position(111:112) CHAR, > document_noposition(113:120) CHAR, > summary_cd position(121:124) CHAR, > file_date position(125:144) DATE "DD-MON- HH24:MI:SS", > file_name position(*) CHAR TERMINATED BY X'0A' > ) > > And end up with a structure something like: > > positions.record_id.start = 1 > positions.record_id.end = 1 > positions.process_mt.start = 2 > positions.process_mt.end = 3 > > > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315885 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfdirectory directory to a another server
Try using server\CFService (Use the other slash) Mike -Original Message- From: Dan O'Keefe [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2008 9:04 AM To: cf-talk Subject: Re: cfdirectory directory to a another server > > In my example, it may be referred to as: \\server1\CFService. > > Then, on \\server2\share, grant access to \\server1\CFService. > That is where the problem is. When trying to give the user from server1 permission on server2, and you click on the "Locations" button, only the current server is displayed. So even if I type in server1/CFService, it does not accept it. Dan ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315884 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Prevent direct access to XML data file?
> I don't mean to sound paranoid but there are a few competing websites in our > area of expertise that would like to "download" the XML datafile to import > into their own database Unless you require authentication, there isn't much you can do to stop them. If I visit your website, and your AJAX solution downloads that file, it's now on my machine, or can easily be captured by any number of proxies, etc, that exist to do just this sort of thing. > I've looked at securing it using http_referrer but was looking for a solution > that was a bit more robust. I'm pretty sure that's all the Helicon solution looks at. There isn't much you can do here. You can either require authentication, which will stop people without credentials, or you can look at HTTP_REFERER, which is unreliable and easily defeated. If you use CF to process the request, you can do anything that the Helicon product does. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315883 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Parse text into structure.
How would some of you take this text file and parse it into a structure? I would like to take this text: options (direct=true, errors=99) load data into table raw_i append (record_id position(1:1) CHAR, process_mt position(2:3) CHAR, process_yr position(4:5) CHAR, batch_no position(6:9) CHAR, nursery_indposition(14:14) CHAR, county_cd position(15:16) CHAR, sectionposition(17:18) CHAR, township position(19:20) CHAR, tship_dir position(21:21) CHAR, range position(22:23) CHAR, range_dir position(24:24) CHAR, base_ln_merposition(25:25) CHAR, aer_gnd_indposition(26:26) CHAR, grower_id position(27:37) CHAR, cedts_ind position(38:38) CHAR, site_loc_idposition(39:46) CHAR, acre_planted position(47:54) CHAR, unit_planted position(55:55) CHAR, applic_dt position(56:61) CHAR, site_code position(62:67) CHAR, qualify_cd position(68:69) CHAR, planting_seq position(70:70) CHAR, acre_treated position(71:78) CHAR, unit_treated position(79:79) CHAR, mfg_firmno position(80:86) CHAR, label_seq_no position(87:91) CHAR, revision_noposition(92:93) CHAR, reg_firmno position(94:100) CHAR, amt_prd_used position(101:110) CHAR, unit_of_meas position(111:112) CHAR, document_noposition(113:120) CHAR, summary_cd position(121:124) CHAR, file_date position(125:144) DATE "DD-MON- HH24:MI:SS", file_name position(*) CHAR TERMINATED BY X'0A' ) And end up with a structure something like: positions.record_id.start = 1 positions.record_id.end = 1 positions.process_mt.start = 2 positions.process_mt.end = 3 ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315882 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: (Probably) Simple SQL Question?
A simple 'group by' clause ought to get you there. With your first example, try this: select id, max(name), max(date_due), max(date_modified) from yourQry group by id order by date_modified desc With your second example, with the composite key, try concatenating the key fields, so you end up with something like this: select max(date_due), max(date_modified), field1 + '|' + field2 + '|' + field3 as id from yourQry2 group by id order by date_modified desc ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315881 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfdirectory directory to a another server
On Tue, Nov 25, 2008 at 6:28 AM, Jeffrey Lemire <[EMAIL PROTECTED] > wrote: > Have you tried something like \\192.168.1.100\d$\ (d$ representing the > root > drive you're trying to access) > > Shares are usually associated with login accounts. Yep, tried every possible combination I could think of. Dan ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315880 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfdirectory directory to a another server
> > In my example, it may be referred to as: \\server1\CFService. > > Then, on \\server2\share, grant access to \\server1\CFService. > That is where the problem is. When trying to give the user from server1 permission on server2, and you click on the "Locations" button, only the current server is displayed. So even if I type in server1/CFService, it does not accept it. Dan ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315879 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Encryption Recommendation
Client uses ASP, wants to send user info via url encrytped string, which needs to be decrypted, preferably by CF. We have been wading in the shallow end of TripleDes without success. Am looking for suggestions or pointers to resources to better illustrate how to implement. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315878 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: xml data referencing
>Hi Daniel, > >Yes you'll need to loop through and append them to a string if you are >trying to save them to one query record. What does the entire xml file look, >I assume that previous piece of code is just one of the entries? > Thing is, I don't know how many of them there are, or rather I don't know how to determine how many 'category' entries there are, so I can't loop through them. I don't want to repeat information in a second post, so if you check out my earlier post, I describe my current quandry (http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:57962#314699) The xml is presented here: http://www.blogger.com/feeds/1550840680584738668/posts/default?published-min=2008-11-11T00:00:00&published-max=2008-11-25T23:59:59 I found that if I go to that in Firefox and check it's source code, then it shows the xml as-is. I put it into Dreamweaver and Command-> Apply Source Formatting to work with it. I am very close to making this work. I appreciate the assistance. daniel ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315877 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: convert decimal to fractions
> Seb > > That worked, but there is one problem, is there a way to simplify to a > whole and a fraction. > > example 11.5 = 23/2 = 11 1/2 You could handle this either at the beginning or at the end; for efficiency, I'd recommend the beginning, as your loop will be shorter... and then display the whole numer with the fraction at the end. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315876 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: convert decimal to fractions
Seb That worked, but there is one problem, is there a way to simplify to a whole and a fraction. example 11.5 = 23/2 = 11 1/2 ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315875 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
re: convert decimal to fractions
Here's my quick method, to add to the others (I'd already written it by the time I saw all the replies!). Your fraction is #top#/#bottom#, which simplifies to #top/x#/#bottom/x#. Seb Duggan Web & ColdFusion Developer e: [EMAIL PROTECTED] t: 07786 333184 w: http://sebduggan.com ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315874 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: convert decimal to fractions
This UDF will work, within limits (only tests for least common denominators under 11, but could be expanded): var rtn = "0"; var dec = arguments.decimalVal; var num = 0; var den = 100; var intList = "10,9,8,7,6,5,4,3,2"; var x = 0; var test = 0; var loopOK = false; var loopAgain = true; if (dec < 1 and dec > 0) { // only process if we've got a fractional value to begin with num = dec * den; // multiply numerator by denominator; // loop to test for common demoninators while (loopAgain ) { loopOK = false; for (x = 1; x lte listLen(intList); x++) { test = listGetAt(intList, x); if (not num mod test and not den mod test) { num = num / test; den = den / test; loopOK = true; } } if (not loopOK) { loopAgain = false; } } rtn = num & "/" & den; } return rtn; ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315873 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: convert decimal to fractions
>I'm trying to find a way of converting .25 decimal to 1/4 fraction. The following works, but not sure if it's the best method... #Result# ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315872 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: convert decimal to fractions
> On Tue, Nov 25, 2008 at 7:46 AM, Keith McGee <[EMAIL PROTECTED]> wrote: >> I'm trying to find a way of converting .25 decimal to 1/4 fraction. >> >> any suggestions? > > Here's a SQL version that could easily be re-written in CF: > > http://blogs.techrepublic.com.com/datacenter/?p=348 Here's one in CF: http://www.georgejaros.com/content/ColdFusion/getFraction.cfm Google is your friend... -Dan ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315871 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: convert decimal to fractions
Keith, On Tue, Nov 25, 2008 at 7:46 AM, Keith McGee <[EMAIL PROTECTED]> wrote: > I'm trying to find a way of converting .25 decimal to 1/4 fraction. > > any suggestions? Here's a SQL version that could easily be re-written in CF: http://blogs.techrepublic.com.com/datacenter/?p=348 -Dan ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315870 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
convert decimal to fractions
I'm trying to find a way of converting .25 decimal to 1/4 fraction. any suggestions? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315869 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Prevent direct access to XML data file?
But can you rename the .xml file to anything you want? If you can, rename to my-xml-file.cfm and then you can secure with CF. Adrian -Original Message- From: Jeffrey Lemire [mailto:[EMAIL PROTECTED] Sent: 25 November 2008 11:25 To: cf-talk Subject: RE: Prevent direct access to XML data file? > I think you're missing Adrian's point. If you change the file > extension so that it's processed by CF, you can use application server > authentication to control access to the file. What I'm actually trying to prevent is something similar to when people try to "hotlink" images directly (http://domain.com/theimage.jpg). The image is publicly available when called from a web page but applications such as the ones provided by HeliconTech prevent "direct" access to the image whether it be from a browser or a server generated application. The issue here is that I'm looking to make the data "publicly" available when it's pulled into a web page to be displayed within a browser but prevent direct access to the raw xml datafile (http://domain.com/xml-data.cfm). I don't mean to sound paranoid but there are a few competing websites in our area of expertise that would like to "download" the XML datafile to import into their own database. I've looked at securing it using http_referrer but was looking for a solution that was a bit more robust. -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2008 1:31 PM To: cf-talk Subject: Re: Prevent direct access to XML data file? > > Sorry if it's been said already, but can you change the extension of the > > file to .cfm? > > Absolutely...you just need to ensure that you tell the browser that this is > an XML file ... I think you're missing Adrian's point. If you change the file extension so that it's processed by CF, you can use application server authentication to control access to the file. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315868 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfdirectory directory to a another server
Have you tried something like \\192.168.1.100\d$\ (d$ representing the root drive you're trying to access) Shares are usually associated with login accounts. Jeffrey V. Lemire Applications Architect / President http://www.citadelnetworks.net -Original Message- From: Dan O'Keefe [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2008 7:01 PM To: cf-talk Subject: Re: cfdirectory directory to a another server Yes, Since I created matching accounts on the two servers, say "CFService" and using the same passwords. Even gave the admin privelages so I could log in with that account and test the share by going to \\192.168.1.100\sharname. That was successful, but flat out would not work in CF 8.01. Dan On Mon, Nov 24, 2008 at 5:46 PM, Dave Watts <[EMAIL PROTECTED]> wrote: > > I tried this recently myself without success. In my scenario, I had 2 > Win2K3 > > standalone servers (not in a domain), so I could not give rights to a > folder > > on one server from the other. I tried matching up user account & > passwords > > that the CF Service used to login and applied the rights to the folder to > be > > written to, but that did not work wither. Tried both a mapped drive and > UNC. > > Were you able to log into the first server with the account that > should have access to the other server? Were you able to access the > share from the first server's console? > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > > Fig Leaf Software provides the highest caliber vendor-authorized > instruction at our training centers in Washington DC, Atlanta, > Chicago, Baltimore, Northern Virginia, or on-site at your location. > Visit http://training.figleaf.com/ for more information! > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315867 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Prevent direct access to XML data file?
> I think you're missing Adrian's point. If you change the file > extension so that it's processed by CF, you can use application server > authentication to control access to the file. What I'm actually trying to prevent is something similar to when people try to "hotlink" images directly (http://domain.com/theimage.jpg). The image is publicly available when called from a web page but applications such as the ones provided by HeliconTech prevent "direct" access to the image whether it be from a browser or a server generated application. The issue here is that I'm looking to make the data "publicly" available when it's pulled into a web page to be displayed within a browser but prevent direct access to the raw xml datafile (http://domain.com/xml-data.cfm). I don't mean to sound paranoid but there are a few competing websites in our area of expertise that would like to "download" the XML datafile to import into their own database. I've looked at securing it using http_referrer but was looking for a solution that was a bit more robust. -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2008 1:31 PM To: cf-talk Subject: Re: Prevent direct access to XML data file? > > Sorry if it's been said already, but can you change the extension of the > > file to .cfm? > > Absolutely...you just need to ensure that you tell the browser that this is > an XML file ... I think you're missing Adrian's point. If you change the file extension so that it's processed by CF, you can use application server authentication to control access to the file. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315866 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4