Change the default port on the built in ColdFusion Webserver

More syntax I never remember


Changing the Port Number for ColdFusion MX 6.1

If using the Macromedia standalone web server with ColdFusion MX 6.1, you can also change the port from 8500 to 80 or any other available port.

Simply open the install directory:\CFusionMX\runtime\servers\default\SERVER-INF\jrun.xmlfile and search for<attribute name="port">8500</attribute>, which is near the bottom of the document. Change the port number from 8500 to the available port you wish to use, such as port 80, and save this file. Stop and restart the ColdFusion

Changing the web root for ColdFusion's built in webserver

I never remember this file path/syntax when setting up a new machine (instructions courtesy of Adobe support)

1. Make a backup copy of C:\ColdFusion8\wwwroot\WEB-INF\jrun-web.xml, and then open the original version of the jrun-web.xml file.
2. Edit the system-path attribute to change to the new web root directory:

<virtual-mapping>
<resource-path>/*</resource-path>
<system-path>c:/inetpub/wwwroot/</system-path>
</virtual-mapping>
Note: Remember to use forward slash characters in the pathname.

3. Save the file.
4. You can now move the CFIDE and cfdocs directory to the new web document root. These directories contain the files for the ColdFusion Administrator, the ColdFusion documentation, and the ColdFusion example code. Caution: Do not move the WEB-INF directory. It must stay under the cf_root\wwwroot directory.
5. Restart the ColdFusion server.

Reset Identity Key in SQL Server

I never remember this syntax...

DBCC CHECKIDENT (mytable, RESEED, 0)

Clone Virtual PC images

Courtesy of http://www.pcmech.com/article/dont-rebuild-virtual-pcs-copy-them/

"One very handy trick I found is that you can copy virtual hard drives (.vhd) files and instantly get another environment. For example, you could build a new virtual PC hard drive and load XP with all the updates and then simply copy the VHD file to a new file name and, whola!, you now have two ready to go environments. All you have to do is just run through the virtual PC creation wizard and set it to use an existing hard drive (your copied VHD file) and you are ready to go."

Microsoft Virtual PC: Network connectivity with Windows Server 2003

I had some trouble getting network connectivity on my virtual Windows Server 2003 Instance. Thanks to this post, I learned that I had to set the Networking Settings for the VM to use Shared Network (NAT) as the network adapter, and then:

"To fix the Shared Network (NAT) Internet no connection or not working issue, the resolution is to manually assign the IP address for the DNS Server for the guest operating system to 192.168.131.254, the virtual gateway IP address used by Virtual PC. To make the change (in guest operating system), open Network Connections folder (in Windows Vista, access via Network and Sharing Center), and right click Local Area Connection network icon to select its Properties. Then double click on Internet Protocl (TCP/IP) under General tab or Internet Protocol Version 4 (TCP/IPv4) under Networking (for Windows Vista) tab. Click to select the radio button of Use the following DNS server addresses, and then type in 192.168.131.254 into the IP address box for Preferred DNS Server. Click OK twice to exit, and voila, the Shared Network (NAT) now works as it should with Internet access."

Microsoft Virtual PC

So It tried VMWare and the web browser GUI thing wouldn't load right...I hacked around an got the Web play something or other to load but when I tried to log in I got another error...something about ports this time or Tomcat not working right..I said "Tomcat? Come on!".....so I uninstalled it and tried Microsoft Virtual PC...installed without a hitch and ran perfectly..I got Windows 2003 Server and the new Windows 7 beta running in no time.

I couple of learning points that I needed to Google around for: ~Install Virtual Machine Additions on your VM instance to get file drag/drop and copy/paste from the parent OS working (very nice to have)...I'll let you Google how to do that. ~If sound doesn't transfer out to your host OS's speakers, following this post's advice to "update the audio driver with the "C:\Program Files\Virtual Machine Additions" folder.

Ah, playing with a fresh OS is a geek's dream!!!!

Crack the Windows password (in case you can't get on Grandma's machine to help her)

http://www.joetech.com/2009/01/29/how-to-crack-the-account-password-on-any-operating-system/

Windows

Windows is still the most popular operating system, and the method used to discover the login password is the easiest. The program used is called Ophcrack, and it is free. Ophcrack is based on Slackware, and uses rainbow tables to solve passwords up to 14 characters in length. The time required to solve a password? Generally 10 seconds. The expertise needed? None.

ophcrackSimply download the Ophcrack ISO and burn it to a CD (or load it onto a USB drive via UNetbootin). Insert the CD into a machine you would like to gain access to, then press and hold the power button until the computer shuts down. Turn the computer back on and enter BIOS at startup. Change the boot sequence to CD before HDD, then save and exit.

The computer will restart and Ophcrack will be loaded. Sit back and watch as it does all the work for your. Write down the password it gives you, remove the disc, restart the computer, and log in as if it were you own machine.

Learn Adobe Flex in a Week

Came across this link in the Adobe Edge newsletter

http://www.adobe.com/devnet/flex/videotraining/

Pool temp...70 degrees!

Daniel Parker, reporting from Ocala, Florida.....Today, the pool reached 70 degrees! Bring on that reason to be in Florida in April!!!

Life

I'm starting a new category called "Life". Life is really, really going great for me. I am blessed with a wonderful wife, a great job, a great house, and great friends and family.

My brother and his wife, Marcia, came down for a visit last week. It was the first time I've gotten to sit down with my brother and hang out in a long long time. It felt great. Marcia is a great girl and its awesome that they are together. Lara and I can't wait until they can come back.

Lara and I are working hard at putting in the new garden. Craig, our neighbor, came over with the rototiller yesterday and took a whole lot of manual labor out of the picture. Thanks Craig! We're planning tomatoes, squash, beans, cucumbers, peppers, pumpkins, and watermelons.

The new pony, Ginger, is settling in nicely. Beau is mean to her and can't be turned out in the same pasture with her, but they'll stand next to each other on separate sides of the fence all day...figures...Lara thinks we need a miniature donkey to go back and forth between the pastures to keep them both company...or maybe Beau will end up in the next sale! Ha!

Well, that's all for now!

More Entries

BlogCFC was created by Raymond Camden. This blog is running version 5.9.2.002. Contact Blog Owner