Sunday, August 16, 2009

GoDaddy Domain and Hosting Transfer

I'm blogging about this as a warning to others. The scenario:

You have a client who is dissatisfied with their current web developer and wants you to take control of their domain, update their site and provide hosting for them. Lucky for them, their current developer has everything hosted at GoDaddy and you happen to have a hosting account at GoDaddy as well. As the techs will tell you on the phone or over email, "it's a very simple procedure and your customer will not experience any interruption of service". This is only partially true.

Now, the first thing you should do as a developer who isn't a shyster, always register your client's domains in their name. Make yourself any of the other contacts so that you can make changes as needed, but for the good of everyone, register the domain in their name. The client in question was new to the web and trusted his former developer to do the right thing and allowed them to register everything in the developer's name. Now that we want to transfer control, the developer decided to be difficult. No worries, the Hebrew Hammer never takes no for an answer and so began the "Domain Dispute" process with GoDaddy.

Step 1: Email 'domaindisputes@godaddy.com' - this gets the ball rolling.

Step 2: They will email you back and ask you to fill out a form on their website. In my case, the information I was entering did not match the whois info for the domain and no combination of what the whois information *should* have been worked. This required an email to domains@godaddy.com explaining to them the error I was getting when trying to complete the form. They replied back and gave me the option of sending them some form of ID that identified me as a legal representative of the "rightful owner" of the domain. This was done so in the form of my client's fictitious name registration with the state of Florida. Two days later I was in control of the domain.

Transfer of the domain, dns and email internally with GoDaddy was a breeze. No interruption of email to my client whatsoever, but the process of getting their hosting set up again has been an issue. The problem with GoDaddy is thus; if someone else (regardless of whether or not they control the domain) has the domain you want to host in THEIR hosting account manager, you *cannot* add it to YOUR hosting until they delete it. Well, we've already established that the previous developer was a scum-bag, so good luck getting them to delete the domain in a timely manner. Enter...

Step 3: Establish a 'Cease and Desist Order' through GoDaddy. If you've gone through the whole domain transfer process and the individual formerly in control of hosting (through GoDaddy) won't remove the domain, you can ask GoDaddy to initiate a "Cease and Desist Order" which basically gives the former controlling party 72 hours to comply with the order before GoDaddy forces the deletion of the domain from THEIR hosting account which will then allow YOU to add it to yours. I URGE YOU TO START THIS PROCESS AS SOON AS YOU CAN TO MINIMIZE DOWNTIME OF YOUR CLIENT'S WEBSITE.

The 72 hours has come and gone and because of a "backup in the processing queue" at GoDaddy, I still can't add my client's domain to my hosting account. From the time GoDaddy released the domain to me my client's site has resolved to the GoDaddy parked page. This is good in the sense that at least the former developer can't forward users to obscene content, but at the same time my client's site has been down for over 4 days.

This post serves as a warning to others that GoDaddy has a few kinks to work out in their hosting transfer policies. If you are researching information on what to expect in the process, be warned that the site you are transferring may experience down time while GoDaddy muscles control away from the previous owner. However, rest assured knowing that there is no interruption to email service, which to my client was the most important factor.

Thursday, July 2, 2009

DSN-Less Database Connection to MySQL in Coldfusion

Have not tried this myself yet, but wanted to drop it here so we can play with it in the future.

A DSN-less connection is made completely through the code, without the need for configuring anything within the ColdFusion Administrator. All of the information for the connection is specified within the code. This includes the driver, servername, databasename, username and password.


To make a DSN-less connection to a MySQL database, the following code snippet can be used:



<cfscript>

classLoader = createObject("java", "java.lang.Class");
classLoader.forName("sun.jdbc.odbc.JdbcOdbcDriver");
dm = createObject("java","java.sql.DriverManager");

