I hate flying

General — Tags: — Tim Nowaczyk @ 10:05 am

If the large bottle of shampoo and body wash that you took was really a potentially dangerous chemical, why on earth did you throw it in the garbage with all the other potentially dangerous chemicals? You’re doing the terrists dirty work for them and turning that garbage can into a big potential bomb.

In other news, Hillary hates women who hover. You know who you are. In your attempt to avoid whatever terrible disease is lurking on the toilet, you have managed to piss all over the seat. Gross. Please just sit like a reasonable person. Thank you.

While some parts of travel are lacking, shuttle drivers rock. Thank you Shirley for making our day a little nicer.

Long-time No Crossfit

Recreation — Tags: , , , , — Tim Nowaczyk @ 11:55 am

It’s been a while since I’ve crossfitted. I haven’t done this workout since the very first time I tried a crossfit workout.

“Helen”

Three rounds for time:
Run 400 meters
1 1/2 pood Kettlebell X 21 swings (or 55 pound dumbbell swing)
12 Pull-ups

Post time to comments.

The scaled down “pack” workout calls for 35 pound dumbbell swings which is about 1 pood, and I just happen to have a 1 pood kettlebell. I got to the AFC at about 9:10 and did the standard warm-up sans pullups. My sit-ups were on the floor instead of in the GHD because I think I’ve lost a bit of flexability. I can’t do dips, so I could only do 5, then 3 of them. It was 9:30 and I still had to do my last set of dips for the warm-up, but I skipped them so that I could start on the workout. I finished two rounds and didn’t think I could complete the third before they closed, so I skipped it.

Total time: 20:54 for two rounds.

Getting in Shape for Paavo

Recreation — Tags: , — Tim Nowaczyk @ 1:52 pm

I plan on running either a 5 mile or a 10k race in about a month and I haven’t been a consistent runner in about a year.  Yesterday I decided that I had to get in shape.  I ran about 3 miles, but felt so out-of-shape.  I hadn’t felt that bad running that short of a distance since I started training for my first marathon in the spring of ‘02.  I plan to continue running about three miles every day until I feel like I can kick it up to four or five.

Today’s crossfit workout is Angie and I may do a scaled-down version of it in addition to my running.

Google Treasure Hunt

Computers, Technology — Tim Nowaczyk @ 2:10 pm

Every once in a while, I search online to see if anyone is doing Perl Golf anymore.  While looking around, I found some people discussing a new competition that Google is sponsering called the Google Treasure Hunt.  There are four questions, one per week, and the first person to answer them all, wins a prize.  Now, I’m by no means a great programmer, but I thought I’d give the questions a try.

The first question I tried, which was the current one, showed a picture of a dozen interconnected network devices and listed the routing tables of the devices.  I was asked to find the path of a packet sent from a certain host to an IP address.  I didn’t even need to write any software to do that.  Five minutes later I had the correct solution.  “Cool!  I guess I’ll try one of the older problems” I thought to myself.

The next problem also went pretty quickly.  I was asked to download a zip file which contained a bunch of files in a number of folders.  I was asked to add the number on the fourth line of any .pdf file that had ‘aaa’ in its file name or path, then add the number on the second line of any .js file with xyz in its filename or path, then multiply these two numbers.  Another easy one.

# for i in `find | grep aaa.*\.pdf`; do head -n4 $i | tail -n1; done | perl -ne '$sum += $_; END{print $sum.$/}'
# for i in `find | grep xyz.*\.js`; do head -n2 $i | tail -n1; done | perl -ne '$sum += $_; END{print $sum.$/}'

I decided to challenge myself with the third problem.  It was a recursive problem, so I figured I’d learn haskell to tackle it.  I got it to work, but it would take many hours to find the answer.

module Main where
rob 1 _ = 1
rob _ 1 = 1
rob n m =
if n == m then 2 * (rob n (n-1))
else (rob (n-1) m) + (rob n (m-1))
main = print $ rob 52 51

In the end I used perl and got the answer in a minute or so.


#!/usr/bin/perl
use bigint;

my @cache;

