Tags:
ColdFusion 8, ColdFusion 9, Coldbox
A few years ago I wrote a small component for ColdBox that actually allowed me to modify the Application settings, specifically the ORM settings and cfclocation. There was nothing special to this component and I had it working for sometime, that was until I moved ColdBox away from the root of the application and used per application mappings instead.
Which is when I discovered something very interesting with Application.cfc and the constructor.
Tags:
ColdFusion 9, Coldbox
Recently I needed the ability to set response headers in script, previously I had just used the layout to use the tag version. Now although it isn't anything new and we have been able to do this in ColdFusion since the days ColdFusion was written in Java, if not earlier, I thought I would share what I was trying to achieve and provide a better insight to the possibilities.
Tags:
General, Coldfusion, ColdFusion 9, Hibernate, Database, CFORM
I have been meaning to write this up for some time now, and haven't had the time to do so. One of the things that I found when learning CF-ORM for the first time, was it was very over whelming to say the least and a lot of questions would come from trying to use it.
Now 2 years down the track and I can say that there are times to use it and times not to use it, and it all boils down to whether you want the application to be scalable or you just don't care, because you know the amount of traffic will never get that high to matter.
Either way I want to touch on some things that I did discover, where I quickly changed my thinking as I went along.
Tags:
General, Coldfusion, ColdFusion 9, Database
In my previous blog on this I made it very simple where all the data was a duplicate, someone pinged me and asked well that is well and good. But what if there is duplicate records, with only partial duplicate records.
Tags:
General, Coldfusion, ColdFusion 9, Database
A little while ago I had read an interesting blog about deleting duplicate records by Kumar Shah, now he used CTE to do his magic or Common Table Expressions, but failed to understand or deliver the real magic. As you can see by the comments on his blog, others don't seem to fully understand this magic either.
The other thing to point out before I go into depth, I started using CTE's a lot more and the OVER PARTITION and have to say it is really a great thing that has been added to MS SQL 2005.
So why is so great?
Tags:
Coldfusion, ColdFusion 8, ColdFusion 9, Coldbox
I was asked the other day for some examples on using resource bundles inside ColdBox, and even though it is rather easy to use and setup, I thought I would do a very quick post on how easy it is.
Tags:
Coldfusion, ColdFusion 8, ColdFusion 9, Coldbox
As this question comes up a lot, I thought I would blog about this some more. ColdBox is brilliant when it comes to doing things by convention, and minimising our work, and emails is no different. However one of the main problems that comes up a lot is how to send emails to developers, rather than to the real recipient of the email while in development.
Tags:
General, Ajax, extJS, Dojo, ColdFusion 8, Coldfusion, Flex, ColdFusion 9, jQuery, Air, Javascript
I want to touch on a subject that I know that not many people actually take into consideration, and that is how to deal with errors and other problems on the server when being called by a remote client call.
I am going to state that I am defining any call made as either a web service, remote procedure call, rest calls that is either from a client like a JavaScript call or even Flash, Flex or anything else.
So how do we handle them, should we report them to the caller or should we just log the call somehow on the server.
Tags:
Coldfusion, ColdFusion 9, CFORM
Well I have spent a good 2 days trying to work this problem out, to only find that this is not a problem with code that I am writing. It turns out that this applies to both legacy and new databases, and for the life of me I can not understand why this is a problem in ColdFusion itself.
Tags:
Coldfusion, ColdFusion 9
I have been meaning to blog about this for awhile now, and thought that now is as good as time as any.
While having a conversation with another developer I had noticed that he had been using ColdFusion 9, and that he had some components that were still tag based, especially when dealing with cfqueries. He would switch between cfscript and tag based code only when he was doing any form of queries against the database.
And when I asked about why he might no be using another method he wasn't aware that you could do this, and I thought it would be a great idea to let others know about it.
However this is also one small pitfall that has and keeps tripping me up.
Tags:
ColdFusion 9, ColdFusion Builder, CFORM
The number one feature on my list, and I am sure that so many others would have to agree. In my last blog post I outlined how much time was wasted in trying to get something that might seem very basic to some, but it has highlighted the need for it anyway.
Tags:
ColdFusion 9, CFORM
The last week I had been working with another friend of mine trying to map some ORM to an existing database, after awhile we started discovering something very weird. Understanding HQL at the best of times is not easy as it really doesn't work how you think it does, especially when you are trying to come to grips with how it works.
Anyway the problem that manifested itself was with an older database, that had composite keys in the actual tables. Never having used it like this before I thought to myself that it should be that hard, and boy was I wrong with that assumption. I thought had relationships down pat, and this has certainly shown me that the is sometimes a curve ball thrown our way that will really make us think
Tags:
General, ColdFusion 9, CFORM
So today I was writing a very quick and dirty maintenance program, and came across something that has stumped me for any sort of answer. Now there isn't anything special about the code and that is why it has me stumped.
Tags:
General, Coldfusion, ColdFusion 8, ColdFusion 9
In the early nineties I had just come back from overseas, working for a games company called Probe Software, and upon returning I was looking for a new direction in life. I had an itch in Computer Aided Art and Design at that stage, and looked for a course that would offer some formal training in this area. The course was more about Graphic Design than it was about CGI as we know it, however I did as much of the course as I could before the money ran out and deferred the course.
After getting a job in the Graphic Design and Print industry for a small while, I had the opportunity to get some exposure to database driven applications at that time, developing in perl and postgress or was it informix databases on a unix system. The job was actually a newly created position for me, as I wasn't and still don't consider myself a Graphic Designer at any stretch. And the role would have included a new project that the company was working on at the time, the project was also very new and nothing like it was even on the market at that time.
Tags:
General, ColdFusion 9, ColdFusion Builder
Well it might not be, however I will say that I downloaded this and got everything setup with ease, more on that a bit later on. The one thing that I will have to note though, is how much faster this version is, and when running the 64bit version it is a bit of heaven.
Tags:
Coldfusion, ColdFusion 9, ColdFusion Builder
Well technically it hasn't killed it, but I have had to remove the hotfix, due to it causing more issues than it was suppose to fix. After reading more about the hotfix that was recently released, I decided that it doesn't effect me and I won't be needing it at this point in time.
Tags:
Coldfusion, ColdFusion 9
I wanted to write up a quick post on this because I think a lot of people might not know this, and at the moment I haven't looked into a solution to this.
If you haven't read this post http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-how-to-log-sql/, that explains how to enable the logging then I suggest you read it for further information.
I would also like to point out that I am not even sure this behaviour is the same on other platforms, but on windows the log file is not created where you think it might be created.
Tags:
General, Coldfusion, ColdFusion 9, Coldbox
I have been looking into a problem that I have just started noticing, and when I looked into it further I was shocked to find that under a good load on the website I was starting to get the following error.
java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372) at java.util.AbstractList$Itr.next(AbstractList.java:343)
And is related to this post I made a few days ago.
http://www.andyscott.id.au/2011/4/15/ColdBox-and-automatically-loading-interceptors-for-modules-within-your-application
The question that I have is what or how is this actually happening.
Tags:
General, Coldfusion, ColdFusion 9, CFORM
I discovered something very interesting the past week, that actually has me scratching my head. I had my host provider move my website over to a ColdFusion 9.01 server, so that I could use some of the new ORM features that are only available in that version.
However the hosting provider would fix the site and get it working, and then when the server was restarted, my website would no longer work again.
Then between the host and myself we have discovered an interesting problem.
Tags:
General, ColdFusion 8, Coldfusion, ColdFusion 9
One of the things that really annoys me the most when browsing a site that detects that you are on a mobile device, is the fact that most ColdFusion sites I have visited that do this, are using cflocation to redirect you to the mobile version.
The problem here is that when you browse the site in your mobile device, the first url is loaded and then redirected to a second URL. When you then try to use the back button you will end up in an endless loop here, and don't get me wrong here if you are quick enough on your mobile device to continuously hit the back button you might be luck enough to break out of the redirection loop.
If your application is using a cflocation to redirect the user, then you can be almost certain that the user will get annoyed with the site. My suggestion if you want to make your users happy to browse your mobile version, to avoid using cflocation for mobile devices.
Tags:
ColdFusion 8, Coldfusion, ColdFusion 9, Coldbox
In the last few years I have been working on a fairly largish project in my spare time, and I was getting a little tired of registering all my interceptors in the configuration each and every time. I thought to myself that there had to be a better way than this.
After thinking about this for a long time I came up with the following solution.
Tags:
Coldfusion, ColdFusion 9, Coldbox
Today I wanted to give a very quick post on interceptors, and how you might leverage them in a real world example.
Tags:
Coldfusion, ColdFusion 9, Coldbox
This is nothing new to ColdBox 3.0 and has been in the framework for a few versions now, but I wanted to show how you can have the same application for both Development, staging, testing and production without changing any configurations. Well at least not once it has been setup anyway.
Tags:
ColdFusion 9, CFORM, Coldbox
I was curious on how to go about doing something like this in ColdFusion ORM, and how hard it would be to accomplish. The problem wasn't as hard as I thought it might be, in fact once you get around the concept of how Nested Sets work. It was fairly painless putting it together.
Tags:
ColdFusion 9
After reading about the following blog http://blog.kukiel.net/2011/03/coldfusion-901-installer.html , I wanted to elaborate on this some more from my experiences as well.
I tweeted about this ever since the ColdFusion 9.01 update was released, and even sent the tweet directly to the product manager as well.
Apart from the fact that it takes extra time to install both, there is also the added complexity on how you do go about this installation as well.
Tags:
ColdFusion 9, CFORM
After seeing a question on the cf-orm developers mailing list, I thought I would investigate the problem a little further. It turns out that something so basic has not been implemented correctly, or ColdFusion has made it a bit harder than one should need to think about the problem.
I only have one work around for this which I have added at the end of this post.
Tags:
Coldfusion, ColdFusion 9
I am going to have to say that I am going to have to agree with Ben Forta on one issue, anything that can make cfscript be more productive to us as a developer is always a good move.
However writing ActionScript would be disastrous to ColdFusion in ways that people are not willing to think about.
Tags:
Coldfusion, ColdFusion 8, ColdFusion 9, ColdFusion Builder
It is no secret that Adobe has been hard a t work trying to get ColdFusion Builder 1.0, in as many hands as possible. By bundling it with Flash Builder and the Enterprise version of ColdFusion 9.0, to even giving away a lot of copies to push the product out there into the market.
But I feel that Adobe hasn't done enough in the right places, to make those that already have either purchased the product or given a free copy, have any confidence in the product to date.
Tags:
ColdFusion 8, Coldfusion, ColdFusion 9
In the last few months I have been slowly migrating our Application over to ColdFusion 9, I already knew some of the sort comings but some of them well caught me off guard.
The number one thing I have learned was that with any version, you should always scope your variables. Don't think for a moment that if you take the shortcut of not putting variables in front of your variable that it will work either. ColdFusion 9 introduced a new scope called local, that just seemed to cause some very weird issues with us.
Tags:
extJS, ColdFusion 8, Coldfusion, Ajax, ColdFusion 9
A little while ago I posted about this problem and after digging into it further, found here ColdFusion and debugging ColdFusion 9 Ajax calls with the line debugger. Since then I have done a bit more digging around and found that for some reason in ColdFusion 9 there is an extra URL paramter being passed via the AjaxProxy.
Tags:
ColdFusion 9, Debugging
I live an breath the line debugger and it really annoys me each time I have problems with this feature, and the latest problems I was having turns out to be something that has changed between ColdFusion 8 and ColdFusion 9 and I would really question Adobe why they do this.
Tags:
General, ColdFusion 8, Coldfusion, Flex, ColdFusion 9, Coldbox
It seems that somewhere some how someone quoted in the ColdFusion world, what a Value Object actually is by their definition. Since then the term has taken of in the Flex world like wild fire, and yet every time I ask these people what they think a Value Object is, they actually get it so wrong that it is not funny.
Nine times out of ten when these people are asked their answer are actually describing what we call Transfer Objects, and yet how does something like this exist and yet be so far wrong in the Flex world?
Tags:
Coldfusion, ColdFusion 8, ColdFusion 9
I saw a tweet this morning about ColdFusion and getFreeSpace() and what surprised me was the responses from people about this tweet, I am of the believer that one doesn't need to keep introducing features into ColdFusion when it is not needed.
And from what I can tell this is something that people are seeming like wanting, and I don't know why.
Tags:
General, ColdFusion 8, Coldfusion, Flash, ColdFusion 9, Flex, Microsoft, ColdFusion Builder, jQuery, Java, Javascript, extJS, Dojo, Railo, Coldbox, Eclipse
Today we had an interesting discussion on this very subject, now we already have one in place. Yet we have varying opinions on why we should do something, but nothing really concrete as the real truth as to why it should be this or that way. I personally have grown to love the fact that the beginning of a block is on the same line as the method, component class or loops etc. My logic behind this is that it is neater, doesn't clutter the workspace and fairly easy to read.
However my logic just doesn't end there.
Tags:
ColdFusion 8, Coldfusion, Ajax, Ajax UI, ColdFusion 9
Although I have used the freely downloadable core version of ExtJS for the example, one can certainly use and leverage of the existing ExtJS that is bundled with ColdFusion to do this as well.
On a project that I am currently working on I have the desire to use as much ajax as possible for this project, the reason being is that I personally hate to refresh an entire page just to make small changes to a page.
I have been working on this project for a few years and yes, my current blog is actually running a very early version of this application. In my design I want to turn a normal form into an Ajax form and not have to have the look and feel that comes with using the ExtJS widgets form.
This is actually easier than I thought it was.
Tags:
ColdFusion 8, Coldfusion, Ajax UI, ColdFusion 9
I wanted to write about this because I read on another blog how he does it, and I am really surprised about it because it isn't the right way to do it.
I did try to contact the author as you can't post to his blog, nor can you contact him via is website. So I thought it would be best to explain why he is wrong here.
Tags:
ColdFusion 8, Coldfusion, ColdFusion 9
A user asked the question on a mailing list today on how would you go about changing the colour of a grid row, if the date is less than 2 weeks away.
Seeing as this is something that is not really mentioned much anywhere, I thought I would write a quick blog to show how.
Tags:
General, Coldfusion, ColdFusion 9, CFORM, Coldbox
Most people would not even know this as being a problem, and it is a problem that I seriously can't believe ColdFusion doesn't do. Anyway this is a problem that one has to be aware of, and take into consideration when designing, migrating and mixing applications.
So why is this a problem?
Tags:
ColdFusion 8, Coldfusion, ColdFusion 9
I wanted to quickly talk about a problem I ran into with installing ColdFusion 8, as a new instance running under ColdFusion 9 as the underlying application install and using the JRun connector to connect this to an IIS website.
More Entries