Skip to content
Apr 9 10

Evening Run and Morning Swim

by paul


Who knew a heart rate monitor with only one button is actually kinda hard to use, I don’t know how many times to hit the button to get to what I want to see.

Apr 7 10

Making a quick salad

by paul

Apr 4 10

Brick Workout

by paul

I am trying to get in more brick workouts this year since they are one thing that is specific to triathlon and will help me with endurance and let me practice my transitions at the same time. One brick workout a week is what I can fit in right now so i’m usually doing them on sunday and then taking monday as a rest day. Park bike, Helmet off, bike gloves off, bike shoes off, running shoes on, running hat on, go!

Apr 2 10

Lunch

by paul

Here is my lunch today.  Salad with spring greens, carrots, radishes, baked chicken pieces, raisins, unsweetened shredded coconut, and a little bit of yogurt honey mustard dressing.   Since i’ve started making lunch in the cave each morning I can finally manage to eat right at work without having to go out and buy a supposedly healthy lunch from a local restaurant with who knows what in it.  Making lunch each day has been key for me to follow a caveman eating plan.

Mar 30 10

Welcome to Caveman Triathlete

by paul

Welcome to my blog about paleo nutrition and triathlon training.  Early every tuesday and thursday  morning I usually go swimming.  This morning I mixed a sports drink and then went to the pool to  swim.  A 200 warm up, a 1000 main set, and a 200 cool down.  I am trying to get used to going 1000 yards without stopping since I will be swimming a half mile in my first longer than normal sprint tri in june (swim .5mi, bike 15mi, run 5mi).  The farthest I’ve gone yet!  Got home and made some scrambled egg and ate a piece of fruit, then off to work.  I got these plastic bowls with covers that I bring with my lunch, usually salad and some left over chicken, steak, or fish.  For dinner tonight I had some steak and veggies.  Now it’s time for bed since i’ve wasted the night playing with wordpress themes.  So many themes to choose.

Jan 9 10

Calling GPG from PHP

by paul

I fell into the trap of just looking at the top result on google for calling PGP or GnuPG from a PHP script. After trying them I realized they are bad examples, and so are the next few results. Calling gpg using exec or even writing the data or private key passphrase to a file introduces unnecessary risks. It allows other users on the system to run ps and see you echo the data or passphrase to gpg. If you save the data to a file first then they can see where you are putting the files and attempt to read them before you encrypt them. The gpg process should be called using the proc_open command which will allow you to run gpg without using echo on the command line or writing unencrypted data to files. It will be sending it directly to the standard input stream of gpg. This is especially important if you do not have the ability to install GnuPG PHP libraries that already use this technique.

Using proc_open the ps command can see:
gpg -e -r 'Recipient'
Using exec the ps command can see:
echo SECRET | gpg -e -r 'Recipient'

Which one would you rather have?

This code will call gpg with proc_open. It will return the gpg result or the word “error” if there has been some kind of gpg error that did not produce a result.

My gpg encryption helper code is now available for download under the BSD license from github:
https://github.com/paulyasi/encryption_helper

Nov 15 09

The Paleo Diet

by paul

For the past month or two i’ve been following the paleo diet for athletes. The paleo diet is based on the types of foods humans ate during the stone age, before the agricultural revolution 20,000 years ago. This menu includes lean meats, poultry, fish, fruits and vegetables. It removes dairy, grains, and refined sugars. Since this is the athlete version there is also a recommendation for what to eat before, during and after workouts. Foods and sports drinks that are able to be digested during exercise and help maintain the body’s performance.

I’ve had good success with this style of eating, and it has changed how I look at food. So much of the food in the aisles of the supermarket is not really what humans evolved to eat. When I go food shopping now I only have to go to a couple sections and can skip over many aisles. I load up my cart with fruits and vegetables then head to the meat/poultry/fish section and i’m done.

Most of the things I try and cook simply. Now and then i’ll add some spices or easy sauces. For breakfast today I had a two egg omelette with diced onions and green peppers. I also had an orange and a banana. For lunch I had a salad and baked chicken. I had an apple for a snack later. Lunch was a few hours ago and I’m just starting to get a little hungry, so maybe i’ll go hunt and gather some dinner soon. Tomorrow after my workout i’m going to make a strawberry banana smoothie, they taste so good, those things are like ice cream to me now! – and with frozen strawberries you can still get the brain freeze. I’m a caveman with a blender!

