Saturday, July 26, 2008

iMac G5 Death Throes

The iMac G5 named iFive, which I boot without a keyboard, is in its death throes: it crashed again while booting up. Power supply issue? This time, I could save the report to Apple. Reporting didn't work until I plugged in a USB mouse.

So, here it is:

Unresolved kernel trap(cpu 0): 0x300 - Data access DAR=0x0000000000000038 PC=0x000000000005FDD8
Latest crash info for cpu 0:
Exception state (sv=0x4DE32280)
PC=0x0005FDD8; MSR=0x00009030; DAR=0x00000038; DSISR=0x40000000; LR=0x0005DEB4; R1=0x1CEF3C70; XCP=0x0000000C (0x300 - Data access)
Backtrace:
0x02C9E424 0x00062538 0x00063344 0x000A865C 0x000ABB80
backtrace terminated - frame not mapped or invalid: 0xBFFFF890

Proceeding back via exception chain:
Exception state (sv=0x4DE32280)
previously dumped as "Latest" state. skipping...
Exception state (sv=0x4DCCEC80)
PC=0x8FE23CE8; MSR=0x0000D030; DAR=0x8FE49424; DSISR=0x40000000; LR=0x8FE23CA4; R1=0xBFFFF890; XCP=0x0000000C (0x300 - Data access)

Kernel version:
Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC
panic(cpu 0 caller 0xFFFF0003): 0x300 - Data access
Latest stack backtrace for cpu 0:
Backtrace:
0x000954F8 0x00095A10 0x00026898 0x000A8204 0x000ABB80
Proceeding back via exception chain:
Exception state (sv=0x4DE32280)
PC=0x0005FDD8; MSR=0x00009030; DAR=0x00000038; DSISR=0x40000000; LR=0x0005DEB4; R1=0x1CEF3C70; XCP=0x0000000C (0x300 - Data access)
Backtrace:
0x02C9E424 0x00062538 0x00063344 0x000A865C 0x000ABB80
backtrace terminated - frame not mapped or invalid: 0xBFFFF890

Exception state (sv=0x4DCCEC80)
PC=0x8FE23CE8; MSR=0x0000D030; DAR=0x8FE49424; DSISR=0x40000000; LR=0x8FE23CA4; R1=0xBFFFF890; XCP=0x0000000C (0x300 - Data access)

Kernel version:
Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC
Model: PowerMac8,1, BootROM 5.2.2f2, 1 processors, PowerPC G5 (3.0), 1.6 GHz, 768 MB
Graphics: GeForce FX 5200, GeForce FX 5200, AGP, 64 MB
Memory Module: DIMM0/J4000, 256 MB, DDR SDRAM, PC3200U-30330
Memory Module: DIMM1/J4001, 512 MB, DDR SDRAM, PC3200U-30330
Modem: Jump, V.92, Version 1.0
Network Service: Built-in Ethernet, Ethernet, en0
Serial ATA Device: ST3300620AS, 279.46 GB
Parallel ATA Device: MATSHITACD-RW CW-8123
USB Device: General Purpose USB Hub, Up to 12 Mb/sec, 500 mA
USB Device: External HD, Iomega, Up to 12 Mb/sec, 500 mA
USB Device: USB Device, Up to 12 Mb/sec, 500 mA
USB Device: Kensington USB/PS2 Wheel Mouse, Kensington, Up to 1.5 Mb/sec, 500 mA

Friday, July 25, 2008

Leopard's built-in VNC server doesn't quite work

It would be great -- if it worked. Paul Holbrook notes in his blog:

Mac OS 10.5 has a VNC server built in to allow remote access back to your Mac. Many sites have claimed that standard VNC clients will work with Mac OS VNC.
Mr. Holbrook reports some success with Windows on the LAN, but nothing from a remote client. I haven't had any luck connecting over the LAN using the Linux command line client, xvncviewer. I get the following error:

main: End of stream

It's not the firewall, since the superb Vine Server 3.0 for Mac OS X 10.4 & 10.5 worked like a champ: I installed it on my Leopard machine, and then connected immediately with xvncviewer over the LAN.

I'll let you know if I get the remote connection going.

Wednesday, July 16, 2008

MAMP Virtual Domains

Set up virtual domains for MAMP with this great hack from springworks.
Be sure to quit MAMP first.

From the tip on the Joynet board:
  1. With a text editor that can open hidden files (eg TextWrangler (free) or TextMate), open /private/etc/hosts
  2. Find the line which reads

Code:


127.0.0.1 localhost
3. add the name of your chosen virtualhosts at the end of this line, separating each of them with a space, like this:

Code:

127.0.0.1    localhost mytestdomain1.dev mytestdomain2.dev

4. Save the file. You will need to provide an Administrator password to do this.

5. Create a folder for each of your test domains in the Sites folder in your home folder, eg:

/Users/myusername/Sites/mytestdomain1.dev

/Users/myusername/Sites/mytestdomain2.dev

6. Now open the MAMP httpd.conf, which you can find in /Applications/MAMP/conf/apache/httpd.conf

7. At the end of this file, insert the following:

Code:





NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot "/Users/myusername/Sites"
</VirtualHost>
<VirtualHost *:80>ServerName mytestdomain1.dev
DocumentRoot "/Users/myusername/Sites/mytestdomain1.dev"
</VirtualHost>
<VirtualHost *:80>
ServerName mytestdomain2.dev
DocumentRoot "/Users/myusername/Sites/mytestdomain2.dev"
</VirtualHost>



8. In the MAMP preferences, choose the Ports section and click on the "Use default Apache and MySQL ports". Now stop the MAMP servers and restart them again.

You should now be able to reach all of your test domains at the same time, using just the domain name as the address, none of this "localhost:8888/mytestdomain1/" stuff.

Monday, July 14, 2008

Tidy Service

Tidy Service is a simple OS X Service that cleans up markup using the powerful HTML Tidy library originally created by Dave Raggett.

[From Tidy Service]
Works great with TextWrangler.