Friday, June 12, 2009

High-Protein Bread Flour

Flour with even higher protein levels than typical bread flour needs more water to make bread. I made chewy bread with this recipe:

1 cup warm water

1 tsp salt

3 cups Sir Lancelot high-gluten flour from King Arthur Flour

2 tsp yeast

I added ingredients in that order, and put it on the Dough cycle. I checked on it after 3 minutes of machine kneading to check the water-flour ratio. Add more water by teaspoons, more flour by tablespoons. (On a dry day, I needed to add 3 tsp water!) When it was done, I started the cycle over again for 10 minutes so that the bread machine did the second kneading also. The flour is that fractious! Form log, slash, bake as usual in french bread pan or on a pizza stone.

Tuesday, June 9, 2009

Insulin Resistance Quiz

I found an insulin resistance quiz from Sensible-Alternative Naturopathic Clinic that I like, for the most part. The good part is that the different questions have different weights (makes sense), the bad part is that I think it's too easy to get a score of insulin resistance on this quiz. As long as the next step is to talk to your doctor, as I did yesterday, that's fine. I will have a fasting glucose test done Thursday morning (advance notice of crankiness!), and we'll see how it compares to the previous one done a few weeks before I got pregnant with Cale.

Tuesday, June 2, 2009

Mac File Sanctity with rsync

Since I know about Backup Bouncer, I have no excuse not to try it on rsync, the command-line way I use a USB flash drive to keep my files synchronized between work and home laptops. You can get started from this post. Still, I hadn't tested rsync because my process worked as far as I could tell. (Then I ran into OpenMeta, and I want those tags that are in extended attributes!)

Here's how I got started:

download Backup Bouncer

tar -zxf backup-bouncer-0.1.3.tgz

cd backup-bouncer-0.1.3

make

./bbouncer create-vol Src

./bbouncer create-vol Dst

./bbouncer create /Volumes/Src

So here are the results from the tests I ran.

First, rsync from an old version of RsyncX (now vanishware?) I believe:

/usr/local/bin/rsync --version

rsync version 2.6.0 protocol version 27

Copyright (C) 1996-2004 by Andrew Tridgell and others

HFS+ filesystem support for OSX (C)2004 Kevin A. Boyd

Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,

IPv6, 32-bit system inums, 64-bit internal inums

sudo /usr/local/bin/rsync -av --eahfs --delete --showtogo --stats /Volumes/Src/ /Volumes/Dst/

sudo ./bbouncer verify -d /Volumes/Src /Volumes/Dst

Verifying: basic-permissions ... ok (Critical)

Verifying: timestamps ... ok (Critical)

Verifying: symlinks ... ok (Critical)

Verifying: symlink-ownership ... FAIL

Verifying: hardlinks ... FAIL (Important)

Verifying: resource-forks ...

Sub-test: on files ... ok (Critical)

Sub-test: on hardlinked files ... FAIL (Important)

Verifying: finder-flags ... FAIL (Critical)

Verifying: finder-locks ... ok

Verifying: creation-date ... ok

Verifying: bsd-flags ... ok

Verifying: extended-attrs ...

Sub-test: on files ... FAIL (Important)

Sub-test: on directories ... FAIL (Important)

Sub-test: on symlinks ... FAIL

Verifying: access-control-lists ...

Sub-test: on files ... FAIL (Important)

Sub-test: on dirs ... FAIL (Important)

Verifying: fifo ... ok

Verifying: devices ... FAIL

Verifying: combo-tests ...

Sub-test: xattrs + rsrc forks ... FAIL

Sub-test: lots of metadata ... FAIL

Yeah, I noticed that it fails on extended attributes *sigh*.

Next, rsync from MacPorts.

/opt/local/bin/rsync --version

rsync version 3.0.5 protocol version 30

Copyright (C) 1996-2008 by Andrew Tridgell, Wayne Davison, and others.

Web site: http://rsync.samba.org/

Capabilities:

64-bit files, 32-bit inums, 32-bit timestamps, 64-bit long ints,

socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,

append, ACLs, xattrs, iconv, symtimes, file-flags

sudo ./bbouncer clean /Volumes/Dst

