Monthly Archives: July 2010

On Target 2010

On Target was one of the most memorable Scouting experiences of my life.  108 teams from Utah and Salt Lake County climbed numerous peaks around the area, listened to a short message from the General Young Men’s President, and contacted each other. We made about 15 contacts using a signaling mirror, 11 of which were reciprocated, from the top of Bismark Peak.

Jake is aligning the hole in the mirror with the bright spot in the shadow.

Signaling mirrors are double-sided mirrors with a small hole to see through them.  In order to signal another person, the operator will locate the target through the small hole, locate the light spot in the shadow cast by the mirrors, and align the hole with the light spot in the shadow.  Once the spot and hole are aligned, you are “On Target.”

Before we began, we saw a military airplane flying through the valley below.

We also saw some wildlife.  If anyone knows what kind of birds these are, please comment.

If you would like more information about On Target, please visit the official Utah National Parks Council On Target site.

Adding or Removing www. with RewriteEngine

Most websites have two hosts: the www host (ie. www.google.com) and the non-www host (ie. google.com). Since search engines don’t like duplicate content, it is good practice to either make sure your site always has the www, or always remove it.  Since you don’t have any control over how the Internet user types in your site, here’s a simple way of either adding or removing the www.

In order for this to work, your site needs to be running on an Apache server, and mod_rewrite should be enabled. Make sure this is at the top of the .htaccess file: (if you don’t have an .htaccess file, create one in the web directory and put this at the top)

RewriteEngine on
Options Indexes FollowSymLinks

Insert this snipped to add the www to all requests:

# add www
RewriteCond %{SERVER_PORT} 443
RewriteCond %{HTTP_HOST} !^www\\. [NC]
RewriteCond %{HTTP_HOST} !^$ [NC]
RewriteRule ^/?(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L,NE]

RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} !^www\\. [NC]
RewriteCond %{HTTP_HOST} !^$ [NC]
RewriteRule ^/?(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L,NE]

Or insert this snipped to remove the www from all requests:

# remove www
RewriteCond %{SERVER_PORT} 443
RewriteCond %{HTTP_HOST} ^www\\. [NC]
RewriteCond %{HTTP_HOST} !^$ [NC]
RewriteRule ^/?(.*)$ https://%{HTTP_HOST}/$1 [R=301,L,NE]

RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^www\\. [NC]
RewriteCond %{HTTP_HOST} !^$ [NC]
RewriteRule ^/?(.*)$ http://%{HTTP_HOST}/$1 [R=301,L,NE]

Resources:
Apache’s mod_rewrite Documentation
Apache’s URL Rewriting Guide

How IPOs work

I found this article about Tesla’s IPO to be very enlightening. It talks about why a company would want go public, and goes into detail on how the IPO process works. I also like how they used Tesla, one of my favorite automotive companies, as an example.

Speaking of which, how about that Model S? (Ever noticed how Model S comes alphabetically before Model T?) I can’t wait to see them on the road in 2012.