Wednesday, October 28, 2009

Depths of plumbing

Our house has plumbing problems. They're not related in any way, but over the last couple months I've had to figure out how to fix toilet problems, bathtub problems, bathroom sink problems, and finally kitchen sink/disposal problems.

Look out Mario, I'm moving up.

Bread

Last night I dreamed about bread. But this wasn't just any bread, it was delicious, airy-light French bread, crackly on the outside and soft, smooth, and almost sweet on the inside. It was amazing.

Maybe it was because we were looking at wheat grinders and talking about making bread the night before.

Monday, October 26, 2009

Amazon oops!

This morning Amazon started a promotion, selling the new Tran-Siberian Orchestra album "Night Castle" for cheap. I bought it using the credit card number Amazon had thoughtfully (and un-asked for, as far as I can remember) remembered from the last time I bought something, then I downloaded the MP3s.

A couple hours later, I got a notice saying that the credit card I had used was invalid and my order was being canceled. I went and checked my Amazon account, and sure enough the credit card was an old one. However, I've already downloaded the MP3s.

Do I call them up and say, "Hey, I need to give you money!" Do I just re-buy the album using a valid credit card even though I don't need to download it again? Why didn't they run the credit card before allowing me to download the album in the first place?

Thursday, October 22, 2009

Crackers for all!

Yesterday, Child and I visited the animal shelter to show off Ash. We visited a couple weeks ago but missed a couple friends so we visited again. Pat had made a beautiful blanket with cat faces on it for Ash.



Faster! Faster!

There's a deer doing laps in the empty field across from my window. Seriously, he's sprinting across it, turning around, and sprinting back. He's already done it like three times.

Tuesday, October 20, 2009

Rights, and not so rights

Last night and this morning I read an extremely interesting talk by Elder Dallin H. Oaks about religious freedom, and how it was under attack.

It got me thinking about "rights." Rights are what are at the center of the "gay marriage" debate, but I think a large part of the disconnect between those for and against comes down to differing beliefs about rights.

Every right is not created equal. There are basic human rights, some of which are outlined in the U. S. Bill of Rights and all of which are granted by God/the universe/existance/whatever metaphysical concept you choose to accept. Other rights are those defined and granted by political bodies, such as speed limits, the drinking age, the voting age, municipal waste dumping laws, etc.

The tricky part here is that political bodies have stepped in and blurred the line. They've taken the basic human right of a religious union and wrapped it with a vast collection of government-granted privileges. This gray area causes confusion to arise. What exactly does the government have the right to do when it comes to marriage, and what supersedes its rights? Inevitably, because of the confusion and the nature of government, it overstepped its bounds.

And what were the opposing camps supposed to do? The religionists saw a cherished human right as being under attack and tried to protect it by codifying it into a form the government understood (a constitutional amendment), while the pro-gay-marriage activists understandably in turn saw that as an attack on their attempt to gain political privileges similar to those enjoyed by married couples, and fought back.

Result? Instant divide.

Unfortunately, there's no easy fix. Religionists will always think that pro-gay-marriage activists are contributing to the erosion of the foundation of society. Religionists won't like giving special privileges to a demographic that they see as defining themselves by a sexual deviancy. On the other hand, same-sex couples will always think they are being marginalized until they have the exact same privileges as heterosexual couples.

However, those irreconcilable differences were no excuse for the behavior that occurred before and after the Proposition 8 vote. If I understand him correctly, that was Elder Oaks' point. The Proposition 8 vote was all about political privileges to gay marriage advocates, yet they simultaneously attempted to deny other voters their political privilege of voting, by using intimidation.

Granted: neither side was blameless in every aspect. However, voter intimidation is pretty serious. I'm not aware of anything the pro-Prop-8 crowd did that approached that level.

I think both camps need to start by coming to a better understand the opposing camp's point of view. Religionists would see that same-sex marriage advocates aren't deliberately fighting against marriage, but for similar priviliges to those enjoyed by heterosexual marriages. And same-sex marriage advocates would benefit by understanding that this is a bigger issue to religionists than just hospital visitation and death benefits.

Monday, October 19, 2009

The truth is out there

Knowledge leads to understanding and happiness.

Half-truths, outright lies, and even facts taken out of context lead to confusion and unhappiness.

Go with your gut on this one.

Thursday, October 15, 2009

Worst Nightmare

It's official. I had to add Internet Explorer 8 to my list of browsers to support. Curse you, IE 8!!!

How come every version of Internet Explorer that comes out insists on rendering a webpage slightly different from all its earlier incarnations? I look at the same webpage in IE 6, 7 and 8 and one has a weird gap between two elements, one thinks it's Picasso and skews an image, and the third one decides to get creative positioning an element.