sudo /opt/local/bin/rsync -av --eahfs --delete --showtogo --stats /Volumes/Src/ /Volumes/Dst/

rsync error: syntax or usage error (code 1) at main.c(1423) [client=3.0.5]

sudo /opt/local/bin/rsync -av --xattrs --delete --stats /Volumes/Src/ /Volumes/Dst/

sudo ./bbouncer verify -d /Volumes/Src /Volumes/Dst

Verifying: basic-permissions ... ok (Critical)

Verifying: timestamps ... ok (Critical)

Verifying: symlinks ... ok (Critical)

Verifying: symlink-ownership ... ok

Verifying: hardlinks ... FAIL (Important)

Verifying: resource-forks ...

Sub-test: on files ... ok (Critical)

Sub-test: on hardlinked files ... FAIL (Important)

Verifying: finder-flags ... ok (Critical)

Verifying: finder-locks ... FAIL

Verifying: creation-date ... FAIL

Verifying: bsd-flags ... ok

Verifying: extended-attrs ...

Sub-test: on files ... ok (Important)

Sub-test: on directories ... ok (Important)

Sub-test: on symlinks ... ok

Verifying: access-control-lists ...

Sub-test: on files ... FAIL (Important)

Sub-test: on dirs ... FAIL (Important)

Verifying: fifo ... ok

Verifying: devices ... ok

Verifying: combo-tests ...

Sub-test: xattrs + rsrc forks ... ok

Sub-test: lots of metadata ... FAIL

That looks a lot better! Now to compare to the rsync that Apple ships with Leopard (10.5).

/usr/bin/rsync --version

rsync version 2.6.9 protocol version 29

Copyright (C) 1996-2006 by Andrew Tridgell, Wayne Davison, and others.

Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,

inplace, IPv6, 32-bit system inums, 64-bit internal inums

sudo ./bbouncer clean /Volumes/Dst

sudo /usr/bin/rsync -av --xattrs --delete --stats /Volumes/Src/ /Volumes/Dst/

rsync error: syntax or usage error (code 1) at /SourceCache/rsync/rsync-35.2/rsync/main.c(1333) [client=2.6.9]

sudo /usr/bin/rsync -av --delete --stats /Volumes/Src/ /Volumes/Dst/

sudo ./bbouncer verify -d /Volumes/Src /Volumes/Dst

Verifying: basic-permissions ... ok (Critical)

Verifying: timestamps ... ok (Critical)

Verifying: symlinks ... ok (Critical)

Verifying: symlink-ownership ... ok

Verifying: hardlinks ... FAIL (Important)

Verifying: resource-forks ...

Sub-test: on files ... FAIL (Critical)

Sub-test: on hardlinked files ... FAIL (Important)

Verifying: finder-flags ... FAIL (Critical)

Verifying: finder-locks ... FAIL

Verifying: creation-date ... FAIL

Verifying: bsd-flags ... ok

Verifying: extended-attrs ...

Sub-test: on files ... FAIL (Important)

Sub-test: on directories ... FAIL (Important)

Sub-test: on symlinks ... FAIL

Verifying: access-control-lists ...

Sub-test: on files ... FAIL (Important)

Sub-test: on dirs ... FAIL (Important)

Verifying: fifo ... ok

Verifying: devices ... ok

Verifying: combo-tests ...

Sub-test: xattrs + rsrc forks ... FAIL

Sub-test: lots of metadata ... FAIL

sudo ./bbouncer clean /Volumes/Dst

sudo /usr/bin/rsync -av --extended-attributes --delete --stats /Volumes/Src/ /Volumes/Dst/

rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-35.2/rsync/main.c(992) [sender=2.6.9]

sudo ./bbouncer verify -d /Volumes/Src /Volumes/Dst

Verifying: basic-permissions ... ok (Critical)

Verifying: timestamps ... ok (Critical)

Verifying: symlinks ... ok (Critical)

Verifying: symlink-ownership ... ok

Verifying: hardlinks ... FAIL (Important)

Verifying: resource-forks ...

Sub-test: on files ... ok (Critical)

Sub-test: on hardlinked files ... FAIL (Important)

Verifying: finder-flags ... ok (Critical)

Verifying: finder-locks ... FAIL

Verifying: creation-date ... FAIL

