Showing posts with label software. Show all posts
Showing posts with label software. Show all posts

Friday, November 23, 2007

Upgrading to Coldfusion 8 from Coldfusion 7

How easy had it been for the living human beings in mending their behavior and improving upon actions had some dead man come back and narrated what all he had to go through after death!!! But it has so far been not possible because the dead ones have got nothing to do with the left ones. But with the advent of Internet, at least in this world you can learn from other mistakes!!! Yesterday I installed rather upgraded coldfusion 7 to coldfusion 8 and it was straight forward at least so far. Following are the steps to follow.

I did not uninstall MX 7 prior to installing 8 (this is the developer version since I did this first on my local machine before doing development and/or production to make sure that all of our websites work ok with version 8…I highly recommend you do the same.)

After downloading the developer version from Adobe.com, I went ahead and double clicked ColdFusion-8-win.exe.  I then followed the wizard.

  1. Shut down all CFMX 7 services, especially Verify, if you have any collections that need to be transferred over to version 8.
  2. Make sure you have installed JDK 1.6 or above.
  3. Splash screen - Choose language and click OK.
  4. Introduction - Click next.
  5. License Agreement - Accept and click next.
  6. Configure Installer - Enter Serial #, select trial, or select developer edition and click next.
  7. Server Configuration - Select your server configuration and click next.
  8. Sub-Components Selections - Select all the sub-components you want to install and click next.
  9. ColdFusion 8 Location - Select the location of where you want to install ColdFusion 8.  By default, it install in c:\ColdFusion8.  Do not replace your CFMX 7 location with ColdFusion 8.  Install it separately.  Click next.
  10. Adobe LiveCycle Data Services ES Agreement - If you chose Adobe LiveCycle in #7 above, then you must agree to the License agreement.   Then click next.
  11. Adobe LiveCycle Serial # - If you chose Adobe LiveCycle in #7 above, then enter the Serial # if you have one.  If you don’t, after 120 days it will become an express edition, which allows you full capabilities only on your local machine. Click next.
  12. Web server configuration - At this point, the wizard will detect if you have CFMX 7 installed on your machine.  If you do, it will ask you to either configure your web server for CFMX 8 (replacing CFMX 7 web server installation) or if you want CFMX 8 to co-exists with CFMX 7, and it will install it with it’s own web server (usually installed on port 8500).   Choose which you prefer.  In my case, I told it to replace my IIS webserver/CFMX 7 configuration with CFMX 8 configuration. Click next.
  13. Websites Configuration -Select specific websites, all websites in your web server or select the built-in web server only.  Use the built in web server ONLY IN DEVELOPMENT, NOT IN PRODUCTION.  Click next.
  14. CFMX Admin Location - Choose the location of where the CFMX Administrator will be stored.   In my case, it will be under the WWWROOT directory (c:\INETPUB\WWWROOT)
  15. Administrator Password - Enter any password you want for the administrator screen.  This can be changed later.
  16. Remote Development Service (RDS) - If you plan on allowing people to connect to the ColdFusion Server via RDS (NOT RECOMMENDED IN PRODUCTION), then check the “Enable RDS” box and enter a password.  Click next.
  17. Pre-Installation Summary - Review all your selections and click “Install”.

ColdFusion will then begin the install process.  It may take a while, so get up from your desk and go get a cup of Java (or is it ColdFusion???).  Once it’s done the install, the configuration process will beging.  The wizard will tell you to click “DONE” and the CFMX Administrator will open up.

The first thing you’ll notice immediately upon the login screen is the new look and feel of the administrator.

  1. Enter you password you created in step #14.  Click Login.
  2. The configuration screen will appear and tell you to wait a few minutes (most likely…it will be longer then a few minutes….oh oh…time for another cup of Java).
  3. Let the screen run its course.   DO NOT click on the “If this screen doesn’t refresh in a few minutes, click on this link to Continue”.  It will continue by itself.  Just be patient.
  4. After it’s done with the configuration screen, you will continue on with the Migration of the old (old…ha ha…CFMX 7 is now old) CFMX 7 settings into CFMX 8.  This process is critical if you want your applications to at least be configured properly with CFMX 8 (I didn’t say work properly…that’s a completely different process you have to go through….called…testing all your apps!)  Click “Next”.
  5. Export Settings - The wizard will show you all the exported settings it has successfully exported from CFMX 7.  Click Next.
  6. Import Settings - After you clicked next above, the import of settings into CFMX 8 will begin and will end shortly, displaying all the successful migration of the settings.  Click Next.
  7. Finish - This is the last screen.  go ahead…do it…click Finish and start enjoying CFMX 8.  The ColdFusion MX 8 administrator screen will open up.

That’s it.  That’s all there is to upgrading ColdFusion MX 7 to ColdFusion 8.   However, that is just the upgrade only.  The next step is to verify all your administrator settings to make sure everything is as it should be, uninstall CFMX 7 (because the wizard will not uninstall it for you) and then the hard part…that is to test all your applications thoroughly in development before you install ColdFusion 8 in production.

Good luck on your installation of ColdFusion 8!   In the very near future, I will write a longer blog on the new features of ColdFusion 8.

Disable RDS in Coldfusion MX

Whenever we install a software, we hardly bothers to look at each of the presented options/components to decide which one to select or deselect and either we select whatever it prompts for or we opt not to deselect the default selected components. Later if you really use the software, you come across many bottlenecks in the performance because of the laxity you exercised during installation. The same I experienced when I installed Coldfusion and later I had to uninstall RDS because of secrity breach on the machine because of RDS installtion.

