Category Archives: Google Apps Script

Array Comparison

Let’s say you want to compare 2 arrays with what I call a 1-1 comparison.  So if you had:

var array1 = [1,2,3,3];

var array2 = [1,2,3,4];

The comparison would tell you about the extra 3 in the first array and the 4 in the second array that doesn’t appear in the first array.  After searching online I found many array comparisons, but none that did that, so I wrote the one below.

The a.slice() with no value in the slice parameter slices at the zero position, so it’s basically just making a copy of the array so the original array will be in tact for other operations (read: the second comparison).  The return will give you an array of the results, and I’ve added 2 comments to help with the readability.  Using the two arrays from the example above, the return would be [4,3].

Display All Calendars

This is now a published Google Spreadsheet Add-On.  If you have any problems with it please email me.

Google Calendar gives a very neat option called ‘Display only this Calendar.’  What this will do is un-select all calendars except the one that you want to view.  Very cool, especially if you have over 150 calendars built in (like I do).

What isn’t cool is having to re-select all of those 150 calendars, and there is not neat little button to do it built into the calendar.  No worries, Google Apps Script to the rescue!  The code that accomplishes this is below.  I have put it into a spreadsheet I use frequently with a custom menu button that gets the process started.  Enjoy!

Below is our privacy policy-

Privacy Policy
What information do we collect?

We collect information from you when you fill out a form.

When ordering or registering on our site, as appropriate, you may be asked to enter your: name, e-mail address, mailing address or phone number. You may, however, visit our site anonymously.

What do we use your information for?

Any of the information we collect from you may be used in one of the following ways:

; To improve customer service
(your information helps us to more effectively respond to your customer service requests and support needs)

How do we protect your information?

We implement a variety of security measures to maintain the safety of your personal information when you place an order or enter, submit, or access your personal information.

Do we use cookies?

We do not use cookies.

Do we disclose any information to outside parties?

We do not sell, trade, or otherwise transfer to outside parties your personally identifiable information. This does not include trusted third parties who assist us in operating our website, conducting our business, or servicing you, so long as those parties agree to keep this information confidential. We may also release your information when we believe release is appropriate to comply with the law, enforce our site policies, or protect ours or others rights, property, or safety. However, non-personally identifiable visitor information may be provided to other parties for marketing, advertising, or other uses.

Childrens Online Privacy Protection Act Compliance

We are in compliance with the requirements of COPPA (Childrens Online Privacy Protection Act), we do not collect any information from anyone under 13 years of age. Our website, products and services are all directed to people who are at least 13 years old or older.

Online Privacy Policy Only

This online privacy policy applies only to information collected through our website and not to information collected offline.

Your Consent

By using our site, you consent to our websites privacy policy.

Changes to our Privacy Policy

If we decide to change our privacy policy, we will post those changes on this page.

Contacting Us

If there are any questions regarding this privacy policy you may contact us using the information below.

This policy is powered by Free Privacy Policy and Rhino Support. Compare Rhino Support to Zen desk and save!



Occam’s Protocol

**Click Here For The Shortcut to the workout creator**

Like many others I read the 4 Hour Workweek and thought that Tim Ferriss was really onto something.  I liked the 4 Hour Body too, but it wasn’t quite as revolutionary for me.  I did however really like the workout he featured in that book, Occam’s Protocol.  I have followed the exercises only (ignoring diet) and have seen results that I am happy with, with less effort than I would think is required.  So, overall I would have to say that the program delivers.

When you first look at it though, it’s a little confusing when you are supposed to workout, and how to structure your weights, even with the ‘cheat sheets’ that you can find online.  That’s why I put together a little program that will help you out by adding your workouts to your Google calendar.

Before you can do that though, you need to determine your starting weights.  Here is the best resource I have found for understanding this workout and determining those weights: Four Hour Life.

Once you have determined your starting weight and are ready to put your workout events on your Google Calendar, click here.