sub calc
{
my $m = shift;
my $n = shift;
($n, $m) = ($m, $n) if ($m < $n);

return $m if ($n == 2);

my $r = $cache[$m][$n];
return $r if ($r);

if ($m == $n) {
$cache[$m][$n] = 2 * calc($m, $n-1);
}
else {
$cache[$m][$n] = calc($m-1, $n) + calc($m, $n-1);
}
return $cache[$m][$n];
}

print calc (52, 51). $/

The fourth question came out early this morning, and is much tougher.

Question:

Find the smallest number that can be expressed as
the sum of 3 consecutive prime numbers,
the sum of 43 consecutive prime numbers,
the sum of 399 consecutive prime numbers,
the sum of 999 consecutive prime numbers,
and is itself a prime number.

For example, 41 is the smallest prime number that can be expressed as
the sum of 3 consecutive primes (11 + 13 + 17 = 41) and
the sum of 6 consecutive primes (2 + 3 + 5 + 7 + 11 + 13 = 41).

It’s another one that haskell should be really good at, but I don’t know enough of it. I could use perl, but I’d have to brute-force it. I guess I finally met my match.

Rainy Sunday - Pan de Muertos and Riverside Lunch

General — Tim Nowaczyk @ 7:02 pm

Kickball was canceled today, so I had a full day to mess around at home.  After making angel food cake yesterday for a dinner party, I was left with a dozen egg yolks that needed a culinary home.  Hillary searched online and found a recipe that would use all twelve yolks.  The recipe was for a rich sweet Mexican bread called Pan de Muertos, or bread of the dead, that is traditionally made for all-saints day.  The bread-making took about 5 hours including the time needed for the dough to rise and everything went well… until the baking.  I misread the recipe and cooked it at 350 instead of 375.  The outside looked great, but it was still uncooked on the inside.  I eventually got the rounds mostly cooked through without being too burnt by cutting them in half and baking them cut-side down.  How does it taste?  Even the burned bits are amazing.  I plan to make this again for sure.

We had planned to grill-out after the kickball game and we were still in a burger mood though the game was rained-out.  I thought this would be the perfect time to have dinner at Riverside Lunch which is supposed to server the best burgers in town.  Walking in, I was surprised by the number of beer posters hanging up all over the walls.  We grabbed a booth and scoped out the menu.  I was surprised when I saw that the burgers were so cheap.  We were quickly approached by a very pleasant waitress who brightened up when she heard that this was our first time at the restaurant.  I ordered some onion-rings and a cheeseburger with lettuce, tomato, and grilled onion, while Hillary ordered a hamburger with lettuce, tomato, and grilled mushroom.  The onion rings were out to us in less than two minutes, and the burgers came out soon after.  I have to agree with common wisdom.  The onion rings were steaming hot and the burgers were the best I’ve had in town so far.  They really were quite basic, but they have a great flat-grill flavored taste.  Rarely do we eat out for less than $10.  We definitely plan to go back to Riverside next time we’re in the mood for a burger.

Wine Blogging Wednesday

General — Tim Nowaczyk @ 1:44 pm

I just ran across a great idea.  Once a month, a person is handed the torch to pick a style of wine, or a wine-making region, then everyone blogs about their choice.  The website is called Wine Blogging Wednesday.  I’m a little late as the April event happened last week, but this might be a good excuse for a party next month.

Configuring Postfix to accept, but discard your mail.

Computers — Tags: — Tim Nowaczyk @ 11:40 am

I was having problems with postfix accepting a message that was addresses to 57,000 BCC’d recipients and was at a loss as to what was causing the problem.  I foolishly didn’t have verbose logging enabled before sending the message, so I didn’t have much in the way of logs.  Now, how to debug this without possibly sending lots of testing messages to the entire student body of the University.  Google wasn’t giving me anything, but I finally found the answer and am writing it down in the hopes that it helps someone.  What I wound up doing was setting up a content filter on the snmp service that redirects the mail to the discard service.

Change your smtp configuration to look like the following, then run /etc/init.d/postfix reload


smtp      inet  n       -       -       -       -       smtpd
-o content_filter=discard:dummy

Now I’m just waiting for the authorization to send some test messages to see if postfix accepts the mass mail successfully.

Lunch with Aruba Networks

General — Tags: , , , — Tim Nowaczyk @ 8:00 pm