If you use Macromedia Dreamweaver MX or Macromedia HomeSite+ to develop your applications, you can access a remote ColdFusion MX 7 server using HTTP. However, you must configure Remote Development Services (RDS) in your integrated development environment (IDE), and RDS must be enabled in ColdFusion MX 7. Using RDS, IDE users can securely access remote files and data sources, build SQL queries from these data sources, and debug CFML code.

Note: The ColdFusion Report Builder uses RDS for the Query Builder and for charting support.

However, for security reasons, Macromedia recommends that you disable RDS on a production server. To disable it, you must disable the RDSServlet mapping.

To disable the RDSServlet mapping:

  1. Back up the web.xml file.

    This file is in the cf_root\wwwroot\WEB-INF directory in Windows and in the cf_root/wwwroot/WEB-INF directory on UNIX. In the multiserver and J2EE configurations, this file is under cf_webapp_root/WEB-INF.

  2. Open the original web.xml file for editing.
  3. Comment out the RDSServlet mapping, as the following example shows: <!-- <servlet-mapping id="macromedia_mapping_9"> <servlet-name>RDSServlet</servlet-name> <url-pattern>/CFIDE/main/ide.cfm</url-pattern> </servlet-mapping> -->
  4. Save the file.
  5. Restart ColdFusion MX 7.

    RDS is disabled on the ColdFusion MX 7 server.

For more information, see Starting and stopping services for Windows, or Managing the process for UNIX.


Thursday, November 22, 2007

Forgot the site administrator password in Contribute

It is more often than we may believe that we forget administrator password of many of our affairs be it server or site administration. And then we do what not to get hold of someone to help us recover the password or bypass the password asking prompt or have some hacking approach to hack our own system. Recently I faced this when I had to remove contribute related settings on my website so that I do not face the nagging dreamweaver prompt whether I wish to enable all contribute related settings while editing my site in dreamweaver. Had tough time in finding the solution but finally came across the following which did the work.

If you forget the password assigned to the Contribute administrator role, you can reset the password by deleting the shared settings file from the website and creating a new shared settings file.

Note: If you delete the shared settings file, all the roles you have previously created are lost; you must set up those permissions again.

To delete the shared settings file:

  1. Connect to the server, either by mounting it on your desktop or by logging in to it (using an FTP client, telnet, SSH, or similar software).

    Note: You can't perform this procedure from within a web browser.

  2. On the server, open the root folder of your Contribute website, and then open the _mm folder that's inside the root folder.

    A typical Windows directory path for the _mm folder might be:

    \\myServer\wwwroot\mySite\_mm

    A typical UNIX directory path for the _mm folder might be:

    /<path_to_the_web_server_doc_root/mySite/_mm/

    The shared settings file is an XML file (labeled contribute.xml) in the _mm folder.

  3. Delete the shared settings file.
  4. Using Contribute, select Edit > My Connection (Windows) or Contribute > My Connection (Macintosh), select the website whose shared settings file you deleted, and click Edit.
  5. Re-establish a connection to the site.
  6. When you re-define the website connection, select Edit > Administer Websites (Windows) or Contribute > Administer Websites (Macintosh) and administer the website to which you are connected.

    Contribute will prompt you to become the administrator of the website.

  7. Select Set Administrator Password to become the administrator for the site, and reset the administrator password.

Friday, March 23, 2007

Split names by using Convert Text to Columns in Microsoft Excel 2003 onwards

Long back I was attending a product launch seminar of Microsoft and heard one speaker saying that we dont use even 10% of commands/facilities/techniques available in Microsoft Office and he was not wrong when I faced a problem of splitting a column having full name of people into two/three columns of first/middle/last names and splitting a column having email addresses into two columns of username and the domain of the email addresses. I was thinking to write a script to do this work but then it was readily available in Microsoft Excel which I came to know after having already spent good time on this problem. Under the tools of Excel, there is a tool called Text to columns which has this power of splitting and does it in seconds. Steps to be followed are:

1. select the complete to-be-split-column
2. Click Text to columns under Tools menu of Excel
3. This gives you two identifiers viz. fixed width or delimited.
4. Because "Space" is a delimiter separating first name from middle name and last name, select delimited. Other delimitors like @ of email addresses come under "other" next to which you are supposed to enter this character @.
5. Make sure that you have already inserted empty columns next to the name/email column so that split results get accomodated.
6. If you select 'Space' as delimiter then just click next and identify the first column in the appropriate place of the dialogue box where first split results get accomodated and rest splits will automatically get accomodated in columns next to first split column.

funniest of my experiences with outlook 2007

Just experienced the funniest of my experiences with outlook 2007. I received an email few days ago about some hotscripts.com website which also had many hyperlinks from this website and unfortunately I did not delete it because I wanted to read it later. Because it was left in my inbox on the top of all other messages whenever I opened Outlook that message was highlighted and outlook 2007 crashed each time. Believing the reason of the crash to be add-ins like Planplus or Jeyo Mobile outlook or watson or windows search, I uninstalled all but nothing worked. Neither I found any clue from anywhere on the internet. This time when outlook opened and I clicked on any other folder than Inbox, it did not crash. I was bailed out of this problem with no visible clue to fix it by a mere selection of a sub-folder of Inbox. Then to know what was causing this irratic behavior, I clicked Inbox back and that message got selected and crashed outlook again. To delete it, I sent an email to this inbox and highlighting this I selected that irratic email as well and deleted that permanently. Now Outlook 2007 is working fine but it was funniest of my experiences with microsoft products.