Categories
Essays On Self Improvement

How to change your life without changing anything, the scientific way

Every year I look forward to the winter snowfall, the reason is that I love to ski, but that all changed about 8 years ago. My friend was teaching me how to ride a dirt bike. A passion of his. Sadly I shattered my knee.

The bike was a two stroke and my friend was riding ahead of me. I was going up a hill when the belt caught, the front wheel lifted and my knee was driven into a rock as I lost control.

For the next two seasons I sat on the sidelines as my leg healed. Losing the ability to ski, bike, run, walk… taught me how much I took for granted. Fortunately my knee did heal but the lesson has remained.

adventure quote

Recently I learned a second lesson. A friend of my wife and I was sharing how every morning and evening she says 5 things that she’s thankful for. What a great idea! So for the last 3 weeks or so I’ve been doing this as well. In the next bit I will share what I’ve learned.

Before we get into that, Robert A. Emmons published a fascinating study on sleep and gratitude in the Journal of Personality and Social Psychology. People were asked to keep a gratitude journal everyday for 2 weeks. The subjects were able to fall asleep faster, sleep longer, and feel more refreshed in the morning.

I didn’t know about this study when starting this, but I’ve experienced a similar effect. I’ve also noticed that I have more energy after work.

At first it felt kind of weird saying 5 things I was thankful for. In fact it felt so weird that I had to force myself to do it at first.

Today I heard a guy talking about the fact that so often we look to people that we aspire to be like and we spend our time focusing on that, rather than looking at our own lives and realizing that there are some people who would love to be like us.

Not only can I relate to that statement, but it’s the very thing I’ve been thinking about. As I’ve continued saying things that I am thankful for I’ve noticed that my appreciation for the things in my life has increased. I like driving my car more … I’m amazed that I get to live where I do … you get the point.

But not only that, the other day I saw a reflection of my wife and I driving and a thought popped into my brain, “I want to be like those people”. Again it’s a weird thought, it’s strange even to write about it. But really how cool is that! To want to be like you are.

We live on this amazing planet. Everyday is a gift. So I want to leave you with this thought. There are people around the world who want to be just like you. Who want to live where you live and hangout with people like yourself. By saying 5 things you are thankful for everyday you can live a better, more fulfilled life, and you don’t need to shatter your knee to do it.

Categories
Essays On Culture On Leadership

More than a profession or a job description

To say we are one thing is to say we are not another. In preparing for his talk, Bassam Tariq says, “Here I say, ‘I’m a blogger, filmmaker and butcher.’ The hardest part of my talk was saying that I was x, y and z. I have worked hard to dodge these kinds of labels. But when you are giving a five-minute talk, you have to simplify and pray that people will then read these annotations.”

All to often content is created to fit the Zeitgeist, or “spirit of the times”, in an effort to be relevant. But isn’t that only going to perpetuate preconceptions, stereotypes or world views.

To give you an example of what I mean, in Bassam’s talk he describes creating a movie in Pakistan titled These Birds Walk. In it he tells a story of Pakistan’s poorest children. He was encouraged to use his movie to raise awareness of drones, target killings, and the impact they are having on people. “To make the film ‘more relevant,’ essentially reducing these people who have entrusted us with their stories into sociopolitical symbols.” But, he didn’t.

Instead he told the story of street children trying to create some semblance of family.

I don’t know Bassam Tariq, what he stands for, or who he is. But in his talk he represented people who are more than a profession, or a job description, or a title, or a religion… These people help to bridge social divides.

Breaking from a norm, while still holding respect for traditions and the people who stand before us, improves opportunities for everyone.

Categories
CSS Downloads Tutorials

How to use the simple responsive CSS grid – SimpleGrid

Introducing an easy-to-use and lightweight css grid. 

  • Flexible 12 column grid
  • Easily extend for custom styling
  • Fluid (works no matter the size of the containing div)
  • Responsive (looks nice on mobile & web)
  • Option to maintain grid column layout on mobile screens

Download latest release 

Categories
PHP Tutorials

What does the symbol “&” “&&” “||” “::” “%” “!!” “**” mean in PHP?

This is the best guide on PHP symbols I’ve every seen. If only something like this existed when I was first learning to code.

Reference:

