From time to time, someone posts a message to this list asking if he
can distribute a CF application on a CD and run it independently of
any connection to the web.
The answer is always: "No, you can't!"
Sometimes, the replier posts the reasons, you cant:
you would need a CF application server program
you would need a web server program
you would probably need a database program
you would need the requisite OS platform for all of the above
All of these things would need to be purchased/licensed and installed
on the user's machine before he could run your CF app from the CD.
That usually settles the question for a while... until the next time
it pops up.
Each time I see these posts, I nod my head yes, thinking that a
standalone CF capability would be really nice. Then I wistfully
remember the reasons you can't do it, and move on.
This always disturbs me a little, and leaves me with a feeling of
being vaguely unsatisfied, unfulfilled (if you will) by the reasons.
Stay with me here, I pull it all together in the final reel!
---------------
Related topic 1
---------------
Today I was playing with Hal Helm's QuerySim tag. It is a simple cf
tag that allows you to write a cf program that interacts with a
simple text file to simulate a database.
Great for prototyping or testing an app before the db is defined and
populated.
---------------
Related Topic 2
---------------
A few days ago, I was trying to populate a database with data that my
client received on a CD. The data was in the form of an excel
spreadsheet.
On my desktop (a Mac, yet) I created an empty MS Access db and linked
the spreadsheet to it. I Uploaded both the mdb and the xls files,
"the database", and wrote a simple cf program to populate the real
SQL server database from the excel data.
---------------
Related Topic 3
---------------
A couple of years ago (in the CF 3.0 era) there was a company... I
don't remember their name. They had 2 products that interested me.
Their bread and butter product was a Java development/runtime environment.
The second produce, a freebee, was probably meant as a
demonstration/teaser to sell the first.
The name of this second product was CFAnywhere... it was a standalone
CF interpreter/application server.
It wasn't a 100% implementation, but that wasn't the issue...
What was important to me was that I could run (potentially) cf apps
natively on my desktop... whether it was Mac OS, windows or 'Nix.
I downloaded this program and played around with it... It actually
performed quite well. The cf functions that were implemented,
performed about as expected.
A new version was planned shortly, so I signed up for their mailing list.
Well, the new version was never released, then they discontinued the
download of the current version.
A couple of weeks later, the company was purchased by a larger
company... allaire.
The CFAnywhere product was discontinued. I thought, at the time that
allaire just bought the company to kill the product... in reality,
they were after the Java product/expertise.
--------------
The Final Reel
--------------
Back to the question: "Can I distribute a CF application on a CD and
run it independently of any connection to the web?"
Instead of: "No, You can't, and here's why".
How about: "How could this be done?".
It might not be too difficult technically.
What if Hal Helm's QuerySim tag were expanded so that it could manipulate
1. excel spreadsheets
and/or
2. XML Documents (text with XML tags)
3. One of the free Java-based XML databases
4. A CF-based simulation of an XML database such as the one from torchbox
Bam! We have a standalone CF database capability... no install or
license fee and it accepts data in commonly available (or soon to be)
formats.
The CFAnywhere code, that I had in my sweaty little hands, proved
that you don't really need a full CF application server and a web
server to run CF code.
What if we were able to convince MM to create a standalone product
that could execute CF code and interact with our standalone database
solution.
It certainly is doable from a technical standpoint.
Kind of a Mega-browser-plugin (like Flash).
But, how can MM (and whoever else does the work) make a profit?
I can think of several creative ways that such a product could be
sold, and be a real cash cow.
But that's for another time... I want to explore what the product could do:
Think of the killer apps you could develop!
All of those CDs you get when you buy a computer... the
encyclopedias, the cookbooks, etc.
All of these could easily be written in CF and run as standalone
apps.... hey data-driven static content. But, not really static!.
Next years encyclopedia data can be downloaded from the web, stored
on disk and manipulated (along with the data on the CD). These
CDs/apps are never out of date.
What about a big catalog house like Victoria's Secret... they could
mail out a standalone version of their web site on CD... and reach
those customers that aren't connected to the web.
Kiosks!!!!
What about developing web apps that interface with a standalone
desktop component? This could be preparing your taxes, creating a
picture album, ordering from a catalog... almost any type of data
entry. You work efficiently offline. Then when done, you click a
button, are connected to the web, and you cfhttp post your local data
to the web app.
How about this? Your desktop CF app would, by definition, be able to
access local files. The app could interface a web app and securely
interchange data in ways that are not currently practical (or
possible)
That familiar excel worksheet (or delimited text file) is now
freely-accessible fodder for any desktop CF app.... lot's of
possibilities here!
What about a desktop presentation using a CF app to tailor the data
to any ad hoc requests... "Oh, you want to see this chart summarized
by date?"... click... let's see that graphically...click!
I don't know if this will help the cause.
I would certainly like to see a CF standalone... a CFAnywhere...
.. no, a CFEverywhere!
It probably could be done more easily with ASP, but I prefer CF for
all the obvious
I think there is great potential, here?
Comments?
Dick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists