Categories
Computing Mac OS X

Parallels and Windows 7 really hate Virtual Box

While I am a huge fan of Virtual Box, work supplies us with Parallels and a Windows 7 virtual machine. I find Parallels to be slower but it works overall just fine. Recently I wanted to install a Linux VM so I installed Virtual Box on my Mac. As always, Virtual Box installs virtual network cards (vnic) and makes some modifications to the underlying OS.

My Parallels Windows 7 VM was running using shared networking. I needed to have it be accessible outside the host so I switched it to Bridged Networking using the host's Ethernet device. At that point something weird happened: the VM would connect to the network, get an IP address assigned, but it would report failing to get to the network gateway. It failed to see the outside Internet. Trying all sorts of Windows networking tricks did nothing to alleviate the situation, with Windows reporting that 'unauthenticated domain'. 

The solution: removing Virtual Box using the script that comes on its dmg installer, restarting the Mac host and starting Parallels again. Suddenly I was able to connect to the network just fine. 

Hope it helps others.

Share
Categories
Computing Mac OS X PHP Web Development

Enabling Oracle OCI8 PHP Extension on OS X Snow Leopard

My current project involves using PHP with an Oracle database. Oracle apparently embraces PHP warmly and as such supports an open source database driver for the environment called OCI8. As a Mac user I was looking to use OS X's built-in Apache and PHP setup, which like many PHP installations does not have the Oracle OCI8 driver installed or enabled. It took me some time and research to get it up and running. I was using Oracle Express, a limited capability, free-ish version of Oracle's database. Oracle Express was installed on a separate Windows machine as it cannot run or be installed on Snow Leopard. I also assume that you enabled PHP in your Apache configuration (/etc/apache2/httpd.conf) and have a /etc/php.ini by copying it from /etc/php.ini.default.

OCI8 relies on OS X having several client libraries and tools from Oracle installed on OS X. For most intents and purposes download the 64-bit version of the following files under the title "Version 10.2.0.4 (64-bit)": 

Registration is required for all downloads.

Share
Categories
ios iphone Mac OS X

Xcode: “No match for certificate/private key” error and resolution

An app we were building for the iPad was recently approved by the client. Being a more capable organization, the client wanted us to build the app for them using their Apple developer and app store credentials for submission. To do that they sent us the three necessary files:

  • Public Key (Distribution)
  • Private Key (Distribution)
  • Mobile Provisioning Profile (Distribution > AppStore)

I also modified the app's bundle identifier to reflect the identifier specified by the client.

I merrily added the keys and certificate to the OS X key chain. Yet Xcode was unable to build using these updated credentials. The error that was reported was:
"Profile does not match any valid certificate/private key pair in the default keychain"

After digging around I pinged my friend Glenn Martin from Intrepid Development to see if he knew what was wrong. Glenn actually knew what went wrong: apparently OS X 10.6.8 imports keys to the System key chain instead of the Login key chain. Xcode only looks at the Login key chain. All the was necessary to fix the issue was to drag and drop the key in the Keychain Access application from the System key chain to the Login one. Mindless fix to a truly frustrating problem.

Hope it helps you.

Share
Share