Looking for a hypervisor on Windows 8? Look no further. If your Windows 8 is Pro or Enterprise Hyper-V is available as a feature, and can be enabled easily as long as your system complies with there requirements: Windows 8 Pro or Windows 8 Enterprise (64-bit Operating System) Minimum of 4GB of RAM Hardware Assisted Virtualization […]

For some reason the 64-bit versions of Windows has a problem indexing PDF files. Windows Search uses IFilter to help it index files, and the PDF IFilter for 64-bit Windows is missing. (This probably applies to 64-bit Vista and 64-bit XP as well). To detect whether a computer has the IFilter installed or not open […]

Use this command to start headless VirtualBox named NameOfVirtualBox: [crayon-5bf358101d790220721678/] Or using PowerShell: [crayon-5bf358101d7ab437590349/] Note: If you close your command prompt the processes with your headless VirtualBox will get killed. Link to VirtualBox manual : http://www.virtualbox.org/manual/ch07.html#vboxheadless

Problem: This behaviour is seen when connecting a Vista computer with Atheros AR5007 Wireless LAN adapter installed to a new wireless accesspoint. (In this case a HP laptop computer with preinstalled Vista Home Premium connecting to Cisco Linksys EA6500). When inspecting network configuration you will find DHCP-address is assigned correctly – BUT no traffic is recieved […]

These Events are common when troubleshooting problems related to Health Service certificates i System Center Operations Manager 2007: 21021 – Could not load Certificate Check if certificate exists and the Health Service has permissions to read it. 20052 – Certificate not loaded (name does not match) Make sure Issued To match the actual […]

By default the option to view FTP site in Windows Explorer is hidden in Internet Explorer 9 (IE9). To enable it you have to go to Internet Options -> Advanced -> Enable FTP Folder View as shown below: Once this option is enabled you should see Open FTP Site in Windows Explorer in the View-menu. (Keep in mind […]

All of a sudden my Windows 7 ended up crashing with Blue Screen of Death when put to sleep, and I started investigating this behavior. After a couple of crashes a pattern started to emerge: Blue Screen of Death was only an issue when the laptop was running on batteries – and NOT when AC was […]

Creating an EventLog entry using PowerShell is shown below: [crayon-5bf3581020fe3604457660/] Note: The Event Source needs to be created before writing entries to the Event Log. (See this post for further info: Create Event Source with PowerShell)

Henrik Damgaard

Tag: database

In WordPress the $wpdb object can talk to any number of tables, but only within database WordPress is installed. In case you need to connect to another database, you will have to instantiate your own object from the wpdb class with the appropriate connection details:

PHP

1

$mydb=newwpdb('username','password','database','localhost');

Once the connection is made you can access the database and its tables as you would in any WordPress database:

PHP

1

2

3

4

$rows=$mydb-&gt;get_results("SELECT field1,field2 FROM myTable WHERE field3=1");

foreach($rowsas$row){

echo$row-&gt;field1;

}

This code can be in plugins, templates, themes and almost anywhere else inside the WordPress code.

Instead of using MSI to create SCOM databases, you have the option to use DBCreateWizard.exe which can be found in the SupportTools folder. DBCreateWizard also gives the option to create the databases remotely when using command line like shown below: