Re: Regex Lin Break Oddness
On Thu, Jul 1, 2010 at 3:31 PM, Ian Skinner wrote: ... > Other then just breaking down and working this in IE does anybody have > any other thoughs on what is going on here? Assuming I haven't totally misunderstood what's going on: You could drop to java and an XML lib that respects whitespace. It's a common problem, I think. Some people use Jericho (a tag parsing lib) for XML because it respects whitespace some XML parsers don't, if I'm remembering the comments right. I wouldn't recommend that one specifically, as it doesn't do XSLT transforms. :) It would probably be best if you used a java lib that isn't included with other stuff, as those XML libs can be mad conflicting. That's all I can think of, maybe there's some simple way to use built in stuff tho. Replace the new chunk with the old chunk after the transform by hand? Etc. :den -- The reason why men enter into society is the preservation of their property. John Lock ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335024 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ByteArray objects
On Thu, Jul 1, 2010 at 9:57 AM, Brad Wood wrote: > > If you want to be able to visually represent something that is a little > cumbersome to display, why don't you try hashing it? That may help > comparing them as well. +1 for hash()! If it's binary data you'd just get gobbledygook when converting it to a string anyways, with a hash you should be golden either way. :Den -- The only fence against the world is a thorough knowledge of it. John Lock ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335023 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CF9 - Cfwindow contents disappear when dragging
It seems that the contents in a CFWindow disappear while being dragged in CF9, whereas in CF8 the contents stayed visible. Anyone know how to make the contents stay visible while being dragged? Thanks, Mike ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335022 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Regex Lin Break Oddness
I have an XML file created by a tool I use. I am attempting to apply an XSLT transformation to this file to create a nice report. I am finding some strange behavior when I do so. There is an attribute that contains carriage returns and line feeds. This is desirable and I wish to include them in my output. Everything I read about XML says this just fine. But when I process the XML with the XSLT at least three out of five tools strip these line break characters. Here is an example of the behavior using ColdFusion to manipulate the XML. | #comment# #mid(comment,char,1)#[#asc(mid(comment,char,1))#] #comment# #mid(comment,char,1)#[#asc(mid(comment,char,1))#] | As one can see in the first part of the output where the xml had been parsed into a ColdFusion xml object, the line breaks are gone. In the second part where raw xml text is output shows that they are there. Interestingly if I directly connect the style sheet to the xml and open it in a browser, Firefox, Chrome and Opera all transform it the same as CF stripping the line breaks. IE and an XML Viewer by MindFusion do it the way I expect it to by done, leaving the breaks in. Unfortunatly IE does not like my CSS formating applied to the tag. Other then just breaking down and working this in IE does anybody have any other thoughs on what is going on here? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335021 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: DB2 EBCDIC translation issue
I am working in similar environment and never faced problem like that. All I can say is that we are working with custom JTOpen JDBC driver http://www-03.ibm.com/systems/i/software/toolbox/ (jt400.jar is all you need) JDBC URL: jdbc:as400://;libraries=;date format=iso;time format=iso;naming=system;transaction isolation=none;errors=full;cursor hold=false;extended dynamic=true;secure=false;trace=false;data compression=true Driver class: com.ibm.as400.access.AS400JDBCDriver We are working on DB2 V5R4 i5/OS @ AS/400 Hope this helps Best Regards, Marko Simic >I know it's usually pretty pointless to post my DB2 issues to cf-talk >but it's always worth a shot. > >I have an issue (64 bit coldfusion 8.0.1 multi-server on Win2k8) >where, if I do a simple query to our DB2 mainframe database, the >exclamation mark character in any string fields is returned as a right >closing bracket instead. I believe this is because the driver or >wrapper is improperly translating the exclamation mark from the EBCDIC >character set into ASCII - supposed to be ascii 33 but is coming >through as ascii 93 instead. > >I think this might be specific to coldfusion's JDBC wrapper, because >it occurs when I use the built in JDBC driver (from Data Direct, I >think), as well as a third party JDBC driver that we purchased >(StarSQL DB2). > >I suspect I need to call Adobe on this, but thought I'd hit the list first. > >Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335020 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Vote ColdFusion
On Thu, Jul 1, 2010 at 7:10 AM, Paul Alkema wrote: > I've made a post to complain about this and I received some crap about how > CF isn't a good language. Dognabbit! Scala and Clojure aren't on the list either! How dare they! *sigh* I think the point here is that the poll was created by folks with a particular world view and seeing C / C++ as the 'best' languages tells you a lot about that. If folks choose to wade in and defend CFML (the language), please: * remain calm and polite - so that the CF community is well represented * try not to sound like a fanboi - use reasoned arguments * remember that almost everything on the list is a general purpose language, not just something confined to a Servlet container (on that last point, Railo 4.0 will offer the ability to run CFML outside the Servlet container - but that's a 'future' and probably won't win you many points on the LQ forums) -- Sean A Corfield -- (904) 302-SEAN Railo Technologies, Inc. -- http://getrailo.com/ An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335019 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Facebook Connect and coldfusion
Hello, Kris I can understand how you would not want to post much on this forum for everyone to use, but do you know of anywhere that might be a good source of info on this specific topic... I am afraid Jeff is not the only one struggling with this, lol My Best, Dustin >Jeff, very sorry to be out of the loop. (But this did give me a >chuckle.) Just been underwater with work. I'll send you something on >Monday. > >Cheers, >Kris ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335018 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Vote ColdFusion
Looks like another pointless poll with fanboy padded results to me. I could have predicted those results on LinuxQuesitons.org. 1) "Best" should have just been "Favorite" 2) Web languages should be a separate poll from the others 3) CF is not the only language missing from that list 4) It was posted in LinuxQuestions.org where most people consider "free" to be a synonym for "best". .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Paul Alkema [mailto:paulalkemadesi...@gmail.com] Sent: Thursday, July 01, 2010 10:11 AM To: cf-talk Subject: Vote ColdFusion Hi All, So I've been a member of this Linux forum for awhile now and I recently came across a poll on the forum called "The best languages". I know, I know how long are people going to debate this; but the one thing that gets me is ColdFusion isn't even on the list. I've made a post to complain about this and I received some crap about how CF isn't a good language. I just thought it might be nice to share with the Linux community how great CF is and why it should be added to this list of "The best languages". This is a very popular Linux board and is read by many. http://www.linuxquestions.org/questions/programming-9/your-opinions-of-the-b est-combination-of-programming-languages-to-learn-813373/page3.html Best Regards, Paul Alkema http://paulalkema.com/ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335017 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ByteArray objects
If you want to be able to visually represent something that is a little cumbersome to display, why don't you try hashing it? That may help comparing them as well. ~Brad - Original Message - From: "Sisk, Kris" To: "cf-talk" Sent: Thursday, July 01, 2010 9:38 AM Subject: RE: ByteArray objects > > I've got all that worked out except how to make it readable so that a > human can verify that it grabbed the right one. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335016 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: ByteArray objects
The byteArray in question is an Active Directory msExchMailboxGuid field. I'm trying to put an app together as a helper to our backup software (which we generally access with a browser in case anyone is wondering why I'd use CF for something like this). We found out that it has trouble recovering purged mailboxes yesterday and the key is the msExchMailboxGuid, which comes out of cfldap completely unintelligible. I need to be able to pull two of these, verify that that one matches what the backup software is looking for, change the other, and change it back at a certain point in the restore process. I've got all that worked out except how to make it readable so that a human can verify that it grabbed the right one. -Original Message- From: denstar [mailto:valliants...@gmail.com] Sent: Wednesday, June 30, 2010 11:22 PM To: cf-talk Subject: Re: ByteArray objects On Wed, Jun 30, 2010 at 11:07 AM, Sisk, Kris wrote: > > Is there a way to convert a java bytearray into something human > readable? Everything I've tried has thrown a "ByteArray objects cannot > be converted to strings" error. yourByteArray.toString() maybe? Depends if it's binary data or not, I think. If you can provide more info, I'm sure I can help. I do all kinds of stuff like this in the various projects I work on. :Den -- When a man fails to see the truth of certain generally accepted views, there is no law compelling him to provoke animosity by announcing his dissent. George Henry Lewes ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335015 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ByteArray objects
Java strings have a bytearray constructor: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#String(byte[]) myString = createObject("java","java.lang.String").init(myByteArray); >Is there a way to convert a java bytearray into something human >readable? Everything I've tried has thrown a "ByteArray objects cannot >be converted to strings" error. > > > >Kris Sisk > >USD-457 Technology > >1205 Fleming St. > >Garden City, KS 67846 > >(620) 805-7107 > > > >There are 10 types of people in this world: those who understand binary >and those who don't. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335014 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Vote ColdFusion
Hi All, So I've been a member of this Linux forum for awhile now and I recently came across a poll on the forum called "The best languages". I know, I know how long are people going to debate this; but the one thing that gets me is ColdFusion isn't even on the list. I've made a post to complain about this and I received some crap about how CF isn't a good language. I just thought it might be nice to share with the Linux community how great CF is and why it should be added to this list of "The best languages". This is a very popular Linux board and is read by many. http://www.linuxquestions.org/questions/programming-9/your-opinions-of-the-b est-combination-of-programming-languages-to-learn-813373/page3.html Best Regards, Paul Alkema http://paulalkema.com/ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335013 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ByteArray objects
You can try binaryDecode() http://cfquickdocs.com/cf8/?getDoc=BinaryDecodeas well. -- WSS4CF - WS-Security framework for CF http://wss4cf.riaforge.org/ On 1 July 2010 20:28, Rick Root wrote: > > You could try looping through the bytearray object and convert each > element to is char equivalent but of course there are several problems > with that: > > #1 - the byte array can contain negative numbers (a "byte" is a signed > 8 bit integer according to java.sun.com, ranging from -128 to +127 ... > and there are no negative numbers in the ascii charts =) > > #2 - many of the character codes are not printable and would therefore > not be human readable. > > Another alternative to make it "human readable" would be to just loop > through the byte array and add each numeric value to a comma separate > string (list) > > rick > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335012 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ByteArray objects
You could try looping through the bytearray object and convert each element to is char equivalent but of course there are several problems with that: #1 - the byte array can contain negative numbers (a "byte" is a signed 8 bit integer according to java.sun.com, ranging from -128 to +127 ... and there are no negative numbers in the ascii charts =) #2 - many of the character codes are not printable and would therefore not be human readable. Another alternative to make it "human readable" would be to just loop through the byte array and add each numeric value to a comma separate string (list) rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335011 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: issues preserving the case of the key
does not matter about this now this seems to work... obj['actions']= []; arrayAppend(obj.actions, 'some value'); ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335010 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: issues preserving the case of the key
Put your initial array inside a scope. VARIABLES['response'] = {}; Then you'd refere to it like so: VARIABLES['response']['hotspots'] = []; On a side note, it's irritating that it does this, but you can code for it on the client as long as you know it's happening. ColdFusion itself could care less if the variables are uppercase, lowercase, or some mixture. andy -Original Message- From: Glyn Jackson [mailto:glyn.jack...@newebia.co.uk] Sent: Thursday, July 01, 2010 5:11 AM To: cf-talk Subject: issues preserving the case of the key Hi Having more issues with a JSON request. the page calling the service is case sensitive, this was solved using the bracket structure syntax: i.e. response['hotspots'] = []; to preserve the case of the key. however I have an array I have tried added the array different ways to the struct but it still comes out uppercase! var response = StructNew(); var tempArray=ArrayNew(1); var obj = ""; response['hotspots'] = []; obj = { distance = "100", attribution="This is a test layer POI provider", title= "My layer - snowy4", lon= "53.472696", lat="-2.261843", imageURL="null", line4="RADIOLIST-None,CustSlider-None", line3="SEARCHBOX - asdfdgxdg", line2="DevlId - 896Settings: range=1000'", actions="", type="0", id="test_1" }; arrayappend(response['hotspots'],obj); response['layer'] = "testme"; response['errorString']='ok'; response['morePages']='false'; response['errorCode']= '0'; response['nextPageKey']='null'; also tried var response = StructNew(); response['hotspots'] = [ { distance ="100", attribution="This is a test layer POI provider", title= "My layer - snowy4", lon= "53.472696", lat="-2.261843", imageURL="null", line4="RADIOLIST-None,CustSlider-None", line3="SEARCHBOX - asdfdgxdg", line2="DevlId - 896Settings: range=1000'", actions="", type="0", id="test_1" }]; arrayappend(response, hotspots); response['layer'] = "testme"; response['errorString']='ok'; response['morePages']='false'; response['errorCode']= '0'; response['nextPageKey']='null'; ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335009 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: SQL - Selecting a row based off linking table row matches
Could someone show me an example? I've tried all kinds of stuff with no luck. Thanks, Will ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335008 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
issues preserving the case of the key
Hi Having more issues with a JSON request. the page calling the service is case sensitive, this was solved using the bracket structure syntax: i.e. response['hotspots'] = []; to preserve the case of the key. however I have an array I have tried added the array different ways to the struct but it still comes out uppercase! var response = StructNew(); var tempArray=ArrayNew(1); var obj = ""; response['hotspots'] = []; obj = { distance = "100", attribution="This is a test layer POI provider", title= "My layer - snowy4", lon= "53.472696", lat="-2.261843", imageURL="null", line4="RADIOLIST-None,CustSlider-None", line3="SEARCHBOX - asdfdgxdg", line2="DevlId - 896Settings: range=1000'", actions="", type="0", id="test_1" }; arrayappend(response['hotspots'],obj); response['layer'] = "testme"; response['errorString']='ok'; response['morePages']='false'; response['errorCode']= '0'; response['nextPageKey']='null'; also tried var response = StructNew(); response['hotspots'] = [ { distance ="100", attribution="This is a test layer POI provider", title= "My layer - snowy4", lon= "53.472696", lat="-2.261843", imageURL="null", line4="RADIOLIST-None,CustSlider-None", line3="SEARCHBOX - asdfdgxdg", line2="DevlId - 896Settings: range=1000'", actions="", type="0", id="test_1" }]; arrayappend(response, hotspots); response['layer'] = "testme"; response['errorString']='ok'; response['morePages']='false'; response['errorCode']= '0'; response['nextPageKey']='null'; ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335007 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm