Fleet Feet Sports Dirt Cheap Trail Race Series 2018

Official Result:

Series Bib Number: 339

Race #1 Result – April 11, 2018

Bib Number: 603
Distance: 4-6 miles (unknown)
Total Time: 1:11:09.00
Place: 278 out of 328

Race #2 Result – May 9, 2018

Bib Number: 657
Distance: 4-6 miles (unknown)
Total Time: 51:26
Place: 208 out of 352

Race #3 Result – June 13, 2018

Bib Number: 339
Distance: 4-6 miles (unknown)
Total Time: 47:28
Place: 192 out of 335

Race #4 Result
Race #5 Result
Race #6 Result
Overall Race Series Result

Total Time:
Place:
Age Group (Female 40-49):

Thoughts on the races:

Next Goals:

The Fast & The Furriest 2018

Official Result:

Bib Number: 829
Distance: 5K
Total Time: 40:35
Pace: 9:41
Place: 113 (out of 321)
Place Female Only: 51 (out of 213)
Place Female Age Group 40-44: 7 (out of 11)

Thoughts on the race:

Just okay.

Next Goals:

  1. Run at 9:30 pace before end of the season

Cabin Fever Trail Race 2018

Official Result:

Bib Number: 293
Distance: 4 miles
Total Time: 50:05
Place: 49 (out of 137)
Place Female Age Group 40-49: 4 (out of 31)

Thoughts on the race:

Yay for top 15% on Female Age Group and top 40% on overall…and I wasn’t even running at the full speed. Next time, I need TRACTION gear for my shoes and I can definitely go faster. 40% icy trail according to the race official. I only slipped once AND I caught myself with one hand with no injury…so proud! I got my runner’s high too. I’d say it’s a good start for 2018 🙂

Next Goals:

  1. Don’t fall
  2. Be top #3 on the female age group (go for the bronze!)
  3. Buy traction gear

How to insert tracking codes for Google Analytics and Google Tag Manager in WordPress AMP page

For those of who are using AMP for WordPress plugin to enable AMP pages for WordPress post, inserting the tracking codes for Google Analytics and Google Tag Manager is relatively simple:

  1. Create a copy of “html-start.php” in the plugin’s template folder, to a sub-folder called “amp” in your theme folder (create one if there isn’t any)
  2. Insert your tracking codes in the appropriate html section (for GA code, they recommend putting in the head section, and for GTM code put it in the beginning of body tag)
<?php
/**
 * HTML start template part - start-html.php
 *
 * @package AMP
 */

/**
 * Context.
 *
 * @var AMP_Post_Template $this
 */
?>
<!doctype html>
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); // WPCS: XSS ok. ?>>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
	<!-- AMP Analytics --><script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
	
	<?php do_action( 'amp_post_template_head', $this ); ?>
	<style amp-custom>
		<?php $this->load_parts( array( 'style' ) ); ?>
		<?php do_action( 'amp_post_template_css', $this ); ?>
	</style>
</head>

<body class="<?php echo esc_attr( $this->get( 'body_class' ) ); ?>">
<!-- Google Tag Manager -->
<amp-analytics config="https://www.googletagmanager.com/amp.json?id=yor-gtm-id-goes-here&gtm.url=SOURCE_URL" data-credentials="include"></amp-analytics>

This should overwrite the default AMP code.

How to extend Ubuntu file system after resizing AWS EBS Volume

Sometimes, imply increase the size of an EBS volume in EC2 Management console doesn’t expand the actual storage size in Ubuntu system. You need to further configure your OS to apply the size change.

Check if you need to resize the partition and the filesystem

lsblk
NAME    MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda    202:0    0  21G  0 disk 
└─xvda1 202:1    0  20G  0 part /

Run lsblk command to list the attached devices if the partition size are not equal, you need to resize the partition

df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            996M   12K  996M   1% /dev
tmpfs           201M  340K  200M   1% /run
/dev/xvda1       20G   11G  8.2G  57% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
none            5.0M     0  5.0M   0% /run/lock
none           1001M     0 1001M   0% /run/shm
none            100M     0  100M   0% /run/user

Use df -h command to see if the filesystem need the resizing

Resizing the partition

sudo growpart /dev/xvda 1
CHANGED: partition=1 start=16065 old: size=41913585 end=41929650 new: size=44018100,end=44034165

lsblk
NAME    MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda    202:0    0  21G  0 disk 
└─xvda1 202:1    0  21G  0 part /

Use sudo growpart command to expand the partition. Verify the result by running lsblk command.

sudo resize2fs /dev/xvda1
resize2fs 1.42.9 (4-Feb-2014)
Filesystem at /dev/xvda1 is mounted on /; on-line resizing required
old_desc_blocks = 2, new_desc_blocks = 2
The filesystem on /dev/xvda1 is now 5502262 blocks long.