I know it's possible to be consistent; Firefox has managed to do it right the past three or four versions I've used. In Firefox, I've only seen one problem that occurred from upgrading to a new version, and that was a fairly esoteric mouse dragging issue.

dIE.

Health Savings Account (HSA) Research

I've been doing comparison of various health savings account (HSA) providers, and there's a lot of variety. Here's my findings so far:

UMB
Setup fee: $0 for partnered health insurance providers
Monthly fee: $2.50

Debit Account:
Interest paid:
$0 – $999.99: 0.50%
$1,000.00 – $4,999.99: 0.75%
$5,000.00 – $14,999.99: 1.00%
$15,000.00+: 2.02%

Investing Account:
Monthly fee: $1.50
Transaction fee: $14.95
Options: 7 major mutual funds

Impression: It was hard for their agents to get their fees straight. Three calls resulted in three different sets of fees, although each fee bounced around between two values. The fourth time I called (to see if I'd get yet another quote) I got a guy I had gotten before so I couldn't see if I'd get yet another. Anyway, I took the value for the fees that was quoted two out of three times in each case.

They had a nice selection of mutual funds from seven major companies (including American Funds and Fidelity), but no Vanguard, which I was hoping to find.

HealthSavings Administrators
Setup fee: $20
Monthly fee: $3.25

Debit Account:
Monthly fee: $2.00 (for balances below $2,500)

Interest paid:
$0.00 – $99.99: 0.00%
$100.00 – $999.99: 0.15%
$1,000.00 – $4,999.99: 0.50%
$5,000.00 – $14,999.99: 1.00%
$15,000.00+: 1.50%

Investing Account:
Quarterly fee: 0.0008 * account balance, max $16 per mutual fund
Options: 22 Vanguard mutual funds

Impression: The reason I found this company was because I was looking for a company that offered Vanguard mutual funds, which they did. One of the few, apparently. On the downside, you're limited to 22 pre-selected Vanguard mutual funds.

An even bigger downside: you can't have both a debit account and an investing account. You have to choose one or the other. This means if you want to invest your money (and you do) then you don't have a handy debit card to make your purchases/payments with. You'd have to submit a reimbursment request for each transaction (or perhaps you can submit them all at once at the end of the year?).

On the plus side, they don't charge transaction fees to move money into or out of their 22 Vanguard mutual funds.

Chase
This one's tricky. Apparently Humana (who we're getting our high-deductible health plan through) negotiated their own rates with Chase, so these numbers might not apply perfectly to everyone. I imagine they're close though.

Setup fee: $0 for partnered health insurance providers
Monthly fee: $3.00 ($2.50 if you use a non-partnered health insurance provider)

Debit Account:
Interest paid: 1.01%, no matter the account balance (0.50% for non-partnered plans)

Investing Account:
Monthly fee: $2.50
No transaction fees.
Options: JPMorgan and American Century mutual funds only.

Impression: limited investing choices. The fees you're charged and interest you get may vary depending on who your insurance provider is (this is probably the case with a lot of companies). In short, the limited investing choices is the biggest con, and the 1.01% interest rate is the biggest pro.

First Horizon Msaver:
Setup fee: $0 for partnered health insurance providers
Monthly fee: $2.50

Debit Account:
Interest paid:
$0 - $499.99: 0.10%
$500 - $3,499.99: 0.20%
$3,500 - $4,999.99: 0.50%
$5,000 - $9,999.99: 0.75%
$10,000+: 1.00%

Investing Account:
Monthly fee: $2.50 if you only stick to 8 selected Goldmann Sachs mutual funds, $0 if you go their full brokerage account route.
Transaction fees: $29.95+ if you go their full brokerage account route.
Options: Potentially anything

Impression: I like their website. I like the fact that you can open a brokerage account that gives you access to whatever stocks or mutual funds (Vanguard!) you want, but the transaction fees are really high.

Fifth Third Bank
Setup fee: $0 for partnered health insurance providers
Monthly fee: $2.00

Debit Account:
Interest paid:
$0.01 - $2,999.99: 0.50%
$3,000.00– $4,999.99: 1.00%
$5,000.00+: 1.50%

Investment Account:
Monthly fee: $2.00
Transaction fees: $0
Options: 25 funds from a variety of companies

Impression: Uses a MasterCard debit card. I seem to notice that a lot of places don't accept MasterCard. Is that really the case?

HSA Bank
Setup fee: $18.00
Monthly fee: $2.25

