Updating Debian parallels tools for Parallels 7

On clicking Virtual machine/Install parallels tools seems to do nothing. What should happen is the parallels tools installer .iso image should appear mounted in the virtual cd rom drive (/media/cdrom0)

This may be due to the ‘real’ host cdrom drive hiding the mounted iso. To remap umount and remount the drive to make the installer appear:

Getting windows running in Parallels 6 to see a site hosted on OS X apache virtual host

1) Use the instructions in Elric’s post, just above, to get things into their default state, and then change the IP range if you need to (I use the 10.x.x.x range for other things, so for Parallels, I use address in the 172.31.x.x range)

2) Launch the Terminal (Applications>Utilities>Terminal) if it’s not already running, and type: ifconfig

3) As joevt stated above “In Mac OS X, the Parallels shared networking interface is vnic0”, so look for a block in the terminal output something like this:

Code:

vnic0: flags=8843 mtu 1500

ether 00:1c:42:00:00:08

inet6 fe80::21c:42ff:fe00:8%vnic0 prefixlen 64 scopeid 0x7

inet 172.31.0.2 netmask 0xffffff00 broadcast 172.31.0.255

inet6 fec0:0:0:fea9::2 prefixlen 64

media: autoselect

status: active

4) Note down the address after “inet” within the block (you’ll note that mine was 172.31.0.2)

5) On the parallels virtual machine, you need to edit the hosts file, which can be found at this path under Windows XP:

Code:

C:WINDOWSsystem32driversetc

6) Add lines corresponding to your sites as configured within apache, which will look something like this:

Code:

172.31.0.2 my.coolsite.com

172.31.0.2 apache_local

7) For details, you may find some parts of the originally linked article useful, but keep in mind that the options within Parallels changed with version 6, but hopefully the current post will help with that.

Good luck!

Subversion branching and tagging with Eclipse

Branching to complete a task outside the trunk in Eclipse

Creating the branch
  • Select the trunk working copy
  • Team/Branch/tag…
  • Copy to URL: Use the select button if the branch already exists, otherwise specify new directory in branches
  • Specify copy to be either HEAD or specific revision
  • Specify message for the branch, probably task name
  • When checking out a freshly created branch may have to right click a repository and select refresh before it appears

Checkout the branch to a fresh working copy
  • Can either checkout a fresh copy or switch your current working copy to the branch
  • Checkout fresh copy with New/Project…/SVN/Checkout Projects from SVN
  • Switch a current working copy using Team/Switch to another branch/revision…
Merging any changes from the trunk into your branch
  • Select the branch project directory
  • Update to HEAD
  • Team/Merge…
  • Select ‘Merge a range of revisions’
  • Merge from: /trunk
  • Revisions: All eligible revisions
  • Default conflict options (safest)
  • Any conflicts are flagged and should be dealt with manually
  • Commit

Command line version is a bit more tricky, the revisions to merge must be found manually

 

Branch task completed, merging branch back into the trunk
  • Select the trunk project directory
  • Update to HEAD
  • Team/Merge…
  • Select ‘Reintegrate a branch’
  • Here may get an error if the trunk hasn’t been updated. Update to HEAD
  • Merge from: <branch to merge>
  • Default conflict options (safest)
  • Any conflicts are flagged and should be dealt with manually
  • Commit

 

Tagging a release in Eclipse

All final releases are tagged with name <project><version>

All release candidates are tagged with name <project><version>_rc<release candidate integer version>

  • Select the trunk project directory
  • Team/Branch/tag…
  • Copy to URL: Use the select button if the tag already exists, otherwise specify new directory in tags
  • Specify copy to be either HEAD or specific revision
  • Specify message for the tag, probably version of release
  • When checking out a freshly created tag may have to right click a repository and select refresh

Subversion admin tasks

====Subversion admin tasks====

Stripping out all subversion files from a filesystem. Do this before moving content between filesystems under version control or final packaging:

===Getting subversion to ignore files===

This ensures files that are not part of the working copy are no automatically added in some IDE’s or listed in svn status

First ensure your shell is using a sensible editor, like vi

Now cd to the directory where the file is located.

Run the propedit command passing the property to edit, svn:ignore and the directory to work on – ‘.’ for the parent directory

And list all files to be ignored for that directory. Not paths do not work, only filenames. In other words you cant list all the files as paths in the root directory of the site.

Unix shell quickies

Configuring Snow Leopard as a SLAMP box (Snow Leopard Apache MySQL PHP)

#install xdebug

http://aspn.activestate.com/ASPN/Downloads/Komodo/RemoteDebugging

Enter the “5.3” directory and find the file named “xdebug.so”. You need to move this file to the/usr/lib/php/extensions/no-debug-non-zts-20090626 directory. First, open a new Finder window and press Cmd + Shift + G. Enter /usr/lib/php/extensions/no-debug-non-zts-20090626/ into the prompt that appears and press “Go”. This will open the destination directory in the Finder window. Drag xdebug.so into the destination directory. You may be prompted for your administrator password. If the /usr/lib/php/extensions/no-debug-non-zts-20090626/ directory does not exist, locate the /usr/lib/php/extensions/ directory instead. This directory will contain a directory named something similar to no-debug-non-zts-20090626. Place xdebug.so into that directory instead.
edit php.ini:
1.[xdebug]
2.zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so

Finally I manage to upgrade my AppleTV to 320G

After much drama I finally upgraded my AppleTV to 320G. Had lots of fun with diskutil, gpt and dd and didn’t toast the system disk by mistake. Which was nice.

Unix HandbrakeCLI batch script for Apple TV

Handbrake is great for converting movie files to most useful formats, but not so helpful for batch processing. Fortunately it has a CLI version so I created this script to convert all movie files in as directory to an Apple TV friendly format.

To use cd into the directory with the files to convert and then call the script and watch it do it’s stuff.