I used to walk to the corner almost every day for lunch when I worked at Gilmer Hall. Since moving over to ITC and not walking to work anymore, I try to eat a small lunch at my desk most days. The past couple of days I’ve gotten to eat out again. We’ve had engineers from Aruba Networks on-site and they like to eat out for lunch. Yay, my favorite!

Dragon Lady is a decent Chinese restaurant about a block away. We went there as a group of eight. I ordered the Hunan Beef and enjoyed it. They make good food, though I think I prefer Taiwan Garden for nearby Chinese food.

Today, a smaller group of us, only four this time, walked to the corner and ate at Lemongrass. I ordered chicken Pad Thai spicy. I hadn’t had the pad thai in a while so I didn’t really remember what it was like, but it didn’t dissapoint. One of the engineers ordered a community plate of spring rolls and satay. The saytay tasted breaded and fried, kinda’ weird, but I love the spring rolls. Good stuff. Everyone seemed to enjoy their meals.

Morning Workout

General — Tags: , , , — Tim Nowaczyk @ 8:36 am

I haven’t worked out in a few weeks, so that has to change. A while back I had the idea of doing a quick round or two of barbara-lite (10 pull-ups, 20 push-ups, 30 sit-ups, and 40 squats) in the morning every morning. I did this today and want to keep doing it every morning.

Home Crossfit Workout

Recreation — Tags: , , , , , — Tim Nowaczyk @ 10:16 pm

Today was a lazy day at home, but at 9:00 I noticed that today’s workout didn’t require any weights, and I’d even done it before.

Tabata Something Else

Complete 32 intervals of 20 seconds of work followed by ten seconds of rest where the first 8 intervals are pull-ups, the second 8 are push-ups, the third 8 intervals are sit-ups, and finally, the last 8 intervals are squats. There is no rest between exercises.

Post total reps from all 32 intervals

my reps were

pull-ups: 3/3/3/3/3/3/1/1 total 20 (+3 from last time)
push-ups: 6/6/6/6/6/4/2/1 total 37 (-3)
sit-ups: 8/9/9/8/9/7/6/6 total 62 (-2)
squats: 11/11/11/11/11/11/11/12 total 89 (+6)
overall total: 208

Four weeks ago, I said that I hoped that this workout came up again soon. I guess I got my wish.

Crossfit slacker.

Recreation — Tags: , , , , — Tim Nowaczyk @ 11:00 am

I haven’t crossfitted in a couple of weeks, but decided to do yesterday’s workout.

Cindy
Complete as many rounds in 20 minutes as you can of:
5 Pull-ups
10 Push-ups
15 Squats

I’ve done Cindy before and did six rounds, so last night I decided to just do six rounds.  It took me 16 minutes so I probably should have done one more round, but I slacked.

Homemade Colby Cheese

General — Tags: , — Tim Nowaczyk @ 3:44 pm

The theme this year for my Christmas gifts was cheese. Last year I got interested in cheese-making, even going so far as making my own feta, but didn’t have the real equipment and bacterial cultures to do it. For Christmas, Hillary gave me a cheese press, Hillary’s parents gave me a copy of Ricki Carroll’s “Home Cheese Making”, the bible for the amateur cheesemaker, and my brother gave me a beginners cheese-making kit which included cheese wax and bacterial starters. Last week, I gathered up my new equipment and a gallon of fresh organic milk from Rebecca’s and turned it into cheese. I just bought a dorm fridge from a co-worker where the cheese sits to age for 2-3 months. I’ll post an update when I cut it open.

Lunch at La Taza

Food — Tags: , — Tim Nowaczyk @ 1:37 pm

Hillary and I used to go to La Taza every now and again for weekend out-of-the-apartment studying, but we haven’t been there in maybe a year.  Today we had planned to go to Feast for lunch, but after seeing that their parking lot was overflowing with cars , I remembered cozy ‘ol La Taza and we decided to detour over there.  We’re definitely glad we did.

The first item on their menu caught my eye and I went with it, the Cuban Sandwich, and a Guava Jarritos soda.  Hillary had several items she was deciding between, and went with the Pollo Burrito.  My sandwich was oozing melted cheese and every bite included a little bit of sour pickle.  It was great.  We were both very happy with our dishes and will be going back to La Taza for lunch.

More pull-ups

Recreation — Tags: , — Tim Nowaczyk @ 10:29 pm