Debit Account:
Interest paid:
Below $500: 0.25%
$500 - $2,499.99: 0.65%
$2,500 - $4,999.99: 1.00%
$5,000 - $14,999.99: 1.50%
$15,000+: 2.05%

Investment Account:
Everything is done through TD Ameritrade.
Transaction fee for stock: $10
Transaction fee for no-load mutual funds: $50 (high!)
Investment options: anything

Impression:
It doesn't appear like Ameritrade has very good customer reviews, and the fee for a no-load mutual fund is really high, but the benefit is that you can invest in anything you want.

HealthEquity (IntermountainHealthCare's preferred HSA vendor, based in Draper, UT) gets a dishonorable mention and no link because they refuse to disclose their interest rates until you actually sign up. Seriously?! What type of bank (or ANY financial institution) doesn't tell you their interest rates up front? I'll tell you what type: the type that have poor and uncompetitive interest rates. I'd be interested in talking to anyone who uses them to see if that's the case.

Wednesday, October 14, 2009

Health Savings Account (HSA)

Child and I have been looking into health insurance options. With a new baby, our rates are about to go up, and it's hard paying all the money we do when all of us are healthy as far as we can tell.

The option we've decided on is a Health Savings Account (HSA).

The idea is that instead of paying full premiums for regular health insurance, you pay a smaller premium for health insurance with a high deductible (high-deductible health plan, or HDHP). Along with that, you open a special health savings account (HSA) where you can deposit money (such as the money you saved by paying smaller premiums). This money is used to pay for any medical expenses.

There's a few pros and cons.

Pros:
If nothing ever happens to you, you're not out the money as you would have been if you'd spent it on insurance premiums. It just builds in your savings account.

Any money you put into the savings account is untaxed if you eventually use it for qualified medical expenses.

"Qualified medical expenses" are defined very broadly. Things like acupuncture, chiropractors, even lasik eye surgery are acceptable, as well as the more usual things like medications. You're still paying for the chiropractor, but if you'd be paying anyway, it's better to pay with untaxed money.

After age 65, you can take the money out for non-medical expenses without penalty, although it will still be income taxed if used for non-medical expenses. (In other words, it will be tax-deferred.)

Cons:
You have a very high deductible; usually $3,000 to $10,000. This means that if something big happens, you have a very large out-of-pocket expense before insurance kicks in.

This also means that for smaller things like doctor visits and prescription medications, you'll be paying for everything since it's doubtful you'll reach your deductible.

Any money you put in the savings account is supposed to be used for medical expenses only. Before age 65, if you take it out for something other than medical expenses, the government hits you with a 10% penalty plus income tax.

Monday, October 12, 2009

A Star (A*) path/route finding Javascript code

For a little side project I was working on, I needed a Javascript implementation of the A Star (A*) path finding algorithm. I couldn't find a good/simple one online, so I coded my own. I'm posting it here in case anyone else is interested in using it. Example map:  
Example path:  
The usage is simple. Make a single function call, passing in the start and destination x/y locations as arrays (e.g. [1, 2]), the board as a two-dimensional array (where 0 means a spot is open), and the number of rows and columns in your board. A final parameter indicates whether diagonal movement should be allowed.
  
<script>
path = a_star(start, destination, board, rows, columns, allow_diagonals);
</script>
 

The function will return an array of nodes from start to destination with the shortest path. The x/y values of each node can be accessed like so: path[0].x or path[0].y.  

<script>
for (var i = 0; i < path.length; i++)
    alert("X/Y of path node: "+path[i].x+"/"+path[i].y);
</script>
 

Download the A Star Javascript code.

Example implementation:
<html>
    <body>
        <script src="a_star.js"></script>
        <script>
        //Set the number of rows and columns for the board
        var rows = 10;
        var columns = 10;

        //Create the board, setting random squares to be obstacles
        var board = [];
        for (var x = 0; x < columns; x++)
        {
            board[x] = [];

            for (var y = 0; y < rows; y++)
            {
                //Give each square a 25% chance of being an obstacle
                var square = Math.floor(Math.random()*4);

                //0 = open, 1 = obstacle
                if (square == 0)
                    board[x][y] = 1;
                else
                    board[x][y] = 0;
            }
        }
    
        //Set the start and destination squares (and guarantee they're not an obstacle)
        var start = [1, 1];
        board[1][1] = 0;

        var destination = [8, 8];
        board[8][8] = 0;


          //Indicate whether we should do cardinal directions only (N, E, S, W) or diagonal directions as well
         var allow_diagonals = true;
 

        //Use A* to see if there's a path between them
        var path = a_star(start, destination, board, rows, columns, allow_diagonals);

        //Draw the board
        for (var y = 0; y < rows; y++)
        {
            document.write("<div>");

            for (var x = 0; x < columns; x++)        
            {
                document.write("<div id='board_"+x+"_"+y+"' style='"
                    + "float: left;"
                    + " width: 20; height: 20;"
                    + " border: thin solid black;"
                    + " background-color: "+(board[x][y] == 0 ? "white" : "black")
                    + "'></div>");
            }

            document.write("<div style='clear: both;'></div>");
            document.write("</div>");
        }


         //Mark the start and end nodes a special border color
        document.getElementById("board_" + start[0] + "_" + start[1]).style.borderColor = "yellow";
        document.getElementById("board_" + destination[0] + "_" + destination[1]).style.borderColor = "yellow";


         //Highlight the path
        for (var i = 0; i < path.length; i++)
            document.getElementById("board_" + path[i].x + "_" + path[i].y).style.backgroundColor = "red";
        </script>
    </body>
</html>

Thursday, October 08, 2009

Choice Quotes

"Although we're using the term 'radiation' it is nothing like radioactive radiation."
- Found while looking for reviews of the ultraviolet SteriPEN.

September Snow

September refused to go without a final hurrah. This pictures is a little late, from the last day of September, but I wanted to post it anyway.

We had our first taste of snow on the mountains. You can tell from the picture that it didn't make it down to the valley, but it was enough to let us know winter is coming. I always enjoy the changing of the seasons.

Of course, right now our relatives in Wyoming and Idaho have REAL snow. I don't think I envy them yet, not in the beginning of October.

Halloween I

Child had a great idea for a Halloween decoration:


After we did that, I added this to our door:


(The misspelling is...um...pirate spelling.)

Friday, September 25, 2009

Learning all sorts of things

Did you know that the Alphabet Song and Twinkle, Twinkle Little Star have the same tune? I don't know how many times I've sung both of those, but I never realized it before.

Sleep, I hardly know thee

I can see why new parent turn into "walking zombies." The first few days, Squeakaboo slept great. Last night, we went to bed at 1 AM, she fed until 2:30 or 3, and she woke up again at 5. Hopefully I can get a nappy-time this afternoon.

Unrelated, I was listening to talk radio last night driving home from the vet's when one of the hosts said (the context might be wrong, but the phrasing is right): "And from a janitor for the TSA we got the download on the situation..."

"Download"? I guess it is the digital age now...

Saturday, September 19, 2009

Ups and downs

BYU lost.

On the other hand, my two-year-old retirement account is in the black for the first time ever, thanks to the strong market over the past week.

In the grand scheme of things, I probably came out ahead.

Thursday, September 17, 2009

It's a minionette!

A new recruit has joined the Drek & Child World Domination Organization! It's a girl; 7 pounds, 4 ounces, 22.5 inches long, born at 2:09 AM on 9/17/09. No name yet.

Helpful hint #1: Men: take off your wedding ring during labor. This will prevent an imprint of it from being permanently embedded on the fingers to both sides.


Child twittered updates during labor. Actually, she had me do the updates, which is why one of them said, "Ho0-ah!"

A side effect of this was that my technologically-inclined cousin was one of the first to know Child was having her baby (from the Twitter stream), and posted it on Facebook, where my sister saw it and mentioned it to my mother later that morning.

Helpful hint #2: Make sure your mother doesn't hear about your new baby third-hand.

In our defense, we were planning to actually call people later that morning after we had woken up. Anyway, probably because of her distressing lateness in hearing the news, my mom rushed up to Draper to say hi and see her new granddaughter.

Child's parents visited later that afternoon. They were good enough to bring a few essentials, and it was actually Child's mom's birthday so she and her granddaughter share the same birthday now!


Mother and daughter are doing great and did great during the delivery as well. Active labor was only about four hours long, which was nice.

Helpful hint #3: Don't complain about how much your hand hurts when your wife squeezes it during a contraction.


Also during that day, Child's best friend Kestrel stopped by, also bringing an essential or two. She's actually been really great, coming by several times to check up on Child, bring little gifts, and generally support Child. A real life-saver.

Later that evening, Child's sister and brother-in-law came by and brought dinner with them, which was great. A lady from church had also brought dinner (meatloaf for carnivorous me, and zucchini soup for vegetarian Child) which we tucked away in the fridge.

My sister and brother-in-law were also came down from Idaho to buy a minivan, so they stopped by and saw the Kid also. I took the Kid outside so we could check out their new minivan, and on the way back inside I saw our next-door neighbor. We live in the end unit of a townhome and she lives right next to us, so Child and I were worried that we may have kept her awake during the birth. (Oh yeah, we did a water birth at home.) I showed her the kid and apologized for any noise, but she claimed she didn't hear a thing. Not sure I believe her.

Speaking of the water birth at home, Child had an uphill battle to convince me it was a better idea than the hospital. I'm very sciency and Child is very alternative, so we clash occasionally over things like that. Once Child changed tactics and pointed out that not only would I have free acccess to a refrigerator during the birth, but that a midwife would cost less than a third of our insurance maternity deductible, I was sold.

In retrospect she was totally right; the home birth went great, everything was relaxed (as much as could be during a birth), and having a midwife and assistant giving Child their undivided attention was great. Child had a much better experience then I imagine she would have had in a hospital, and the Kid probably did too.

Helpful hint #4: don't suggest to your wife that you might go play Frisbee the day after your daughter is born.

On day two (today), Child and Kid went outside for a brief bit o' sunshine. It was Child's furthest venture since the Kid was born. Child's a little sore (can't imagine why) so she's mostly been staying in bed while I've been running food and dishes between the upstairs and downstairs.

