As part of getting an upgraded server set up and transferring sites from the older server, I had to re-install PEAR XML_RSS. One of its dependencies is XML_Tree.
Normally, this command should have worked with no problems:
pear install XML_RSS
It downloaded XML_RSS just fine, but then choked on XML_Tree, which was a required dependency.
# pear install XML_RSS
Did not download dependencies: pear/XML_Tree, use --alldeps or --onlyreqdeps to download automatically
pear/XML_RSS requires package "pear/XML_Tree"
No valid packages found
My next try was to specify installing XML_Tree:
# pear install XML_Tree
WARNING: "pear/XML_Tree" is deprecated in favor of "pear/XML_Serializer"
downloading XML_Tree-1.1.tgz ...
Starting to download XML_Tree-1.1.tgz (4,826 bytes)
.....done: 4,826 bytes
XML error: not well-formed (invalid token) at line 10
Download of "pear/XML_Tree" succeeded, but it is not a valid package archive
Error: cannot download "pear/XML_Tree"
After some troubleshooting, here is how I fixed this problem:
- Change directory into the PEAR download cache directory:
- Clear out all the old cache files:
- You should see the downloaded file: XML_Tree-1.1.tgz
- Extract the files:
tar xvfz XML_Tree-1.1.tgz
- Now edit the extracted package.xml file:
- Go to line 10 and change the Ã¶ to an o. This is the character that is causing the XML validation of the package file to fail. Next, save the file (
- Next, remove the old .tgz file:
rm -rf XML_Tree-1.1.tgz
- We’re going to recreate the package:
tar cfv - package.xml XML_Tree-1.1/ | gzip > XML_Tree-1.1.tgz
- Next, we’re going to install this package and not use the network:
pear install -O XML_Tree-1.1.tgz
XML_Tree is now installed. You should now be able to continue installing XML_RSS normally.
A good trick I figured out for taking long exposure pictures in the snow is to take a glove, put it on the snow and rest the camera on it. This protects the camera from direct contact with the snow and also gives a handy solid base to get a steady shot.
Some more good shots:
Suiting up before the walk:
We just replaced Kristin’s laptop’s keyboard since the up, down, right shift and enter keys don’t work anymore.
I listed the keyboard on eBay, so go there and bid on it if you’re interested in it for the parts.
Check out the eBay Listing: Apple 12″ PowerBook G4 Keyboard Keys (Full Set) NR!
Click here to vote for my entry (#16) if you’d like (you’ll have to enter your email address to complete the vote).
Here’s the code used to generate that graph above:
Very simple, clean, elegant and neat.
I’ve been enjoying using my Apple AirPort Express to stream music from my laptop to our living room speakers using iTunes. The other evening I wanted to watch a DVD and use the good speakers to get the best sound, but you can’t do that without using a helper program.
I found a program that lets you route any audio signals to your AirPort Express — it’s called Airfoil (free to try out, $25 to purchase) and is made by Rogue Amoeba. It’s very simple to install and run. When I tried playing a DVD, though, the audio didn’t synch properly with the video.
This is the solution I found to fix the audio synchronization problem using VLC to play back the DVD and by adjusting the preferences and using VLC’s ability to buffer audio and adjust the synchronization settings.
- Open preferences in VLC
- Click on Advanced tab on bottom of screen
- Select Input/Codecs
- Select Access Modules
- Select DVD with menus [Note: to make this same adjustment when you are playing back regular files as opposed to DVDs, simply select File instead of DVD with menus and continue with the rest of the instructions]
- Change the default value (300 milliseconds) to 6000. This will increase the amount of audio data buffering to 6 seconds, which should be enough to synchronize the audio playback.
- Click Save to activate your changes (you may need to quit VLC to ensure the settings become active).
- Re-open the DVD using VLC and click Play.
- Click the “f” key repeatedly to adjust the amount of audio synchronization offset. It adjusts the audio offset downwards by 50 millisecond increments. I had to set mine to around -4900 milliseconds to correctly match the audio with the video output on my system. Press the “g” key to increase the offset in the other direction. Watch the actor’s lips and adjust the offset until it matches perfectly.
- Enjoy listening to your DVD audio through your speakers, streamed wirelessly!