con = dm.getConnection("jdbc:odbc:DRIVER={MySQL ODBC 3.51 Driver}; SERVER=server; PORT=3306;
DATABASE=database; USER=username; PASSWORD=password;OPTION=3;");


st = con.createStatement();
rs = st.ExecuteQuery("Select * FROM table");
q = createObject("java", "coldfusion.sql.QueryTable").init(rs);

//the query is stored in the variable q


</cfscript>

Wednesday, July 1, 2009

Image Expired: Please Refresh The Page to View This Image

We've run into this problem before and so I've stolen the solution from the cfchart blogspot blog site:


Problem

The following message is shown instead of the graphs:
"Image Expired
Please refresh the page
To view the image"


Lot of people have faced this problem, the reason is the timeout in the caching engine of the Coldfusion keeps the charts for any request only for a default value of 5 seconds.
We missed providing an interface to change this value in the CF Admin, but you can still change this value by:

1. Stop the CF server.
2. Open <cf install path>\lib\webcharts3d.xml
3. You can increase the timeout for keeping the graphs in the cache by editing the minTimeout and maxTimeout attributes:

<?xml version="1.0" encoding="UTF-8"?>
<server image="PNG" cache="Memory" minTimeout="5000" maxTimeout="30000"....

change this to whatever values you want.(Values of minTimeout and maxTimeout are in milliseconds.)

The minTimeout and maxTimeout are per each request, i.e. the graphing cache will keep the graphs for each request for minTimeout amount of time. So if there are 4 graphs in one page then request for the page arrives at lets say 1'o clock and the min timeout is 5 secs, then each graph for the request will be kept only in cache for 1'o clock + time to generate graph + minTimeout. So a problem could be if the last graph takes lets say 10 secs to generate, then by the time it is ready all the previous graphs will timeout and will be removed from the cached.

This can create a problem when:


  1. There are a large number of charts one page (> 200). In this case, some charts will be drawn but remaining charts will display the error message

  2. There are only a few charts on a page but some charts take more than minTimeOut amount of time to generate in this case the remaining charts will not be generated and the error message will be thrown.

Wednesday, June 24, 2009

Start ESX or ESXi Guests at Boot

I've had to do this before and always forget, so here goes.
  1. Launch the VIC
  2. Click on the server icon (not the guest icon)
  3. Click the "Configuration" tab
  4. Click on Virtual Machine startup/shutdown
  5. Click on "Properties"
  6. Click on "allow virtual machines to start and stop with the system"
  7. Click on the guest you want to start automatically and then click "move up" until it's in the 'Automatic Start Up' section
  8. Rinse, repeat for any other guests OS's

The last few steps are not very intuitive, but you get the idea once you've done it a few times. Thanks to Merrick for reminding me which tab these settings were on. I had to do this a few months ago and had forgotten.

Friday, April 24, 2009

Streaming Flash Video in 2003 (IIS6)

I don't know how many times I've come across this problem and remembered what the issue was, but not the solution. Scenario: Windows 2003 with IIS6. You have a page with an fla file that plays an flv video, but the video won't show up. Issue: IIS is missing the correct MIME type for FLV videos. Solution:
Open IIS Manager on the server:
  1. Expand the Local Computer Server.
  2. Right mouse click and choose 'Properties' of the local server
  3. Select the MIME Types tab.
  4. Click the 'New' button and enter the following:
    Associated Extension box: .FLV
    MIME Type box: flv-application/octet-stream
  5. Click Ok and restart IIS.
Update: This same solution can be used if the file you are streaming is an mp4 file. Mime type: video/mpeg

Monday, April 20, 2009

Expanding a Virtual Drive in VMWare Workstation

David Merrick and I ran into an issue today growing a windows 2003 WMWare disk partition running on VMWare workstation. Apparently, you cannot use the GUI tools in Workstation to increase the size of vmdx files. However, you *can* use the command line:

vmware-vdiskmanager -x 12GB “Windows Server 2003 Standard Edition.vmdk”

Where 12GB is the new size of the disk. Make sure you do this from the VMWare Workstation install directory.

Check out David's blog post on this for more details. After that, we used PMagic to inflate the partition to the new drive size.

Thursday, April 16, 2009

Can't Undo in Dreamweaver CS3

A few days ago Dreamweaver CS3 stopped allowing me the ability to undo things whether I was in code view or design view. I thought maybe restarting DWCS3 would fix it, but to no avail. I did some googling and found a post where people were saying you needed to delete the FileCache.dat file in the Macromedia application data folder for the user having the issue. This information did not hold so true for DW CS3, but it did lead me down the correct path.

My solution was to close DW and navigate to:

C:\Documents and Settings\<user>\Application Data\Adobe\Dreamweaver 9\Configuration

In there I found a file named: WinFileCache-AD76BB20.dat Your WinfileCache file might be named slightly different, but it's the only .dat file in that directory. Rename that file or delete it (I always err on the side of caution) and restart Dreamweaver.