Cygwin won’t read .bashrc?

28 September 2007

ConsoleAdd the following line of code to the very bottom of /etc/profile

. "$HOME/.bashrc"

This will execute the .bashrc file from your home directory.

If you are not sure where your home directory is type the following into a cygwin console:

echo $HOME

If your user folder contains a space; you may have to place the .bashrc file into the root directory and you may still have the calling line into /etc/profile.


Boot Leopard from USB device

28 September 2007

Leopard OSXGet a USB hard drive (or use your iPod if you are brave enough to wipe that?) and partition it into two pieces, the first will act as the installation disk, the other will become the partition leopard will live on.

Installation will take around 45 minutes and the system overall performs quite well off of the USB disk; however running or indeed building in XCode really is painfull!

Thinking about it however; I would prefer a slow system to wiping my Tiger installation off of my laptop and being left with an early beta of Leopard (trust me it is still an early beta!)

  1. Open Disk Utility and select the drive to partition
  2. Click the partition tab and choose 2 partitions
  3. Make the install partition 10Gb in size and set it to Mac Journaled
  4. Make the destination partition fill the rest of the drive and set to Mac Journaled
  5. If your using an Intel machine; select the destination partition and click options, choose Guid Partition Table, click OK
  6. Click the partition button to start partitioning the disk
  7. Once done select the install partition and click the restore tab and restore from the leopard_client dmg you have downloaded from Apple (*Paid ADC membership is required)
  8. Click the restore button to copy across the installation files
  9. Restart the machine whilst holding down the Option key and choose to boot form the install partition
  10. Follow the installation instructions and choose to install to the destination partition (will only not be available if you forgot to set the partition schema to Guid Partition Table, in which case you will have to start from the beginning again! DOH!)
  11. Leopard will eventually boot and download any updates, to default boot to Tiger; open system preferences and choose Tiger from the Startup Disk menu

I have always thought these Twitter style sites are a little pointless… “Brian is in the Diary Room”, “Matt is eating Marmite”, it’s almost as bad as watching Big Brother?!

However I finally found a use for these sites.. Our company has a build machine which churns out a build every evening when I’m tucked up in bed. When I get to work in the morning there is an email reporting the build has failed/succeeded and attached is a log file. The pain is my inbox gets full very quickly and these emails are just noise which pop up when I don’t need them.

So I changed the build script to email a Twitter wanna-be site..

I attach an image to the email which contains a cross or a tick depending on if the build passed or failed, and I can visit this site when I want to know the build status or just to make sure the build machine is behaving as expected.

iMovie Common Pitfalls

28 September 2007

iMovieI’ve seen a lot of people struggling with a couple of issues with iMovie. Through spending time sifting through forums and a little trial-and-error, I have managed to figure out how to resolve these issues..

#1 – I’ve connected my camera but it doesn’t appear in the import menu, only the iSight camera is recognised

This took some time to figure out, simply because of the following assumption; When you plug a Firewire/Usb component in, an event is triggered notifying the OS that this peripheral is available.. so in this case, when you plug the camera in and turn it on, you expect iMovie to find it and make it available in the camera sources menu? WRONG! iMovie seems to do a check for cameras when the application is launched. So as long as your camera is turned on and ready to go when you start iMovie, it should appear in the import dialog.

#2 – iMovie 2008 won’t start, it bounces in the dock but then nothing happens

This is a case of the iMovie going through all your Quicktime components (/Library/Quicktime) and finding one that it doesn’t like. Removethe Third Party plug-ins, leaving the two Apple ones present (If you take these out it won’t boot either as they are required!)
You should now be able to start iMovie.

Quit iMovie and slowly start to add your TP components back in; you should find that there is only one or two offenders and most should work ok. My problem was with the Divx 5 component.