Verifying: bsd-flags ... ok

Verifying: extended-attrs ...

Sub-test: on files ... ok (Important)

Sub-test: on directories ... ok (Important)

Sub-test: on symlinks ... FAIL

Verifying: access-control-lists ...

Sub-test: on files ... ok (Important)

Sub-test: on dirs ... ok (Important)

Verifying: fifo ... ok

Verifying: devices ... ok

Verifying: combo-tests ...

Sub-test: xattrs + rsrc forks ... ok

Sub-test: lots of metadata ... ok

Hmm, that took some wrangling, but it did work. Now to try the lart fork of rsync in MacPorts.

sudo port -f activate rsync-lart

---> Activating rsync-lart

Warning: File /opt/local/bin/rsync already exists. Moving to: /opt/local/bin/rsync.mp_1243889983.

Warning: File /opt/local/share/man/man1/rsync.1.gz already exists. Moving to: /opt/local/share/man/man1/rsync.1.gz.mp_1243889983.

Warning: File /opt/local/share/man/man5/rsyncd.conf.5.gz already exists. Moving to: /opt/local/share/man/man5/rsyncd.conf.5.gz.mp_1243889983.

/opt/local/bin/rsync --version

rsync version 2.6.6 protocol version 29

Copyright (C) 1996-2005 by Andrew Tridgell and others

Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,

inplace, IPv6, 32-bit system inums, 64-bit internal inums

sudo ./bbouncer clean /Volumes/Dst

sudo /opt/local/bin/rsync -av --extended-attributes --delete --stats /Volumes/Src/ /Volumes/Dst/

rsync error: some files could not be transferred (code 23) at main.c(806)

sudo /opt/local/bin/rsync -av --extended-attributes --delete --stats /Volumes/Src/ /Volumes/Dst/

(now runs without error, but transfers stuff every time ... known issue if you read lart link)

sudo ./bbouncer verify -d /Volumes/Src /Volumes/Dst

Verifying: basic-permissions ... ok (Critical)

Verifying: timestamps ... ok (Critical)

Verifying: symlinks ... ok (Critical)

Verifying: symlink-ownership ... ok

Verifying: hardlinks ... FAIL (Important)

Verifying: resource-forks ...

Sub-test: on files ... ok (Critical)

Sub-test: on hardlinked files ... FAIL (Important)

Verifying: finder-flags ... FAIL (Critical)

Verifying: finder-locks ... FAIL

Verifying: creation-date ... FAIL

Verifying: bsd-flags ... ok

Verifying: extended-attrs ...

Sub-test: on files ... ok (Important)

Sub-test: on directories ... ok (Important)

Sub-test: on symlinks ... FAIL

Verifying: access-control-lists ...

Sub-test: on files ... ok (Important)

Sub-test: on dirs ... ok (Important)

Verifying: fifo ... ok

Verifying: devices ... ok

Verifying: combo-tests ...

Sub-test: xattrs + rsrc forks ... ok

Sub-test: lots of metadata ... FAIL

And then clean up.

eject Src and Dst disk images

rm Src.sparseimage Dst.sparseimage

So, what did I learn?

They all fail on hardlinks (I don't use 'em, but Time Machine does), and all but Apple's rsync fail on ACLs (but I don't use 'em).