I did a quick back-of-the-envelope calculation: given that there are 14 stairs, and I've made a trip upstairs or downstairs on average every 10 minutes for the past two days, that means I've walked about ten billion stairs in the last 48 hours. Oh, my suffering. Can anything compare?

Wednesday, September 16, 2009

Football Rankings

I'm not a huge football fan, but I enjoy following BYU football. It seems like one of the recurring debates in college football (and probably most sports) is about the best way to rank teams.

If A beats B by 10 points, and the next week B turns around and beats A by 10 points, who is better?

If A beats B, and B beats C, and C beats A, who is better?

Anyway, it's only two weeks into the football season, but we can already start to compare teams with each other. BYU has only played two teams (Oklahoma and Tulane), but those teams have each played one other team, and those teams have each played one other, etc. Our network begins to come together.

If we take all the connections we can make and look strictly at the scores, we can come up with an initial ranking. It doesn't tell us much, because if BYU beats Oklahoma by 1 point and Utah beats Utah State by 18, Utah might look better strictly based on the score, but it really depends on how Oklahoma compares to Utah State.

As the network starts to fill out (e.g. as Oklahoma is eventually connected to Utah State) I think the numbers will make more sense, but just for kicks here's my own top 25 rankings after two weeks:

Florida: 40.8 (same)
California: 39 (same)
Nebraska: 37.5 (same)
Texas: 35 (same)
Brigham Young: 33.2 (same)
Iowa: 32
Cincinnati: 32 (same)
Oklahoma: 32 (same)
Texas Tech: 31
UCLA: 30.3
Boise State: 29.4 (same)
Alabama: 29.3 (same)
USC: 27.4 (same)
Boston College: 27
Auburn: 26.3
Tennessee: 25.3
Ohio State: 24 (same)
Duke: 23.7
Houston: 23.5 (same)
LSU: 22.8 (same)
Kentucky: 22.6
Pittsburgh: 22
Penn State: 22 (same)
Michigan: 21.8 (same)
Georgia Tech: 21