df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            996M   12K  996M   1% /dev
tmpfs           201M  340K  200M   1% /run
/dev/xvda1       21G   11G  9.1G  54% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
none            5.0M     0  5.0M   0% /run/lock
none           1001M     0 1001M   0% /run/shm
none            100M     0  100M   0% /run/user

Use sudo resize2fs command to expand the filesystem. Verify the result by running df -h command.

Resources: Extending a Linux File System after Resizing the Volume

Webster Turkey Trot 2017

Official Result:

Bib Number: 1266
Distance: 4.4 miles
Total Time: 40:35
Pace: 9:44
Place: 1172 (out of 2269)
Place Female Only: 497 (out of 1204)
Place Female Age Group 40-44: 40 (out of 109)

Thoughts on the race:

I’m pretty happy I made under 10:00 pace, and that was done without exhausting myself. I’m also feeling good about being top 50 percentile in Female Age Group and All Female.

Next Goals:

  1. I should be able to run at 9:30 pace next time
  2. I want to be top 50% overall

Dirt Cheap Stage Race 2017

Thoughts on the races:

I did as expected on race #1 and race #2. I was comfortable with the distance and I knew I could run all the way even if it’s slower (because it’s trail instead of road).

I was so not prepared for the last race, however. My original goal was to run through the entire course. That quickly changed to “just don’t give up.” 1) not enough training to cover 11 mile distance in a trail or on a road, 2) not doing enough trail running period, 3) Didn’t break-in the new running shoes, 4) didn’t plan any rehydration or refueling during the race, 5) didn’t practice the race routes in advance, 6) not having any experience running long distance in 20 degree weather.

It was COLD!

Official Result:

Bib Number: 168

Race #1 Result

Distance: 3.11 miles
Total Time: 39:14.0
Place: 119 out of 203
Age Group (Female 40-49): 6 out of 32

Race #2 Result

Distance: 5.5 miles
Total Time: 1:00:30.0
Place: 140 out of 197
Age Group (Female 40-49): 5 out of 30

Race #3 Result

Distance: 11 miles
Total Time: 2:21:36
Place: 124 out of 220
Age Group (Female 40-49): unknown

Overall Race Series Result

Total Time: 4:01:27
Place: 108 out of 175
Age Group (Female 40-49): 5 out of 30

Next Goals:

I’m definitely doing this race again next year…and I’m going to run entire 11 miles.

Also I’d love to see myself being at top 100 overall.

I need to improve my running pace in general. I found that I’m pretty good at going UP the hill…but not so much going down. I think I’m really scared of falling (because it happens ALL THE TIME). I need to get over that fear.

MySQL queries cheatsheet for WordPress

Changing from http to https in wp_posts.post_content and wp_posts.guid

UPDATE wordpress_db.wp_posts
SET post_content = REPLACE(post_content, 'http://domain.com', 'https://domain.com')
WHERE post_content LIKE '%http://domain.com%';

UPDATE wordpress_db.wp_posts
SET guid = REPLACE(guid, 'http://domain.com', 'https://domain.com')
WHERE guid LIKE '%http://domain.com%';

Wineglass Half Marathon 2017

Official Result:

Bib Number: 4205
Total Time: 2:21:39.08
Place: 1739 (out of 2824)
Place Female Only: 1201 (out of 2128)
Place Female Age Group 40-44: 207 (out of 317)

Thoughts on the race:

I can’t believe I actually run ALL THE WAY. I’ve NEVER EVER run this far before EVER. So just for that, I’m feeling good.

Weatherwise….foggy and cold, really cold. I wish I had my gloves with me. My hands were numb during the entire race. I had a cotton long sleeve shirt, a t-shirt, then a windbreaker on top of those. with a cropped sweatpants. Never got warm enough to wanting to take a layer off….actually I wanted to put one more layer.

Next Goals:

I’d love to finish less than 2:10:00 next time. If I can take off the 10 lbs I gained this year, I think that’s doable. I wasn’t out of breath or completely exhausted at the end of the race. I think I paced myself a bit too slow (because I wasn’t sure if I can cover the distance).

Not sure if I want to sign up for this particular race next year:

  1. Pretty far from my house. I have to place my pups in the kennel overnight. I also have to secure a hotel room for a night for myself unless I’m willing to wake up and leave at 3am in the morning…which I’m not.
  2. Required shuttle ride from Corning to the start line is a nerve wrecking. Waiting to get on the bus at the pickup point was more than 30 minutes. Finding a parking lot to get to the pickup point was also difficult. You are constantly worried if you get to the start line on time. We barely made it even though we were at the shuttle pickup point well before the cut off time. Trying to use the bathroom before the race wasn’t smooth either.
  3. Finding a hotel room for next year is already almost impossible at this point…seriously.

Installing Let’s Encrypt on Ubuntu 16.04 with Apache server

sudo apt-get install python-letsencrypt-apache

Resource: How To Secure Apache with Let’s Encrypt on Ubuntu 16.04
Resource: How to install and use Let’s Encrypt on a Ubuntu Server for SSL security