Mac Users Beware! - Security Update 2008-005 (Intel) stopped Apache talking to CF8
Yesterday I installed Security Update 2008-005 (Intel) on my MacBook Pro and Apache wouldn't talk to ColdFusion 8 any more! I'm not Mac savvy enough to understand why, but it had something to do with paths. Symptoms were very confusing and caused many hours of head scratching. It wasn't starting Apache from it's application root folder. (I still have Apache 1.3 which came installed with OSX 10.4 hanging around the system). Something to do with my setup caused it not to load the httpd.conf file properly (and possibly envvars?)! It seemed to be loading it although I think it was loading other conf files first which I think caused it not to load the jrun module. I could still get to my virtual hosts, but just saw cfm files as plain text! This was my fix anyway. I changed my startup script from: sudo /apache2/bin/apachectl start to: cd /apache2/bin sudo ./apachectl start That fixed it. I would love to know the root cause. I understand that my fix explicitly starts Apache2 from it's application root and therefore it finds all its resources correctly. I don't understand what changed on my system. If anyone could help me solve what happened that would be great. The pain of losing several hours will be easier to bare if I actually learn something from it. Thanks, Matt ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310335 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CF7 install on Vista bombs - do a silent install!
If you trying to install ColdFusion MX7 on Vista and the installer bombs with java.target.Invocation exception then do a silent install and it should go in just fine: http://kb.adobe.com/selfservice/viewContent.do?externalId=87bd20f4sliceId=2 Same for Windows Server 2003 SP1, though the installer completes, but you get a license exception in the log file when the service starts. Thought this might help anyone migrating to Vista. Also another OT tip if you could fed with having to click OK as vista prompts you every time it wants to confirm administrator access then this solved my problems: http://www.tweak-uac.com/ You can disable User Account Control and then everything will run in Administrator mode. Obviously this removes security which has put in place to strengthen the system and stop foreign programs gaining admin access, so you may want to consider where this is a risk before disabling UAC. ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294001 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Oracle RAW(50) - string conversion
About 10 mins later I figured this out with isBinary and BinaryEncode(blah, Hex), in case anyone comes across the same issue. -Original Message- From: Matt Barfoot [mailto:[EMAIL PROTECTED] Sent: 26 November 2007 23:27 To: CF-Talk Subject: Oracle RAW(50) - string conversion When I cfquery a Oracle database row with a RAW column in it, it is returned as a ByteArray. If I view the column in a SQLNet client like Toad you see a string, probably hex I'm guessing. I'm wondering how I correctly detect it and convert it to a string afterwards? I want to avoid doing it within the select statement with cast or convert, because I'm generating dynamic select * from mytable statements and the code doesn't know it will end up with a raw (ByteArray). Any ideas? Thanks, Matt ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293852 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Oracle RAW(50) - string conversion
When I cfquery a Oracle database row with a RAW column in it, it is returned as a ByteArray. If I view the column in a SQLNet client like Toad you see a string, probably hex I'm guessing. I'm wondering how I correctly detect it and convert it to a string afterwards? I want to avoid doing it within the select statement with cast or convert, because I'm generating dynamic select * from mytable statements and the code doesn't know it will end up with a raw (ByteArray). Any ideas? Thanks, Matt ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293842 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Verity, does it work?
Hello Jonathan, I had a problem with Verity and a certain set of PDFs on MX7. I've experimented hard, but with no resolution. I lot of people who use Mac's and cf favour apache lucene. There are quite a few examples out of using cf with lucene. I downloaded them code and followed the getting started and it's all pretty transparent and works well. I intend to compare the CF8 implementation alongside Lucene to under the complexity and likely results for my application. Hopefully I will do this soon. Not sure how much help this is to you, but you might want to give lucene a go. My approach to scheduled jobs would be have the job write a log file. I do this and write out execution times, records counts etc and then use cfmail to mail me the result. If anything fails I can then pin-point exactly where the failure occurred. Quite often I might find I have to alter timeout settings in CFADMIN to stop scripts from abandoning. Bear in mind that the process of logging may add significantly to execution times depending on how much you log. Thanks, Matt -Original Message- From: Jonathan Gingerich [mailto:[EMAIL PROTECTED] Sent: 17 November 2007 01:09 To: CF-Talk Subject: Re: Verity, does it work? Thanks for the pointer about the STATUS attribute. A little googling and I find out it's described on a ColdFusion 8 man page, and says it was introducted in MX 7. So far so good. Hopefully it will make things a little less opaque. I am aware of the table of formats Verity is said to read. I'm wondering if it is up to date (than say the cfindex man page;-) I take a collection and index it using the Administrator against a single directory with two .html files and a .doc file. No matter how I play around with the extensions, I either get the 2 .html files indexed, or none of them. The .doc file is from 2000 and I believe it is Word 95, so it should work, although I suppose there could be some reformatting or something along the line... As for the scheduled jobs, they are within a mail tag that works fine if I dummy the cfindex calls. From some other threads here I suspect our collections are simply too large. I saw 10,000 being passed around as a limit. JG ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293576 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Verity, does it work?
Nice work Ray! I will have a play and see how the ddx pdf reading works. For MX7 I might see if I can wrap up the PDFBox classes and extend the pdf.cfc . For CF8 though this makes it a snap to use Lucene. Don't know how you have time do all this apache 2 licensed stuff, but much appreciated. Thx Matt -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: 19 November 2007 14:06 To: CF-Talk Subject: Re: Verity, does it work? As just a side note, and forgive me for tooting my own horn, but if you are interested in using Lucene with CF, you may want to check out my Seeker project. It is a CF/Lucene implementation. http://seeker.riaforge.org. On Nov 19, 2007 5:27 AM, Matt Barfoot [EMAIL PROTECTED] wrote: Hello Jonathan, I had a problem with Verity and a certain set of PDFs on MX7. I've experimented hard, but with no resolution. I lot of people who use Mac's and cf favour apache lucene. There are quite a few examples out of using cf with lucene. I downloaded them code and followed the getting started and it's all pretty transparent and works well. I intend to compare the CF8 implementation alongside Lucene to under the complexity and likely results for my application. Hopefully I will do this soon. Not sure how much help this is to you, but you might want to give lucene a go. -- === Raymond Camden, Camden Media Email: [EMAIL PROTECTED] Blog : www.coldfusionjedi.com AOL IM : cfjedimaster Keep up to date with the community: http://www.coldfusionbloggers.org ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293589 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Converting .NET 2.0 App to ColdFusion
1) Are the ajax components resuable i.e. using javascript libraries and methods going to stay the same so you just need to change the server-side response to these calls? 2) Pick one of the code files and convert it -- how useful this is depends, because you may or may not be able to test the results, but it should tell you a lot about the way the .net app is structured, how well it is coded, commented etc, and then it's one less anyway! 3) Are you going to create test cases using CFUNIT or something. Testing will need to be a significant part of the effort (ideally 30-40% of overall time - as there will be remedial effort involved and retesting). For such a project building test cases as you go will significantly reduce user testing time later and make it much easier to trace functional issues. 4) Is the application architecture portable? i.e. is the code easily identifiable as presentation, business logic, data objects etc. If it is easy to identify the different sections and the translation is straight forward then it will make the whole process considerably quicker. Anything else means encountering many decisions about the best way to achieve something, let alone improve it - which will be a constant tempatation for any programmer and without tight control could undo any effort estimate you make. 5) Allow time for some detailed analyis and planning before the coding starts. Well informed and well made decisions will make all the difference. Also if you have a 'coding roadmap' then at all times you will know if you're ahead of the game or behind it, which should keep the pressure off. Coding under pressure is far more difficult. 6) Allow for contingency... Even if yourself or whoever does the programming exceeds expectation -20% is going to a whole lot better than +20% Thanks, Matt -Original Message- From: Dave Phillips [mailto:[EMAIL PROTECTED] Sent: 15 November 2007 22:22 To: CF-Talk Subject: Converting .NET 2.0 App to ColdFusion Hi all, I am tasked with providing a LOE (Level of Effort) on converting an existing ..NET 2.0 application to ColdFusion. Woo hoo! My question is, has anyone done this, and, are there any suggestions, caveats, etc. you might have? Also, what method would you suggest I use to estimate time? My estimate needs to be +/- 15%. This app has about 120 code files and uses alot of AJAX. I thought about picking an amount of time per module and multiplying that up, but that's really not very scientific, considering some modules are larger than others. I've never had to estimate a complete application conversion before, so any input anyone can provide would be GREATLY APPRECIATED!!! Dave ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293464 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Restricting access to the default remoting destination (ColdFusion) (CF8)
Hello Tom, How about proxing requests through Apache and using the location directive (Allow from) to lock it down. Thanks, Matt -Original Message- From: Tom Chiverton [mailto:[EMAIL PROTECTED] Sent: 06 November 2007 09:32 To: CF-Talk Subject: Re: Restricting access to the default remoting destination (ColdFusion) (CF8) On Thursday 01 Nov 2007, Tom Chiverton wrote: Is there a way in CF8 to restrict only certain IP address to connect to the default ColdFusion remoting destination ? No one ? So the only think that stands betwen a live CF8 server without a public /CFIDE mapping but with the default remoting destination (required for the server monitor/auto recovery) and a DoS attack is the need to crack the admin username and/or password ? And there's no rate limiting applied to the number of guess I can make at once, or in total ? -- Tom Chiverton Helping to economically administrate B2B synergies on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292757 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Excel and Coldfusion and Javascript
If you're going to the Excel manipulation server-side then this is probably a good bet: http://jexcelapi.sourceforge.net/ You will need to install the relevant jars on to your server, update your java classpath in cfadminstrator and then call with cfobject. After that it should be a simple case of accessing the methods as per the jexcelapi docs. I have a good look at this for copying some data into an Excel template (preconfigured with macros, cell protection etc and some formulas for assisting data manipulation) and it seems just the job, but I haven't done any actual coding yet. Regards, Matt -Original Message- From: Mike Chabot [mailto:[EMAIL PROTECTED] Sent: 28 October 2007 20:48 To: CF-Talk Subject: Re: Excel and Coldfusion and Javascript Are you thinking client-side or server-side? You seem to be asking about client-side interaction, but it helps to confirm because the solutions are different. -Mike Chabot On 10/28/07, Richard White [EMAIL PROTECTED] wrote: Hi, we noticed that Mozilla Firefox doesnt allow vbscript to run due to the security issues. However, we need to be able to interact with an excel document in our code. Is there anyway to do this through javascript or coldfusion or any other means without using vbscript Thanks for your help Richard ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292220 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CF7 verity indexing of PDFs
Unfortunately the match isn't good. The summary is just one of the opening paras and bears no relevance to the phrase I'm using. These are all PDF manuals from a certain software vendor and quite a bit of metadata, bookmarks etc already in the doc. If I search any of these pdfs they behave the same. I may try with CF8 and see what happens, though my prod servers run CF7 at the moment. It would nice to get under the hood and see what's going on. As far as I can tell with the mkvdk you only get debug output when indexing. If I get some kind of diagnosis I will post the results. Thanks, Matt -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: 27 October 2007 03:14 To: CF-Talk Subject: Re: CF7 verity indexing of PDFs You've got me there. I'd have to look at the PDF and try to guess why. If the match is good - but the context is off - I'd probably just ignore. On 10/26/07, Matt Barfoot [EMAIL PROTECTED] wrote: Hello Ray, Thanks for the advice and it worked, but has given way to a more curious problem. Say I have one PDF Learning how to use the CFFORCE by R. Camden then if I search on a phrase conained therein, then the context field correctly returns the paragraph containing the required wisdom. Say I have a different PDF Learning how to use CFFORCE by M. Barfoot. If I search on a particular phrase contained therein, then the context field is the same as Summary field, which doesn't contain my phrase at all. Seems as though the CFForce is working against me. My Verity has gone darth. Any ideas? Thanks, Matt -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: 26 October 2007 15:25 To: CF-Talk Subject: Re: CF7 verity indexing of PDFs Did you remember to enable it in your cfsearch tag? By default cfsearch won't return context information. You have to specify contextPassages with a # greater than 0. On 10/26/07, Matt Barfoot [EMAIL PROTECTED] wrote: I can't seem to get verity to index PDFs properly. I can index a PDF, check the collection in CFADMIN which shows the doc is indexed. I can the pick a phrase from the PDF, seach against it and I get 1 result. The problem is the result only shows a summary. If a CFDUMP the context field is empty. The fact the the correct document is identified by a phrase search tells me Verity has indexed the doc and knows the phrase exists (and where). But it won't yield this information back in the returned results query. Any ideas where I'm going wrong? Any other advice on how to get the best from Verity would be much appreciated. ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292209 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CF7 verity indexing of PDFs
I can't seem to get verity to index PDFs properly. I can index a PDF, check the collection in CFADMIN which shows the doc is indexed. I can the pick a phrase from the PDF, seach against it and I get 1 result. The problem is the result only shows a summary. If a CFDUMP the context field is empty. The fact the the correct document is identified by a phrase search tells me Verity has indexed the doc and knows the phrase exists (and where). But it won't yield this information back in the returned results query. Any ideas where I'm going wrong? Any other advice on how to get the best from Verity would be much appreciated. ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292115 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfinput button image
Hello Richard, You could do with with css just do: div id=mydiv img id=myimg src=blah.. / cfinput ... / /div then in head or stylesheet of presentation page style div#mydiv {position: relative} img#myimg {position: absolute; top 5px; left 75px;} /style Obviously amend top, left to suit. I haven't tested, but you may have an issue with what is on top the image or the button. If you have an issue try adding z-index:10. You would have to verify you happy with the results x-browser. Whilst possible this not a good way to go about things! I would suggest a better approach is simply to create your button graphic with the appopriate image in it already as this is much more standards compliant. Placing an image on top of a button is likely to affect clicking of the button if the image obscures a large part of the button. The way around this would be to assign an event handler to the onclick event of the image, but this is a whole load of work when you could simple create the button with the appropriate image in it already!! Thanks, Matt -Original Message- From: Richard White [mailto:[EMAIL PROTECTED] Sent: 26 October 2007 14:39 To: CF-Talk Subject: cfinput button image Hi, just wondering if it is possible if i can have a cfinput of type button and then place a small image in the button instead of text. i have tried the cfinput type image but of course it only shows the image and not the appearance of the button with an image in it thanks ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292124 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CF7 verity indexing of PDFs
Hello Ray, Thanks for the advice and it worked, but has given way to a more curious problem. Say I have one PDF Learning how to use the CFFORCE by R. Camden then if I search on a phrase conained therein, then the context field correctly returns the paragraph containing the required wisdom. Say I have a different PDF Learning how to use CFFORCE by M. Barfoot. If I search on a particular phrase contained therein, then the context field is the same as Summary field, which doesn't contain my phrase at all. Seems as though the CFForce is working against me. My Verity has gone darth. Any ideas? Thanks, Matt -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: 26 October 2007 15:25 To: CF-Talk Subject: Re: CF7 verity indexing of PDFs Did you remember to enable it in your cfsearch tag? By default cfsearch won't return context information. You have to specify contextPassages with a # greater than 0. On 10/26/07, Matt Barfoot [EMAIL PROTECTED] wrote: I can't seem to get verity to index PDFs properly. I can index a PDF, check the collection in CFADMIN which shows the doc is indexed. I can the pick a phrase from the PDF, seach against it and I get 1 result. The problem is the result only shows a summary. If a CFDUMP the context field is empty. The fact the the correct document is identified by a phrase search tells me Verity has indexed the doc and knows the phrase exists (and where). But it won't yield this information back in the returned results query. Any ideas where I'm going wrong? Any other advice on how to get the best from Verity would be much appreciated. ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292166 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4