Category Archives: Mac OS X

Mac OS X

File Transfer and Backup with GNU rsync

Our lab maintains an extensive wiki for internal documentation and coordination. With all of the hurricane shenanigans, new interest in automated backups to removable drives was expressed. Since I already do that, I wrote up how to do it on the wiki for the rest of the lab.

I think it’s a decent howto, so I decided to copy it to my wiki and share it with the world: Automated Backups with rsync. I also posted my older writeup on the basics of transferring files with rsync: Transferring Files with rsync. They’re both under the newly-created Tech Tips section of my personal site, brocktice.com.

A Long Day

Today was quite a long day. I was at work for almost 12 hours, a good 9 of which were hard work.

I’m too beat to make much of an entry… Oh, and I put my film cover on the iPod nano. It’s static-cling which is nice, because it can be re-seated at any time.

Also, headphones with a built-in iPod nano dock. Mmmm.

Here’re the stats:

Sleep Water Exercise Coffee Alcohol
07:00 h 2.652 L 18:51 min 3/4 cup(s) 3 drink(s)

There was wine at the seminar today.

Grants.gov

Grants.gov has moved to requiring Windows-only PureEdge software in order to apply for a grant. Worse, their response to the scientific community’s outcry on this platform-dependence is to use VirtualPC with a copy of Windows. They reason that this is acceptable because Microsoft distributes VirtualPC with Office now. And we all know, EVERYBODY has Office. We pick it from the Office Tree of Giving.

This is the age of the Web 2.0™ The government, the self-same government that took Microsoft to task over lock-in, is moving from a well-liked, web-based platform (FastTrack) to some obscure piece of Windows-and-IE-only software?

What the hell is going on?


ADDENDUM 2005-11-02 @ 16:12:

Here is what I wrote to them:

Hello,
I am writing to inquire as to why the web-based FastTrack software has been abandoned for the Windows-only PureEdge software. PureEdge’s assertion that VirtualPC running Windows is an adequate solution for mac users is somewhat questionable. Furthermore, users of the various BSDs, Linux distributions, OS/2, plan9, Inferno, etc are left without any access. Is there pressure on PureEdge by Grants.gov to include support for other platforms? Perhaps a plugin for the open-source Firefox browser instead of IE?

If there is in fact no current plan or desire for a more open grant application system, would you please direct me as to who might have some influence in changing this?

Thanks,
[signature]

and here is their prompt response:

Dear Brock,

Thanks you for your recent inquiry to Grants.gov concerning the Pure Edge viewer.

Grants.gov has been working with Pure Edge to offer a viewer that is compatible with as many operating systems as possible. We feel that we are not too far from achieving that goal, and when we do, we will be sure that information will be posted on our website. In the meantime, we apologize if the viewer options we offer for your operating system are not acceptable. Our goal is to ensure the widest possible acceptance of Grants.gov and certainly not to exclude anyone from the electronic grants submission process. To that end, as a first step, we ensured that the Pure Edge viewer will work with a Windows emulator program, as described on our website.

Grants.gov employs the PureEdge Viewer 6.0 for viewing and completing application forms. The PureEdge viewer’s 508 compliance is described at http://www.pureedge.com/products/products/PureEdgeAccessibilityGuide.pdf. Grants.gov sponsored testing of the PureEdge viewer demonstrating the viewer’s compatibility with the widely used Jaws screen reader. An enhanced version of the PureEdge Viewer that will include compatibility with a broader range of screen reader products through support for industry standard interfaces for accessibility is in the process of being tested and upon successful completion of testing will be posted to the site.

Feel free to contact us should you have further inquiries.

Thank you,

Ryan
Grants.gov, Customer Support
www.grants.gov

Encoding Movies for the iPod Video using Linux

If you want to encode video that you have on DVD for your iPod Video, a nice utility called HandBrake will do it for you. It works pretty well on Mac OS X, but my laptop’s a little slow in the I/O department, and I prefer to use my Linux desktop for encoding.

Caveat: it’s illegal to rip commercial, encrypted DVDs to your computer. Non-encrypted DVDs for which you have copyright permission, for example your home videos, are legal to rip. Don’t say I didn’t warn you.

Now that that’s out of the way, here’s a little script I wrote to rip DVDs using HandBrake for linux:


#!/bin/bash
# Filename is dvd2ipod
# $1 - output filename
# $2 - title number
handbrake -f mp4 -i /dev/dvdrw \
-o $1 -t $2 -e ffmpeg -E faac -w 320

It assumes that you’ve installed HandBrake, and renamed HBTest to ‘handbrake’ and put it somewhere in your path. It also assumes that your DVD drive is /dev/dvdrw. This outputs video in a format that iTunes will let you import, and subsequently play on your iPod Video. I didn’t set anything for audio tracks, subtitles, etc. It uses the defaults. You can easily modify this script for that. The important things are the dimensions ( -w 320 ) and the codecs ( -e ffmpeg, -f mp4, -E faac ). The first argument is the output filename you want, and the second is the title number that you want from the DVD. Say you have a DVD from your wedding with two titles — the wedding, and the reception. If the wedding is title 1, and the reception is title 2, to rip the reception, you’d do this:


dvd2ipod OurWeddingReception.mp4 2

Wait a bit, ignore the error messages as long as it keeps encoding, and enjoy showing your friends/family/coworkers your reception (or whatever)!

ADDENDUM 2007-02-07: You can now use larger movie sizes, up to 640×480, so you may want to change that if you plan on playing to an external display device. Otherwise, stick with what’s written above, as the 5G video ipod only has a QVGA screen.

Ready to Crunch

I found (in my backups — I’m so thankful that I ran nightly backups to a removable drive) a statically-linked binary of the latest version of our simulation software.

I’m now setting up a universal operating environment, containing binaries, libraries, and scripts, that I can synchronize onto the various clusters that the lab has been given access to. I think I’ll have simulations running by tomorrow around lunch time.

I’ve also started logging the time I spend on lab-type work on a daily basis. I hope this will give me more insight into how I am spending my time, so as to encourage me to make the best use of work-time that I can.

Yesterday, I did nearly seven hours of work, while today I’m probably closer to three or four. I had to run errands, including returning the multifunction printer/scanner/etc device I bought last week. The scanner doesn’t work under OS X version 10.4, contrary to HP’s claims. It was therefore taking up space and a place in my budget and it had to go. I had my eye on a replacement device, but unfortunately Best Buy did not have it in stock — only available on their website. The joys of not having a permanent mailing address.

I should be returning to Mandeville soon, and will acquire the supplies I need at that time.