I seem to always be doing pull-ups.  Today was a rest day, but I haven’t been working out much, so I did yesterday’s workout.

With a continuously running clock do one pull-up the first minute, two pull-ups the second minute, three pull-ups the third minute… continuing as long as you are able.

Use as many sets each minute as needed.

I was able to do six sets, plus one pull-up.  That’s five more pull-ups than last time.  I like seeing progress.

First Hero Workout - Michael

Recreation — Tags: , , , , — Tim Nowaczyk @ 1:52 pm

Most of the workouts on crossfit have female names, but there are a small number of men’s workout and they are tough.

“Michael”

Three rounds for time of:
Run 800 meters
50 Back Extensions
50 Sit-ups

I didn’t think I could even do 50 back extensions, much less a total of 150, so I scaled it down to 35 back extensions and sit-ups. I skipped the back extensions on the last round too. Total time: 32:31 or so.

First Time Cindy

Recreation — Tags: , , , — Tim Nowaczyk @ 9:54 pm

Another new workout.

Complete as many rounds in 20 minutes as you can of:
5 Pull-ups
10 Push-ups
15 Squats

I made it through six rounds.  The pull-ups and push-ups killed me but I was able to keep up on the squats.  I was able to walk to the car without feeling like I would fall over after every step, so that’s a positive thing.

Crossfit: Tabata Something Else

Recreation — Tags: , , , , , — Tim Nowaczyk @ 8:07 pm

Another successful crossfit workout.

Complete 32 intervals of 20 seconds of work followed by ten seconds of rest where the first 8 intervals are pull-ups, the second 8 are push-ups, the third 8 intervals are sit-ups, and finally, the last 8 intervals are squats. There is no rest between exercises.

Post total reps from all 32 intervals to comments.

My reps were

pull-ups: 5/5/2/1/1/1/1/1 total 17
push-ups: 7/7/7/7/5/2/3/2 total 40
sit-ups: 11/12/12/7/5/5/6/6 total 64
squats: 5/15/10/10/10/10/10/13 total 83
overall total: 204

Someone posted an mp3 mix with beeps at the 20 and 10 second intervals, and another sound that signals to switch to the next exercise. It helped me a lot to not have to always be looking at my watch. I hope when this workout comes up again that I’ll do a bit better at it.

Uncle Charlie’s Smokehouse

Food — Tags: , — Tim Nowaczyk @ 6:07 pm

Kate B. is back in town for the weekend, so Bart wanted to surprise her with a dinner out. He planned this elaborate deception and surprised Kate with a bunch of her friends at Charlie’s Smokehouse in Crozet. A High School band was playing there, I don’t know their name. I tracked down the twins who play guitar and drums as Thomas and Andrew Fickley, but google didn’t come up with a band myspace page for them. The band’s music was good, covering some Dead, Counting Crows, and Wilco, and playing lots of their own Phish-style jam-band music. They sounded really good. The keyboard player could loosen up a little though. Everyone else in the band was moving and grooving to the music while the keyboardist stood in the back all stiff.

On to the food. I ordered the 1/2 rack of rib with a jerk rub. It came with two sides, so I chose the slaw and baked beans. The food was good. Not knock your socks off good, but if I were in the area for something, or wanted to hear a band there, I’d check out some other things on the menu.

Update: The band is named Help On The Way.

Asian Express

Food — Tags: , — Tim Nowaczyk @ 8:26 pm

I grabbed some carry-out from Asian Express tonight. I’ve never been there before and was quite happy with the food. The crispy chicken caught my eye, so I got that along with a spring roll.

Attempted two workouts.

Recreation — Tags: , , , , , , — Tim Nowaczyk @ 12:38 pm

It’s been a while since I worked out, with the holiday travel and all, but Hillary and I got into a nearby gym this morning. The Rxed workout for today was a 5k run. Running is one of the only crossfit workouts I can do as prescribed. Yesterday’s workout was a straightforward one named Barbara - 5 * (20 pull-ups, 30 push-ups, 40 sit-ups, 50 squats). I planned to do Barbara-lite by subtracting 10 reps from every exercise. I ran the 5k in 29:30 ish, and got through one set of Barbara in 6 minutes before giving up.

Next Page »
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2008 Semantic Pillow | powered by WordPress with Barecity