Addendum: Since April 2010 i’ve been on a more primal blueprint style diet that does not include so much fruit and carbohydrates as before to better control insulin’s interaction with fat storage and includes more healthy fats like saturated fat and a better omega-3/6 balance. While I was maintaining or slowly losing weight with paleo for athletes, i’ve started losing weight more readily following primal blueprint.

Sep 21 09

TDD Triathlon Race Report

by paul

This was my second triathlon and I was really looking forward to trying out my new wetsuit in the swim. It took place at the Douglas State Forest, a place I am familiar with because I hiked part of the Mid-State trail there last year. Saturday morning I arrived early and got a prime parking spot right near the entrance. Since it was so early I just wandered around the beach area for a while until the line formed to get race numbers.

After I got my number I got all my stuff over to the transition area, put my bike on the rack, and laid out my stuff next to my bike. I got my bearings in transition and then practiced going from the water to my bike so I know exactly where it is and won’t get lost on my way there.

About 20 minutes before the start I put on my wetsuit and got in the water to see what the water was like. The water was fairly warm on such a cold morning, probably warmer than the air. This was also my first time racing in a wetsuit and I was eager to find out what my time would be like.

Then they had us all line up on the beach to start in waves for the 1/4 mile swim. I stayed on the side and near the back of my wave. My wave went first running into the water from the beach. I guess it’s not surprising, but I didn’t realize how difficult it would be to run through the water to where it was deep enough to start swimming. I held back for 5 or 10 seconds so I wouldn’t end up hitting the feet of the people in front of me. Jumped in and got to the first buoy, swimming in a heads up style almost the whole way since so many people were around me. After the first turn it thinned out and I could put my head down and go a bit faster. I only just recently got enough coordination to more comfortably go between breathing every third stroke and every other stroke to take air more often, so that helped me keep a faster pace and not have to pause to catch my breath as much.

When i got out of the water there was a long run through the grass to the transition so I had ample time to get my arms an shoulders out of my wetsuit as I ran. I got to my bike and pulled off the wetsuits legs. I think the body glide on my ankles here helped a lot when getting it off. I put on my bike shoes, going sockless this time since I had been practicing without socks to help make transition faster. I dried my face and hair with my towel, put on my bike helmet, glasses, and bike gloves and ran out of transition with my bike.

The 11 mile bike course was quite hilly and they started right away with a gradual climb. I tried to conserve my energy on the hills and keep it in reserve so I could change into a higher gear at the top of the hill and cruise down the other side in the aero bars. This was my first race with aero bars and they came in very useful going down hill, though I didn’t use them as much as I though I might since there the course was kind of crowded in spots and I wanted to be on the brakes. On the final down hill stretch I hit about 35mph, the fastest i’ve gone on the bike yet!

There was a dirt path one had to ride down to get to transition and I nearly wiped out on the dirt and gravel on my bike before dismounting. Narrow road tires don’t like dirt gravel paths. Somehow I managed to stay upright and I got into transition and got pulled off my bike stuff and slipped into my running shoes. No socks here either, and I had bungie laces too which I think helped me cut a bit off my T2 time. As I was running for the exit I realized I still had my bike gloves on, so I turned around ran back to my area to pull them off, lost some time there. I realize now I probably could have just stuffed them in my jersey pockets and saved some time. The 3 mile run started out going up the same first long hill as the bike. My running legs didn’t seem to adapt as quickly as I thought they would and felt tight during the whole first half of the run. At the turn around point they started to loosen up a little bit and I was able to pick up my pace a bit on the way back to the park.

Around the turn into the park and then one final small hill and then it was all downhill to the finish line. I was happily surprised by my time of 1:23. This time I even undid my own timing chip and handed it to them. I grabbed a water bottle and some post-race food and watched some other people finish.

Aug 19 09

Triathlon Wetsuit

by paul


I got my first triathlon wetsuit yesterday and tried it out this morning. Never mind staying warm in colder water, it adds so much buoyancy it feels like i’m cheating at swimming! Maybe it helped that I just listened to the latest tritalk episode 69 where they talked about paying less attention to swimming rotation but I think it was mostly the suit. Now i’m looking forward to my final race of the season in September and can get in some races early next season without freezing, yay!

Jun 17 09

My Desk

by paul

Trying out the qik live video app on my phone. This is my desk at work. Maybe i’ll have something more interesting later.