The numbers are the average points they beat other teams by (directly, or indirectly through intermediate teams). If it says "(same)" afterwards, then it was also on the AP top 25 rankings (although not necessarily at the same rank).

Surprisingly, the AP poll and I had 15 of the 25 teams in common, although all this really tells me is that my method isn't totally flawed. I'd still trust the AP poll over my technique because they're taking (most likely) better things into account than I am, but I'll be interested to see how we compare once more games are played.

AP ranking:

1 Florida
2 Texas
3 USC
4 Alabama
5 Mississippi
5 Penn State
7 Brigham Young
8 California
9 LSU
10 Boise State
11 Ohio State
12 Oklahoma
13 Virginia Tech
14 Georgia Tech
15 TCU
16 Oklahoma State
17 Cincinnati
18 Utah
19 Nebraska
20 Miami (FL)
21 Houston
22 Kansas
23 Georgia
24 North Carolina
25 Michigan

Monday, September 14, 2009

AB+

I finally looked up what my blood type meant. I'm AB+, which means I belong to an elite group of "Bloodies" to which only 3.4% of Americans belong. We are universal recipients, or the bankers of the transfusion world, happy to rake in the "red gold" from anyone, while stingy and particular about who we doll it back out to.

Ah, it feels good to find out I'm part of exclusive club which I had no control over joining and couldn't leave if I wanted.