The RsyncX rsync fails on symlink ownership (I use a little, but I can live with it), on finder flags (I use a little, but I hadn't noticed a problem), on the extended attributes I now want (deal-breaker), and on lots of metadata (clearly I like metadata). It kicks out 12 failure messages, and I do need to upgrade so I can use OpenMeta.

Looking at rsync-lart, it fails on the finder flags (I use infrequently), finder locks (I can ignore), creation date (I like that to be correct), extended attributes on symlinks (I can avoid), and lots of metadata (but I love metadata), for 7 failure messages total. However, rsync-lart doesn't have the performance of the others since it always transfers resource forks and extended attributes.

The latest version of rsync fails on finder locks (I don't mind), creation date (that's annoying, possibly too annoying), and lots of metadata (oops) for a mere 7 failure messages.

Apple's rsync fails on finder locks, creation date, and extended attributes on symlinks (I can avoid that). Only 5 failure messages!

So Apple's own rsync looks promising! When I throw out the FAIL messages that don't bother me (hardlinks) and decide not to worry about creation dates initially, then all I'm left with is that it fails on the extended attributes of symlinks. I don't care, since I intend to add extended attributes to the original files instead. I don't care about ACLs, but I do care about lots of metadata where the rsync 3.0.5 failed.

That means the maligned Apple version of rsync looks ok to me. Now to see if it works out for me in practice ...

Thursday, May 28, 2009

Spotlight icons corrupted

So I noticed that my Spotlight application icons were corrupted (just like the screenshot) ... annoying! However, I have since noticed two important facts.

First, if On My Command were installed before OS X 10.5 / Leopard (meaning I installed it when I was running 10.4), I didn't have the corrupted icons in Spotlight. So my old Mac is fine, my new Mac has the problem.

And second, now that I've updated to 10.5.7, my Spotlight application icons aren't corrupted. So it was a problem, but now it's gone. Whew!

UPDATE July 2009: the corrupted icons are back on the same Mac (On My Command installed after Leopard/10.5). They seem to go away just after a Software Update to OS X, and then come back until all application icons are corrupted. *sigh*

Sunday, April 26, 2009

Remarkable!

I just had to check, and yes, Bank of America just dropped the limit on my credit card! (I had to compare this letter to the previous one.) In fact, if you round down to 2 significant digits, they cut my limit in HALF. Now, I've never ever run up even 10% on this card, so a 50% cut isn't a problem. I consider it less of a liability to have a lower limit. I know it's just a response to the recent financial crisis, but I think I'm proud of BoA.

Saturday, April 25, 2009

First Iris!

My first iris of the season bloomed this morning! It's yellow, and it's lovely! (I'm sure if I tended my irises at all, and if they had more sun, they'd bloom earlier. But what they get is loving neglect.) Between the hot weather today and the summer flowers, I'm all set for summer! Woo-hoo, bring on the warmth!

Monday, April 13, 2009

Hemp Milk: great for babies!

I noticed that Cale's hempmilk says Not for use as an infant formula. I know the true (cynical) reason for that label is that infant formula makers have expensive lawyers and lobbyists to crowd out the competition. But the more I think about it, the more that annoys me. (Rachel Ray is right: who's going to lobby for broccoli? because they should.) I have a baby who is allergic to milk and soy. Infant formula is either made from milk or from soy. Oh sure, there's the hypoallergenic hydrolyzed formula for babies with allergies. Guess what? Cale doesn't like the flavor, and it gives him a lot of painful gas (a mild allergic reaction). So when Cale wants a bottle or ta-ta and I don't have anything for him, what am I supposed to do? It was the best of serendipity that I learned about hemp milk from another parent at work, a dad who's proud his twin girls, who outweigh Cale despite being twins to his single status, have never had formula, just breast milk or this hemp milk. If those twins thrived on hemp milk, as they clearly did with their outstanding weight gain to go from premature twins to normal size within the first year, I'm convinced it's safe for Cale to drink even if it's <sarcasm>not for use as an infant formula</sarcasm>. No you twerpy lawyers, it's better, much better, than infant formula (Cale likes the flavor and doesn't get painful allergic gas from it)! How am I supposed to know these things, to be a good mom to my sweet child who has multiple allergies, when the formula companies have lawyers making sure this vital information is suppressed? *sigh* I'm glad I've got something for Cale, but I'm sad that this isn't widely known. I'm so sorry that other moms in my situation (baby with multiple allergies, including milk and soy) don't know that there's an easy answer that's cheaper and healthier than hydrolyzed infant formula. Shucks, you don't even have to be avoiding allergies to want to know this! Save money? Healthy alternative? You bet!

I know every use, even one!, of infant formula in the first year* increases the chance of SIDS as compared to a diet of strictly breast milk. Like the campaign says, breast is best. It really is! *Yes, somewhere between 4 and 6 months, babies need pureed food added to their diet too. As long as it's healthy (not pureed fast food greasy salty swill), baby food isn't a risk. What I mean is, if it goes in a bottle, formula is not my first choice (breast milk) or my second choice (help milk). Formula's not even on my list. And I'm generally not the crunchy type if you know what I mean ...