How to add bbpress login and registration links

I scratched my head for a while trying to figure out how to add bbpress registration links to my WordPress theme until I finally came across this bbpress tutorial.

To add a registration link to your wordpress site, you need to copy the page.php theme of your file into a new file that you call bbpress.php.

In the bbpress.php file you add:

<div class="forum_register">
	<?php 
		if (! is_user_logged_in() ) {
			echo "Welcom to the bad breath forums! <br>Please ";
			wp_loginout($_SERVER['REQUEST_URI']);
			wp_register(__(' or '));
			echo " to post.";
		}
	?>
</div>

Example of CSS code:

.forum_register
{
margin: 0 0 10px;
padding: 5px;
border: 1px solid #347235;
background: #98FB98;

}

Notepad++ search and replace newline with comma

I sometimes have longer lists where it is useful to do a search and replace. For instance I just exported a list of e-mail addresses from my database and wanted to to a search and replace to replace newline with comma. This can easily be accomplished by choosing search -> replace. Choose extended mode and enter \r\n for find what and , in Replace with.

USB in VirtualBox

Make sure you have the extension pack installed for USB support etc.
http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html

When performing an unattended installation of Windows with an Autounattend.xml on a pen drive, you can accomplish this on by activating your pen drive for use within your virtual machine.

When starting your virtual computer, there are some icons in the bottom right corner. Right click the USB icon to activate your pen drive:

WSIM components

The big question of today was. What component do I choose?

amd_64, wow_64 or x86_64…

amd_64 is used on x64 installs.
x86 is used on x86 installs.
wow_64 is used on x64 installs for 32bit components installed on x64.

Here’s a quote from Microsoft Technet:

The answer file must include processor-specific components. The answer file settings in the windowsPE configuration pass must match the architecture type of the preinstallation environment and the settings that apply to the Windows image must match the architecture type of the image. For example, if you are creating an answer file that deploys 64-bit images from a 32-bit preinstallation environment, all components in the answer file for the windowsPE configuration pass must include the processor type attribute of x86. Settings to be applied in the specialize, oobeSystem, or other configuration passes must include the processor attribute type of amd64.

http://technet.microsoft.com/en-us/library/dd744395(WS.10).aspx

WSIM – Select a Windows image or Catalog file

When selecting a Windows image in WSIM, WSIM hangs. I tried to close the program and select a windows image again, but got the following error:

Windows SIM was unable to generate a catalog. For troubleshooting assistance, see the topic: ‘Windows System Image Manager Technical Reference’ in the Windows OPK or Windows AIK User’s Guide.

I was trying to use a x86 version of Windows 7 and had copied install.wim to a folder on my computer called images. My computer was running x64. When using WSIM I was only able to import an image with the same architecture as my technician computer.

To solve this issue, I had to import the image directly from the DVD using the .clg file instead of using the install.wim file that I had copied to my images folder.

Dual boot in Virtual PC

To be able to dualboot in Virutal PC, you must be able to boot your Virtual machine from a CD or DVD. By booting from DVD, you are able to use the unallocated space for your second OS rather than installing the second OS on the same volume.

Here is a great guide I found that shows you how you can boot your virtual machine from CD/DVD in Virtual PC.