Re: Forms Processing: Updating Only Changed Data
After reading my answer, I realize the way I worded it may be confusing. Here's an example. On your form: On your processing page. That's the basics of what I was trying to get at. thanks, eric cobb ecar technologies, llc http://www.cfgears.com Eric Cobb wrote: > The first thing that jumps out at me would be to have hidden form fields > in the form that contain the original values. Then, when you're > processing the form any value that doesn't match its corresponding > hidden value has been changed. > > thanks, > > eric cobb > ecar technologies, llc > http://www.cfgears.com > > > > Blizzm wrote: > >> We have several lengthy forms that are going to be used for updating records >> and various data. We are also looking at recording which form fields have >> been updated. Is there a means for updating only those records which have >> changed? >> >> I was thinking of looping through a form collection, comparing submitted vs. >> existing database values, storing any changed values and then having a CFC >> process the SQL update. If this is a good starting point, how would I be >> able to update only those fields that need to be changed? >> >> For example if I have 100 fields and only 10 have been updated, how can I >> write a query to update only those 10 fields? >> >> Thanks in advance. >> >> >> >> >> >> >> > > ~| 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:331565 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Two CFQUERY statements?
Sounds like ColdFusion is having problems connecting to one of your databases. Try this: 1) make sure you can "verify" both datasources in your ColdFusion Administrator. 2) make sure you didn't misspell one of the datasource names in your cfquery tags. thanks, eric cobb ecar technologies, llc http://www.cfgears.com Steven Sprouse wrote: > You'll have to excuse me, I'm still sort of a CF novice so I'm not too > familiar with how to use CFTRANSACTION. > > What I was doing was just putting two separate CFQUERY statements at the head > of my document, each with a different name attribute and different data > sources. When I did my cfoutput of the second cfquery, that's when I got my > error. > > The error was "Error Executing Database Query. [Macromedia][SequeLink JDBC > Driver][ODBC Socket][DataDirect][ODBC SequeLink driver][SequeLink Server]The > specified data source is not defined." But I'm not sure that is very helpful > to you. > > If one of the databases was converted into a table and placed into the other > database, I'd have no problem with this, but for some reason I'm getting > tripped up with the different data sources. > > Thanks for any help you can offer. > > >> You can happily query multiple databases within the same request; >> what >> you can't do is query multiple databases within a single transaction. >> So as long as your CFQUERY tags don't share a CFTRANSACTION block you >> should be fine. >> >> Can you post the actual error message? >> >> cheers, >> barneyb >> >> On Thu, Mar 11, 2010 at 12:26 PM, Steven Sprouse >> wrote: >> >>> I have someone who has two separate databases and they want me to >>> >> write a Web form generating option menus from both databases. >> >>> I have set up both as separate data sources in my Coldfusion >>> >> administrator and have included one cfquery at the head of my document >> generating a list of locations. It's working fine. When I try to query >> the second database and do a cfoutput for another option menu, I get >> errors. >> >>> I seem to remember that it might not be possible to have two >>> >> separate cfquery statements in the same document. Is this correct? If >> so, how would I go about achieving my desired result? >> >>> > > > ~| 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:331615 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Online domain name search tag/tool
The simplest thing to do would be send them to http://internic.net/whois.html and let them look up the domain. The site is run by ICANN, and all it does is look up a domain and tell you if it's registered or available. If it's registered, it gives you some of the public registration information for it. thanks, eric cobb ecar technologies, llc http://www.cfgears.com Terry Troxel wrote: > Coldfusion Tag/Tool for Domain Name searches. > > Is there such a thing that can allow you to let your users search for > possible domain names to register without going to places like godaddy.com > who then show them pricing for hosting, design, Coldfusion, etc. who are > trying to put you the small business out of business (please pardon the > rant). > > Terry > > > > ~| 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:331797 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ColdFusion Builder Released!
Charlie Griefer wrote: "Bundling it with FlashBuilder may be their way of trying to increase the uptake of the language as a whole and thus ultimately sell more server licenses. By doing this, they're potentially introducing CF to PHP developers, Java developers, etc." I have to say that I don't agree with that last statement. FlashBuilder 4 (Standard Edition) with CFBuilder costs $299, and FlashBuilder 4 (Standard Edition) without CFBuilder costs $249. So for an existing PHP/Flex developer who has no use for CF, do you think they're going to pay $299 to get an extra IDE for a language they don't use, or spend $50 less and just get the IDE they need? thanks, eric cobb ecar technologies, llc http://www.cfgears.com Charlie Griefer wrote: > On Mon, Mar 22, 2010 at 2:28 PM, Mary Jo Sminkey > wrote: > > >>> The cost has to do with Adobe being a publicly traded company needing to >>> generate revenue and hopefully post a profit. The cost would therefore >>> >> more >> >>> likely be based on the amount of effort (time/money) involved in >>> >> developing >> >>> (research, planning, developing, testing, marketing) the product. >>> >> A lot of us hoped they would see that selling it a lower price point would >> help to increase the uptake of the language as a whole and thus ultimately >> sell more server licenses. For a large company like Adobe, profit is what >> the company makes as a whole, not what one product alone brings in. >> Microsoft learned this a long time ago and has used free and low-priced >> items to increase their revenue in other areas, and it's certainly a large >> reason for their success. >> >> > > Bundling it with FlashBuilder may be their way of trying to increase the > uptake of the language as a whole and thus ultimately sell more server > licenses. By doing this, they're potentially introducing CF to PHP > developers, Java developers, etc. Everyone who uses Flex but doesn't use CF > on the server side. > > I'm not exactly sure that selling it at a lower price point would have the > same effect. It'd appeal to those of us who currently use ColdFusion... > we'd conceivably be able to buy the product for $199 instead of $299. Ok... > but I don't see where that would necessarily increase the uptake of the > language as a whole. > > >> I also think their move to bundle CFBuilder with FlashBuilder -is- >> >>> encouraging developers. It's encouraging me to make the foray into Flex, >>> which is something that I've wanted to do for a while now. >>> >> Not if the price discourages me from even buying the product in the first >> place. >> >> > > But you're already a ColdFusion developer. If I wanted to buy FlexBuilder 3 > last year, I'd have paid $299 (i think... it was certainly in that > neighborhood). So we know that Flex developers are willing to pay that > amount. They're going to pay the same thing this year, and get ColdFusion > Builder. Adobe is pretty much giving it away to the Flex community in hopes > of doing what you say... increase the uptake of the language as a whole. > > We CF folk.. we pay a little bit more than the $199 we hoped it would be, > and get FlashBuilder. So not only is Adobe conceivably introducing CF to > other developers, but it's conceivably introducing Flex/FlashBuilder to us. > > I'm sorry that people think $300 is too expensive. I know that "expensive" > is a subjective term, and while some people can whip out their credit cards > and order a copy without a second thought, some of us will have to save up > for it. But as has been pointed out... if you use the product for a year > (and it really shouldn't even take a year), how much time are you going to > save... how much more productive could you possibly be? > > Maybe the answer is, "not enough". In which case... there are alternatives > (CFEclipse and others). For me, I think it'd be enough (I'm currently using > TextMate on Mac as my IDE... so I don't really have a horse in this race, so > to speak). I've used the beta of CFBuilder tho, and I can see where it'd > save me time. I run multiple CF8 and CF9 instances on my dev machine. > Generally one at a time... not having to jump out of the IDE, into > terminal, stop one service, start the next, back to the IDE... instead I can > just open up the servers pane in CFBuilder, stop one service, start the > other. Code insight, extensible via writing extensions in CF (-not- > Java)... I
Re: ColdFusion Builder Released!
Yes! Andy agreed with me! I'm going to print this out and frame it! ;-) thanks, eric cobb ecar technologies, llc http://www.cfgears.com Andy Matthews wrote: > As much as it kills me to say that Eric is right, and it does, I think he's > right. A developer in another language isn't gonna pay MORE for something > they don't need, and probably wouldn't use. > > ;) > > > andy > > -Original Message- > From: Eric Cobb [mailto:cft...@ecartech.com] > Sent: Tuesday, March 23, 2010 8:57 AM > To: cf-talk > Subject: Re: ColdFusion Builder Released! > > > Charlie Griefer wrote: > "Bundling it with FlashBuilder may be their way of trying to increase the > uptake of the language as a whole and thus ultimately sell more server > licenses. By doing this, they're potentially introducing CF to PHP > developers, Java developers, etc." > > I have to say that I don't agree with that last statement. FlashBuilder > 4 (Standard Edition) with CFBuilder costs $299, and FlashBuilder 4 (Standard > Edition) without CFBuilder costs $249. So for an existing PHP/Flex > developer who has no use for CF, do you think they're going to pay $299 to > get an extra IDE for a language they don't use, or spend $50 less and just > get the IDE they need? > > thanks, > > eric cobb > ecar technologies, llc > http://www.cfgears.com > > > ~| 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:332102 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: default for numeric argument
yep. thanks, eric cobb http://www.cfgears.com Matthew Smith wrote: > > > I am not passing it in. I am getting: > The APP_USER_ID argument passed to the check_item_quantities function is not > of type numeric. > Should I make the default 0? > > > ~| 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:332575 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: java.lang.String as a structure with members
You don't need the #'s either! change to and to thanks, eric cobb http://www.cfgears.com Maureen wrote: > You are using t1 as the name of a query: > > > then you set it to a string > > > then you try to use it again as a query name. > > > Also, you don't need the quotes around the string on the right of the = sign > > change to > and to > > On Mon, Apr 5, 2010 at 12:33 PM, Rick Sanders wrote: > >> This is the line throwing the error: >> >> >> > > ~| 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:332633 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
yeah, Go Daddy is crap! I documented my last run-in with them: http://www.cfgears.com/index.cfm/2009/4/23/How-GoDaddy-Destroyed-my-Clients-Site thanks, eric cobb http://www.cfgears.com Kevin Pepperman wrote: > 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. > > > ~| 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:332730 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFDocs
I like http://coldfusiondocs.com/app/, it has both ACF and Railo (although CF 9 stuff isn't there yet). I've found that cfquickdocs is not accurate when doing broader lookups. For example, if you search for "array", you'll see it only brings back items that start with "array". Things like "isArray", "ListToArray", etc..., are not listed in cfquickdocs, but they are in coldfusiondocs.com and cfmldocs.com. Just being picky... thanks, eric cobb http://www.cfgears.com Paul Kukiel wrote: > There is also http://www.cfmldocs.com which also has an offline AIR app. > > Paul > http://blog.kukiel.net > > > On Apr 8, 2010, at 2:31 AM, Dave Sueltenfuss wrote: > > >> Does anyone know if the creator of cfdocs.org has plans to update the site >> to use the latest versions of CF Documentation >> It's still pointing to CF7'd documents >> >> >> >> > > ~| 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:332760 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Easy application question
Make sure both Application.cfm files have the same name in the cfapplication tag. thanks, eric cobb http://www.cfgears.com Brian Bradley wrote: > I think I misunderstand how to use application.cfm files. I have a > application.cfm file on the root and I set a group of session variables. I > have a folder off the root named products with an application.cfm file in it. > It was my understanding that the root application.cfm would take precedence > to the subfolder's application.cfm and could share variables to the > application.cfm like it could any page in that folder. But when I call a > variable in the sub application.cfm file to the higher level application.cfm, > I get variable is undefined error. Is that just not possible to share > variables among application.cfm files even if they are hierarchically below a > higher application.cfm file or am I doing something else 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:332838 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: number format mask
Try it and see: #numberformat(variables.ordertotal, ".99")# Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Matthew P. Smith wrote: > #numberformat(variables.ordertotal, ".99")# > > Does this limit the left of the decimal place to 4 digits? Or am I good no > matter how large the number. Sorry, the CFWACK docs are a bit off i think. > > > ~| 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:333171 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: deleting all files in a directory with code
If you're going to be working with a large number of files, you may want to think about tapping in to CF's underlying Java capabilities. I've found that to be much better than using cfdirectory. Che Vilnonis wrote: > Glad I could help... > > -Original Message- > From: Richard White [mailto:[EMAIL PROTECTED] > Sent: Monday, April 14, 2008 5:29 PM > To: CF-Talk > Subject: Re: deleting all files in a directory with code > > that worked fine, thanks che > >> Try the cfdirectory tag to get the files and cffile to delete them. >> >> hi >> >> is there a way to delete all files in a directory through code, tag or >> function >> >> thanks > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303556 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Managing Software Releases
You need Subbversion (http://subversion.tigris.org/). Aaron West wrote an awesome step-by-step tutorial on how to install and configure Subversion, and even shows you how to check out code files to your local development system. It's a 5 part blog series, but you can breeze through them pretty quickly and have it up and running in no time. http://www.trajiklyhip.com/blog/index.cfm/2007/3/12/Configuring-a-Development-Environment-with-Apache-Subversion-TortoiseSVN-and-Subclipse Chad McCue wrote: > We are a company that just picked up a very big client. We will be > having 3 programmers working on this clients projects/bug fixes at one > time. I need some help finding a packaged solution that will allow my > programmers to code independently from each other but then merge > together for multiple releases. > > I was looking at AccuRev and they seem to have a good solution I am just > not sure how to implement something like this to run for web based > projects. i.e. how to get my guys to write code, QA code and look at the > site from IIS for multiple "Streams" or "Branches". I don't know much > about IIS. One example would be below. > > Programmer 1 is working on two major releases for my client. One coming > out in a month and the other in 2 months. I need the ability for him to > code them independently of each other and also test independently of > each other. How can IIS handle this without having to create multiple > URLS for every bug fix or release we need to do. He will need to work on > the 2 releases during the same time frame, so completing one and then > moving on to the other would not be an option. > > Programmer 2 is working on multiple bug fixes for previous releases. He > needs to work on these bug fixes independently from Programmer 1 new > release code set. But still have the ability to test them from a > browser. > > Any help would be appreciated. > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319155 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: tools for creating DAO, Gateway, Bean, etc CFCs
I you want to use Stored Procedures, don't forget to check out SquidHead. http://squidhead.riaforge.org/ Thanks, Eric Cobb http://www.cfgears.com Gerald Guido wrote: > There are tons of them. Go here and search for "generator" or "code". > > http://www.riaforge.org/index.cfm?event=page.search > > I am a big fan of Illudium. You can customize it to build all sorts of > stuff. I have hacked the crap out of it using some mods that I found on > Chris Phillips site. > > http://www.cfchris.com/cfchris/index.cfm/Database-Abstraction > > G! > > On Thu, Feb 12, 2009 at 1:12 AM, Mike Soultanian wrote: > >> So I've been reading a bunch of stuff about CFCs and I read in a few >> blog posts where people said something like "...if you're still writing >> your DAO CFC by hand...", implying that there was a tool to do this for >> you. Are there tools that help in writing CFCs? Just like how >> FuseBuilder is a godsend for FuseBox, I'd feel like a fool if I was >> writing this stuff by hand when there were tools out there to do this. >> >> Thanks! >> Mike >> >> > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319230 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Need a new host
Like Rob, I've been with CrystalTech for years, and have recently moved to a dedicated server with them. I've had no problems and would recommend them to anyone! -- Thanks, Eric Cobb Certified Macromedia ColdFusion MX 7 Developer http://www.cfgears.com Robert Rawlins wrote: > I've been running with Chystaltech.com for a few years, started with a bunch > of shared plans with them and have since moved onto Dedicated solutions, I > cannot recommend them enough, their service is very efficient and cost > effective and in instance when I've needed technical support email replys > are always within 15 minutes. > > Really really excellent service!! > > Rob > > -Original Message- > From: David Fekke [mailto:da...@fekke.com] > Sent: 02 March 2009 14:14 > To: cf-talk > Subject: Need a new host > > > I need a new host for a client of mine. Here are the requirements; > > ColdFusion 8 on Windows > SQL Server 2005/8, 2008 preferred > Support for a java library that lets him connect to a First Data merchant > account > SSL certificate support > > The client would prefer a shared hosting environment to keep costs down. > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320011 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: BOLT!
I don't think Bolt has gone into Beta yet. Doesn't Adobe usually do a big announcement when a product's Beta testing starts? (They certainly did with Flex 3!) It's my understanding that right now they're just allowing people to put their name on the list for when it finally does go into Beta. All they say on Labs is "BETA APPLICATIONS NOW BEING ACCEPTED!". It doesn't say the Beta has started. http://labs.adobe.com/wiki/index.php/Bolt Thanks, Eric Cobb Certified Macromedia ColdFusion MX 7 Developer http://www.cfgears.com Jose Diaz wrote: > Hello All, > > I have applied to Adobe for the Bolt beta but not heard a peep. Has anybody > had any news on when we can get to play with the new shiney toy? > > Jose Diaz > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321731 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Detect a 301 redirect
Perhaps your users could land on the original page, which displays a message telling them they are being redirected, then after 5 seconds (or whatever) the 301 redirect kicks in and moves them to the new page. This could easily be done with a cfheader/sleep/cflocation combo. Thanks, Eric Cobb Certified Macromedia ColdFusion MX 7 Developer http://www.cfgears.com Ian Skinner wrote: > Andy Matthews wrote: >> Well, a 301 redirect sort of means that the original file isn't there any >> more right. So that should be triggered via your 404 handler. You could >> intercept at that point and display message, along with the new location. >> >> >> andy > > Not quite. We have the 301 redirects in place so no 404 errors are > thrown. When you type in an old URL your browser gets a 301, and send > you on the correct new location. This is all good in my mind. > > But some powers that be, say "No, we must tell users they have been > redirected" What I was hoping for, but I am getting discouraged on > finding, is a simple trigger where I can simply add a message to the > page say something like "You came from zzz which now lives at yyy, > please update your information." when such a redirect occurs. > > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322200 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Application Scope Problem
This little tool can help you find what variables need to be put into the "var" scope: http://varscoper.riaforge.org/ Thanks, Eric Cobb Certified Macromedia ColdFusion MX 7 Developer http://www.cfgears.com Paul Alkema wrote: > Ok, I'll look into that and see if that fixes the problem. Also don't worry > about the bluntness, heh, I didn't write this code, I just inherited it. :) > > Paul > > -Original Message- > From: Adam Haskell [mailto:a.hask...@gmail.com] > Sent: Friday, June 19, 2009 2:55 PM > To: cf-talk > Subject: Re: Application Scope Problem > > > It has nothing to do with Application scope and everything to do with poorly > written code, sorry to be blunt but that's the issue. As was said all > variables you that you want to be local to that method need to be var'ed. > Currently you are not doing this so those variables are bleeding out of the > method's variable scope (which lives and dies with each call to the method) > and getting into the Object's scope (which lives and dies with the > application since the Object is stored on the Application scope). Again this > is not an issue with putting the object on the Application scope it is an > issue with how the variables are defined in the method. > > Adam > > > On Thu, Jun 18, 2009 at 8:49 AM, Paul Alkema > wrote: > >> Has anyone else experienced this issue before with the application scope? >> So >> if I ripped this out of the application scope you think it the issue I am >> having would be fixed correct? >> >> Also, please explain what you mean by ensuring that the arguments >> parameters >> aren't "sticky"? >> >> Do you mean referencing the scope in the cfargument tag? >> >> Like... >> >> >> Instead of... >> >> >> >> >> Thanks! >> -Original Message- >> From: Jason Fisher [mailto:ja...@wanax.com] >> Sent: Wednesday, June 17, 2009 3:42 PM >> To: cf-talk >> Subject: RE: Application Scope Problem >> >> >> Completely agree with Brad. Also wouldn't hurt to ensure that the >> arguments parameters aren't sticky, by referencing the scope of 'language' >> and 'placeholder' as appropriate. >> >> > hint="Returns the text found for the given language and placeholder"> >> >> >> >> >> >> >> >> >> >> >>SELECT content >>FROM translations >>WHERE lang = > value="#arguments.language#"> >>AND placeholder = > value="#arguments.placeholder#"> >> >> >> >> >>> 'EN') > >> >>SELECT content >>FROM translations >>WHERE lang = 'EN' >>AND placeholder = > value="#arguments.placeholder#"> >> >> >> >> >> >> >> >> >>", >> arguments[varName])> >> >> >> >> >> >> >> >> >> From: b...@bradwood.com >> Sent: Wednesday, June 17, 2009 3:38 PM >> To: "cf-talk" >> Subject: RE: Application Scope Problem >> >> Do you think this could have anything to do with the fact that this >> function >> is being stored in the application scope? >> >> === >> >> Yes, it has everything to do with that. You need to var EVERY variable >> used in that function. Otherwise it is shared by everyone calling your >> code at the exact same time >> >> getTranslation and varName need to be varred like so at the top of the >> function. >> >> ~Brad >> >> >> >> >> >> > > > > ~| 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:323727 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: IIS Log Analyzer
SmarterStats rocks! http://www.smartertools.com/SmarterStats/Features/Web-Log-Analytics-Website-Statistics.aspx Thanks, Eric Cobb Certified Macromedia ColdFusion MX 7 Developer http://www.cfgears.com Justin Scott wrote: > So, what are people using for analyzing IIS web traffic logs these days? I > know there is Google Analytics, but I'd like to run something against my IIS > log files to see more detail from the server logs. I'd prefer something > free (of course) that runs in the background and chews up the logs and spits > out reports periodically (to flat HTML and graphs is fine). If it can > delete the old log files after so many days that would be nice as well. Any > suggestions? It's been a long time since I've dabbled in this particular > area. > > > -Justin > > > ~| 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:324483 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Comparisons - Your thoughts
According to this "Performance tuning for ColdFusion applications" post, you should always use compare() or compareNoCase() instead of the IS NOT operator, and you should use listFindNoCase() or listFind() instead of the IS and OR operators. http://www.adobe.com/devnet/coldfusion/articles/coldfusion_performance_04.html Thanks, Eric Cobb Certified Macromedia ColdFusion MX 7 Developer http://www.cfgears.com Jason Fisher wrote: > I have long been in the habit of using EQ and NEQ (and now moving to == and > !=) for numbers in all cases, since there is no such thing as 'sort of > equivalent', like there is with strings ('foo IS FOO' etc). For strings I > use IS, unless case is important, and then I use CompareNoCase(). > > ~| 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:324555 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Comparisons - Your thoughts
While I'll agree that the readability/maintainability factor is important from a developer's viewpoint, that particular article was specifically focused on performance and was merely pointing out which functions were technically faster. If one function is built to be faster than another function, then that's how it's going to perform, regardless of whether or not it's easy for the developer to read. That being said, I'll have to agree with Brad and Charlie on sometimes coding what's easiest to read and maintain. You do reach a point where maintainability can play a larger role than squeezing out every tiny little millisecond of speed (on most apps). Thanks, Eric Cobb Certified Macromedia ColdFusion MX 7 Developer http://www.cfgears.com Charlie Griefer wrote: > I'd be leery of something that says, "always". > > Sometimes, it's OK to consider the readability/maintainability factor. > > On Wed, Jul 15, 2009 at 2:08 PM, Eric Cobb wrote: > >> According to this "Performance tuning for ColdFusion applications" post, >> you should always use compare() or compareNoCase() instead of the IS NOT >> operator, and you should use listFindNoCase() or listFind() instead of >> the IS and OR operators. >> >> >> http://www.adobe.com/devnet/coldfusion/articles/coldfusion_performance_04.html >> >> >> Thanks, >> >> Eric Cobb >> Certified Macromedia ColdFusion MX 7 Developer >> http://www.cfgears.com >> >> >> Jason Fisher wrote: >>> I have long been in the habit of using EQ and NEQ (and now moving to == >> and !=) for numbers in all cases, since there is no such thing as 'sort of >> equivalent', like there is with strings ('foo IS FOO' etc). For strings I >> use IS, unless case is important, and then I use CompareNoCase(). >>> >> > > ~| 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:324557 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ecommerce emergency
I know your pain! I was in a similar situation a couple of years ago. I lived in an area where people would have an absolute conniption if you quoted them $1,000 - $1,200 for a CF application. (I once had a client try to argue a price with me because I charged $3 per year more for domain registrations than a competitor...$3 per year! That's $0.25 per month!) I finally moved to an area where people realize that it costs money for technology products and services. They see it as a necessary investment, not an unnecessary expense. Thanks, Eric Cobb http://www.cfgears.com Phillip Vector wrote: > hehehe.. To move, I need money.. To make money, I need to move. :) > > On Thu, Jul 23, 2009 at 8:12 AM, Mark Kruger wrote: >> You are definitley working with the wrong clients... And it sounds like you >> need to move as well :) >> >> >> >> >> Mark A. Kruger, CFG, MCSE >> (402) 408-3733 ext 105 >> www.cfwebtools.com >> www.coldfusionmuse.com >> www.necfug.com >> >> -Original Message- >> From: Phillip Vector [mailto:vec...@mostdeadlygame.com] >> Sent: Thursday, July 23, 2009 8:30 AM >> To: cf-talk >> Subject: Re: ecommerce emergency >> >> >> I'll keep my eye out for it. Thanks. :) >> >> The client I'm doing this for is only willing to part with $450. >> That's total. For my setup time, configuration, etc. I'm not sure how it is >> around the country, but where I am (NW USA), it's dog eat dog with PHP >> developers who are charging $9/hr. for websites. I managed to convince the >> client that I'm able to code allot faster with ColdFusion and that PHP is >> open source, therefore not as secure (I used the "Google 'PHPbb virus' >> response). So I have this guy set to dump his hosting prepaid for 2 years to >> get some hosting on hostingatoz (which I'm hesitant to do since they still >> have yet to fix my cffile issue) or pay for some cf hosting someplace else, >> but that's another issue. >> >> I am glad you guys could tell your clients "You need this and this and this" >> and you guys get it. Us contractors in this area tend to tell our clients >> this and they go, "Well, I'll go with someone else then who does PHP and >> take my chances because I don't have the money". >> >> I'd enjoy getting a $400 product that I can customize for clients. But if I >> were to ask a client out here for that up front (instead of at the end), >> then I wouldn't have the client. It's tough enough to get the client to pay >> 50% down nowadays. >> >> BTW, if anyone DOES have a client they are too busy to handle who is willing >> to drop $400 at the start and needs an ecommerce solution, I'll be glad to >> take them off your hands. :) Thank you for the advice, but I still have to >> go with CFShopKart at the moment. >> >> On Thu, Jul 23, 2009 at 6:05 AM, Gerald Guido wrote: >>>>> Phillip, you might need to double check but last I looked cfshopkart >>>>> it >>> was >>> storing credit card details in its database (an MS Access database). >>> >>> Last time I looked at it, a couple of weeks ago, it had queries that >>> did not use use cfqueryparam. Double plus ungood. You can always use >>> that tool (the name escapes me) to cfqueryparam-tize the queries. I >>> have used it before and it worked well enough, It did not add the >>> cfsqltype attribute. I had to do that by hand, but it did 90% of the grunt >> work. >>> My advice, free and worth every penny, is to get something battle >>> tested. I have 5-6 carts under my belt and they can be rather involved >>> and hence there is a lot that can, and if that Murphy fellow has >>> anything say about it, will go wrong. >>> >>> G! >>> >>> On Wed, Jul 22, 2009 at 10:53 PM, Kevan Stannard >> wrote: >>>> Phillip, you might need to double check but last I looked cfshopkart >>>> it was storing credit card details in its database (an MS Access >>>> database). And if you're on shared hosting this this db is likely to >>>> be web accessible. If this is still the case then avoid this cart. >>>> Mike, cfshopkart was one of the authors first cf applications so is >>>> not a good example of a well designed or coded app. >>>> >>>> >>> >>> -- >>> Gerald Guido >>> http://www.myinternetisbroken.com >>> http://www.cfsimple.org/ >>> >>> "To invent, you need a good imagination and a pile of junk." >>> -- Thomas A. Edison >>> >>> >>> >> >> >> > > ~| 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:324865 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 and Java
I'm not sure if all of these are available to CF. http://java.sun.com/javase/6/docs/api/overview-summary.html Thanks, Eric Cobb http://www.cfgears.com Alan Rother wrote: > Hey All, > Has anyone found an easy way to "wander" through all of the classes / > packages available to CF through Java? > > I keep finding cool things other people have done using Java classes or > packages that CF has already built in, but aren't in any way documented. > > I'd just like to wander through like I do in the Flex API docs and look for > interestingly named items and figure out what they do... > > =] > ~| 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:325262 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFSTOREDPROC kind of sucks
According to LiveDocs, in MX 6 "Changed the dbvarname attribute behavior: it is now ignored for all drivers. ColdFusion uses JDBC 2.2 and does not support named parameters." Thanks, Eric Cobb http://www.cfgears.com Dave Watts wrote: >> Three issues that come to mind: > > You've really only listed two issues. > >> Cannot access transaction errors because a coldfusion exception is thrown so >> any validation exceptions must be >> handled through cftry/cfcatch instead of the CFSTOREDPROC. If en error >> occurs in SQL, it means coldfusion throws >> an error too. > > This is (a) in keeping with how CF deals with database errors > generally, and (b) pretty much ideal. What would you suggest > CFSTOREDPROC do, other than swallow the database error? There's no > place within CFSTOREDPROC for additional conditional processing, > really, so why not use exceptions? > > Of course, you can use the database-specific attributes within CFCATCH > to figure out how to respond. > >> dbvarname is completely useless. It would be nice to be able to send values >> across out of order or not send a value >> if it is not needed (NULL). It would also be nice to have those values in >> the debugging to reference. > > My understanding is that this is a limitation in JDBC, although I > can't really say I've verified that for myself. But yeah, it would be > nice to send name-value pairs. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > > Fig Leaf Software provides the highest caliber vendor-authorized > instruction at our training centers in Washington DC, Atlanta, > Chicago, Baltimore, Northern Virginia, or on-site at your location. > Visit http://training.figleaf.com/ for more information! > > ~| 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:325746 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 9 Hosting
I'll +1 for CrystalTech. I've been using them for years. Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Alan Rother wrote: > Just to put them in the Mix... > > www.crystaltech.com > > I've hosted dozens of sites there, great company, few issues... > > =] > > On Thu, May 20, 2010 at 9:13 AM, Paul Alkema > wrote: > > >> Um, that's not good. That's odd, I've never had my site go down. >> >> Oh well, good luck anyway. :) >> >> -Original Message- >> From: Kelly Matthews [mailto:ke...@webdiva.org] >> Sent: Thursday, May 20, 2010 11:41 AM >> To: cf-talk >> Subject: Re: CF 9 Hosting >> >> >> Actually while hostek's prices are great, the fact that they go down 2-3 >> times PER day is far too much for my client, which is why I'm looking to >> move. Should have mentioned "anyone but hostek". >> >> >>> I've been using hostek for awhile and really like it. >>> >>> http://hostek.com/ >>> >>> One of the best features I think is that you can run cf9 applications, >>> asp.net applications and php applications all from 1 hosting package >>> >> which >> >>> is awesome since I develop in all of those languages. >>> >>> Also they're CF package is only $5/month which is awesome. >>> >>> One down side I think is the hosting control panel isn't all that great, >>> >> but >> >>> it works well and does that I want. >>> >>> Regards, >>> Paul Alkema >>> http://paulalkema.com/ >>> >>> >>> http://www.viviotech.net/ >>> >>> >>> mxAjax / CFAjax docs and other useful articles: >>> http://www.bifrost.com.au/blog/ >>> >>> >>> On 20 May 2010 06:10, Kelly Matthews wrote: >>> >>> >>>> Anyone know any good, reasonable CF 9 hosting companies w/ mysql. >>>> Thanks! >>>> >> >> >> > > ~| 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:333847 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF 9 Hosting
To quote the great Jedi Master himself, "You probably won't find a 5 dollar a month hosting option for CF like you can with PHP. But basing your business on a host that charges as much as an imported beer is probably not a good idea." http://www.cfgears.com/index.cfm/2009/5/21/Best-ColdFusion-quote-EVER :) Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Kelly Matthews wrote: > Actually while hostek's prices are great, the fact that they go down 2-3 > times PER day is far too much for my client, which is why I'm looking to > move. Should have mentioned "anyone but hostek". > > >> I've been using hostek for awhile and really like it. >> >> http://hostek.com/ >> >> One of the best features I think is that you can run cf9 applications, >> asp.net applications and php applications all from 1 hosting package which >> is awesome since I develop in all of those languages. >> >> Also they're CF package is only $5/month which is awesome. >> >> One down side I think is the hosting control panel isn't all that great, but >> it works well and does that I want. >> >> Regards, >> Paul Alkema >> http://paulalkema.com/ >> >> >> http://www.viviotech.net/ >> >> >> mxAjax / CFAjax docs and other useful articles: >> http://www.bifrost.com.au/blog/ >> >> >> On 20 May 2010 06:10, Kelly Matthews wrote: >> >> >>> Anyone know any good, reasonable CF 9 hosting companies w/ mysql. >>> Thanks! >>> > > ~| 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:333850 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfc accessing session scope - bad?
Me too! Me too! Me too! :) http://www.cfgears.com/index.cfm/2009/12/3/Using-a-Session-Facade-in-ColdFusion I can vouch for Adrian's article, though. When I first started working with Session Facades in Mach-II, the post he linked to below went a long way in helping me understand them. Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Adrian Moreno wrote: > I've got an example of a Session Facade (or Session Proxy?) on my site: > > http://www.iknowkungfoo.com/blog/index.cfm/2007/2/12/Using-a-Session-Facade-to-handle-evolving-session-variables > > --- Adrian > > >> In general, yes. The exceptions are if you have a method specifically meant >> to encapsulate access session scope so that other methods in the object can >> get to that data (i.e. a getCurrentUser() method in a UserService), or if >> you create a dedicated SessionProxy object that other objects use to access >> data in the session scope. >> >> On Thu, May 20, 2010 at 8:04 AM, Matthew P. Smith >> wrote: >> >> >>> Is it a bad practice to have a cfc access a session variable? Should the >>> session variable be passed in as an argument instead? >>> >>> >>> >>> > > ~| 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:333864 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How to delete a post in House of fusion?
Since no one else has really answered your question, other than chastising you for what you should or should not have done when you originally made the post, I'll try to help. Your best bet for getting the posts removed from the House of Fusion website is to contact Michael (http://www.houseoffusion.com/contact.cfm) and ask him to manually take them out of the database. It won't remove them off of the Internet, but it will get them off of the HOF website. Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com C S wrote: >> All posts that go there also get sent out on the mailing list and >> google tends to be pretty quick archiving them. >> >> Even if you delete the post, it's likely that it's out there on the >> net for good. >> >> On Thu, May 27, 2010 at 10:34 AM, C S wrote: >> >>> Hi: >>> Due to some privacy issues I need to delete some of my posts and the >>> >> replies to them in House of fusion but the option is not available as >> a default one. Is it a way? Please help me because the privacy issue >> is very important >> >>> > Okay but is there any way to do it? I have to try at least > > ~| 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:334049 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Problems with slashes in JSON
I can't figure this thing out for the life of me, and I know it's got to be something simple that I'm missing. Here's what I'm trying to do. I'm using jQuery to hit a CFC and return data. The CFC actually queries the database, loops through results and creates list items for each row. I then return the list items to jQuery, which populates my UL with them. Here's my problems and what I've done so far: * returning the data from my CFC as a string causes jQuery to actually display the html code in the brower, so I literally see "Eric Cobb". * returning the data as JSON shows the list items correctly, but my page is littered with "\\n\\t\\t\\t\\t" at the end of every record. * I used a regex to clean up all of the line breaks, carriage returns, and tabs in my CFC before returning to jQuery and that works. * In every record that contains a slash "/" in the data, the slash has been replaced with "\\\/". * Nothing I do can get rid of these slashes. I've tried RegEx, SerializeJSON(), and JSStringFormat() in CF, and a whole whoost of jQuery escape(), html(), text(), and replace() functions, and nothing works. I think my biggest problem is that I've staring at and fighting with this thing for too long. Here's my method: #Trim(loc.custList.full_name)# - #Trim(loc.custList.addr_line1)#, #Trim(loc.custList.city)#, #Trim(loc.custList.state)# And here is my jQuery call: $(document).ready(function(){ $('#contentdiv').load('myCFC.cfc?method=AJAXgetAllCustomers'); }); So, can someone please tell me how to escape the characters so that I can get rid of the "\\\/" in my display output? And while I'm on the subject, surely there has got to be a better way than having to manually escape every character individually that may cause problems. I shouldn't have to run regex and whatnot to make everything work. In my mind, SerializeJSON() (or returnformat="json" for that matter) should have everything escaped and formatted nicely for jQuery, who should then know how to parse everything and display is correctly. Am I wrong? -- Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334434 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Problems with slashes in JSON
Thanks Brian. That eliminated all of the RegEx I was having to do, but my closing list tag is now being displayed as "<\\\/li>" at the end of every list item, and all slashes in my text are showing up as "\\\/". Any idea on how to fix that? Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Brian Kotek wrote: > Just a note that your list item has no closing tag. > > You can try building up the string with assignments rather than using > cfsavecontent. i.e.: > > > #Trim(loc.custList.full_name)# > - #Trim(loc.custList.addr_line1)#, > #Trim(loc.custList.city)# #Trim(loc.custList.state)#" /> > > > On Wed, Jun 9, 2010 at 6:54 PM, Josh Nathanson > wrote: > > >> In your cfsavecontent, get rid of all the tabs and carriage returns. This >> will make your code less readable, but it should take care of the problem >> you're having. >> >> So it might end up looking like this: >> >> > query="loc.custList">#Trim(loc.custList.full_name)# - >> #Trim(loc.custList.addr_line1)#, #Trim(loc.custList.city)#, >> #Trim(loc.custList.state)# >> >> -- Josh >> >> >> -Original Message- >> From: Eric Cobb [mailto:cft...@ecartech.com] >> Sent: Wednesday, June 09, 2010 2:35 PM >> To: cf-talk >> Subject: Problems with slashes in JSON >> >> >> I can't figure this thing out for the life of me, and I know it's got to >> be something simple that I'm missing. >> >> Here's what I'm trying to do. I'm using jQuery to hit a CFC and return >> data. The CFC actually queries the database, loops through results and >> creates list items for each row. I then return the list items to >> jQuery, which populates my UL with them. Here's my problems and what >> I've done so far: >> >>* returning the data from my CFC as a string causes jQuery to >> actually display the html code in the brower, so I literally see >> "Eric Cobb". >>* returning the data as JSON shows the list items correctly, but my >> page is littered with "\\n\\t\\t\\t\\t" at the end of every record. >>* I used a regex to clean up all of the line breaks, carriage >> returns, and tabs in my CFC before returning to jQuery and that works. >>* In every record that contains a slash "/" in the data, the slash >> has been replaced with "\\\/". >>* Nothing I do can get rid of these slashes. I've tried RegEx, >> SerializeJSON(), and JSStringFormat() in CF, and a whole whoost of >> jQuery escape(), html(), text(), and replace() functions, and >> nothing works. >> >> I think my biggest problem is that I've staring at and fighting with >> this thing for too long. >> >> Here's my method: >> >> >>> output="false" returnformat="json"> >> >> >> >> >> >> >> >> >> >>#Trim(loc.custList.full_name)# - >> #Trim(loc.custList.addr_line1)#, #Trim(loc.custList.city)#, >> #Trim(loc.custList.state)# >> >> >> >> >>> ReReplace(loc.rtnContent,"[#chr(10)#|#chr(13)#|#chr(9)#]","","ALL")> >> >> >> >> >> >> And here is my jQuery call: >> >> >> $(document).ready(function(){ >> >> $('#contentdiv').load('myCFC.cfc?method=AJAXgetAllCustomers'); >> }); >> >> >> So, can someone please tell me how to escape the characters so that I >> can get rid of the "\\\/" in my display output? And while I'm on the >> subject, surely there has got to be a better way than having to manually >> escape every character individually that may cause problems. I >> shouldn't have to run regex and whatnot to make everything work. In my >> mind, SerializeJSON() (or returnformat="json" for that matter) should >> have everything escaped and formatted nicely for jQuery, who should then >> know how to parse everything and display is correctly. Am I wrong? >> >> -- >> >> Thanks, >> >> Eric Cobb >> ECAR Technologies, LLC >> http://www.ecartech.com >> http://www.cfgears.com >> >> >> >> >> >> >> > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334451 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Problems with slashes in JSON
I originally thought about just parsing the return in jQuery, until I realized what this code was ultimately going to have to do. The items in this list are actually going to wind up having text hyperlinks, form buttons, and maybe even images added to them, so for me it's easier to build it out in CF and just have jQuery display it. Too much JavaScript hurts my head. :) I'm about to the point I'm ready to ditch jQuery and just do what I need to do without trying to be all "ajaxy" with it. Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Cutter (ColdFusion) wrote: > If Eric is returning a plain string, then there is no need to > SerializeJson() the result, as all he needs is the string. That is why > Eric is getting the additional slashes in his closing tag, because the > SerializeJson() method is automatically escaping the slash characters. > > I'll agree with Michael though. If you did get a Json return, and just > parsed it to add the tags in your doc you'll reduce your > (unnecessary) server-side overhead. Returning the string is easier, but > not necessarily best for you application or your code reusability. > > Steve "Cutter" Blades > Adobe Community Professional - ColdFusion > Adobe Certified Professional > Advanced Macromedia ColdFusion MX 7 Developer > > Co-Author of "Learning Ext JS" > http://www.packtpub.com/learning-ext-js/book > _ > http://blog.cutterscrossing.com > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334456 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Check for remote CFC call in CF 8
Is there a way, in CF 8, to determine if the current request is calling a CFC that has access="remote"? Basically, I'd like to mimic CF 9's onCFCRequest() method, but only for remote methods. I spent a good portion of yesterday afternoon trying to figure out why my jQuery AJAX call would work for me locally, but break on our staging site. All code was identical in every comparison, and both sites were using the same database so the data was identical as well. Long story short, our staging server had CF debugging turned on, and it was appending the debug info to the end of the json being returned from my CFC call, which then threw errors in jQuery. Locally I have debugging going to ColdFire/Firebug, so I never saw the problem. Anyway, a simple "cfsetting showdebugoutput="false"" fixed the issue. So, rather than having to remember to use cfsetting for every remote method, is there a way I can programmatically figure out if the current request is calling a remote method in CF 8? -- Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334572 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is it time for Adobe to Rebrand Cold Fusion?
Not to stir the pot any more than it already is, but I wanted to point out two quick things: 1) That's not Ben Forta's blog you linked to. 2) That article was published 6 years ago. Carry on Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Robert Harrison wrote: >> Right now, the way it's branded (and named), the argument is Cold Fusion >> > vs. .NET.Why do you say that? > > Because the best links I got out of my previous email were at best bleak. > The best link prompted an on-list response that we have 4 years to learn a > new language. > > >> but the argument of .NET vs J2EE or Adobe vs. Microsoft is a much easier >> > argument. Why do you say that? > > Because that's the argument Ben Forta makes in his blog: > http://coldfusion.sys-con.com/node/46362 > > Comparing ASP.NET to ColdFusion is difficult. Actually, it's not just > difficult, it's simply incorrect, and not an apples-to-apples comparison... > In other words, deciding between ColdFusion and ASP.NET (and indeed, > defending ColdFusion against ASP.NET) first requires a .NET versus J2EE > discussion > > > > Robert B. Harrison > Director of Interactive Services > Austin & Williams > 125 Kennedy Drive, Suite 100 > Hauppauge NY 11788 > P : 631.231.6600 Ext. 119 > F : 631.434.7022 > http://www.austin-williams.com > > Great advertising can't be either/or. It must be &. > > Plug in to our blog: A&W Unplugged > http://www.austin-williams.com/unplugged > > > > -Original Message- > From: Dave Watts [mailto:dwa...@figleaf.com] > Sent: Monday, June 21, 2010 3:36 PM > To: cf-talk > Subject: Re: Is it time for Adobe to Rebrand Cold Fusion? > > > >> Right now, the way it's branded (and named), the argument is Cold Fusion >> > vs. > >> .NET. >> > > Why do you say that? > > >> That is a hard argument, >> > > Why do you say that? > > >> but the argument of .NET vs J2EE or Adobe vs. Microsoft is a much easier >> > argument. > > Why do you say that? > > Honestly, I'm not trying to be difficult, but none of those statements > really seem to be as self-evident as you seem to think. ColdFusion is > not just a competitor with .NET; it's a competitor with "pure" J2EE > solutions. But if you were going to cast this as CF vs .NET, there are > plenty of compelling arguments you can make for choosing CF over .NET. > (And a decent number for choosing .NET also.) The same is true for > .NET vs J2EE. And finally, Adobe vs Microsoft isn't a great argument > to make in favor of CF - plenty of people use MS server products. > Where's Adobe's server OS? Their database platform? Their Sharepoint > analog? etc, etc, etc. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > http://training.figleaf.com/ > > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on > GSA Schedule, and provides the highest caliber vendor-authorized > instruction at our training centers, online, or onsite. > > > > ~| 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:334699 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
php.org is written in ColdFusion
Simon Horwith just posted this on his blog (http://www.horwith.com/index.cfm/2010/6/21/php-dot-org-is-written-in-ColdFusion), and it's too good not to pass on! "http://php.org/ appears to be written completely in ColdFusion." -- Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334700 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is it time for Adobe to Rebrand Cold Fusion?
It works on getting managers to upgrade too! "We're still running CF2000, when CF2009 is already out. We're 9 years behind everyone else!" Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Cameron Childress wrote: > On Tue, Jun 22, 2010 at 9:54 AM, Andy Matthews > wrote: > >> The flip side of that is it's also too easy to tell how out of date you are. >> > > Which is a great thing I think. Instead of asking "why won't this > code work on CF5?", people would be forced to sheepishly ask "why > won't this code work on CF2000?". > > -Cameron > > ... > > ~| 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:334741 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfdot.net
Calling him dishonest is very short sighted on your part (to say the least!). Has the thought occurred to you that perhaps the reason there was so much extra code in the .Net example was because he's not a seasoned .Net developer? I know I certainly wouldn't know the absolute best way to do something when just transferring over to a new language. I'm willing to bet there are many seasoned .Net developers who would make plenty of rookie mistakes when just starting out with CF. Perhaps instead of jumping to conclusions and making accusations, you should offer to help him clean up his examples so they are more accurate. Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Matthew Small wrote: > All language religion aside - it's not a fair comparison, it's biased towards > CF. You should be more honest in your comparisons if you expect anyone to > take it seriously. > > Example: > > CFEXECUTE: > > CF: > > > > > ASP.NET > > 01.using System; > 02.using System.Drawing; > 03.using System.Collections; > 04.using System.ComponentModel; > 05.using System.Windows.Forms; > 06.using System.Data; > 07.using System.Diagnostics; > 08. > 09.... > 10. > 11.//Declare and instantiate a new process component. > 12.System.Diagnostics.Process process1; > 13.process1= new System.Diagnostics.Process(); > 14. > 15.//Do not receive an event when the process exits. > 16.process1.EnableRaisingEvents = false; > 17. > 18. > 19.//The "/C" Tells Windows to Run The Command then Terminate > 20.string strCmdLine; > 21.strCmdLine = "/C netstat "; > 22.System.Diagnostics.Process.Start("CMD.exe",strCmdLine); > 23.process1.Close(); > > > > All that is actually needed is: > > System.Diagnostics.Process.Start("netstat.exe"); > > All of the other stuff is extraneous. The need for the "using" statements is > negated by the fully-qualified name for the method. The object "process1" > isn't used at all for the actual execution. Passing the netstat.exe > executable to the cmd.exe process is ridiculous - you could do the same with > CFEXECUTE. Adding in extra string arguments just builds up the amount of code > you want to display. And FYI: this one line of code can be executed in the > .aspx page: > > <% System.Diagnostics.Process.Start("netstat.exe") %> > >There are numerous similar examples on your website. It's a dishonest > misrepresentation. > > - Matt Small > > > > > > > >> This is pretty sweet Jose. >> >> Thanks for taking the time to create this site! An excellent resource >> indeed. >> >> Warm regards, >> Jordan Michaels >> Vivio Technologies >> http://www.viviotech.net/ >> Open BlueDragon Steering Committee >> Railo Community Distributions >> >> On 06/22/2010 06:47 AM, Jose Diaz wrote: >> > > > ~| 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:334774 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Shopping carts
Wait...what? -Your client refuses to listen to you and has rejected your every suggestion. -Your client has no money and refuses to use the free resources already available. -Your client expects you to build a custom site for free. -You agreed to build the site on the hopes that you'll get paid when it takes off. -You don't believe this site will ever take off. -You're unemployed, and are doing this work for free knowing that you'll probably never get paid for it. I think I've found the source of your frustration, and it's not that there isn't a free CF shopping cart... I've been an unemployed, broke, work from home, take what you can get, freelance contractor myself, so I know where you're coming from. (My wife and I both lost our jobs on the same day back in 2005, so I REALLY know where you're coming from!) I've wasted many, many hours on these types of clients in the hopes that one day it would turn into something. What I found, though, was that the ones that wanted everything for nothing to start with will continue to expect everything for nothing even after their business takes off (if it ever does). Even if you're doing work for a friend, they'll always expect the good-ole-boy discount. I can hear it now, "C'mon man, I could outsource this for a third of what you're wanting to charge me. You never tried to charge me this much before!" I also realized that there comes a point where you have to fire some clients. If it's not profitable, then it's a waste of time. Sure, I realize that sometimes you have a $100 electric bill that's due and you need to buy groceries, so you'll do whatever work you can find to get that money. But don't do the work if you don't get the money. Free projects should be done in your free time. The time you waste on the freebie clients would be better spent trying to find paying clients, or cutting your neighbors grass to scrape together the money you need. Trust me, I've been there. Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Eric Roberts wrote: > I pushed that...he doesn't like PayPal for some reason...he is under the > impression that people don't like it. Not something that I have ever > heard...but he has that stuck in his head. I have suggested several other > free options. It's not decision unfortunately. I even suggested that he > use café press for now until; he gets some sales (He wants to do a t-shirt > site...I questioned whether or not this would even take off as he would be a > really small fish in a huge ocean of t-shirt sites). He insists on doing > his own site...so finding a good cart to integrate into this that he can > afford is the difficulty...which is why I asked here and instead of getting > advice from folks like Sean, I was told that if I can't afford the carts out > there for 200, I shouldn't even be a developer. So if you really want to > point a finger, I was just defending myself. > > Eric > > -Original Message- > From: Michael Grant [mailto:mgr...@modus.bz] > Sent: Monday, June 28, 2010 8:27 PM > To: cf-talk > Subject: Re: CF Shopping carts > > > C'mon Eric. Let's keep these types of comments on cf-comm where they belong. > okees? :) > > Does it need to be cf? Could you use paypal shopping cart? > Something that's more geared towards a higher transaction fee but no upfront > cost? > https://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/sc-intro-outside > > > > > On Mon, Jun 28, 2010 at 9:01 PM, Eric Roberts < > ow...@threeravensconsulting.com> wrote: > > >> I think you assume too much. First off...I'm not a newbie. It also >> doesn't >> matter who said it. I have a lot of respect for Sean and what he has >> > done, > >> but that doesn't negate the fact that his comments were elitist BS, >> regardless if "he is telling it like it is"...that is just a cop out. My >> client can't afford much. I am actually doing this job as a favor on >> promise of payment as he can afford it. As I am also otherwise unemployed >> right now I also can't afford it. Most of the consulting I do is via >> agencies, but my last one was 1099, so no unemployment to hold me out till >> my next contract. (we just recently moved and pretty much depleted what >> little we had in savings to accomplish that) While I am glad you and Sean >> are rolling in the dough, that is not the case for everyone. Yours and >> Sean's assumption that $200 or $500 is chump change is pretty elitist. I >> wish I had the ability to dump that kind o
Re: development and testing server
Not only that, let's not forget that Adam (adrocknaphobia) is the main man in charge of all things CF at Adobe, so his direct response to this post instructing Won to use the same key should suffice. I realize some people want to see official documentation in writing, but short of having Ben Forta show up at your office and type the key in for you, getting the "go-ahead" directly from Adam is about as good as it gets. At least it would be around here, anyway. Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Judah McAuley wrote: > The author of that article works for Adobe in an official CF capacity > and then points to the changes in the EULA. I think that short of get > a signed statement from Adobe's lawyers that they won't sue you, that > is about as official as you are going to get. You've got the license > text and you have a top-level Adobe employee spelling out the details > of what it means. Baring that, I'd suggest contacting Adobe directly. > > Judah > > On Tue, Jul 13, 2010 at 12:26 PM, Won Lee wrote: > >> He was looking for something more official. We take licenses very seriously >> here. >> >> W >> >> On Tue, Jul 13, 2010 at 3:19 PM, Judah McAuley wrote: >> >> >>> http://www.terrenceryan.com/blog/post.cfm/coldfusion-9-testing-staging-and-development-changes-to-eula >>> >>> On Tue, Jul 13, 2010 at 12:16 PM, Won Lee wrote: >>> >>>> Adam, >>>> >>>> my network admin is asking me for a URL or documenation that specifically >>>> states that. I showed him the EULA but he is asking for the part where >>>> >>> we >>> >>>> can use a production key for development and testing. He understands >>>> >>> those >>> >>>> servers will only be used for development and testing. >>>> >>>> W >>>> >>>> >>>> On Tue, Jul 13, 2010 at 2:49 PM, Won Lee wrote: >>>> >>>> >>>>> Thanks >>>>> >>>>> >>>>> On Tue, Jul 13, 2010 at 1:36 PM, Adrocknaphobia < >>>>> >>> adrocknapho...@gmail.com>wrote: >>> >>>>>> Just use the same key. >>>>>> >>>>>> -Adam >>>>>> >>>>>> On Tue, Jul 13, 2010 at 1:03 PM, Won Lee wrote: >>>>>> >>>>>> >>>>>>> Hi folks, >>>>>>> >>>>>>> I've been using CF 9 developer on edition on my dev box and the >>>>>>> >>> standard >>> >>>>>>> version on my production box. I want to change the dev box to >>>>>>> >>> standard >>> >>>>>> for >>>>>> >>>>>>> development only purpose under the EULA 3.1.3. Any directions for >>>>>>> >>> this >>> >>>>>> or >>>>>> >>>>>>> do I just enter the same key? >>>>>>> >>>>>>> W >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>> >>> >> > > ~| 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:335314 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Need a west coast (US) based CF host
Now() + 3 shouldn't be that hard to implement. ;) (assuming all of the date/time stamps are being entered via CFML instead of the DB itself) Just a note, Railo allows you specify the time zone for each site, so if you want to use a Railo host, it doesn't matter where they're physically located. Your site can have it's own time zone independent of the server time zone. (again, assuming all of the date/time stamps are being entered via CFML instead of the DB itself) Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Charlie Griefer wrote: > Hey all... > > I know this topic ("can somebody recommend a CF host") comes up > frequently... I hate to bring it up again, but I must :) > > I have a client that needs to be on shared hosting (they don't have the > funds for VPS, unfortunately) on a server with the clock set to PST. > They're a company that's physically based in CA... recently moved hosts to > an east-coast based company, and now timestamps are off by 3 hours when they > add events. > > According to the previous developer, they're using a calendaring system > (specifically, a particular version of a calendaring system) that isn't set > up to handle time zone differences. He's told me that trying to update the > code to handle this would "open a whole new can of worms". > > I've explored the options, and the path of least resistance seems to be to > relocate the site to a server based on the west coast. Or at the very > least, a server whose clock is set to PST. > > A quick google turned up Illuminated Hosting ( > http://www.illuminatedhosting.com/), but I'm not familiar with them. Does > anybody know of this company? Or of any others that have servers set to > pacific time? > > Thanks! > Charlie > > ~| 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:335864 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
(ot) Eclipse hangs on startup.
Over the last couple of weeks I've noticed that my Eclipse seems to take a really long time to start up. It always hangs at the splash screen forever, then finally it starts loading. Once the loading bar appears, it only takes about 15-20 seconds to load. This morning I timed it and it stayed on the startup screen for almost 7 minutes before it started loading. Once it finally opens up, I can close it an reopen it and it takes less than a minute. But, that initial startup after I log in, reboot, etc.., always hangs at the splash screen for 4-7 minutes. I'm using Eclipse 3.5.2, 64 bit, on Windows 7 Professional 64 bit with 4GB of RAM. In an effort to fix the problem, I installed Java version 6, update 21. It just came out last week and is supposed to have some bug fixes aimed specifically at Eclipse. That didn't help anything. I also have Eclipse 3.5.2, 32 bit, on this machine and it takes just as long to start up. Just to see, I set up a fresh blank install of 3.5.2, 64 bit, and it came up with no problems. I've searched the interwebs trying to find a way to tweak my eclipse.ini settings, and so far I haven't been able to find anything that fixes this. I've even restored the eclipse.ini file back to the original and it's still slow. At first I thought it may be a plugin that was causing this, so I uninstalled all unnecessary plugins, but that didn't fix it. I even made sure that my 32 bit and 64 bit didn't have the same plugins installed, and they don't. The only core features they have installed in common are: -Eclipse Data Tools Platform -Eclipse Mylyn -Eclipse Modeling Project So, I'm guess that one of these is the culprit. I'm really not sure, though. Does anyone know if there is any way to tell what's causing Eclipse to hang at the splash screen for so long? Some way to get a behind the scenes look at what's going on? -- Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335935 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: onApplicationStart
Here's the poor mans answer to applicationStop(), it works on CF7 & CF8. |<||cfset| |application.setIsInited(false) /> | See Mister Dai for a more detailed explanation: http://misterdai.wordpress.com/2010/06/11/cf-flag-application-to-run-onapplicationstart/ | | Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Raymond Camden wrote: > That's by design. CF knows when an application starts. You can 'force' > it a few ways. > > 1) In CF9, within onRequestStart, add a check for url.init (or some > such), and run applicationStop(), you then need to reload the current > request. > 2) Or even simpler, within onRequestStart, add a check for a url var > and simply do > > onApplicationStart(); > > This will NOT single thread the call, but if you are just setting up a > bunch of variables, you most likely do not need to be concerned. > > 3) I don't really recommend this, but you can also just rename the > application. > > > On Wed, Aug 4, 2010 at 2:56 PM, Matt Coldfusion wrote: > >> This doesnt work for me and I cannot work out why? >> I run onApplicationStart in application.cfc and all my old application >> variables still exist, i have to restart the service all the time but i >> can't do this on my shared server. >> >> >> >> >> >> >> >> >> >>>> What is another way besides creating a temp file to explicitly reset >>>> those variables? >>>> Is there a way to make the Application expire and restart (sort of >>>> speak)? >>>> >>> Here's what I use: >>> >>> >>> >>>>> throwontimeout="true"> >>> >>> >>> >>> >>> >>> Then add ?reinitApp=1 in any url to restart the app >>> >>> Will >>> >> > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335997 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: onApplicationStart
Huh, not sure what happened with the formatting on that. Here you go: Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Eric Cobb wrote: > Here's the poor mans answer to applicationStop(), it works on CF7 & CF8. > > |<||cfset| |application.setIsInited(false) /> > | > See Mister Dai for a more detailed explanation: > http://misterdai.wordpress.com/2010/06/11/cf-flag-application-to-run-onapplicationstart/ > | > | > > Thanks, > > Eric Cobb > ECAR Technologies, LLC > http://www.ecartech.com > http://www.cfgears.com > > > > Raymond Camden wrote: > >> That's by design. CF knows when an application starts. You can 'force' >> it a few ways. >> >> 1) In CF9, within onRequestStart, add a check for url.init (or some >> such), and run applicationStop(), you then need to reload the current >> request. >> 2) Or even simpler, within onRequestStart, add a check for a url var >> and simply do >> >> onApplicationStart(); >> >> This will NOT single thread the call, but if you are just setting up a >> bunch of variables, you most likely do not need to be concerned. >> >> 3) I don't really recommend this, but you can also just rename the >> application. >> >> >> On Wed, Aug 4, 2010 at 2:56 PM, Matt Coldfusion wrote: >> >> >>> This doesnt work for me and I cannot work out why? >>> I run onApplicationStart in application.cfc and all my old application >>> variables still exist, i have to restart the service all the time but i >>> can't do this on my shared server. >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>>>> What is another way besides creating a temp file to explicitly reset >>>>> those variables? >>>>> Is there a way to make the Application expire and restart (sort of >>>>> speak)? >>>>> >>>>> >>>> Here's what I use: >>>> >>>> >>>> >>>>>>> throwontimeout="true"> >>>> >>>> >>>> >>>> >>>> >>>> Then add ?reinitApp=1 in any url to restart the app >>>> >>>> Will >>>> >>>> >>> >>> >> > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335999 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Trying to understand application.cfc...
You should be able to set that variable in OnApplicationStart() with no problems. In fact, as you said, that's the preferred place to set it. You must have something else going on that's causing the problem. Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Rick Faircloth wrote: > Ok...I worked with application.cfc's for awhile > and things seemed to work fine, but then I had some > issues and went back to old reliable application.cfm. > > Now, however, I'd like to try again to get a grasp on > how to use application.cfc's. > > First question: > > Why can I set the application.website variable like this: > > > > > > > > But not like this: > > > > > > > > ??? > > > OnApplicationStart would seem to be a more logical place > to set a global variable for an entire application than onRequestStart. > > Rick > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336238 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
License question about compiled code between Developer & Enterprise
I've got a quick question that we pretty much already know the answer to, but I wanted to get some verification. If we write our application using the Developer Edition of CF, and compile our app. code using the Developer Edition, then take that compiled code and put it on a licensed production server with CF Enterprise Edition, we're not in any type of license violation, are we? We just want to clarify that we don't actually have to compile the code on a licensed Enterprise CF server in order to deploy to production Enterprise CF servers. -- Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336584 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Check out this... code....
I'm glad you posted this today, I just found this one a few minutes ago: #Year(DateAdd("", 1, Now()))-1# Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Rick Root wrote: > Three fun pieces of code I found today while doing some maintenance on > code I did not write: > > #1 - here's what happens when you use varchar fields for numeric data! > > SELECTSUM(CAST(FLOOR(CAST(OI.ItemQuantity AS float)) AS int) * > round(CAST(OI.ItemPrice AS float),2) * ((100-CAST(OI.ItemDiscount AS > float))/100)) AS TotalOwed > > #2 - I'm not sure what the point of DEcimalFormat() is within a Val() > statement. > > theAmountOwed = > Val(DecimalFormat(GetOwed.TotalOwed))-(Val(DecimalFormat(GetMemberReunionTotal.ChargedTotal))+Val(DecimalFormat(GetPaid.AmountPaid))); > > #3 - DollarFormat(), anyone? > > theAmountOwed = "$" & Trim(NumberFormat(variables.theAmountOwed,".99")); > > Oy! > > ~| 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:336691 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Check out this... code....
Exactly! :) Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Andy Matthews wrote: > You're right. The correct version should be: > > #Year(DateAdd("", 0, Now()))# > > No need for the -1. > > > > andy > > -Original Message- > From: Eric Cobb [mailto:cft...@ecartech.com] > Sent: Tuesday, August 31, 2010 4:13 PM > To: cf-talk > Subject: Re: Check out this... code > > > I'm glad you posted this today, I just found this one a few minutes ago: > > #Year(DateAdd("", 1, Now()))-1# > > > Thanks, > > Eric Cobb > ECAR Technologies, LLC > http://www.ecartech.com > http://www.cfgears.com > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336696 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Using ## vs not using ##
According to Adobe, yes. http://www.adobe.com/devnet/coldfusion/articles/coldfusion_performance_04.html Although, I'm sure it's probably negligible. All they really say is that the extra pound signs "will negatively affect performance". Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Michael Grant wrote: > Ok, i have another one. (In CF7) > > Here's an example of code I'm running into: > > to add here."/> > > I would normally write this as: > > here."/> > > > Other than the fact it's nicer to look at and just makes sense to do it my > way, is there actually any speed increase doing it my way? > > > ~| 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:336729 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Authorization and Security for a web service
Check out these presentations by Simone Free. He's got some really good pointers in them. http://www.simonfree.com/presentations/cfobjective.html http://www.simonfree.com/presentations/cfunited-09---washington-dc.html http://www.simonfree.com/presentations/nashville-cfug.html Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Ian Skinner wrote: > I do enjoy when I get to branch out and do things I've never done before. > > We are getting deep into the planning stage of a new project that will > be a web service to be consumed by an outside agency to integrate their > data systems with ours. > > We will want there to be security and authorization so that our system > has a reasonable assurance that the submitted data only comes from their > system. I'm pretty sure there are several ways to do this, but I have > never done anything like it before. So I'm hoping some of you can point > me to any good information on what we need to think about? How we might > do this. What the process and code might look like to implement. > Information along those lines. > > A couple of ideas that have already been raised. We creating a > public|private key that they use to connect to our server as well as > standard user name|password authentication. > > Thanks > Ian > > > ~| 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:336822 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Sessions persist after server restart.
So, I was working locally on an application today and I needed to restart my CF services. Much to my surprise, after I bounced CF I came back to my application and I was not forced back to the login screen as I would have expected. Rather, all of my session info was still there. I then shut down CF, clicked around in my application to make sure everything was down, then brought CF back up and my session info was still alive in my application. So, I did a little research and came across this (http://livedocs.adobe.com/coldfusion/8/htmldocs/sharedVars_02.html) where it states: /If you use J2EE session management and configure the J2EE server to retain session data between server restarts, ColdFusion retains session variables between server restarts./ Ok, I'm using J2EE sessions, so now I know what's going on. Now, my question is, how do I turn it off? Adobe hints that you can configure the J2EE server to retain session data, but gives no clue as to where or how. All I've found is the checkbox to enable/disable J2EE sessions. Also, is this something that is turned ON or OFF by default? I'm just wondering if I accidentally turned it on, or if it's always been on and I never noticed it. -- Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337238 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Sessions persist after server restart.
No, the J2EE sessions are persisting between server restarts, just like the documentation says. The docs just don't tell how to turn it off. Adobe hints that you can configure the J2EE server to retain session data, which means that you should also be able to configure it NOT to retains sessions, but there's no mention as to where this configuration is or how to change it. Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Cutter (ColdFusion) wrote: > Is it using the CLIENT scope, with vars in the db? Is it storing > things in the COOKIE scope, and checking that scope on login for > previously entered credentials? > > Steve "Cutter" Blades > Adobe Community Professional - ColdFusion > Adobe Certified Professional > Advanced Macromedia ColdFusion MX 7 Developer > > Co-Author of "Learning Ext JS" > http://www.packtpub.com/learning-ext-js/book > _____ > http://blog.cutterscrossing.com > > > On 9/20/2010 1:45 PM, Eric Cobb wrote: > >> So, I was working locally on an application today and I needed to >> restart my CF services. Much to my surprise, after I bounced CF I came >> back to my application and I was not forced back to the login screen as >> I would have expected. Rather, all of my session info was still there. >> I then shut down CF, clicked around in my application to make sure >> everything was down, then brought CF back up and my session info was >> still alive in my application. >> >> So, I did a little research and came across this >> (http://livedocs.adobe.com/coldfusion/8/htmldocs/sharedVars_02.html) >> where it states: >> /If you use J2EE session management and configure the J2EE server to >> retain session data between server restarts, ColdFusion retains session >> variables between server restarts./ >> >> Ok, I'm using J2EE sessions, so now I know what's going on. Now, my >> question is, how do I turn it off? Adobe hints that you can configure >> the J2EE server to retain session data, but gives no clue as to where or >> how. All I've found is the checkbox to enable/disable J2EE sessions. >> >> Also, is this something that is turned ON or OFF by default? I'm just >> wondering if I accidentally turned it on, or if it's always been on and >> I never noticed it. >> >> > > > ~| 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:337333 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: What version-/source control are you using (if any)?
The "Big 3" out there right now are Subversion, Mercurial, and Git. I personally use Subversion and Git, and they're both good. Whatever you do, stay away from Vault/Fortress from Sourcegear. That's what we're forced to use at work. It's labeled as a VSS replacement, and while it is a little bit better than VSS, it's still pretty pathetic and a waste of money. Within 3 days of switching to it, we were already having discussions about getting rid of it. Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Michael Christensen wrote: > We're thinking about setting up version-/source control for our CF code. > > What are people out there using? What works, what doesn't? > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337631 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Beta Testers Wanted - TrafficMunkey - A New CF Framework
You can freely use and redistribute the code, just don't tell anyone where you got it. ;) Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Scott Stroz wrote: > Can software still be 'open source' if you need to agree to a > non-disclosure agreement before downloading it? Seems like a > contradiction there. > > On Mon, Oct 4, 2010 at 5:08 PM, Pete Oliver-Krueger > wrote: > >> Good day, CFers, >> >> I'm looking for beta testers for a new framework. We've been using it with >> MillionMunkeys sites for the past year, but now we want to make it available >> to the entire CF community as a free download, and see if it helps others as >> much as it helps us, plus how the community could make it grow. >> >> The usual question is "Why another framework?" Well, the short answer is >> that we do a lot of prototyping at MillionMunkeys and we needed something >> that facilitated faster edits and was more flexible, but still retained the >> full power of a framework all the way to the end of the product lifecycle. >> I'll stop there, so as not to take up more space on the list. If you want >> to know more, visit: >> >> http://millionmunkeys.net/TrafficMunkey/ >> >> For the more advanced: TrafficMunkey is written using Property-Invocation >> (Pi) Programming, which is like Implicit-Invocation (as in the II of >> Mach-II), but centered around properties instead of events. I would love to >> get feedback on this approach if you're curious about trying out a new >> approach to Object-Oriented programming. Pi Programming is laid out in more >> detail here: >> >> http://millionmunkeys.net/PiMunkey/ >> >> >> Thanks for your time, >> >> Peter Oliver-Krueger >> http://www.millionmunkeys.net/ >> "If you take a million programmers and put them in front of a million >> computers you get ... MillionMunkeys Software!" >> >> >> >> >> >> >> >> >> >> > > ~| 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:337864 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Microsoft rumored to be buying Adobe
It means that .Net developers will now have a much easier way to connect to things like Exchange, Sharepoint, Excel, and Active Directory. :) Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Jeff Gladnick wrote: > http://sanfrancisco.cbslocal.com/2010/10/07/adobe-shares-soar-on-rumor-of-microsoft-bid/ > > What's that mean for Coldfusion!? > > ~| 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:337951 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Microsoft rumored to be buying Adobe
And Flash + Silverlight = Flashlight. :) Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Jeff Gladnick wrote: > http://sanfrancisco.cbslocal.com/2010/10/07/adobe-shares-soar-on-rumor-of-microsoft-bid/ > > What's that mean for Coldfusion!? > > ~| 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:337952 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: ListFunction Question
http://www.cflib.org/udf/ListFix Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Robert Harrison wrote: >> CF ignores things like ,, >> > > Yes, and this is killing me. I'm trying to parse a comma delimited file to > import to a data base, but if a column is blank all the columns following > the ,, blank column get put in the wrong bucket. > > How do I deal with that? > > > Robert B. Harrison > Director of Interactive Services > Austin & Williams > 125 Kennedy Drive, Suite 100 > Hauppauge NY 11788 > P : 631.231.6600 Ext. 119 > F : 631.434.7022 > http://www.austin-williams.com > > Great advertising can't be either/or. It must be &. > > Plug in to our blog: A&W Unplugged > http://www.austin-williams.com/unplugged > > > > > __ Information from ESET Smart Security, version of virus signature > database 5515 (20101008) __ > > The message was checked by ESET Smart Security. > > http://www.eset.com > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338000 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: architecture mismatch
We ran into this just a couple of weeks ago on Win 7 64bit. I had to run this to set up 32bit drivers: c:\windows\sysWOW64\odbcad32.exe. Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com steve ebeling wrote: > new CF8 student. One project used Apache Derby Embedded drivers and all was > well. On the second it called for Microsoft Access drivers and I get this > issue. I am using a Gateway w/ Windows7 Home Premium 64bit sys. I have read > of 32/64bit issues and understand the idea, but would not know how to > implement a change. > 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:338127 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Subversion Software
1998 model Dell Dimension, Pentium III with 750MB RAM and Apache. Works great. :) Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Paul Alkema wrote: > Hey All, > > I'm looking to set up a subversion server and was wondering what types of > subversion servers you all have set up and what software do you use to > manage it? > > > > Paul Alkema > > > > ~| 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:338137 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Looping over Query that's contained in a structure.
You misspelled "lineitems" in your query. The cfdump you showed us has it spelled LINETEMS (missing an "I"). Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Che Vilnonis wrote: > I tried that. I get, "The value of the attribute query, which is currently > q.lineitems, is invalid." > I also tried and query="q[lineItems][resultset]">... No luck with either. > > -Original Message- > From: Leigh [mailto:cfsearch...@yahoo.com] > Sent: Wednesday, October 13, 2010 4:03 PM > To: cf-talk > Subject: Re: Looping over Query that's contained in a structure. > > > > > > > > > > > ~| 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:338147 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Gone Brain dead
>"Any time you have nested hash marks, that's a good sign things aren't right." I like that. I'm going to have to store it in my "quote arsenal". Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Dave Watts wrote: >> I must have gone brain dead. Seem to me like I should be able to set field >> names with a value but it's not working. Know I've done something like this >> before (this is just a sample of function... not the code): >> >> >> >> >> >> >> >> I should get 20 fields, column_1 through column_20 but it's not liking the >> #i# being used to build the column_X fields. >> >> What am I doing wrong? >> > > Any time you have nested hash marks, that's a good sign things aren't > right. Replace > > > > with > > > > or > > > > or > > > > Or consider using an array for your column values. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > http://training.figleaf.com/ > > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on > GSA Schedule, and provides the highest caliber vendor-authorized > instruction at our training centers, online > > ~| 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:338153 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Looping over Query that's contained in a structure.
>Michael, would you believe once upon a time I placed 'top 3' in my local >spelling bee? Out of how many people? 3? ;) Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Che Vilnonis wrote: > Michael, would you believe once upon a time I placed 'top 3' in my local > spelling bee? > Age has not been kind to my spelling and/or typing skills. ;) > > -Original Message- > From: Michael Grant [mailto:mgr...@modus.bz] > Sent: Wednesday, October 13, 2010 9:16 PM > To: cf-talk > Subject: Re: Looping over Query that's contained in a structure. > > > I don't know what's funnier. "Dispise" being intentional or not. > > > On Wed, Oct 13, 2010 at 4:16 PM, Che Vilnonis wrote: > > >> I dispise typos. Sorry to bother everyone. >> > > > > ~| 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:338171 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF 9 / IIS 7 Issues
Control Panel > Programs & Features > Turn Windows Features On or Off > Internet Information Services > Web Management Tools > IIS 6 Management Compatibility > "IIS Metabase and IIS 6 configuration compatibility" needs to be checked. Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Robert Harrison wrote: > Just got a new Windows 7 machine and I'm setting it up as a dev box with > local CF 9. It has IIS 7.5. > > Giving me a 403 error on all CF pages. Apparently CF is not installing the > correct mappings for IIS 7.5 to handle cfm and cfc extensions. Anyone know > of any documentation or fixes on this issue? > > Thanks > > > > Robert B. Harrison > Director of Interactive Services > Austin & Williams > 125 Kennedy Drive, Suite 100 > Hauppauge NY 11788 > P : 631.231.6600 Ext. 119 > F : 631.434.7022 > http://www.austin-williams.com > > Great advertising can't be either/or. It must be &. > > Plug in to our blog: A&W Unplugged > http://www.austin-williams.com/unplugged > > > > __ Information from ESET Smart Security, version of virus signature > database 5543 (20101018) __ > > The message was checked by ESET Smart Security. > > http://www.eset.com > > > ~| 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:338294 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFSTOREDPROC and invalid SQL
This may not be what you're after, but try replacing datetext := to_char(sysdate, '-mm-dd'); with SELECT TO_CHAR(sysdate, '-mm-dd') INTO datetext FROM dual; Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Brent Nicholas wrote: > Hi all, > > So I'm very stuck and tired of saying mean things to my computer... so I hope > you are able to see something I'm missing. > > In short, in order to trouble shoot a larger stored proc call, I've created a > very simple one to get working first. It just returns a value. > > Platforms: Oracle11g / CFMX7 (oracle drivers) / IIS6 > > > The Stored Proc: > > CREATE OR REPLACE PROCEDURE FUNDING."OMGItsMixedCase" (datetext out varchar2 > ) is --AUTHID CURRENT_USER IS > BEGIN -- executable part starts here > > datetext := to_char(sysdate, '-mm-dd'); > > END; > / > > > --- > The CF Code to call it: > > > > > > debug="yes" returncode="yes"> >/> > > > > > The error: (nemisis) > > [Macromedia][Oracle JDBC Driver][Oracle]ORA-00900: invalid SQL statement > > The error occurred in D:\somepath\act_updateProgramFund.cfm: line 50 > 48 : > 49 : debug="yes" returncode="yes"> > 50 : /> > 51 : > 52 : > > SQL { (param 1) = call P3DEVELOPER."date_text"()( (param 2) )} > DATASOURCE oracle1srvr > VENDORERRORCODE 900 > SQLSTATE 42000 > > > What's with the param 1 in front of the call? then another param 2?? > > Thanks for your time and effort, > Brent > > > ~| 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:338793 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
(OT) IIS 7 Wonkiness with BlogCFC and cgi.path_info
I just moved my blog over to a new server (Winders 2008). So far all of it seems to be working correctly, except for one page, and I can't figure out what IIS is doing. I'm hoping someone here has run across this or has enough experience with IIS 7 to tell me where to look. For whatever reason, IIS seems to be ignoring the cgi.path_info for my "about" page and process it as a directory. So, for http://www.cfgears.com/page.cfm/About it's trying to find an About directory and throwing a 404 instead processing page.cfm with "About" as a cgi.path_info. The funny thing is, all of the other pages on the site use this exact same url format without any problems. For example, http://www.cfgears.com/index.cfm/CFML works correctly. The only difference in the 2 urls is that one calls index.cfm and the other calls page.cfm. All index.cfm calls work, and all page.cfm calls break. I know that page.cfm is there, I put in a Hey! at the top of it and you can pull it up in the url (http://www.cfgears.com/page.cfm), but http://www.cfgears.com/page.cfm/About still throws a 404. So, what gives? What is it about this page that IIS doesn't want to process cgi.path_info correctly? -- Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com ~| 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:339494 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: (OT) IIS 7 Wonkiness with BlogCFC and cgi.path_info
Wow. Thanks Russ. That wasn't exactly what was wrong, but you put the solution right in front of me. :) (I guess now would be a good time to mention that this is actually a Railo/Tomcat/IIS install? Oops...forgot that in my original post.) In the Tomcat web.xml file there was a section for servlet mappings. Among the entries there, I found this: GlobalCFMLServlet /index.cfm/* So, I said to myself, "Hey, that looks like it wants to process a cgi.path_info variable. I wonder what happens if I add an entry like that for page.cfm?" Once I did that and bounced Tomcat, it all worked correctly. So, thank you for helping me find the answer. I didn't realize this was a Tomcat issue, I would have sworn up and down that the error I was getting was from IIS. Oh well, seems like I've got some Tomcat/IIS issues to figure out. I'll pester the Railo list of that. :) Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com Russ Michaels wrote: > Sounds like you have a similar problem to this > http://russ.michaels.me.uk/index.cfm?mode=search > > The same solution may fix your CF problem as well. > > Russ > > -Original Message- > From: Scott Stewart [mailto:webmas...@sstwebworks.com] > Sent: 24 November 2010 14:04 > To: cf-talk > Subject: Re: (OT) IIS 7 Wonkiness with BlogCFC and cgi.path_info > > > I think the way that BlogCFC handles seo friendly URls involves > /index.cfm/.. > > You'd have to ask Ray about the details > > On Wed, Nov 24, 2010 at 8:56 AM, Eric Cobb wrote: > >> I just moved my blog over to a new server (Winders 2008). So far all >> of it seems to be working correctly, except for one page, and I can't >> figure out what IIS is doing. I'm hoping someone here has run across >> this or has enough experience with IIS 7 to tell me where to look. >> >> For whatever reason, IIS seems to be ignoring the cgi.path_info for my >> "about" page and process it as a directory. So, for >> http://www.cfgears.com/page.cfm/About it's trying to find an About >> directory and throwing a 404 instead processing page.cfm with "About" >> as a cgi.path_info. The funny thing is, all of the other pages on the >> site use this exact same url format without any problems. For >> example, http://www.cfgears.com/index.cfm/CFML works correctly. >> >> The only difference in the 2 urls is that one calls index.cfm and the >> other calls page.cfm. All index.cfm calls work, and all page.cfm >> calls break. I know that page.cfm is there, I put in a Hey! at >> the top of it and you can pull it up in the url >> (http://www.cfgears.com/page.cfm), but >> http://www.cfgears.com/page.cfm/About still throws a 404. >> >> So, what gives? What is it about this page that IIS doesn't want to >> process cgi.path_info correctly? >> >> -- >> >> Thanks, >> >> Eric Cobb >> ECAR Technologies, LLC >> http://www.ecartech.com >> http://www.cfgears.com >> >> >> >> >> > > > > ~| 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:339501 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Beta Tester Wanted for new CF (MVC) Framework
Open Source Code = 100% Configurable. :) Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com On 1/4/2011 1:44 PM, Andrew Scott wrote: > You are promoting a security risk with the uploaded files folder as being > under the webroot, I hope this is configurable. > > Regards, > Andrew Scott > http://www.andyscott.id.au/ > > >> -Original Message- >> From: Steve Bryant [mailto:st...@bryantwebconsulting.com] >> Sent: Wednesday, 5 January 2011 3:28 AM >> To: cf-talk >> Subject: Beta Tester Wanted for new CF (MVC) Framework >> >> >> Hello fellow CFers, >> >> I just released a beta of a new ColdFusion framework called Neptune and I >> would love to get some beta testers to help me find bugs or make >> suggestions on how it could be improved. We have been using it internally >> for a few years on several projects, so I am curious to see if it works as > well >> for others as it has for us. >> >> I think it is quite a bit unlike any other ColdFusion framework out there. > It >> isn't hub-and-spoke (where all requests are routed through index.cfm, for >> example). It doesn't require OO. It does, however, provide pretty > significant >> automation and allow for very concise (but still expressive) code. >> >> It is free and open source for any use. >> >> Documentation (currently 36 web pages, 43 printed pages): >> http://www.bryantwebconsulting.com/docs/neptune/ >> >> Download: >> http://neptune.riaforge.org/ >> >> Blog Entry: >> http://www.bryantwebconsulting.com/blog/index.cfm/2011/1/3/Neptune- >> New-Framework-for-the-New-Year >> >> Any feedback would be greatly appreciated. >> >> Thanks, >> >> Steve >> > > ~| 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:340411 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm