Cal Freitas

I am an Engineering Manager at PublicSquare. I am a Principal Front-End Engineer by trade. At Swarzy, I built Verses for Life and Psalmlist.

Abraham Lincoln & Leadership

In November 2014, I finished reading “Team of Rivals: The Political Genius of Abraham Lincoln” by Doris Kearns Goodwin. The book covers Abraham Lincoln and his cabinet members. Fabulous book! Well written. It develops and shows the personalities, characters, and actions of the men and women closest to Abraham Lincoln, his cabinet, and administration leading up to and through the American Civil War.

This post catalogs leadership principles and character qualities that stood out to me while reading the book.

Leadership Principles & Characteristics

Magnanimity

Lincoln forgave men who didn’t deserve it. He conferred positions on men who he had no reason to honor based on their behavior towards him. This served him well; he earned many lifelong friends and trusted allies through this behavior.

During one of his senate races, Lincoln sacrificed himself and his delegates to ensure his party would win the race. The grateful Lyman Trumbull ended up helping with his presidential candidacy later.

He awarded Chase with the Chief Justiceship despite Chase’s presidential ambition and attempts to harm Lincoln’s reputation while seeking the nomination for the Republican Party when Lincoln ran for his 2nd term.

Chase quoted scripture from the Bible, but was blind to his own character flaws and the harm he did his fellow cabinet members and the President.

Lincoln gave Stanton the Secretary of War Department position despite Stanton having insulted him during a patent trial in Cincinnati years earlier.

Do not criticize a servant to his master

In context, Lincoln was telling somebody not to criticize one of his cabinet members and quoted a verse from Proverbs 30. This can be applicable in a modern work context as well. If a manager is pleased with the work if his employee and you have complaints to bring, you may be cursed by the manager.

Push for progress at the right pace and right time

Lincoln constantly gauged the opinions of the people – the common folks, soldiers, politicians. He pushed for progress and moved towards emancipation, but as President he moved slower than the radical Republicans wanted, and faster than conservatives.

Lincoln befriended Frederick Douglass and this friendship helped him to improve his perception and views regarding black men.

Cabinet Balance

He balanced his cabinet geographically and from disparate segments of the Republican Party. He did this to achieve unity and hold the party together. He used these men for their amazing talents.

Montgomery Blair revolutionized the postal service. Gideon Welles modernized the navy. Salmon P. Chase helped fund the war via the Treasury. William Henry Seward negotiated with foreign powers and contributed key insights to Lincoln. Edward Bates fought important legal issues for the administration. Edwin M. Stanton brought together a mighty military force.

Deference

Lincoln deferred to the views of his cabinet members when they told him he was wrong and had good reason for it.

Stories

Lincoln told stories to make a point. He used the anecdotes to make a point that would otherwise take much more time or resonate less with the hearer.

Humor, poetry, and stories helped Lincoln to relax.

Sum of the Man

Lincoln had many good qualities one can learn about and take as examples for living. I aim to apply these character qualities in my own life and have had opportunities to consider and attempt to implement them since reading the book.

Abraham Lincoln & Leadership Read More »

Configuring AWS IAM Policy for S3 Bucket and CloudFront

Here’s an IAM policy you can use to grant a specific user or group rights to an individual S3 bucket and CloudFront. Unfortunately, CloudFront can’t be restricted by resource (such as distribution ID) so you have to grant access to all resources, but you can give rights to just one S3 bucket.

Initially, I ran into trouble setting up this policy because I only granted rights to “bucketname” and not “bucketname/*” as you can see below.

I encountered this on the path to setting up AWS hosting w/ S3 and CloudFront for a static website.


{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "s3:*",
      "Resource": [
          "arn:aws:s3:::mybucketname",
          "arn:aws:s3:::mybucketname/*"]
    },
    {
      "Effect": "Allow",
      "Action": "cloudfront:*",
      "Resource": "*"
    }
  ]
}

“ARN” is the Amazon Resource Name. The general formats are the following:

  • arn:aws:service:region:account:resource
  • arn:aws:service:region:account:resourcetype/resource
  • arn:aws:service:region:account:resourcetype:resource

In the case of S3 resources, the format is “arn:aws:s3:::mybucketname” and “arn:aws:s3:::mybucketname/object”.

Configuring AWS IAM Policy for S3 Bucket and CloudFront Read More »

What I Learned from Sam Walton, the Legendary Retail Growth “Hacker”

Sam Walton - Growth HackerWhen thinking about innovation and technology, Sam Walton probably isn’t the first person you think about, and Wal-Mart may not be one of the first companies. Americans in the Millenial Generation often take Wal-Mart for granted — it’s the huge store with low prices, and locations in every town you live in, drive through, or visit. We have never known life without Wal-Mart, we have never known life without discount retailers, and we did not observe its rise.

Once upon a time, Wal-Mart was a start-up. We never knew it or have forgotten about it. I believe we could stand to learn more about innovation and technology by learning more about Wal-Mart, the creation of the discount retail market, and the innovation that brought about its rise and success. Wal-Mart sits atop the Fortune 500 list for 2013 and had $443.9 billion in sales for 2012.

In the tech community (the folks that hang out on Hacker News and obsess over TechMeme all day), I don’t see many articles about Wal-Mart. HN Search turns up only three stories with the term “Wal-Mart” or “Walmart” in the story title with over 100 points, and one of them is about Amazon. Contrast that with a quick search for “Amazon” in the title and you’ll see stories with 100+ points until the 18th page (as of Dec. 23, 2013; it’ll change with time).

I started studying Wal-Mart after reading a book about Amazon. In November, I finished reading Brad Stone’s book about Amazon called The Everything Store, and it pointed a fairly large sign at Wal-Mart and Sam Walton as a source of inspiration for Bezos. The book mentioned it, and listed Sam Walton’s “Made in America” book second on “Jeff’s Reading List” in the appendix. (I consider this appendix the most valuable part of “The Everything Store”.)

Next, I read “Made in America” and finished it in two days. Let me share with you what I learned from Sam Walton through this book.

Sam Walton was a growth “hacker”
Sam Walton got after it. He began working and learning about business from a young age. He wasn’t afraid to try new things. He experimented.

He ran a Ben Franklin five-and-dime store and created a few Walton’s Five and Dime stores. He learned new ideas about retail in the process, and continued learning with his first Wal-Mart store and every subsequent store he opened.

His entire life, he studied the competition. He drew in customers with low prices, and kept them coming back for more. From there, he rolled out more stores, drew in more customers with the same value proposition, and continued growing Wal-Mart until stepping down from CEO and President in 1988.  He passed away in 1992.

I can’t point you to a simple formula, and the summary above leaves out so much.  I would recommend reading his book and studying his methods – you can’t replace a book with a blog post. In the book, he says a lot about how he started the company, why he started the company, and how it was able to succeed and grow. He even discusses how other companies can compete with it.

I’d like to share with you several of my favorite quotes from the book. The business wisdom contained within is relevant to startups and other businesses.

Get after it

“When folks have asked me, “How did Wal-Mart do it?” I’ve usually been flip about answering them. “Friend, we just got after it and stayed after it,” I’d say.”

Frugality

“We exist to provide value to our customers, which means that in addition to quality and service, we have to save them money. Every time Wal-Mart spends one dollar foolishly, it comes right out of our customers’ pockets. Every time we save them a dollar, that puts us one more step ahead of the competition—which is where we always plan to be.”

“… if we get a great deal, pass it on to the customer.”

Bias for Action

“Looking back on such boyhood episodes helps me to realize now that I’ve always had a strong bias toward action—a trait that has been a big part of the Wal-Mart story.”

Compete

“If I had to single out one element in my life that has made a difference for me, it would be a passion to compete.”

Charlie Cate:

“I remember him saying over and over again: go in and check our competition. Check everyone who is our competition. And don’t look for the bad. Look for the good.”

Change the rules

“We paid absolutely no attention whatsoever to the way things were supposed to be done, you know, the way the rules of retail said it had to be done.”

Growth

“When you’re opening 150 stores a year the way we do these days, a lot of your planning is necessarily short term. But to sustain that kind of growth, you constantly have to consider what you’re going to be doing five years out.”

Technology
Sam Walton used cutting edge technology. He revolutionized retail and enabled Wal-Mart’s expansion and growth by investing in technology while maintaining frugality and passing on the savings to the customer.

Abe Marks:

“And this is a very important point: without the computer, Sam Walton could not have done what he’s done. He could not have built a retailing empire the size of what he’s built, the way he built it. He’s done a lot of other things right, too, but he could not have done it without the computer. It would have been impossible.”

Fin
A final quote from Sam Walton you will need to succeed in business: “SWIM upstream. Go the other way. Ignore the conventional wisdom.”

Discussion on Hacker News.

Disclaimer: Viewpoints and opinions expressed in this article are my own and do not reflect those of my employer, my colleagues, or any other person.  (I work at Amazon.)

What I Learned from Sam Walton, the Legendary Retail Growth “Hacker” Read More »