This is a tutorial to build a simple calculator for your web pages. You should get it pretty easily as you browse through the code.
I had no work one day due to a worm attack on our servers, thus a plot to plot a line on a graph was hatched in my empty mind. These files show you,
how to plot a line using no database, no java, no long wait times for aplet loading, just 3 tools, Loop, table and text.
This is a small application that shows you how to create an MP3 streaming server.
The principle of this tutorial is similar to "Dynamic time and date for your pages" tutorial.
Except that this one generates messages, and that one updated time.
Read on, you will get the hang of it....
I like using HomeSite+ for windows, and I am getting used to Dreamweaver Mx. But I still need something just as good for Linux. For some reason, I couldnt get "wine and Dreamweaver Mx" to work. So I "Googled" a bit and stumbled upon Eclipse and cfEclipse. Here is how to set it up.
This is not a tutorial as such, more like an application that you can put in a directory.
It could boring if you use the CF editor, to pick "cfform" fill its attributes, then pick "cfinputs" one by one. fill out those attributes... one by one, then change tabs and pick the "submit" button... so on and so forth. Even if you code in a note pad, it might get lengthy to code individual element.
Wouldn't it be nicer to code all these elements at once, then just copy the code and paste it in your editor?
RANDOM PASSWORD GENERATOR SCRIPT !
I know there is a random password tutorial here already. This is just another way to do the same. I think this is a little easier to understand.
Refresh it to generate a new password string everytime !
I have posted a "Basic Calculator" tutorial here. That was more like a representation of how you would calculate with a paper and a pencil. You provide INPUT A then a MATHEMATICAL OPERATION like a "+" or a "-" and then an INPUT B. This is more a represntation of how you would use a regular hand-held calculator complete with buttons for NUMBERS, OPERATIONS and CLEAR TEXT.
Sometimes, you want to be able to change the color of something on your page. Be it one item, or every item on the page. Using this simple color picker, you can create admin areas that can allow you or your visitors to pick their own colors and the value is automatically inserted into a text field.
Not all queries can be saved as an application variable. For Queries that do not meet the checkpoints in my previous tutorial there is another way to improve performance. Query Caching is another way to save data and eliminate unnecessary queries. This is for queries that are more dynamic in nature.
One thing I am always trying to do is speed up my applications. As my site grows in size and complexity I find that I spend a fair amount of time re-coding pages because of a new technique I just learned. I wish I had learned about these techniques long before, and thereby allowing me to create more effective code. In this tutorial I'll try to explain some problem areas that I have identified, and some of the things you can do to improve performance.
I have seen a couple random image scripts here and there.
Most require you to have a list of the images stored in a database somewhere or actually a switch statement with all the images listed there...
This code will read a directory, pull all jpg's and choose a random one everytime to be displayed.
Alot of my clients have wanted random images. THis is the easiest way I came up with to do it. This way when they want another image in the rotation... all you have to do is upload it to the image directory and its ready to go.
This is a custom tag I wrote that generates a random string at the set number of characters using the characters you decide on
Uppercase, lowercase, mixed case...
It will create a variable that you name as you wish and call however you'd like.
It is a small example of how to create a custom tag and will hopefully send someone in the right direction. It is also fully functional and has come in handy quite a few times. Enjoy and as always.. Have Fun!
I have seen quite a few people looking for prebuilt calendar apps but the people I wrote this for are the people who wanted a headstart in building their OWN custom calendar app.
It is very basic and does nothing more than display the currently selected month/year's calendar and give links to the PREVIOUS the NEXT month's calendars by using The DateAdd() function. Basically the backbone of any calendar app.
Enjoy. and as Always.. HAVE FUN!
By using an array you can create a timetable that lists your classes by the hour for a day. By adding a database you can make the timetable dynamic.
Get the search engines to really dig deep into your site by replacing the ? and & in your dynamic URL's with /. Tricks the SE bot into thinking it's a regular folder and eats up your content!
I use this code to switch from one language to another on my site.
Boolean values are excellent ways to save on precious coding time when you are using a boatload of IF statements in an application.
Having only 2 possible states allows you to kind of cheat on creating your IF statements and minimize redundancy.
The Tutorial is reagarding the checking of the multiple email addresses. This is a server side coding using the ReFind and the Replace Functions.
Why you need the files, why can't I use database, well for Simplicity, Efficiency, and Customization only choice is Traditional Files.
You need them when you want to store the click values that the number of user visited your sites and read them.
A better way to search full text than Verity for developers using SQL Server 2000 as there back-end database.
Ever wanted to do something a little more than what ColdFusion was capable of doing? Kind of a broad question right? What about scan files for viruses? Spell check form fields? Create websites in IIS? Apache? You can pretty much do whatever you want "in" ColdFusion!!!! Well that is not exactly true, but you can use ColdFusion to get your OS (operating system) to do whatever you want.
This tutorial will allow you to enable sitewide error handling with CFERROR. Look like a real professional and display your own custom error page when an error has occurred, instead of the default Cold Fusion page. Not only that, once the error page has been displayed, the details of the error will be automatically emailed to you.
This article describes how I use a cfswitch statement to make deployment fast, customizable, and easy.
You can use these simple loops in place of many lines of code to clear out or delete session variables