Re: URGENT : How to Detect screen resolution in COLDFUSION?
What is this virtual concurrency between server and client call stuff? I think I missed that in the instruction manual. Paul is correct, that output requires a DOM to run, CF is just seeing a text string. View source will also show you the output JavaScript. It is possible to pass those screen variables back to CF's session using client side script, just not the way that is being presented. On Sun, Dec 23, 2012 at 3:00 AM, Paul Kukiel pkuk...@gmail.com wrote: Impossible that it works as you describe. If anyone runs this code they will simple see a session variable with a string of js text. cfset session.screenwidth = scriptdocument.write(screen.width);/script / cfdump var=#session# / You would have to do it with ajax as suggested, or use js to set a form variable. On Sun, Dec 23, 2012 at 6:22 PM, The Dude exel...@gmail.com wrote: I am running this in a cfml page and it returns the screen resolution consistently. I was surprised to see js scripts in cfset would capture the desired values in a cfml page. Try it on your end, technically it shouldn't work but I believe the virtual concurrency between server and client call produce the desired result. Javascript is client side and will only run in the browser, you cannot run it from the server inside cfml. so cfset session.screenwidth = scriptdocument.write( screen.width);/script will simply assign the text scriptdocument.write(screen.width);/script to session.screenwidth not the value your are expecting. you need to run this script client side. scriptdocument.write(screen.width);/script and then send the values back to the server, you could do this with ajax or cookies. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353624 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: URGENT : How to Detect screen resolution in COLDFUSION?
Just view the source, it is the JavaScript strings being parsed by the browser, CF has no Idea what the variables are. On Sun, Dec 23, 2012 at 3:24 AM, The Dude exel...@gmail.com wrote: Checkout this test page link: http://exelstudio.com/screensizetest.cfm Here's the code: cfset screenwidth = scriptdocument.write(screen.width);/script cfset screenheight = scriptdocument.write(screen.height);/script cfset availWidth = scriptdocument.write(screen.availWidth);/script cfset availHeight = scriptdocument.write(screen.availHeight);/script cfset colorDepth = scriptdocument.write(screen.colorDepth);/script cfset pixelDepth = scriptdocument.write(screen.pixelDepth);/script cflock scope=session type=exclusive timeout=59 cfset session.screenwidth = screenwidth / cfset session.screenheight = screenheight / /cflock cfoutput div style=padding:15px; Screen dimensions: #Session.Screenwidth# width X #Session.Screenheight# heightbr /br / Available browser width: #availWidth#br / Available browser height: #availHeight#br / Color depth: #colordepth#br / Pixel depth: #pixelDepth# /div /cfoutput ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353627 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: URGENT : How to Detect screen resolution in COLDFUSION?
No, it is NOT showing the js result value instead of the text string, nor is this a fluke. CF is outputting the exact same string you set them to, the DOM in the browser is parsing the JavaScript so you see the variables. As I mentioned, if you view the source of the HTML you will see those strings exactly the way you set them. -- /Kevin Pepperman *Never memorize what you can look up in books*. --Albert_Einstein ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353630 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: URGENT : How to Detect screen resolution in COLDFUSION?
Its just the basics, but I am falling asleep. myData= width= + screen.width+ height=+screen.height; $.ajax({ type: POST, url: ajax.cfc?method=myMethod, data: myData, success: function(){} }); On Sun, Dec 23, 2012 at 3:43 AM, The Dude exel...@gmail.com wrote: Agreed, I saw the results on the page but completely forgot to check the actual page source. Any idea on the best way to ajax post to cf in jquery? No, it is NOT showing the js result value instead of the text string, nor is this a fluke. CF is outputting the exact same string you set them to, the DOM in the browser is parsing the JavaScript so you see the variables. As I mentioned, if you view the source of the HTML you will see those strings exactly the way you set them. -- /Kevin Pepperman *Never memorize what you can look up in books*. --Albert_Einstein ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353633 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: URGENT : How to Detect screen resolution in COLDFUSION?
Glad you worked it out. One thing you should do is make sure a session variable exists before using the session variables. When I first loaded the page I received an error, after I refreshed the error went away. You should cfparam the variables to a default first, otherwise they wont be set until after you call the ajax request. The success: function(){} is used to call back the data from the ajax request, you could use those to dynamically set a div to the variable returned. Error Occurred While Processing Request Element SCREENSIZE.WIDTH is undefined in SESSION. On Sun, Dec 23, 2012 at 6:35 AM, The Dude exel...@gmail.com wrote: Thanks guys for the jquery pointer, much appreciated. Got it working so the data is now in cfml via ajax. Page source got numbers vs string. Doh !! http://exelstudio.com/test5.cfm jquery ajax call: script type=text/javascript var theData= screenWidth= + screen.width+ screenHeight=+screen.height; $.ajax({ type: POST, url: ajax.cfc?method=myMethod, data: theData, datatype: json, success: function(){} }); /script ajax.cfc file: cfcomponent cffunction name=myMethod returntype=struct access=remote returnformat=json cfargument name=screenWidth type=numeric required=no cfargument name=screenHeight type=numeric required=no cflock scope=session type=exclusive timeout=30 cfset session.screensize = StructNew() cfset session.screensize.width= #arguments.screenWidth# / cfset session.screensize.height= #arguments.screenHeight# / /cflock cfreturn session.screensize /cffunction /cfcomponent ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353640 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: URGENT : How to Detect screen resolution in COLDFUSION?
Add code in your Application.cfc onSessionStart() method, that makes sure the default session variables exist right when the session starts. You can also test for the session in onRequestStart() ,and call the onSessionStart() method if they don't exist. On Sun, Dec 23, 2012 at 8:51 PM, The Dude exel...@gmail.com wrote: I put a refresh tag below the script within conditions. It works, but still not ideal. It seems there's no way to avoid the 2nd step either redirect or form post. cfif Not IsDefined('Session.Screensize.Width') script type=text/javascript var theData= screenWidth= + screen.width+ screenHeight=+screen.height; $.ajax({ type: POST, url: /ajax.cfc?method=myMethod, data: theData, datatype: json, success: function(){} }); /script meta http-equiv=refresh content=0;URL=test5.cfm /cfif Test page is: http://exelstudio.com/test5.cfm When I first loaded the page I received an error, after I refreshed the error went away. This method won't work either, because the Ajax function will be executed after the output of the page is already on client side. This is why you get an error at the first call. So you have to call the template two times so it can use the session variable. Furthermore, I'm not sure the Ajax function will use the same session as the calling program. A better way would be to use redirection. Example: CFIF NOT isDefined(session.screenWidth) CFIF NOT isDefined(url.sh) SCRIPT window.location.href += ?sw= + screen.width + sh= + screen. height /SCRIPT CFELSE CFSET session.screenWidth = url.sw CFSET session.screenheight = url.sh /CFIF /CFIF CFDUMP var=#session# You could also work out a POST method version using a FORM to transmit the values and the submit() function to redirect. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353659 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: New computer set up
+1 for Xubuntu... Or Lubuntu... Both good choices. Then one of the Viviotech server installers along with Eclipse. -- /Kevin Pepperman *Never memorize what you can look up in books*. --Albert_Einstein ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349522 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Function to decode string?
XMLUnFormat() from CFLIB should do the trick. http://www.cflib.org/index.cfm?event=page.udfbyidudfid=800 -- /Kevin Pepperman *Never memorize what you can look up in books*. --Albert_Einstein ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346847 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: timing software
Firebug for Firefox has tools for this type of thing. http://getfirebug.com/network -- /Kevin Pepperman *Never memorize what you can look up in books*. --Albert_Einstein ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346573 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: timing software
'Sloppy' is another good tool if you want to simulate page loads with slower network speeds. http://www.dallaway.com/sloppy/ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346582 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Its ColdFusion's Fault
Just to add to that-- ColdFusion is responsible for the success of Bank of America as well as many other successful websites (well one of the reasons anyway ;-) Didn't MySpace convert to .NET at some point? -- /Kevin Pepperman *Never memorize what you can look up in books*. --Albert_Einstein ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346327 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfspreadsheet varchar
Did you try setCellValue(HSSFRichText) ? Or you could try to put a ' in front of the value as a workaround. A company I work for always sends me leading zero data formatted with the (') since the sheets are created with an older application. -- /Kevin Pepperman âAn open mind that demands no evidence will let in an awful lot of rubbish -QualiaSoup ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346251 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfspreadsheet varchar
Im sorry, Forgot to mention that you could try CFPOI instead of cfspreadsheet. http://code.google.com/p/cfpoi/ When you create a cell with cfPoi you can also format the cells. On Sun, Jul 17, 2011 at 9:13 PM, Richard White rich...@j7is.co.uk wrote: Did you try setCellValue(HSSFRichText) ? interesting, can you elaborate a bit further, my research on this has not led me to understanding how this could work? Or you could try to put a ' in front of the value as a workaround. A company I work for always sends me leading zero data formatted with the (') since the sheets are created with an older application. this is possible although on some spreadsheets there are approx 400 columns and 1000's of rows all with these possible problems so would have to loop through every cell setting this, which could of course take a lot of processing time. although if there is no alternative then this is the best solution. thanks for your suggestions -- /Kevin Pepperman âAn open mind that demands no evidence will let in an awful lot of rubbish -QualiaSoup ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346253 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Iterative Business Objects
I also use IBO's and would also love to see how Corfield does his magic with them. Heck-- I look at his code even when it has nothing to do with what I am doing-- To me it is like listening to a great musician like Stephane Grappelli-- I listen very carefully even if I don't understand completely, or at all. I think even with the Closure code this is something a lot of us would love to see. On Wed, Jun 15, 2011 at 7:41 PM, Maureen mamamaur...@gmail.com wrote: I think even with the Closure code this is something a lot of us would love to see. On Wed, Jun 15, 2011 at 3:32 PM, Sean Corfield seancorfi...@gmail.com wrote: I'd be happy to share the code with you off-list if you want to use it as the basis for something of your own... If you don't need persistence, it should be easy to convert the array-of-struct handling code into query handling code. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345373 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Google Picasaweb API
This is not in CF, but I used it to build sites that sell and deliver art. http://gallery.menalto.com/ It has a cart system built into it. On Tue, May 17, 2011 at 8:30 PM, Guru cfexp...@gmail.com wrote: One of my friend is a photographer and he need a shopping cart type application which he can sell his photo albums. He already uses Picasaweb desktop application for uploading his photos and don't want to interrupt that. I was thinking if anything is available out there, preferably in CF so I can modify by myself rather than writing something from the beginning. Any ref. would be appreciated. Thanks, ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344607 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Looking for a CF Recipe script!
sorry, OT. Ripple in still water-- when there is no pebble tossed, or wind to blow-- I heard an interview with Garcia about this song once-- Jerry said something like-- To me Ripple is a reflection of all the things that just are-- and how when we observe things in particular states of mind-- the cosmos can just make really strange things happen for no reason or cause whatsoever. Cool stuff, right on par with modern physics-- and quantum mechanics. Everything always exists in all possible states-- time is an persistent illusion-- we, the observer effect the outcome just by observing the event. Is the cat alive or dead? WE are all connected. On Thu, Jul 8, 2010 at 10:30 PM, denstar valliants...@gmail.com wrote: On Thu, Jul 8, 2010 at 8:10 PM, Michael Grant wrote: I see. My bad. To be fair I find Denny hard to follow at the best of times. :D A snippet from a favorite song: If my words did glow with the gold of sunshine And my tunes were played on the harp unstrung Would you hear my voice come through the music Would you hold it near as it were your own? It's a hand-me-down, the thoughts are broken Perhaps they're better left unsung I don't know, don't really care Let there be songs to fill the air Not that it really helps you, but it all makes sense from in here. :-) :DeN -- You must accept the truth from whatever source it comes. Maimonides ~| 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:335206 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Shopping carts
(a one CFC convention-based DI 'framework' in the spirit of FW/1). Yes, I like that idea a lot. FW/1 has inspired me in many ways, the most important thing it has taught me is that conventions, when they are fully understood in a framework-- is the best ways to build things. It is all too easy to fall into the trap of changing my own patterns, but if my app is all built with a standard naming/structure convention like FW/1 half the battle of complexity is already solved. cfpayment is on the list for sure-- that is also a major part of the puzzle solved. I know it may be hard to make a cart both simple, and fully loaded, but I do think that it can be done, as long as everything is built as highly specialized services and business objects-- Like Sean mentioned, a simple central DI service could in fact manage a cart, and frankly I don't feel any part of a cart is that complex that it could not be done as units. A lot of what we need for this has already been done 1000x over-- in CF and many other languages, so we do not really need to reinvent the cart-- we just need to model it with a consensus based standard so its not hard to use it. There are code bases in CF already that are way more complex than a cart/checkout system, so this should actually become better than any system available to CF. Content management-- CRM, POS, Bar-codes, Processing integrations (pic pack ship), database support etc.. all can be modular-- After all, the whole process is just TEXT-- from the customer adding to the cart, to processing the order-- it is all in fact just simple text. The most complicated middle-ware I have ever built even for stores with hundreds of thousands of products and customers all boiled down to getting 2 systems to talk to each other with some type of TEXT. CSV.. meet SQL XML... meet CSV.. EXCEL... meet XML 159,567 row-daily-inventory-comma-delimited-with-every-known-?-character-known-to-WORD-along-with-commas-tabs,',,-,~,*,#- from 15 year old DOS based Legacy systems--- meet OSC Its all text man. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| 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:334952 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Shopping carts
Well, no one can say that CFML coders are not a passionate group thats for sure. To everyone participating in this conversation-- I have much respect-- and I do mean everyone. Times are tough everywhere right now, and we all need to group together and stay focused on what we believe in and what we know works. I don't think anyone meant to single anyone else out with what was said, so please don't let the popular consensus distract you, we can all still get along just fine even if we don't always see eye to eye. So anyone actually participating has my 100% respect, I don't hold grudges and I know sometimes we will all disagree on things and we can still all move forward with our objectives. Lets focus this passion on something constructive that we can all benefit from-- this ball is rolling and picking up momentum, lets put some wind at its back and push it along :) This group rocks! -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| 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:334942 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Shopping carts
Sorry if I don't buy the BS elitist attitude there. In defense of Seans comments, I do not see this above statement to be even remotely true. Sean has always had a great ability to just say it like it is-- And I have to agree with him this time-- Please take Sean's statements for what they are, he is not singling out people or projecting an elitist POV-- he is a powerful voice of reasoning that has considerable and very valuable experience in this field, if he says something you do not agree with, there is a very good chance you could be wrong. ( I know this from my personal ego battles with myself ). This type of bashing is not doing anything productive, and in fact is just confirming what Sean said is the problems with the CF community compared to other OS community's. Especially someone like *Sean Corfield* who contributes a huge amount of time and awesome code for FREE -- (-*-reminder to self. send Sean more free T-shirts* :) If you need something for free it is out there-- you can find it-- but the statement Sean made was just making a point about software and fees associated with them-- thats it. I have to agree with Sean too, if a few hundred dollars is too much when you are looking for a paid CF cart compared to rolling your own you are in the wrong business. The people shouldn't even hire you to do it, because in the long-run, it will cost them 10 times to pay someone who is inept then to just pay for the real deal from the get-go-- that is a simple fact. If you ever have to inherit some newbie's legacy code, you will know exactly what I am talking about-- I was a newbie once too-- I have inherited all my own legacy apps-- and man did I suck at it. Even a struggling business in a poor economy should have a few hundred dollars-- I mean if 3-400 dollars has to be even discussed by a company or a developer when trying to decide if this important part of the project can be afforded or not, one must really consider if the business model is even viable at all. Especially if the software is complete-- the time to develop a cart yourself, or modify one of the existing FOSS solutions that could even remotely compare to just the limited solutions that are available in the CF world, would easily take months-- if not longer. Ill bet even CFShopCart (even with its flaws) took hundreds of hours-- if not longer to build-- the money spent on it would be a huge discount compared to doing it yourself. I deal with 9 clients right now, and they deal with 6 figure decisions on a daily basis, as do many mom and pops-- yes every corner store in the USA looks at 6 figure bills every year. Sean does know what he is talking about-- he really does-- this conversation is not about the one-off bs contract job for a startup mom and pops that is friends of your uncle Joe :) This is about bringing something (FOSSCFCART) that does not exist to our community and what it will take to pull it off. Now that is out, I am glad to see some people responding-- especially people who have positive influence on the CF community (you know who you are) and have something of value to say. Like I mentioned, I am willing to put my resources into this-- I have 12 years experience in the eCommerce world and I have the backing and capital of many well known clients who are all willing to put real resources into a FOSS CF cart. Anyone with me? Or am I on my own? -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| 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:334901 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Shopping carts
@eric, in all respect of you, and all hard working people. Please don't assume that we are all rolling in cash just because we have some insight on critical business decisions. I am currently working my pile of receipts and bills-- as I too am struggling in a bad economy-- I too am all 1090-- have been for over 20 years. I also raised a stepdaughter (24 in grad school), maintain our health insurance etc... all on a self educated career. Built on the back of giants (like Mr. Corfield). But I also work 16+ hours a day, and wouldn't think twice about flipping burgers if I had too to afford a tool that would make me better at my job.. Seans statements were not elitist BS.. you are incorrect. Maybe there are edge cases like yours that do not fit his generalizations, but the general statement is still true. If you want Free, it is out there-- but you insist on stating that its a lot of money for software, but it is just not-- You have a ton of options for your friend, I too do charity work, quite often-- But I don't use enterprise level software like CF-- I use PHP/OSC/PAYPAL etc. There are tons of FREE solutions, you are looking for oranges in an apple tree my friend :) There are too many analogy's for this for me to iterate. I *don't* have a pile of cash, but I *don't* consider Sean's statements to be elitist. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| 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:334905 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Shopping carts
@Mark Awesome, Thats the attitude! I am in the process of consulting with an attorney just for legalese. When I get the domain set up, I want to start with a foundation that is driven by the community-- that way the base code is not even started until we have a good idea of what the foundation should carry. Thanks for the positivity. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| 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:334907 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Shopping carts
@mark I would love to see the cart be framework agnostic-- then have the ability to have demos on various frameworks. I do think CF has matured to the point where this can be done. Usually things like this fail because they don't have the right combination of resources, planning, drive, and ability-- the first item being the most important. I think we have started something that has access to all those things already-- Time will tell. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| 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:334909 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Shopping carts
Thanks Sean. Any input on this is immensely helpful. I have participated in several OSS projects but I have never started one, but I do have the backing, ability and determination. On Mon, Jun 28, 2010 at 11:38 PM, Sean Corfield seancorfi...@gmail.comwrote: You might want to talk to Jason Delmore @ 4cff.org since they've already gone through the whole incorporation as a not-for-profit stuff in order to provide OSS software with infrastructure and legal backing... -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| 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:334913 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Shopping carts
That's not an inherent problem with OSS, more a problem with the quality of the coders who've been working on it In the case of OsCommerce and the variations of that platform this really is only partially true. I agree in the fact that code contributions are only as good as the contributers, but I think the base OSC platform never really had a solid foundation for implementing plugins. There are so many ways to do things and no real standards for their requirements, so one module will use the existing language files, install/remove routines and the next wont-- If there were actual requirements or conventions that always had to be followed it would still be convoluted to even a good PHP coder. CRE loaded and Zen cart tried to move past those limitations and they were somewhat successful but the documentation was limited. Anyone who has learned how the RCO and RCI (runtime include/override) systems; And the actual template systems in CRE Loaded will tell you that that idea was half baked into an already convoluted code base. I do find it a little ironic that there's an objection to paying even a few hundred dollars for something of value I do agree with the point that no-one should reject a few hundred dollar(or more) fee for a solution, I have gone down that path as well with several projects. But out of the box everything needed just as much work as the free offerings, and frankly they were no better-- Actually when it came to implementing new features, OSC was always the best even with its shortcomings, once I got to know it. I feel like that was purely because there was community help, and you were working with a code base that had hundreds of examples. And when something was needed that I couldn't understand, I could always pay for help. That is what people are really looking for, not just free code-- but a community of people that have forums/groups with examples and documentation of common pitfalls and duh moments. I have seen a few company's spend thousands++ on proprietary solutions only to find out the code was hugely complex, and there was no forums/community support at all. Only the company sells 200$/hr support, and will be available sometime next month.. maybe. (so I suspect some of the difficulty expressed in this thread also comes from an inability to understand halfway complex code) This sorta go's without saying, but this also the same reason people use an IPhone, it is simple and just works, it may not do everything for you but you don't need a manual and a month to understand how to use it. It is not so much the complexity of the applications or that fact they are procedural, it is the simple fact that you cant just add a simple feature without understanding a huge portion of the code-base or without causing errors in completely unrelated code. Though this is partially a good thing since once it is installed you are getting plenty of work in maintenance fees,but it sorta sucks for the new people, or the 22 yr old webmasters who inherit some legacy apps. Apache/Tomcat/PHP/MySql/Railo/OpenBd/CFML are simple to install, simple to use, and above all simple to get involved with-- that is what inspires new developers-- if we make things complicated to use, only complicated people will use them. People do want things that are easy, that is why FW1 has taken off so well, the concepts are relatively easy to grasp and you don't have to be a genius to use it :) I think the future of web based software really sits on this type of service, like the type of model Railo has-- give the application/code for free, but also sell support packages-- If someone is really living hand-to-mouth as a software developer and can't afford a few hundred dollars on software, then they need to go get a new career. Software pays well and if you can't make money at it... haha.. American Idol would never be watchable if they didn't all get some actual good advice from Simon-- (don't quit your day job-- because frankly you are a terrible singer-- simply awful) Though it sounds so much better with an accent. This is very true Sean, that is one thing I learned years ago-- it costs money and takes time to be a programmer-- if you think you can do it for free and easy, then get another career. This wont happen for free, that is why I offered money and time-- and my own experience. I am happy we are getting some varied input on this, maybe the heat of conversation can give the idea some momentum. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| 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:334881 Subscription: http://www.houseoffusion.com/groups/cf-talk
Re: CF Shopping carts
Again, the contributors (to the original platform)... Touche' -- that is true, but Harald Ponce de Leon did start it himself, so it may have been because of the initial decision making of one contributer. Simon doesn't have an accent and neither do I - it's the rest of y'all :) So True, the American English dialect is the real English accent-- but in a group-- the guy who talks different then the group is the guy with an accent. :) I don't think I have an accent, (born in key west FL, raised in CT and WY, live in RI) but boy people in Louisiana sure can pick me out of a crowd. I did read somewhere recently that men with accents do better with courting woman-- so why doesn't my very thick American accent work with foreign woman? :\ I would sound like an a$$ if I criticized singers, but Simon still sounds cool. I wonder if its in the water. hmmm. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| 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:334884 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Making static files from requested data
The feed would require a browser client to parse the Javascript data, the CF serverside cfsavecontent wont actually parse the javascript feed and render it as html. You should be able to do it with the Rhino Java lib, or look at Ben Nadels website, there is a component example that can simulate the browsers DOM, maybe that could grab the scripts and render them to a DOM content var.. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| 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:334861 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Shopping carts
I feel that this is one area that is completely overlooked in the CF world-- Especially since OO was introduced to CF in MX. CF would be such a great platform to develop a awesome open source shopping cart/administration system. It would be easy to modularize with add-ons components etc... Ii'll bet most of what a OS CF commerce system requires already exists in the wild, but just needs to be put together in a cohesive platform. A lot of components could actually be modeled off other systems like Magento or OsCommerce I would be willing to dedicate financial ($$) resources and time in something like this if the community was in need and willing to participate. It is something we should all consider; When searching the web for PHP carts there are hundreds-- in the CF world there are just a meager few, and like @Dave mentioned about cw, every CF cart I have seen is procedural spaghetti at best, or not FOSS. I written some half-baked code years ago for a cart, some has been re factored into OO. But it is no way ready for prime time and was build specific for existing internal systems so it is very limited in administration ability. But it has been used on several sites for many years with no issues, so I know it can be done. I think if a open source CF commerce system was approached from the CF community mind-set it may turn into something that could be used in any framework/engine. I have seen what the CF community is capable of-- and it is nothing short of astounding, so I am 100% confident it could be done. What does everyone else think about this? Would this be something that the community could use and would participate? If I get a decent response I will set up hosting, a .org, a git repo and consult with my people about the legalese involved. I would also be willing pay some of the more prominent CFr's for consulting/code/advice on this-- as I know some peoples advice/code/talent is worth every penny. Please chime in everyone, no matter your ability's-- this is something that does not exist yet, and we as a group have the ability to make it happen. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| 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:334822 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Shopping carts
@Eric Roberts * * Yea, that has been my experience with all the carts I have used as well. I have used OsCommerce, as well as the various flavors-- ZEN cart, CRE Loaded etc.. and they all have big requirements-- some hosts just will not run them. Although I have been successful using them, they all have their shortcomings-- convoluted code structures being the worst part. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| 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:334827 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Re: CF 9 Hosting
VPS on Viviotech is my favorite nowadays-- I highly recommend them. The pricing is good, and the service is scalable as your needs grow. My last 2 requests to support were after 2AM and both were responded to within an hour-- the first was in 10 minutes. (no kidding.. after 2AM EST) My client registered a domain and emailed me around 2AM, I updated the DNS records to point to Viviotech then sent a domain request to Viviotech support. I didn't even get an email back out to my client yet and Viviotech support responded back that the request was completed. The DSN was already resolved and serving files from the new domain on my VPS. Needless to say my client was very impressed with the speed that his domain came to life, as was I. The Viviotech VPS control panels are top notch, and you can almost anything you can think of, adding FTP clients/domains is a breeze. Addn: I also use CTEK for a few clients, but I too have heard that BS about CF and other stuff from them. They also told me that osCommerce and Gallery2 was bad and insecure. :\ I had to explain to them they need to keep their opinions to themselves, telling a client that any app or language that they use is bad or dying is only feeding the fire of their own demise. Especially someone like me, I use CFML and OsCommerce extensively (all PCI compliant too), my clients do millions of dollars in transactions on this software, and suddenly its bad? What exactly qualifies support staff to say this type of thing i'll never know, but I do know that CFML is awesome, anyone attempting to bash CFML looks comical to me. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| 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:333873 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: store image location in database
Once you have inserted the filname into your database, you would get the filename by querying the database with the Primary Key set on the image in the table. Assuming the table was like this. * imageID | imageName* * -* * 1 | /mypath/myimage1.jpg* * 2 | /mypath/myimage2.jpg* * 3 | /mypath/myimage3.jpg* * 4 | /mypath/myimage4.jpg* And you have inserted the names into your table with SQL *cfquery datasource=mydsn* *INSERT INTO myImagetable (imageName)* *VALUES* *(cfqueryparam cfsqltype=cfsql_varchar value=#myFilename# /)* */cfquery* You then would use a URL with the tables ID to get the filename: eg. */index.cfm?imageId=1* * * Then use the URL.imageid in the query to get the filename: *cfquery name=myimagequery datasource=mydsn* *SELECT imageName FROM myImageTable* *WHERE imageId =cfqueryparam cfsqltype=cfsql_integer value=#URL.imageid# / LIMIT 1* */cfquery* Then use the query result in the image src attribute. cfoutput*img src=#myimagequery. imageName# //cfoutput* * * * * Is that what you are asking for? -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333219 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Code in CMS Database Not Executed
OpenBd has a render() method that parses raw text as CFML. It is very fast too. http://blog.openbluedragon.org/render.htm A new project I am working on I have been using multiple CFM engines on Tomcat. It has been a bit tricky at times but since all the CFML engines available offer great things that the other does not; But I don't want to be tied to any one of them. I also use .NET, PHP and RUBY a lot, and have to talk to a array of internal legacy applications, so the flexibility to use any engine is needed. I really would love to see some way to choose a cfml engine at runtime. But it may have to happen at a .jsp level. cfsetting cfmlengine=openbd / do OPENBD stuff cfsetting cfmlengine=railo / do RAILO stuff -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332961 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Joni Mitchell and Cold Fusion
Charlie beat me to it... Move it to Viviotech or some other VPS, Go Daddy did this stuff to me years ago. I moved my apps years ago off GD and never had an issue again. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332722 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: using cfhttp
Using cfhttp will return a cfhttp.statusCode, which if is 200 OK you know the URL has resolved correct. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332640 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Custom search engine
I am in the process of learning this as well (BlueDragon/Lucene), so I can help you get started. It was a hurdle for me too, so hopefully everyone can benefit from what I have learned from this. CF is basically the same methods, only it uses Verity. You can do a query index that gives you the exact same results as an HTML spider does if you want. Even better really, since you can control what is actually indexed. Instead of every item on the page being indexed, you can just grab the content you need. We used the HTML spider-- and did not like the results so we create our indexes dynamically locally, then upload the index. The main hurdle is getting the query to provide you with exactly the information you need-- since you are limited to 1 query field in the BODY of the cfindex tag, you do need to do some fancy footwork to get that field to contain all the information you need. What I do when I need to index multiple fields is to create a query that contains all the fields from the products tables combined into 1 query grouped by the SKU and the attributes. Then I create a new query using the fields that cfindex needs. I then loop over my products query combining the fields that I need indexed into the fields I need. concat them with VAR VAR setting BODY in the dynamic query to all those fields. After you build the new query, the BODY will contain all the fields you need-- The only thing to watch out for is to make sure KEY is a unique variable so you only index each item once. You can also do grouped query's and nest the output so you can have a SHIRT with multiple SIZES etc... As along as it is combined into the BODY field in the dynamic query it will be added to the index. This is not complete.. but its the basics. 1 warning-- TEST LOCALLY!! and don't try to do a cfsearch in the same script as the one you are creating the collection. You can create a race condition in multi threaded server that can freeze resources and the JVM. Also, I find it fastest to delete the collection each time I test instead of updating it. You also should consider creating indexes locally then uploading them complete, this is pretty intensive on huge datasets. -- This is a good UDF to have too. http://www.cflib.org/udf/collectionExists //---CODE -// indexQuery = QueryNew(KEY,URLPATH,TITLE,CATEGORY,BODY,CUSTOM1,CUSTOM2,CUSTOM3,CUSTOM4); cfoutput query=mydata cfscript QuerySetCell(indexQuery, BODY, mydata.DESCRIPTION mydata.CATEGORY mydata.TYPE mydata.OTHER)); QuerySetCell(indexQuery, KEY, mydata.SKU);// HAS TO BE UNIQUE TO THIS INDEXED row QuerySetCell(indexQuery, URLPATH, mydata.URL); QuerySetCell(indexQuery, TITLE, mydata.TITLE mydata.GARMENT mydata.COLOR); QuerySetCell(indexQuery, CATEGORY, RETAIL); QuerySetCell(indexQuery, CUSTOM1, mydata.TCODE); QuerySetCell(indexQuery, CUSTOM2, mydata.PRICE); QuerySetCell(indexQuery, CUSTOM3, mydata.GARMENT); QuerySetCell(indexQuery, CUSTOM4, mydata.SIZE); /cfscript /cfoutput Then you can just pass the dynamic query to Index and it will use your combined BODY and custom fields.. cfindex query=indexQuery collection=#collection# action=Update type=Custom urlpath=URLPATH key=KEY title=TITLE custom1=CUSTOM1 custom2=CUSTOM2 custom3=CUSTOM3 custom4=CUSTOM4 body=BODY category=RETAIL / //---E/O CODE -// -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332480 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Custom search engine
addn: you also need QueryAddRow(indexQuery) on each iteration-- I forgot that in the example. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332481 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
cflib.org errors
Does anyone know who to alert that cflib.org is throwing errors? http://www.cflib.org/ -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332401 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Custom search engine
Verity or Lucene work pretty well-- though it does take some time to wrap your head around how you go about get complex data indexed. But once you understand it it is very customizable. cfcollection, cfindex, and cfsearch are all you need to build a fairly robust search engine with stemming as well as allowing (AND NOT OR and wildcard(*) ) style of searches. http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_c_09.html http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_c_09.html -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332360 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Custom search engine
It looks like CrystalTech supports verity search. I cannot see any reason they would not support it. Maybe all it takes is to let them know you need it. http://help.webcontrolcenter.com/KB/a271/adding-verity-collection-to-a-coldfusion-site.aspx?KBSearchID=76929 -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332366 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Cfsearch - Spell Checker
I use a combination of SOUNDEX in MYSql and a collection of misspelled words with the correct spelling as a custom field, and the body as all the possible misspellings. But someone has to fill in all the possible misspellings in the second collection. The SOUNDEX does some stuff well, then the alternate collection is used if both the search and SOUNDEX have no results. I am not sure if you can modify how Verity handles this-- I usually use Lucene. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332092 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: how to maintain source code
Using Git, CSV or subversion is super easy with Eclipse. You can maintain a local repo that tracks the changes you do, and also allows you to synch with a remote repo when you want to push a final code change. I like Git and Github a lot since it is free and easy to collaborate with, and I prefer to use EGit in Eclipse, it is simple to set up, and can have you up and running with a local repo in a few minutes. It is a good Idea to test locally before trying to work with a large repo, you do need to understand a few key terms before doing the big stuff, but it is well documented. http://www.eclipse.org/egit/ I also use TortoiseGit, which is a standalone gui for GIT. Tortoise also makes standalone gui's for Subversion and CSV. http://code.google.com/p/tortoisegit/ On Mon, Mar 15, 2010 at 9:47 AM, Greg Luce luce...@gmail.com wrote: I recommend setting up a free account with unfuddle.com and in 10 minutes you'll have your codebase in SVN. -- Greg Luce Luce Consulting Services, Inc. www.luceconsulting.net (863) 273-0289 On Sun, Mar 14, 2010 at 11:31 PM, Barney Boisvert bboisv...@gmail.com wrote: Version control software. Always use it. If the company doesn't want to use it, that's their [idiotic] prerogative, but there is no reason you can't with a local server. Subversion is trivially easy to set up a repository whatever your OS (download and install free binaries). The cool kids are apparently using Git (I use Subversion) which doesn't need a repository, though my experience is that the GUI tools are rather lacking. In any case, version control shouldn't be a problem, even if it's just a personal setup. But really, if you're working somewhere that doesn't want to use version control it seems like finding a different place to work might be a good idea. There is a reason there are so many systems and it's a constant topic of discussion: it's REALLY important. If not even more important. cheers, barneyb On Sun, Mar 14, 2010 at 7:19 PM, fun and learning funandlrnn...@gmail.com wrote: Hello All - Have any of you faced a situation where the place you work does not have a version control software, and in that case what are the best way to maintain code files on your development machine? Thanks. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331779 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Auto-Login to Google Analytics
Ben Nadel's CFHttpSession.cfc may be able to do this, I have not tried it yet-- but it mimics browser sessions. http://www.bennadel.com/projects/cfhttp-session.htm logged out from your own Gmail account and into another Google account for the analytics. Just as a side note: You can log into 2 gmail accounts in the same browser as once as long as one of them is a business account. :) I do it all the time. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331535 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Auto-Login to Google Analytics
http://www.google.com/services/ It is a paid service-- We recently converted a company I work for from Exchange to Google business-- They are all very happy with it. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331571 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Development and Testing Environment Recommendations
Another vote for VM from me. elasticserver.com is great-- I have an paid account there, I want to support them because they are awesome! Another very nice thing is you can test ANYTHING without worrying about a sever failing. Plus, it is very easy to load test an app-- you can limit the memory and cores, then load it up and see what it does. Another thing I have been doing is using ANT to create full applications in a .war file. (you also can do it manually) It allows me to bundle a Railo/BD/ACF WEB-INF folder with my app, and deploy it to and servlet container in VM to test. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331507 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: overwriting a component reference variable
This implies no memory re-usage within a request, which seems to be the consensus. Did you let it run until you reached the maximum heap space? 20,000 is pretty tame, unless each one somehow can actually claim a good chunk of random memory. A query really is not a good way to test this either, since there is quite a bit of magic behind the curtain that allows CFML access to underlying Java/jdbc logic, so just because you have 20,000 objects each with a query does not mean the JVM is not managing it in some arcane way and wont GC or pagefile when it has to. Try throwing something extreme at it just for fun-- make a new 500K block of random text in EACH bean. I have found that a well tuned JVM will always use most of the heap all of the time in production. GC only happens when needed and then it fills right back up. If something huge is thrown at it, you see the page file activity, and JVM manages to do the task. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331524 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: the attribute conundrum
try this. you need to use the literal variable, not the string. cfif not len(attributes.cfUserID) and not len(attributes.personKeyList) Because? len(attributes.cfUserID) and len(attributes.personKeyList) Will ALWAYS be true in both cases.. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331435 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: never ending redirect I can't spot
Hmm, so I could just drop in those core files? This is an old app that is still live, I'm scared to make such a drastic change. Any thing it might affect? In theory It could work, but if you have it working now don't take this step. I would never attempt it on a live site anyways. Download the app, then test it locally. Glad you got it working-- It is usually something simple. On Sat, Mar 6, 2010 at 3:16 PM, Matthew Smith chedders...@gmail.com wrote: ok, got it. It was this in the orderapp fbx_settings: cfif fusebox.targetCircuit neq fusebox.thisCircuit and not isDefined(client.#fusebox.targetCircuit#returnFuseaction) I forgot this: cfset client.securepaymentreturnfuseaction = #fusebox.thiscircuit#.startprocess Thanks to all for the help. On Fri, Mar 5, 2010 at 6:55 PM, Kevin Pepperman chorno...@gmail.com wrote: If I were doing this, I would eliminate all cfmodule calls. I do see what you are doing here, calling fuseactions with cfmodule-- that is what FB4 and FB5 does without cfmodule. FB3 required cfmodule to access fuseactions. There is a alternate core for FB3 that uses FuseQ, here is an example that also has the alternate FB3 core files. http://www.briankotek.com/index.cfm?fuseaction=content.viewcontentitemcontentid=34returnto=coldfusion.main It allows you to access fuseactions from other circuits without cfmodule. This would be much better than cfmodule. cfset addtoq( 'mycircuit.myfuseaction' ). You should be able to just swap out the core files and run with it where you need it. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331418 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfinput - validate non required field
View your source code and look to see if you are loading the scripts. You should see something like this is the source. Make sure those the external scripts are loading. script type=text/javascript src=/scripts/scripts/cfform.js/script script type=text/javascript src=/scripts/scripts/mask.js/script script language=javascript !-- cfform_submit_status[AccountLogin]=null; function check_TF_AccountLogin( theForm ){ cfform_isvalid = true; cfform_error_message = ; cfform_invalid_fields = new Object(); if ( !tf_element_has_value( theForm['UserName'], _TEXT ) ){ tf_on_error( theForm, UserName, theForm['UserName'].value, Please Enter a E-Mail ); } if ( !tf_validate_email( theForm['UserName'] ) ){ tf_on_error( theForm, UserName, theForm['UserName'].value, Please Enter a E-Mail ); } if ( cfform_isvalid ){ return true; }else{ alert( cfform_error_message ); return false; } } //-- /script -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331421 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: never ending redirect I can't spot
What I would do in this case would be to comment out all your redirects first-- then anyplace you have a redirect-- do a cfdump var=#SESSION#/cfabort / And verify that the server is getting the info that it needs. I also have found that instead of accessing the SESSION scope directly, you are better off either adding a global function to access the structure-- the point being you cannot depend on the SESSION scope to actually exist before you depend on it for critical processes. SESSION/COOKIE scopes can bite you an the rear if not managed effectively, try to encapsulate all access to those scopes in one place, it will save you these headaches in the long run. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331395 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: never ending redirect I can't spot
Doesn't the explicit passing of cfid/cftoken solve the session issue? Not always-- like I mentioned, cfmodule uses the page scopes different than an include. I never use cfmodule, mainly for performance reasons, but if I recall I had these type of issues, cfmodule does not share the same scope as the calling template. cfmodule has its (it's?) own scope called attributes. Anything available to cfmodule must be passed in to be manipulated. /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331396 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: never ending redirect I can't spot
If I were doing this, I would eliminate all cfmodule calls. I do see what you are doing here, calling fuseactions with cfmodule-- that is what FB4 and FB5 does without cfmodule. FB3 required cfmodule to access fuseactions. There is a alternate core for FB3 that uses FuseQ, here is an example that also has the alternate FB3 core files. http://www.briankotek.com/index.cfm?fuseaction=content.viewcontentitemcontentid=34returnto=coldfusion.main It allows you to access fuseactions from other circuits without cfmodule. This would be much better than cfmodule. cfset addtoq( 'mycircuit.myfuseaction' ). You should be able to just swap out the core files and run with it where you need it. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331399 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: never ending redirect I can't spot
Are you on a load balanced server with more than 1 CFML server? If so you will need to do some type of session replication, session.billinginfo may not be set yet. Also, cfmodule calls can be tricky sometimes when depending on session/cookie variables-- you may want to put your session checks wrapped around the cfmodule calls instaead of inside them. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331374 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Local DEV setup, multiple projects/websites
Well, of course, but I don't understand how differing live and development environments is ever a good thing. In an Ideal situation this holds true, especially if you are a lone developer or are stuck a single platform. Many people work in team environments so having the flexibility to have different configurations available is a good thing, even if it is not needed right away. I work with several servers on many projects, some Windows, some Linux Red Hat, some Ubuntu. Also our team members are all working on different platforms, XP, OS-10, Snow Leopard, Ubuntu-- I like to use the best of each OS, and I never want to be stuck on 1 platform or vendor. The team all have access to several types of repo's, GIT, SVN etc.. depending on when/where the app was developed. We also stage server upgrades in distributed VM's and move them up the food chain as newer systems are released. So having configuration data set up in a way that it CAN be different on live and development is very important. We can go from development, staging then live with very little configuration changes. The config files can be generated using ANT, so a config file can exist for every possible situation from the beginning of a project. If an app needs to move from Red Hat/Apache 1.x to WIN SERV on IIS it wont need anything fancy to do it. (usually) Did I mention how much I love code generation? -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331247 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: date calculations driving me batty!!
I did not test it, but maybe try changing it to this? *cfset req.daysAway = DateDiff(D,req.departdate,req.returndate)+1 * The ## is causing a evaluation and is not needed when used like this. Maybe it is causing the issue. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331283 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Why, oh why won't my batch file run via cfexecute?
Rick, I had an issue like this with an app called BarTender for generating Barcodes. It ran fine on XP, It also worked from a CMD prompt, but in Windows 7 it would not work with cfexecute. It was because the path was not using the EXACT correct path and volume label. eg: c:\program files\bartender\ this did not work C:\Program Files\BarTender\... this works It is worth a shot anyways, Win 7 is much more strict than XP. -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331241 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Why, oh why won't my batch file run via cfexecute?
If all else fails, it may be worth trying the System Command contribution on Ria. http://systemcommand.riaforge.org/ That way you can get the error returned to the output. http://systemcommand.riaforge.org/ -- /Kevin Pepperman They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. - Benjamin Franklin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331243 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Cleaning Microsoft .docx special chars
I just wondered if anyone else has seen this before, and I wanted to post this to help anyone else that has this same issue. We have an outsourced writer doing textual content for products in a site that I work on. The writer always supplies me with the content and I added it via a CMS. It was always in Microsoft Word format, so I know to strip out special chars using the DeMoronize UDF found at CFLIB, the function is built into the CMS. But recently he has been using a newer version of Word and giving me .docx files. At first I didn't really notice, but recently some of the content has been indexed by Google and since the text was used in Meta descriptions and the page titles in places, I started seeing new #xxx; chars that would not render in Google that I didn't see before. When rendered correct on our site, they look exactly like the smart quotes and several other strange things like ... etc.. The DeMoronize() UDF used to remove these with the chr(n) function, but these look completely different and were missed by the UDF. These are the new entities that I am seeing, they show up fine in UTF-8 HTML, but posting them to the CMS was adding them like this to MySql, and Google would not render them in their results correct. #8220; #8221; #8217; #160; #39; #8230; #8482; The fix for DeMoronize() is simple. Add these lines. text = ReReplace(text, ##8220;, , All); text = ReReplace(text, ##8221;, , All); text = ReReplace(text, ##8217;, ', All); text = ReReplace(text, ##160;, , All); text = ReReplace(text, ##39;, ', All); text = ReReplace(text, ##8230;, ..., All); text = ReReplace(text, ##8482;, trade;, All); Server notes: The mySql tables, columns, connections and collation are all utf-8_unicode_ci, Application.cfc contains SetEncoding(form,utf-8); SetEncoding(url,utf-8); and I am using cfprocessingdirective pageencoding=UTF-8 Has anyone else seen this? -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331119 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Cleaning Microsoft .docx special chars
Ask him to stop ? That is probably the best solution. :) I'll require him to submit .txt files from now on. We use the built in richtext editor in cf8+ to handle pasting from Word We need it to be raw text, and we have specific filtering for Meta descriptions, page titles etc..(eg. no in meta description tags so the XHTML will validate) --so our CMS limits what can be entered with a combination of jQuery and server side validations after submitting to a XHR. So I probably wont be able to use a full RTE for this situation. Thanks! On Thu, Feb 25, 2010 at 8:17 AM, Tom Chiverton tom.chiver...@halliwells.com wrote: On Thursday 25 Feb 2010, Kevin Pepperman wrote: But recently he has been using a newer version of Word and giving me .docx files. Ask him to stop ? I would hope he would. Your interchange formats may even be specified in the contract -- Helping to autoschediastically cluster collaborative communities as part of the IT team of the year 2010, '09 and '08 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 together with a list of those non members who are referred to as partners. We use the word partner to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. 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.co ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331127 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Invitation to connect on LinkedIn
Its an issue with LinkedIn. When I created my account I de-selected all contacts.. and it still sent this to every one of them. -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331011 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Possible switch to CFEclipse
And don't get me started on the subject of people running e-commerce businesses on shared hosting accounts... ;) A contract I had a couple years ago I went through a big fiasco with just this. The company was already using a shared host (a very cheap one at that) and when we told them that they needed a dedicated host, they refused at first. They nearly pulled out until I showed them how vulnerable their 100,000+ customers data was. Their log-on for their administration was not secured with SSL, they were collecting CC data along with the CCV codes into a shared database that was completely insecure. I finally proved it to them when I installed phpMyAdmin on a separate account at the host and you could login to their database using root with no password. Yes. the host had set root privileges with no password on a shared host. Needless to say this rather large website was moved to a dedicated host. -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330796 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: can't get encrypt to work.
Bryan Beat me to it-- Another OT point to add-- You dont have to use both isDefined() and cfparam when defining your variables in the request.encrypt struct You can just use: cfparam name=request.encrypt.secretkey default=key cfparam already looks to see if the variable exists and sets it if it does not. Also, it is better and faster than isDefined() to use StructKeyExists() eg: cfif NOT StructKeyExists(request,encrypt) cfset request.encrypt = StructNew() / /cfif cfif NOT StructKeyExists(request.encrypt,secretkey) cfset request.encrypt.secretkey = myKey / /cfif -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330802 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: can't get encrypt to work.
HOF had a similar discussion. http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:52757 http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:52757 -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330808 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: can't get encrypt to work.
If you're encrypting, with plans to decrypt later, then you'll have to store the key as well. Yea.. the idea is the key should be stored. If these are passwords you are encrypting, Ideally you should not store them in any way that that can be decrypted. But if you need to decrypt them, then you will need to store the keys along with the encrypted data (another table/database preferred). If you are trying to encrypt passwords, I had good luck borrowing some concepts from this code. http://github.com/virtix/cfcrypto which uses extreme HASH methods that utilize a SALT for each variable and iterates over the process 1024 times. But it may be too extreme for what you need, also the HASH is irreversible, so its only really suitable for passwords. -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330812 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: can't get encrypt to work.
This is a simplified UDF function version of Crypto.cfc that uses a salt for each password. It returns a struct that contains the hashed password, and the salt used. To verify a password against the encrypted version, you just encrypt the form post with the exact same method, but passing in the stored salt, then compare the 2 encrypted passwords. In some super security scenarios you would also have a Server key, that is unique to the application and is stored in a third spot separate from the database. This way if someone hacks your database and accesses the users salt and the encrypted data, they are still missing the Server key as well as how many times you iterated your hash. cffunction name=Crypto access=public returntype=any output=no cfargument name=password type=string / cfargument name=salt default=#GenerateSecretKey('AES')# hint=user salt added to password, then stored in the secured database / cfscript var local = structNew(); var i = 1; var iterations = 1024; var algorithm = SHA-512; local.salt = arguments.salt; local.passwordHash = hash( arguments.password arguments.salt, algorithm, 'UTF-8' ); for (i = 1; i LTE iterations; i = i + 1) { local.passwordHash = hash( local.passwordHash arguments.salt , algorithm, 'UTF-8' ); } return local; /cfscript /cffunction cfdump var=#Crypto('my3ecretPa55w0rd5trf')# / normal use (VERY SECURE as long as Salts are secured) cfset ServerSalt = 8Ru5rbpvMmNEQK5UiKKaZQ== / Server Salt stored as a permanent fixture of the application. cfdump var=#Crypto('my3ecretPa55w0rd5trf' ServerSalt)# / == (SUPER SECURE even if database is compromised) -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330813 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF8/Vista 64 debug output not showing up
I know its the obvious, but Vista has many ways of preventing services from accessing critical processes, make sure the built in Firewall is not blocking the ports or the JVM. I have seen instances in Vista where something will change, and the firewall will suddenly be blocking it-- where it was allowing it before. And the only way to fix it was to remove the existing rules and have it prompt you again. Sometimes a firewall warning will not focus the window to the top where you actually see it, and it can be missed very easy-- if ignored, it blocks by default. -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330816 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfwindow looks different in cf9
some css overwrites? CF has darn near every HTML tag listed in there and zeroed out. Since cfwindow uses a type of reset css all the main tags padding, margins, padding, borders etc have been reset to 0, and the default inheritance tree from the browsers defaults have been reset to 0 and none etc... This is to maintain the same look cross platform, but it also poses issues of its own when trying to use what you are used to. I'd like to find a way to restate that the cfwindow code (on the page I invoke in the window) should use my main CSS style sheet in its entirety You best bet is to open up the page in Firebug and determine what classes you need to modify and re-define those before the display of the cfwindow. If you redefine any of the classes or defaults inline before your cfwindow call, the cfwindow will use those classes instead of the default. f you need it to use your main site css, you may need to dig around and look for the css that the cfwindow uses by default, then modify that direct, but I would try the former approach first. The reset css approach is becoming a standard way of setting up the base to apply css rules to, it does help the cross platform issues quite a bit, it is not magic, but it is a good way to deal with those padding/border issues. Hope that helps. -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330757 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Gateways
Usually they go in your lib folder, at least in the standalone server. eg. C:\ColdFusion9\lib\ In a J2EE install the path would be under the /webroot/WEB-INF/lib/ -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330725 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Gateways
Also, the server will need to be restarted after you add them to the folder. -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330726 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Possible switch to CFEclipse
I would assume that Adobe has no interest in that, they probobly have too much of a vested interest in maintaining existing large customers with a slew of other proprietary software along with the CF license renewals etc. That has been a successful business model for them so far, so ill bet it wont change anytime soon. Railo or OpenBd are great alternatives though. Railo has web specific web context administration capabilities too. -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330728 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Can someone w/CF9 run a quick test of this code?
I just tested a CF9 WAR install on Tomcat. Without the rotation=90 I see a large watermark image at a 45 Degree angle on each page of a the generated pdf that reads Adobe ColdFusion Developer/Trial Edition Not for Production With the rotation=90, I see nothing.. just 15 empty pages. -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330691 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Can someone w/CF9 run a quick test of this code?
Are the pages distorted at all? Yes, it is same here with rotation=90, 15 pages with Just a small horizontal white bar, no text or Adobe watermark at all. -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330693 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: The JVM library could not be found.
Wow.. Windows 3000. We are getting emails from the future. Does it still support IE6? God I hope not. Joking aside, I'll assume 2003 server. Did you try putting the jvm in a place with no spaces in the name? Maybe that is causing issues? -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330706 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: The JVM library could not be found.
Not sure why, but I would try it first. Its the first thing I would look at. Then maybe verify the jvm versions, maybe one is from the SDK and the other is not? There are differences between XP and 2003 server. If it says it cant find the path, and you know it exists, and it still cant find it that way-- It is possible that the XP box is using an environmental/system variable to resolve the path, but your 2003 server install is looking for the variable in an internal hard coded path. -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330709 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Can someone w/CF9 run a quick test of this code?
I dont have cf9 running but, I had a issue like that once. It turned out that the Coldfusion server was a development server and not licensed to use the pdf generator, the rotation=90 hides the default message. Switching to a production server fixed the issue for me. Hope that helps -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330689 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Why .Net is on its last legs
I can admit, I have some really sloppy code from my first years as a coder. Everyone does, or they are just waisting too much time refactoring or needless optimization. I really had no clue whatsoever what the heck I was doing. In fact I still have no clue 9 years later though I am managing it better and have learned a lot. However most of the CFML assembled still is in production today... a huge amount of it. I would say 95% has not been touched since it was launched and probably never will. I just concentrated on making stuff work, and though I was no programmer, CFML stuff did work. Most of my code is intranet, so the public never see's the apps, or hears about them. In fact most of my work is not really even application development, it is granular code for specific purpose solutions for manufacturing and product life cycles. And-- with CFML I got stuff done, a lot of stuff, and I got that stuff done fast (RAD) which made the people who sign my checks happy. And those were the ones that mattered most. They don't care about frameworks, OO, languages, wire frames, documentation or preferences, they want solutions yesterday and for less money than the other guy. I always took the best of what I knew the most, at that time and delivered it as fast as I could. I use .NET, asp, and Java too; Not a lot, but I do know enough about them now, that I would have never been able to do my job as well as I did if I used them exclusively. If I told a client I re factored that 5 year old X machine logging app that keeps track of a washing machine quo to a new OOP/AJAX/NUKE code base, or the latest X fad framework/sqlserver/database just because I wanted to clean up the code or update to .NET 3.0, I would lose the client. The CFML just works, years later. no changes. It may be dusty. But its not dead. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329998 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF5 download
You could have left it running there using the built in web server, and linked it into your Apache install via. mod_proxy rather than mod_jrun, not that it matters now. Tom mentioned this quote above, but you may have to do some more research. I have not attempted it yet. On Wed, Jan 20, 2010 at 1:26 PM, K Rea karenre...@gmail.com wrote: Hello - new to the CF group and it looks like I'm facing a similar problem as you may have faced. Need to move my CF5 implementation to a new server. Problem is its Ubuntu running Apache 2.0.6. Install with the modules for previous versions of Apache) aren't working, nor did the CGI implementation of Coldfusion. Any suggestions on how to accomplish this under Ubuntu? Or my next step is to install CF5 server (enterprise) on Windows - problem is the install CD is nowhere to be found. I too have all my license key information - box, cd case, registration cards... just no cd. Any help? I'm down to the wire on this... :( Thanks. Kevin Pepperman wrote: I just had a look in the museum and we have CDs all the way back to version 4 (and floppies even earlier :-) ) I don't know if they are still readable, I can have a look. What version, Pro or Enterprise? -- Yours, Kym Kovan mbcomms.net.au ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329841 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF5 download
I will send you a link off list. Give me a few to upload it. On Wed, Jan 20, 2010 at 1:59 PM, Karen Reali karenre...@gmail.com wrote: Thanks - Since I have to have this done by tomorrow, I think I'm at the point now where I have to move to Windows ... and find an install disk (anyone?) - I've got the license key and its valid (called Adobe - they won't provide a download link). On Wed, Jan 20, 2010 at 10:49 AM, Kevin Pepperman chorno...@gmail.com wrote: You could have left it running there using the built in web server, and linked it into your Apache install via. mod_proxy rather than mod_jrun, not that it matters now. Tom mentioned this quote above, but you may have to do some more research. I have not attempted it yet. On Wed, Jan 20, 2010 at 1:26 PM, K Rea karenre...@gmail.com wrote: Hello - new to the CF group and it looks like I'm facing a similar problem as you may have faced. Need to move my CF5 implementation to a new server. Problem is its Ubuntu running Apache 2.0.6. Install with the modules for previous versions of Apache) aren't working, nor did the CGI implementation of Coldfusion. Any suggestions on how to accomplish this under Ubuntu? Or my next step is to install CF5 server (enterprise) on Windows - problem is the install CD is nowhere to be found. I too have all my license key information - box, cd case, registration cards... just no cd. Any help? I'm down to the wire on this... :( Thanks. Kevin Pepperman wrote: I just had a look in the museum and we have CDs all the way back to version 4 (and floppies even earlier :-) ) I don't know if they are still readable, I can have a look. What version, Pro or Enterprise? -- Yours, Kym Kovan mbcomms.net.au ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329843 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfmail through google
You may also be able to do it using sTunnel. I was able to get the commercial version of BlueDragon JX to talk to gmail with it. These are the stunnel.conf settings. client = yes debug = debug [pop3s] accept = 127.0.0.1:1109 connect = pop.gmail.com:995 [smtps] accept = 127.0.0.1:259 connect = smtp.gmail.com:465 ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329846 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF5 download
I sent you a link off list Karen. I am out the door right now but will be around this evening if I you need any more help. /K ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329847 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF5 download
Pablo (webmas...@easycfm.com) and Dan Blickensderfer originally provided it for me. I credit them for providing it for me when I needed it. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329854 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CF5 download
You could have left it running there using the built in web server, and linked it into your Apache install via. mod_proxy rather than mod_jrun, not that it matters now. Thanks for the tip Tom. If I have to move it I will try that. On Mon, Jan 11, 2010 at 12:09 PM, b...@bradwood.com wrote: Tom, I've always loved your signature-- does it not count now that it is 2010? :) ~Brad Original Message Subject: Re: CF5 download From: Tom Chiverton tom.chiver...@halliwells.com Date: Mon, January 11, 2010 8:31 am To: cf-talk cf-talk@houseoffusion.com -- Helping to synergistically transition cutting-edge exceptional six-generation users as part of the IT team of the year, '09 and '08 ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329567 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF5 download
So, Just a follow up. I received a copy of CF5 enterprise from kind members of this list, thanks again. The original license I had was only for Linux. Since it was given to the company I am working at for free when Macromedia Generator was phased out. So I did a test install in a Ubuntu VM, only to discover CF5 only runs on older versions Apache (LTE Apache 2.0.43-xx ) AFAIK I did get it running with a old version of Apache using some .so modules from this site. http://home.nextron.ch/coldfusion/ But all these versions of Apache have security holes, so I cant use them in production. So, I figured, maybe i'll have to settle for IIS :( ; I moved to a WIN32 server that has several other variations CF server, (XP pro, IIS 5.1, quad core,) however the license key I had would not work in WIN32. - :| I logged in to Adobe.com, and fired up their Live help around 2AM and explained the situation. The Generator purchase was almost 7 years ago under Macromedia, and ADOBE had no record of giving out the free CF5 license at all and it did not show up in the account, even though the Generator purchase was there. But, within 15 minutes of a long list of questions, they got back to me, and provided a license for ColdFusion5 Enterprise WIN32. So, I now have it all installed and working under IIS. This means several apps wont have to be re-factored right away, saving the company money and time. It is funny to see the slew of CFML servers; CF5, CFMX, ACF8, ACF9, RAILO, BlueDragon JX and OpenBd all playing nice on 1 XP box. My, how far this all has come in such a short time! In finishing, I have to say Kudos to Adobe for being understanding, and doing the right thing. Thanks again to this group for the help, I am sometimes stunned at how fast, and how many people respond to this list. It is one the reasons I originally got inspired by CFML, and it is one of the best things about the language, the CFML community's simply rock. /K ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329451 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: meta tag location
From my research on several large commerce websites I have worked on, Google does not even use the Meta Description, page Title or URL for page rank or position. It may look like they do since they highlight the keywords in the results, but that does not mean it is used that way. Google does not use the keywords at all, but some other search engines may still use them. But, like Terry Troxel mentioned, they do use content from the title and description in the actual results, and for categorization. So visually and semantically they are important. It also seems like Google has it dialed in so well, that sometimes even the actual content can be completely irrelevent in how well the site ranks. The fact is that Google must base their Page Ranking and seacrh result placements purely on how many users find what they are looking for. Of course, Google does track clicks, if the client returns to google, then they didnt find what they were looking for. I think Google uses that information above all others. I have also found that Google really checks for changed content, quite a bit. And not just for simple timestamp changes, but actual dated content. or new products. One site I work on is indexed very well by google, We see the google-bots come and go on a regular schedule. They hit the site every 2-3 hours, they grab the main page, and almost seemingly random pages, looking for changes maybe? But whenever we add a couple dozen new products, or have a big sale that changes prices on large amounts of products, the google-bots will hit the site every 20-30 seconds, indexing the new or changed content like crazy. So, I don't rely on any forms of SEO to be a magic bullet, These things do help them categorize, (title, h1, h2, h3 etc..) but good content and relevance is the only silver bullet. /K ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329455 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Invitation to connect on LinkedIn
LinkedIn Kevin Pepperman requested to add you as a connection on LinkedIn: -- James, I'd like to add you to my professional network on LinkedIn. - Kevin Accept invitation from Kevin Pepperman http://www.linkedin.com/e/kf_f_G1APNKUmMHaBOJgkT0vUW9a8-62-pGINmq/blk/I1702213832_2/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_cBYOcPwPcj8Oc3sNiiZ6cDtQqmFbbiYVczkMcjcMdPALrCBxbOYWrSlI/EML_comm_afe/ View invitation from Kevin Pepperman http://www.linkedin.com/e/kf_f_G1APNKUmMHaBOJgkT0vUW9a8-62-pGINmq/blk/I1702213832_2/39vczcUcP4Ocz0TckALqnpPbOYWrSlI/svi/ -- DID YOU KNOW you can be the first to know when a trusted member of your network changes jobs? With Network Updates on your LinkedIn home page, you'll be notified as members of your network change their current position. Be the first to know and reach out! http://www.linkedin.com/ -- (c) 2009, LinkedIn Corporation ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329417 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Invitation to connect on LinkedIn
You know what is happening. Linkedin has their automated feature-- that selects all your contacts that you want to be notified by default and sends them to that email. I de-selected all those contacts and this still was sent, so something must be amiss in their application somehow. Gee, this must mean that every other contact in my list got spammed with this-- this could get interesting. On Tue, Jan 5, 2010 at 7:05 PM, James Holmes james.hol...@gmail.com wrote: What's most annoying is that when I read the previous one, I missed that it went to the ct-talk list, so I actually bothered to look at the request. Damn having the second most popular name in the western world. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2010/1/6 denstar valliants...@gmail.com: James sure is popular today. =) -- Everything is arranged so that it be this way, this is what is called culture. Jacques Derrida On Tue, Jan 5, 2010 at 4:51 PM, Kevin Pepperman wrote: LinkedIn Kevin Pepperman requested to add you as a connection on LinkedIn: -- James, I'd like to add you to my professional network on LinkedIn. - Kevin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329420 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CF5 download
The company I work for has a CF5 license and had several non mission critical applications running on it on a Linux server. They are tightening their belt and have shut down the server/host with the apps and want to move the apps to a local windows server. I have all the code and the data (MySql). The code is all procedural and there is a ton of it, I attempted to get a couple of the apps to run on Railo and OpenBd but I am running into one issue after the other and fear it could take more time to get them to work than it would to refactor them. I wanted to install CF5 on the windows server so I went to adobe.com to my downloads section but the download in no longer available, all it has is _ZIPLOCK_MSG . All attempts at finding the original install discs have failed, so all I have is the license key. Does anyone on this list have a copy, or know where I can get a copy of ColdFusion 5? -- The illusion of freedom will continue as long as it's profitable to continue the illusion. At the point where the illusion becomes too expensive to maintain, they will just take down the scenery, they will pull back the curtains, they will move the tables and chairs out of the way and you will see the brick wall at the back of the theater. -Frank Zappa ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329421 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF5 download
I think I found one on Corfield's site. I had seen the link before but it was the dev version and I needed the full. http://corfield.org/index.cfm?fuseaction=blog.archivemonth=2002_10#000131 http://download.macromedia.com/pub/coldfusion/esd/coldfusion-50-win-us_devrel.exehttp://corfield.org/index.cfm?fuseaction=blog.archivemonth=2002_10#000131 But I changed the url to http://download.macromedia.com/pub/coldfusion/esd/coldfusion-50-win-us.exe And it seems to work. I'll give it a whirl. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329422 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF5 download
Have tried contacting Adobe? Since you have the License Key, they may be able to provide you a link for downloading it. -scott Yes, I sent them and email 2 days ago but have not heard back from them yet. I don't know if they are still readable, I can have a look. What version, Pro or Enterprise? -Kym I am pretty sure it is the Enterprise edition. What happened is they had purchased Generator 2 Enterprise Edition right when it was phased out, and Macromedia supplemented the company with CF5 for free. I have to assume it is Enterprise. I am trying to contact the hosts that it was set up on to verify. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329425 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CF5 download
I think I have what I need now. Thanks for the help everyone. What a great group! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329426 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: How to query encrypted password
I need to query an Oracle user table where username and encrypted password are stored. I need to compare the user input password with the encrypted password in the table. Can the CF Decrypt function do the work? Can someone give me a pointer? Usually a password in encrypted with a irreversible encryption, it should be anyways. The methods to verify the password is usually the same. The way you validate the submitted password is to encrypt the password submitted by the client with the same exact method that was used to encrypt the one that is stored, and then compare the submitted with the stored encrypted passwords. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329429 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Loading an CSV
I had a similar situation recently in an export from an old legacy application. (90% of my job) It may not apply to your situation, but it sure saves me a ton of time, so it is slightly relevant here. (Windows info only here) The data contained every single char (comma, semicolon, TAB, QUOTES[ '], multiple spaces) that it shouldn't, but would happily export the CSV anyway. DATA,BELLS WHISTLES, 'MOATS'; dragons ~ and gypsies ,more data I found out the app used the systems regional delimiter just like Excel does and a simple system change let us export it as PIPE (|) delimited. I found this info somewhere, but I cant find the link for credits. To change the default on your PC to a pipe rather than a comma bring up your default options window by clicking Start Settings Control Panel Regional Settings. Click the Number tab and in the List Separator field, replace the current default separator with the one you want to use (pipe symbol | ). Click OK to save the change and close. You can now save files as pipe delimited files. In Windows XP there is an extra step involved. When you open the Regional settings window, you have to click customize next to the language choice drop down. That will bring up another window with Numbers as the first tab item. Change the List separator to whatever you want to use as a delimiter. Why Excel does not have this fearture built in I will never know. Hope that helps. /K -- The illusion of freedom will continue as long as it's profitable to continue the illusion. At the point where the illusion becomes too expensive to maintain, they will just take down the scenery, they will pull back the curtains, they will move the tables and chairs out of the way and you will see the brick wall at the back of the theater. -Frank Zappa ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329330 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFLogout confusion
By default CF sets the cookie in only the domain it is on.mydomain.com But cfcookie does not let you set the domain name for the cookie. So you couldn't use the cookies session across sub domains. eg one.mydomain.com I have had situations where I had to overwrite the session cookies that CF sets on each request with cfheader, that way I could specify the .subdomain. This also allows you to use the HTTPOnly flag. cfheader name=Set-Cookie value=CFID=#SESSION.CFID#;path=/;domain=. mydomain.com;expires=MON, 21-Dec-2009 00:00:00 GMT;HTTPOnly; / cfheader name=Set-Cookie value=CFTOKEN=#SESSION.CFTOKEN#;path=/;domain=. mydomain.com;expires=MON, 21-Dec-2009 00:00:00 GMT;HTTPOnly; /) (note the dot in .mydomain.com) /K ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328184 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Deleting contents within a folder
cflib has a function for this. http://cflib.org/udf/deleteDirectory ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328161 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: list files on user's computer?
It is not possible to list a client directory using coldFusion. That would be a HUGE security risk. You will need to find a client side solution. On Sun, Nov 1, 2009 at 8:39 PM, Joshua Rowe jr...@varimereweb.com wrote: Hello, I have a ColdFusion page that lists files on my computer using the cfdirectory tag, starting with my C:\ drive. When I upload the ColdFusion page to my hosting account, I can no longer view the file listing. The following error comes up: access denied (java.io.FilePermission (directory location) read) null How do I go about listing files on my computer if the ColdFusion page is on the hosting server? This is for a file upload program I am working on. Thanks! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327893 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: can't access cf administrator
Try http://localhost:8500/CFIDE/administrator/index.cfm Or http://127.0.0.1:8500/CFIDE/administrator/index.cfm On Mon, Oct 26, 2009 at 9:30 PM, Matthew Smith chedders...@gmail.comwrote: I have just done a fresh install of apache and cf 8. I cannot access the cf admin. I am trying this: http://localhost/cfide/administrator/ I am getting a 404 error. What am I doing wrong? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327731 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfschedule task runs serially
I saw an issue like this once. If I recall correct, it does have to wait for 1 process to finish to begin the next, and our solution was to wrap each iteration with cfthread so it spawned separate processed for each iteration. cfthread action=run name=myThread /K ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326889 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF Adnin question, or The GoDaddy Hosting Blues
You can set the script location inside the cfform tag using scriptSrc=/pathtoyourscripts/cfform.js ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326934 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Invoking components, methods and storing instance in application scope
Hello Tony. I am no expert, But I do know about where you are at right now, and I also know what it took for me to learn it, so I will give it a shot to at least set you off in the right direction. Using an init() method, although not required, is considered best practice in the CF world for initializing components because cfc's don't have true constructors like JAVA (yet). Constructors are used to set up default instant variables, or other objects; that are used in the objects lifetime; when the object is created, The init() method always returns the objects instance this. eg: cffunction name=init access=public cfreturn this / /cffunction So using your code with a slight change: application.getters = createObject(component,cfc.GetterQueries).init(); The method then returns the objects instance this to your application scoped variable with everything setup. To further elaborate why you should use constructors. Change the init method to this: cffunction name=init access=public cfargument name=dsn default= required=no / cfset variables[instance] = StructNew() / cfset variables.instance[dsn] = arguments.dsn / cfreturn this / /cffunction and use: mydsn = myDsnName; application.getters = createObject(component,cfc.GetterQueries).init(dsn=mydsn); This now will pass the variable dsn to the constructors arguments and set myDsnName to variables.instance[dsn]. Calling variables.instance[dsn] from any method in the object will now return myDsnName. This will allow you to pass variables or even other objects into your component when you instantiate them. This can be done other ways, but its best to create your instance variables when you create the object, for many reasons that I wont expound on here, but setting up all your components internal variables during init() is the best way. Using init() as your constructor is also required by ColdSpring and other objects frameworks. Have a look at ColdSpring or LightWire, they can help you wire your components together with a framework, this also is considered best practice. http://www.coldspringframework.org/ http://lightwire.riaforge.org/ ColdSpring is framework for you to manage your singleton components, their internal data, and any reference to other components that that any component may need. Even if all init() does is create your object and return it, you should use it, since you never know when you will needed to have a constructor create instance variables. Even if you don't use ColdSpring, using init() will help you manage your objects. If I have made errors in the direction I am providing, anyone else please chime in, I am still in the middle of the curve myself. Hope that helps, Don't give up! Once this all clicks in your brain you will never look back. /K ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326681 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: coldfusion barcode
I have used the java lib barbecue http://barbecue.sourceforge.net/index.html in CFML before and it worked out well. On Fri, Sep 18, 2009 at 9:22 AM, Phillip Vector vec...@mostdeadlygame.comwrote: I forget where I've seen it, I think RIAForge has barcode39.cfm. It's a nice piece of program and generates lots of different types of codes. Here's the code if you want it.. !--- == FILE: barcode39.cfm - Custom tag for Code 39 (3 from 9) barcodes VERSION:1.0 AUTHOR: Philip Pearson (Inspired by Ryan Masuga's UPCA version) MODIFIED BY:pears...@aquinas.vic.edu.au WRITTEN:17/11/2004 DESCRIPTION:Writes barcodes in a browser window ready to be printed and scanned. COMMENTS: Code 39 specs from www.barcodeman.com === --- !--- These are fairly self explanatory --- cfparam name=Attributes.InputValue default=INVALID cfparam name=Attributes.BarWidth default=2 cfparam name=Attributes.BarHeight default=50 cfparam name=Attributes.TextTopdefault= cfparam name=Attributes.TextBottom default= cfparam name=Attributes.TextFontTopdefault=font: bold 14px Arial, sans-serif cfparam name=Attributes.TextFontBottom default=font: bold 18px Courier, sans-serif cfparam name=Attributes.MarginTop default=0 cfparam name=Attributes.MarginBottom default=0 !--- Initialize array. Note: not all characters are supported by the code 39 specification, --- !--- so invalid characters will show as a $ sign. Lowercase not supported either. --- cfset code39 = ArrayNew(1) cfloop index=i from=1 to=256 cfset code39[i] = 01110 !--- '$' is default init string --- /cfloop !--- Load array with all the supported characters' bar attributes --- cfset code39[32] = 001101000 !--- --- cfset code39[36] = 01110 !--- $ --- cfset code39[37] = 00111 !--- % --- cfset code39[42] = 001101000 !--- * --- cfset code39[43] = 01011 !--- + --- cfset code39[45] = 000111000 !--- - --- cfset code39[46] = 100101000 !--- . --- cfset code39[47] = 01101 !--- / --- cfset code39[48] = 001100100 !--- 0 --- cfset code39[49] = 100010100 !--- 1 --- cfset code39[50] = 010010100 !--- 2 --- cfset code39[51] = 11100 !--- 3 --- cfset code39[52] = 001010100 !--- 4 --- cfset code39[53] = 101000100 !--- 5 --- cfset code39[54] = 011000100 !--- 6 --- cfset code39[55] = 000110100 !--- 7 --- cfset code39[56] = 100100100 !--- 8 --- cfset code39[57] = 010100100 !--- 9 --- cfset code39[65] = 100010010 !--- A --- cfset code39[66] = 010010010 !--- B --- cfset code39[67] = 11010 !--- C --- cfset code39[68] = 001010010 !--- D --- cfset code39[69] = 10110 !--- E --- cfset code39[70] = 01110 !--- F --- cfset code39[71] = 000110010 !--- G --- cfset code39[72] = 100100010 !--- H --- cfset code39[73] = 010100010 !--- I --- cfset code39[74] = 001100010 !--- J --- cfset code39[75] = 100010001 !--- K --- cfset code39[76] = 010010001 !--- L --- cfset code39[77] = 11001 !--- M --- cfset code39[78] = 001010001 !--- N --- cfset code39[79] = 10101 !--- O --- cfset code39[80] = 01101 !--- P --- cfset code39[81] = 000110001 !--- Q --- cfset code39[82] = 10011 !--- R --- cfset code39[83] = 01011 !--- S --- cfset code39[84] = 00111 !--- T --- cfset code39[85] = 100011000 !--- U --- cfset code39[86] = 010011000 !--- V --- cfset code39[87] = 110001000 !--- W --- cfset code39[88] = 001011000 !--- X --- cfset code39[89] = 101001000 !--- Y --- cfset code39[90] = 011001000 !--- Z --- !--- Code 39 specification requires * at the start and end of the barcode --- cfset Attributes.InputValue = * Attributes.InputValue * cfoutput span style=#Attributes.TextFontTop##Attributes.TextTop#/span div cfloop index=i from=1 to=#len(Attributes.InputValue)# span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],1,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: black; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],6,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: white; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],2,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: black; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span
Re: CFFM 1.30 Released
Great work Rick. One thing I should mention, If you point this at a folder with a huge number of files, It can take up all resources pretty quickly, even taking all memory available to the JVM. I was playing and pointed it at a products imagery folder from a site I work for, which uses zoomify so has hundreds of thousands of images. It Froze the server after about 5 minutes. So maybe either add a a stop at recursion filter, or maybe a way to filter folders with specific names? Otherwise its very good! Thanks for posting your progress! On Mon, Aug 31, 2009 at 1:18 PM, Rick Root rick.r...@webworksllc.comwrote: CFFM 1.30 has been fully ajaxified with jQuery, and integrates nicely as a file browser / uploader for FCKeditor, the new CKEditor 3.0, and TinyMCE (not recently tested) http://www.opensourcecf.com/cffm -- Rick Root CFFM - Open Source Coldfusion File Manager http://www.opensourcecf.com/cffm ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325887 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Cannot declare local variable cfcatch twice
This question was cross posted at the same time and answered on cfaussies' group almost immediately. But was not followed through with. On Wed, Aug 19, 2009 at 3:04 PM, Matt Quackenbush quackfu...@gmail.comwrote: The code would certainly help pinpoint exactly where the issue lies, but as the error message indicates, it is caused by the fact that somewhere in your code a variable is declared twice within a function. This can be caused by several factors. Here are a couple of examples that will do it. Ex. 1 cffunction name=foo cfargument name=bar / cfset var bar = / /cffunction Ex. 2 cffunction name=foo cfscript var err = ; try { // code here } catch (any err) { } /cfscript /cffunction ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325544 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4