& =& &= && % !! @ ?: : :: \ -> => ^ >> <<< = == === !== != <> | || ~ + += ++ .= . , $$ ` <?= [] ... **

A list of every symbol in PHP that you’ve ever wanted to know the meaning of.

::

The “::” symbol (Scope Resolution Operator) explained

Categories
Essays On Business On Culture

Is a good life and a successful one compatible?

Have you noticed all this focus on the perfect habits of successful people as if the cause for their success can be summed up as a daily 8 hr sleep, 30 min exercise, and 30 min reflection time? But it’s not real.

New Years Eve, Christmas Day, birthdays… we’re pretty good at celebrating important occasions. In between these holidays our days can often be forgotten as the pace of life demands our time for work, errands, exercise, etc.

As a person I’ve gotten pretty good at forgoing fun to reach a goal. Often knowing that a holiday is coming is all I need to keep the sacrifice going.

When a goal is achieved it’s rewarding. It makes the sacrifice worthwhile. Inspirational speakers talk about the impact people can make if they choose growth over comfort and work over fun.

It’s hard not to praise people like Steve Jobs, who epitomized what it looks like to die for your company and dreams. At his end he remarked that it may have been the strain of working as the CEOs of both Pixar and Apple that brought about his cancer.

When you achieve your goals or hit the jackpot it’s easy to look back at that sacrifice and feel it was worth it. Yet, what if the road is longer than you anticipated and you’ve fallen short of your quarterly goals. Even though you are made of the stuff of champions – character and perseverance – the years go by and the goal remains aloof.

Is the sacrifice worth it if the reward is the end?

Sacrificing fun over work makes for a purpose-driven life, but not a good one.

Nelson Mandela is quoted as saying that, “There is no passion to be found playing small – in settling for a life less than the one you are capable of living.”

I see two important parts to what he said. Firstly, passion is found when you live up to your potential. And secondly, you are capable of living a larger life.

It’s easy for personalities like my own to miss the nuance of his point. Because I’m oriented towards action, when I read Mandela’s words I know them to be true and am motivated to work even harder.

But working harder isn’t living larger. It isn’t really living at all. It’s might even be playing small.

I’ve heard it said that we get to choose our habits and our habits choose our future. I agree with that. I’ve also learned from others that there is a difference between good trade-offs and bad ones.

Living a life that you are capable of requires trade-offs. Each person is unique and their trade-offs will be different. Perhaps it means giving up security for an opportunity. Or giving up the 80 hour work week for time to invest in your family.

As 2014 has come to a close here’s what I’ve learned and will be taking with me in 2015. Good luck this year as you pursue the large life that you are capable of living.

  • To attract people to your cause you need a mission and a vision that’s easy to articulate.
  • Find fulfilment in your vision because it will become real.
  • Focusing your attention on growth and development rather than on goals makes the journey worthwhile.
  • It’s hard to control outcomes but it’s easy to control activities.
  • Measuring activities make outcomes more predictable
  • People are motivated and/or held back by fear, security, and fun.
  • Make fun an intentional part of your day.
  • Celebrate everything.
  • Working smarter is better than working harder, combining the two will get you further than either.
  • Working with others who also understand this will multiply everyones efforts.
  • If you are motivated you will be more likely to continue.
  • If you continue you will be more likely to reach your goals.
  • If your attention is on growth you will have achieved success on the entire journey.

All of us have bad luck and good luck. The man who persists through the bad luck – who keeps right on going – is the man who is there when the good luck comes – and is ready to receive it.
Robert Collier

  • Successful people attract success.
  • Life’s a long journey – make time for fun. It’s not a trade worth making.

There is no passion to be found playing small - Nelson Mandela

“There is no passion to be found playing small – in settling for a life that is less than the one you are capable of living.”
Nelson Mandela

Categories
Essays On Design

The beauty of imperfect

What do Christmas, responsive css design, National Geographic and a walk in the forest have in common?

The internet turns 25 and people are connecting via their PCs, tablets, phones, game stations, e-readers, … (you name it). The world of devices has changed. Yet, it feels like only yesterday that I met my first client curious about designing for mobile.

In those days research revolved around Nokia phones (as they were the most advanced at the time) and good ol’ flip phones.

So it felt odd when I realized that the internet was turning 25 years old and this blog wasn’t mobile friendly. Not to worry, Christmas was coming, and if there is one thing I love – it’s a good project. Converting a website to a responsive design is easy… child’s play really.

Maybe that’s how all great miss-adventures start. Pack light, plan for a day trip and then get lost.

Starting with the Mobile First Approach, I created a responsive WordPress theme. This is a really simple approach, simply put, you design the website for the smallest screen sizes first. When you are happy, expand the screen, and use media queries for the larger sizes.

Why’s this a good approach? Well, it reserves media queries for devices that are built to handle them (tablets and PCs). Secondly, the bloated design code that often comes when designing for larger screen sizes extends the clean css in the media queries. This is much better than the Web First Approach. Where the same css code is often written multiple times in order to remove style attributes for smaller screen sizes. As it so often happens.

And so the redesign began.

Off to a great start, the newly minted theme completed, a mistake followed. I asked my wife what she thought of it. Her reply came as a shock, “A bit boring” she said frankly.

I’ve always believed that honest feedback makes for a much better design.

So I took a step back and tried to rethink my approach. Maybe it could be better.

1 week later, 5 major redesigns, and nothing to show for it. I couldn’t believe how tough the redesign had become. Nothing seemed right about it.

Yesterday it started snowing. The mountains looked beautiful. Crisp and clean. And I decided to go for a walk.

Deer jumping in the forest

There’s something magical about nature. Nothings perfect and it couldn’t be made more perfectly.

Spend enough time there and it will reduce even the toughest problems to simple solutions.

I came across this deer while walking through the woods. It was painfully aware of my presence. Beautiful and graceful the quiet forest became alive as it leapt into the distance.

As it disappeared so too did my thoughts.

It seems that we love asking kids the question, “What do you want to be when you grow up?” It’s possible you were asked this question too. So I’m going to ask you it again.

What do you want to be?

Take a second to think about it. Are you on your way to achieving it? Are you already doing what you love? Maybe you haven’t asked yourself this before.

For me, I love capturing moments. Growing up I wanted to work for National Geographic. I didn’t tell people this because it seemed too much of a dream. Instead I would say a doctor or a scientist. This seemed to please people and I came to believe that this was the answer they wanted to hear anyways.

 There is no exquisite beauty… without some strangeness in the proportion Edgar Allan Poe

Photographers from National Geographic seemed to have mastered documenting imperfect moments.

National Geographic I didn’t notice it at the time, but when I look at one of their articles today it seems that they have given up on the idea of perfect and have captured something far richer instead. A story.

This brings me back to web design. By the time I returned home I was full of energy and a new direction. I embraced imperfect, threw out my code, and found a theme called Independent Publisher that was good enough.

In no time at all I had updated my blog and started writing instead. Sometimes running after the holy grail of web design – perfect code and a perfect design – leaves a person with a missed opportunity.

While walking in the woods I saw the analogy to life. At least to my own.

Categories
mac Terminal Tutorials

Mac – How to clear a file’s contents using Terminal command

A quick trick to empty a file using Terminal on Mac.

1. Open Terminal

2. enter the following command in Terminal

cat /dev/null > fileName

If you get a warning Permission Denied you can do the following trick.

sudo sh -c 'cat /dev/null > fileName'
Categories
Linux MAMP Tutorials

How to setup multiple sites hosted on your Mac with OSX 10.8 + (MAMP Part 5)

Welcome to part 5 of the MAMP tutorial. In this post we will go over setting up friendly URLs on your Mac server. We will be adding a new site called http://mysite.localhost

You will also learn how to run multiple domain sites on your local server. Having Virtual Hosts enabled is really useful when developing sites on your localhost. It’s also super easy to setup.

Categories
Essays On Culture On Social Media

We need to talk about the impact of Likes

Have you ever experienced information overload? Maybe I’m alone in this, but I love discovering new things. And for me learning from blogs, forums, or videos is an easy way to do it. With all that input I am influenced by the thoughts and ideas of the content. Which is part of the joy of learning, reshaping one’s frame of mind and gaining fresh insights.

Then I read Martin Cooper’s interview of Jeremy Keith in Net magazine. It was at night, I was sitting outside on my patio under the warmth of the propane heater as rain thundered down beyond the roof. In that moment I was reminded of what made the internet so compelling.Jeremy Keith interviewed by Martin Cooper

Here are the words I was reading. “What fascinates me,” Jeffrey says, “is the very basic idea of the web. This idea that anybody can publish on the web and other people can see it. People anywhere in the world. It’s a very simple idea but all the permutations of that have influenced a lot of what I do.”

Categories
Essays On Social Media

Facebook is broken

Facebook likes brokenFacebook is broken. The site isn’t down, you can still login to your account. The problem is with its business model. Have you noticed how your newsfeed is getting more filtered? When you post something to your Facebook wall, it is only seen by a few of your friends. To prevent people’s walls from being inundated with thousands of posts, Facebook shares your posts with just a few of your friends, then if those friends like your post it is shared with more of your friends.