Interested in programming in the ColdFusion language?

Setting up a ColdFusion development environment on your local computer is easy! Just follow these simple steps. This small walkthrough will enable you to develop and execute ColdFusion web applications on your Windows PC. This software is not intended for commercial use — for that, you’ll need a licensed copy.

1. Download ColdFusion Developer Edition (for free!)

You may need to sign into your Adobe.com account (or create one if you haven’t got one yet) in order to download the Developer Edition of the ColdFusion server.

Download ColdFusion Developer Edition from Adobe.com.

2. Installation Options

After downloading the software, begin installation. For all installation screens you should select all default options except in the screens shown in the images below. These settings will allow you to have the ColdFusion app server run on your computer locally.

Screen 1: Skip Product Key by selecting “Developer Edition”

Screen 2: Select “Server configuration”

Step 3:Select “Built-in web server” (This one is really important!)

3. Finish Installation

Once ColdFusion is finished, it will launch the completion script in your web browser and finish the installation. After that is complete, you will be taken to the ColdFusion Administrator screen, which will allow you to change all of your ColdFusion server settings and looks like this:

In the future you may need to change ColdFusion settings on your computer. This is the panel you will use to make those changes.

If you installed ColdFusion correctly, clicking here will take you to your ColdFusion Administrator.

Happy programming!

Tagged with:
 

Every year during the second week of July our family has a reunion in Michigan, USA. I’ll be gone for three days but I’ll have the laptop and wireless. While it’s unlikely there will be a blog post during that time it’s possible! (who can stay away from blogging when it’s so addictive, huh? Didn’t think so!).

In the mean time I’ve been given (along with the rest of the programmers around the world) a new nugget to chew on and that is Yahoo! BOSS. In a nutshell, their new API will allow you to retrieve their search results and practically let you do anything you want with them. Re-order them, put ads next to them and generate revenue, mix them with your own results, you name it. It’s really intriguing and it’s definitely ballsy.

I’ve been thinking about Yahoo!’s potential return on this investment… Why would they give away the one thing that’s made them who they are? Well first, by taking the lead they are doing a few things such as increasing their standing with developers around the world as a partner to have and to stick with, they might also be looking for Google to follow suit or come up with a comparable system (gotta love competition), and finally they might also be looking for startups and unique talent to pluck from when all us developers start really using this thing in unique and interesting ways.

Just think: Yahoo! has basically said “Here’s our search results. Show us what you think you can do with them.”

Pretty cool!!

Tagged with:
 

DemoCampGuelph6 was a lot of fun!

I got back from the 6th Guelph DemoCamp around 9:00pm last night. Free beer, free food, a group of 50 or more programmers, and one block away from my apartment. Guelph rules :)

If you live in the Guelph area and you’re interested in going to the next one, there will be another DemoCamp on the 17th of September 2008. You should be there. Presenting stuff is easy: You get 5 minutes to set up, 5 minutes to talk, and 5 minutes to answer questions from the crowd. If you just want to come listen and mingle that’s cool, too.

I presented Jack of All Links to the crowd and it went really well. There were a couple of guys from WeGoWeGo, which is a startup that’s gearing up in Toronto as well as a few other people presenting technology or software they wrote. I really enjoyed it.

I was really surprised at the size of the crowd! I figured there might be at maximum 10 people (I mean, how many programmers *are* there around here anyway) but there were over 50. Exciting!

Tagged with:
 

Firefox 3 First Impressions

I downloaded Firefox 3 today. Just like a gazillion other people. It’s launch day and Mozilla wants to enter the record-books for number of downloads for a software product in one day. Supposedly there is no previous record so basically once the first download finished they were the winners :) Anyway, it was good to drum up some interest in alternative browsers!

The first thing I noticed was how responsive everything was. I’m a web developer — I get used to how long it takes for menus to load and things to happen after I click. I started using Firefox 3 and I have to say they have really raised the bar for browser speed. It used to be that only Opera was this fast. Great work!

Secondly, the “Awesome Bar“: I love it. Looks great, works great. It’s similar to Google Desktop’s search field in that you just type a few keywords of what you’re looking for and it’ll show you any sites that you’ve been to that match those keywords. Handy. We are definitely moving away from people actually knowing the domain your business is at. We know we’ve reached the turning point when browsers stop including an address bar entirely or when businesses owners don’t even know their own domain names :)

Finally, a new feature has been added on my Bookmark Toolbar that contains the top 10 most visited websites. This could be good or bad depending on your browsing habits ;) . For me it’s really handy. Gmail is in there, Dzone, Digg, Synnema. Awesome.

I have to say I’m really impressed. The difference between Firefox 1 and 2 really didn’t hit me much but the difference between 2 and 3 is monumental. You really have to use it yourself to feel the difference in speed.

If you’re reading this post on June 17th, 2008, then head over to Firefox.com and help raise the number of downloads today by 1!

This is really handy for those of us who have the same code handling multiple sites or multiple sub-domains.

A case in point: When I coded NetBoardz (my free forum hosting service now defunct), I had one codebase handling all 250 forums. How? Simple. When the code runs, it determines which site the user is loading and does different things (like using different databases) dynamically.

How to determine the domain the user is using to view your site:

$domain = $_SERVER['HTTP_HOST'];
if ($domain == "xyz") {
...
} else if ($domain == "uvw") {
...
}

In the example above you can see that we have put the domain that the user has used to view your site into the $domain variable, loading the value from the PHP global variable, $_SERVER. The $_SERVER variable is global, which means you can access it anytime and anywhere in your code.

For more information on PHP’s predefined global variables to see what’s available to you, click here.

How to determine the sub-domain the user is using to view your site:

Sample code is from NetBoardz, which is based off of phpBB 2:

$subdomain = strpos($_SERVER['HTTP_HOST'], ".");
$subdomain = substr($_SERVER['HTTP_HOST'], 0, $subdomain);
$dbname = "nb_".$subdomain;
mysql_select_db($dbname, $sql_link);

Here you can see that we retreived the whole hostname, including the top-level domain and subdomain, then used the PHP functions strpos and substr to take anything before the first dot. For example, the whole hostname “testforum.netboardz.com” passed through this code would end up as “testforum”.

After, we use that subdomain name to calculate which forum database to load. Of course, once you have the domain or subdomain in a variable, you are able to handle your code as you wish!

I hope this small tid-bit of code helps you out in some way. I know that there are tons of these snippets and tips littered across the internet and while I was learning PHP they were really handy. I’ll post more over time, always in this same category.