Categories
Essays On Intelligence

The truth about burnout

It was a bright sunny day. Sitting at my birch wood table overlooking the back yard, I could the see the light streaming in to the kitchen. I remember the time of day, it was just about 11am, as I sat coding on my laptop.

I felt a sense of urgency to push code.

But a cloud began to form in my mind as I strained to make sense of the screen. It wasn’t that it was complicated. I had experienced small moments like this numerous times before. Usually it followed long stretches of coding, often many days in a row. So assuming I needed to rest my mind for a minute I looked away to give myself a few seconds of rest. Looking back at the code the fog returned. Again I took a break. I remember waiting exactly 5 minutes. That should be plenty of time. But the fog became worse. Within minutes it was like I was looking at greek. I couldn’t make sense of it.

That was 7 years ago. And I’m pleased to say I’ve been symptom free for about 6 weeks.

If you’ve faced this type of scenario I’m happy to say that it’s completely possible to recover from burnout. Commonly referred to as Brain Fog.

There isn’t a lot of information available on burnout. When I first experienced it I didn’t know what it was. I didn’t know why I was experiencing it. In fact I felt ashamed that I was unable to perform at my usual pace and kept it secret from my business partners and colleagues. I was embarrassed, valued performance, and afraid.

I’ve since learned that burnout comes from Hyperfocus disorder. Hyperfocus is an intense form of mental concentration [1]. In my case I didn’t have ADHD, or any of the other conditions sometimes associated with hyperfocus, I simply had little problem focusing while programming. I would get into the zone even in loud, disruptive, and emotionally charged environments. I was possibly a workaholic, a habit thankfully broken because of the symptoms of burnout. Not wanting to miss the NFL Super Bowl I would sit writing our application on my computer while cheering for my team of the match. I struggled to put my tasks aside.

The brain needs rest. It’s an organ, no different to the heart or lungs. It needs time to recover from strenuous use. Something I didn’t know or understand.

Symptoms that I experienced from burnout included:

  • Difficulty with memory recall. Any new information that wasn’t being used in the moment was almost immediately forgotten. While doable, this made project management challenging.
  • Nausea when eating. At one point I’d eat a bite, wait until the feeling of nausea would pass, before choosing to eat another bite.
  • Fogginess. This one is hard to explain, the ability to see things, but difficulty in making sense of what you are seeing. My eyes worked fine, but symbols and strings of commands weren’t instantly recognizable.
  • Logical arguments became extremely strenuous. I studied philosophy at UBCO, it was effortless to string arguments together. In debate one would often think of 4 or 5 arguments simultaneously. After burnout it became difficult to think beyond a single argument.
  • Hard to perform complex short-term recall. Similar to the above symptom, programming often requires holding a few thoughts simultaneously. One assembles the functions of the code in their mind prior to writing it. Then while writing code you may need to know how a module or controller works that you are referencing, remember all that occurred in the program prior to the code you are writing, and think of the possible scenarios that could occur to ensure you write bug free code. It became very tiresome to perform even the simplest of tasks.
  • Strategic debate was challenging.
  • Mood changes – this was subtle but I definitely noticed that some days I had to be very intentional with how I communicated with others. After mentally involved tasks I would become more abrupt and critical.
  • Difficulty recalling words and thoughts. I knew I had a word or thought in my memory, but unable to access it in moments of conversations.
  • Difficulty articulating thoughts. This was likely the most frustrating of all the symptoms. While I could hide the other ones behind a computer screen, as the owner of my company I needed to be able to communicate my thoughts around strategy. Unable to string together many arguments at once, it wasn’t an easy task and I left many meetings feeling frustrated.
  • Simple tasks like answering emails, writing posts, or maintaining support became challenging – even draining.

Extended periods of acute awareness and hyperfocus result in long term elevated levels of dopamine and norepinephrine. Dopamine is released by the hypothalamus in the brain. It is provides you with the motivation, drive and focus involved with attention. Think of it like your “motivation” hormone. Norepinephrine (noardrenaline) is a neurotransmitter found in the brain which has very similar in structure to the hormone epinephrine (adrenaline). It is a chemical involves in wakefulness, memory, alertness and generally readying the brain, and therefore the body, for action when it is being challenged or threatened.

Another chemical released during concentration is acetylcholine (ACh). ACh, acting through muscarinic and nicotinic receptors, it enhances attentional focus by modulating neural activity across sensory, prefrontal, parietal regions of your brain. ACh helps you make sense of what you’re focusing on. “In sensory regions, such as your visual cortex which is activated when you are focusing in the visual domain, ACh acts to increase the signal relative to the noise. More specifically it increases the strength of the relevant neural signal in the visual “receptive field” which represents your point of focus to make sure it is greater than the surrounding neural signals. This helps you to label which areas of your visual field are the most important, and to inhibit nearby distractions which may otherwise disturb your attentional focus.” [2]

Dopamine and serotonin are neurotransmitters. Neurotransmitters are made using amino acids. The thyroid which releases thyroxine plays a vital role in the regulation and production of dopamine. “Thyroxine has been shown to play the vital role in the production of stomach acid which ultimately helps to increase the level of dopamine in brain” [3]. Stomach acids are used to release amino acids from protein. These amino acids are then used to create the neurotransmitters.

Also, extended periods of increased levels of norepinephrine can lead to stress. “A significant part of the damage is due to the effects of sustained norepinephrine release, because of norepinephrine’s general function of directing resources away from maintenance, regeneration, and reproduction, and toward systems that are required for active movement. The consequences can include slowing of growth (in children), sleeplessness, loss of libido, gastrointestinal problems, impaired disease resistance, slower rates of injury healing, depression, and increased vulnerability to addiction.” [4][5]  Essentially too much norepinephrine puts you body into a stressed state.

Cordisol, a hormone released during anxiety and stress, in turns makes it difficult to focus and recall things.

Berkley scientists published a study showing the effects of stress on the white matter in brains.[6] In it they found that chronic stress triggers long-term changes in brain structure and function.

Sustained hyperfocus can lead parts of the brain to go dormant. Similar to tearing a muscle at the gym, a strong body can be over stressed and require months to heal. Also elevated levels of hormones associated with “fight or flight” cause the body to neglect import recovery and healing functions [7][8]. The body doesn’t like extended stress. It’s designed to survive and will do what it can to eliminate threats.

In my case a combination of extended hyperfocus, lack of exercise and an irregular sleep pattern created a threat to my body’s survival. The tragedy of errors resulted in increased anxiety, nausea, and parts of the brain being damaged.

I’ve got good news. The brain can and does recover.

One key to recovering from brain fog, burnout, and the symptoms that I described is to know there is no set time. I’ve read stories of people who have light symptoms recovering in months. Others, like myself, took many years. But I’ve remained optimistic, understanding that my mind was creating new pathways as I continued to perform my work.

In 2012 I began exercising consistently. Cycling was the first sport that seemed to mirror from a physical aspect the fatigue I experienced from a mental one. Cresting a mountain on a bicycle turned the physical pain of the climb into instant euphoria and accomplishment, which is usually followed by gratitude and awe. Today, I enjoy racing in cycling competitions. [9]

I’ve since read some fascinating studies on how endurance sports that stress the cardiovascular system actually release chemicals that not only promote recovering in the muscles but also in the brain.

Finally, I highly recommend being intentionally optimistic and grateful. It not only makes the recovery process significantly more enjoyable, but the brain is hardwired to respond to positive stimuli. Possibly there is a connection between gratitude and building a strong, healthy and resilient mind.

If you are going through the experience that I described, know that it will get better.

Categories
Apache mac MAMP PHP Tutorials

Migrating PHP and Apache to latest Mac OS after update

After upgrading you MacOS, you will need to reconfigure your MAMP server. Fortunately, it’s pretty easy to do. However, sometime hiccups happen. Here’s a quick guide to follow that will walk you through the things to check.

1. enable php.ini

cd /etc

move default to php.ini

sudo cp php.ini-5.2-previous php.ini

If you need to resetup php.ini follow these directions here.

2. Enable virtual hosts

See part 1 of :

Follow the directions of part 5

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

3. Restart Apache

sudo apachectl restart

Check if it’s working.

4. Getting 500 internal error

check error log

5.  Enable rewrite engine

/etc/apache2/httpd.conf

uncomment following line

#LoadModule rewrite_module libexec/apache2/mod_rewrite.so

6. Enable PHP

/etc/apache2/httpd.conf

uncomment following line

#LoadModule php5_module libexec/apache2/libphp5.so

If you’re using php version 7, uncomment this line instead

#LoadModule php7_module libexec/apache2/libphp7.so

7. save and restart apache

sudo apachectl restart

8. If you’re still getting “ERR_CONNECTION_REFUSED”

ERR_CONNECTION_REFUSED apache php error

Run configtest to see if any modules in httpd.conf need to be removed or enabled

sudo apachectl configtest

9. If you’re getting error 403

403 Forbidden You don’t have permission to access / on this server.

Check Apache is able to read the mime types. Add this line to the Mime types section in your /etc/apache2/httpd.conf file

AddType application/x-httpd-php .php

 

 

Categories
Essays On Business On Leadership

Maintaining Vision

500,000 visitors, wow. It’s been a journey. Thank you!

When it comes to building a business or starting a venture, what is vision? What does it mean to maintain vision? Is vision important? How does one grow their business in a changing landscape, with wavering demands, all while maintaining their vision?

These are among the questions I’ve been asking myself the past couple months.

I enjoy learning from others and I believe it’s a privilege to live in an age where so much information is given freely. So when I have a question I find myself digging into the archives of Youtube, listening to podcasts and audio books, and turning the pages of well read classics.

But when it comes to these questions on vision, I’m finding, or not finding, any concentrated material on the subject.

Is vision even important?

If you follow the excellent advice of Steve Blank or the Lean Startup, or other go-to-market tools, one may begin to question the need. For example, a truly customer lead company pitches ideas to the market, gathers feedback and insight, and makes adjustments accordingly. With enough feedback you will have a product with high demand and a model to grow your business. No vision required.

But what happens when competition shows up or you have a major setback?

Do you continue with your current strategy, do you pivot and reapply the lean startup process, or do you throw in the towel?

Visit any major city in the US and you will see a Starbucks on every corner. Coffee shops is a competitive market, but it took over 3 decades for Starbucks to saturate their market in the US. Starbucks opened their first store in 1982. And coffee houses have existed since the arrival of coffee in Europe, the Middle East and North America – with the first shop opening up in Damascus in 1530.

In Bob Dylan’s famous words, “Times they are a changing,” and it seems they are changing at a faster rate than ever before.

Any outsider will likely recognize that startups are the new gold rush. With tens of thousands starting every week and only a few striking it big. You may have a bold new idea, raise capital, launch to market and find yourself in hyper competitive marketplace within just 6 to 12 months. The problem with emerging markets is that while they may be growing, the competition is there too. So I ask you, what’s the difference between a growing startup and the graveyard of belly-ups?

Sure some businesses have promise but run out of money, others die from “board-em”, or get distracted by new ideas and jump ship. Yet, I believe only one thing separates a thriving startup from the rest. It’s called vision.

Steve Jobs once said, “You have to have a lot of passion for what you are doing because it is so hard… if you don’t, any rational person would give up.” But where does passion comes from?

I was sitting across the table from a friend at a local cafe. The cafe has a really neat vibe, with bikes hanging on the wall donated by loyal customers. My friend is sharing his concern about his kids. They will be graduating soon and he wants them to take their school more seriously so they get into the right colleges.

He had more passion about his children’s education than they did. Why? Because he had a clear vision of where they could end up. He saw them graduating from a well respected university, getting a job at a reputable company, and starting off life with a promising career. As a result he was more invested then they were.

Now there is a famous psychologist who would argue that he has made a common mistake, and taken on his children’s problem of their future as his problem. As a result they don’t need to take it seriously, why would they? Their dad has taken it seriously enough. I digress.

He has a vision for his children, and as a result he has a natural passion to see it fulfilled. When a founder loses passion, they likely lost their vision and their sense of purpose. Possibly, they never had a sense of purpose. Instead we often set a target such as money, or accomplishments, or prestige as our purpose. But they don’t last. Instead having a motivation beyond any reward does.

Just yesterday I was watching an interview between Richard Branson and David Rubenstein. Richard quietly mentioned, “I never go into a venture with the idea of making a profit. If you can create the best in its field generally you will find that you can pay the bills.” When you look at all great business leaders, they seem to have the ability to ride things out for the long haul. Why? Because despite all the hurdles, set backs and competition that can come their way, they have a vision that’s greater than the discomfort and hardships they may experience along the way.

A couple weeks ago I noticed to my surprise that this blog has received over 500,000 views. What makes this amazing is that the odds of getting any traffic hasn’t been in its favour. When I started writing here I didn’t write for anyone else. This may sound strange or selfish or unusual, but really all that I wanted was a place where I could record my thoughts and share some of them along the way. Also, I have interests that don’t create a nice content niche. If you read advice on writing for a blog they say to pick a topic and stick to it. But my vision was different. I wanted a place where I could catalogue learnings on any subject. So I did. This site consists of posts about car maintenance, cycling, computer programming, leadership, startups – you name it. Finally, this site was hacked. So until I could fix it, it was literally banned from all search engines for 2 years. But again, I wasn’t writing for anyone else. So while that was annoying, I recreated the blog and kept writing.

500000 views on machiine

 

Vision doesn’t need to be grandiose, or even compelling to others. It doesn’t need to fit a market or break the rules. It just needs to be a picture of what you want to see exist. It’s not your mission and it’s not a destination.

Instead, vision is simple. When I launched Saint clothing in 2005 my idea was to see if it were possible to create a successful business around your interests. That was my vision. It grew over time to help others who also had a sense of purpose and a desire to do something that was outside the norm. But it was a truly simple idea.

If you were to ask Steve Jobs his vision for the world, I doubt he would say, “I want an iPhone in everyone’s pocket.” That’s a mission, not a vision. I doubt it would have anything to do with an iPhone. His vision was likely more simple. To give the creators, the innovators, the outcasts the tools they need to change the world.

When a vision is clear the product can change, marketing can change, competition can change but the course never changes.

Categories
On Bicycles Resource

2018 Okanagan Race/Ride Calendar

Okanagan + Surrounding Areas


Knox Mnt Hill Climb

Tuesday, May 15 2018

Distance: 3k

Start: 6:40pm, registration opens at 5:30pm

Cost: $5 + BC race license

 

BC Provincial Championship Events

Saturday, May 26 2018 – Time Trial (Elite, Masters)

Where: Langley

Sunday, May 27 2018 – Road Race (Elite, Masters)

Where: Abbotsford

 

Okanagan Shuswap Century Ride

Sunday, May 27 2018

Start: 9am

Where: Memorial Park on Pleasant Valley Road in Armstrong

Cost: $40

 

Robb’s Ride

June 1-3

Distance: 110k day 1, 163k day 2, ?k day 3

Where: Grand Forks start, USA / Canada

 

2018 TREE BREWING TRAINING RIDE

Saturday, June 2 2018

Distance: 90k, 60k, 50k

Start: 9am sharp

Where: Tree Brewing Beer Institute (1346 Water St, Kelowna)

Cost: Must be registered for Axel Merckx Granfondo

 

Bike ‘n Braai – KGH Foundation

Sunday, June 3 2018

Distance: 80k (includes 4k hill climb race)

Start: 9am

Where: 2290 Abbott Street, Kelowna
British Columbia, V1Y 1E3

Cost: $100

 

MEC Kelowna Okanagan Century Ride

Sunday, June 3 2018

Distance: 100k, 60k, 30k

Start: 7am

Where: MEC Kelowna

Cost: $35

 

“Dave’s Ride” Granfondo Vernon

June 11

Distance: 161k, 135k

Start: 7am (sharp)

Where: People Place Parking lot in Vernon (or 8:45am sails Kelowna)

Cost: ?

 

Knox Mnt Hill Climb

Tuesday, June 12 2018

Distance: 3k

Start: 6:40pm, registration opens at 5:30pm

Cost: $5 + BC race license

 

Axel Merckx Granfondo 

Sunday, July 8 2018

Distance: 160km, 126k, 92km, 55km

Start: 7am

Where: Penticton’s Main Street (near the Lake Okanagan)

Cost: $215

 

L’alpe de Grand Blanc (Hill climb)

Sunday, July 22 2018

Distance: 60k

Start: 9am

Where: East Kelowna Community Hall on the corner of McCulloch Road and East Kelowna Road

Cost: ?

 

Revelstoke Steamer (Hill climb)

Sunday August 26th, 2018

Distance: 26k

Start: 7am

Where: Tournament of Champions Monument on Track St W near the Railway Museum, Revelstoke BC

Cost: $30

 

Kootenay Rockies Granfondo

Saturday Sept 8th, 2018

Distance: 152k, 102k, 58k

Start: 9am

Where: Cranbrook, British Columbia

Cost: $139

 

Bike For Your Life Century Ride

Saturday, Sept 15 2018

Distance: 100k, 75k, 35k

Start: 9am

Where: Blackburn Park playground along 5th Street SW, Salmon Arm

Cost: $30

 

Guardian Charity Ride

Sunday, Sept 30 2018

Distance: 100k, 50k

Start: 8am, 9:30 fast group

Where: ?

Cost: $40

Categories
On Bicycles Reviews

How accurate is Zwift’s power estimate for classic trainers?

I began using Zwift late last year for offseason riding. In a way, it is my winter group ride replacement. I use a classic magneto trainer with a Garmin speed, heart rate and cadence sensor, which do the trick for me. Because I know the speed I’m pedalling, and since the resistance of the trainer is consistent, I can tell very easily if I’m improving.

Zwift race starting line waiting for users

 

Less than one week in and I find out that the Zwift Academy has started. It looked like fun, so I joined. I believe one had to complete 2 races along with some group rides and their training workouts to graduate.

The races were fun. I enjoy the challenge of competing with other riders any day of the week. but I had no way of knowing if my power was accurate. So I did the best I could to compare Zwift’s power to CycleOps power graph, which I wrote about.

Still unsatisfied, I got my hands on some Favero Assioma dual pedal based power meters, and did some real tests. Here are the results.

Favero Assioma power meter duo box

 

All tests were done on the CycleOps Magneto trainer. Speed was recorded using the Garmin 520 computer. Power was recorded from the Assioma Duo pedals and Zwift’s estimate.

Kms/hr Zwift Estimated Power Assioma Power % Difference
23 160w 138w +14.75%
34 320w 272w +16.22%
40 412w 342w +18.57%
48 490w 414w +16.81%
57 550w 590w -7.02%
64 550w 690w -22.58%
Zwift world power vs real data
Power in Watts and Speed in Km/hr

Conclusion:

It’s pretty clear that Zwift’s estimates are off. In the lower power range zwift overestimates power by more than 30%. However, once it passes about 540 watts the pendulum swings the other way and then it begins to underestimate power by well over 22%.

I really enjoy Zwift and would encourage anyone to hop on the platform, with or without a power meter. Hopefully Zwift will be able to use this data along with data posted by other users to help them improve the accuracy of their software for all riders. Those who can afford power meters and the many who are just getting into the sport.

Categories
Apache MAMP Tutorials

How to restore your Mac’s Apache settings after upgrading your Mac OS

How to get your virtual host MAMP Server (Mac Apache, PHP, and MySQL) up and running again after upgrading to the latest macOS. Mac High Sierra (as of this post).

After upgrading the macOS and navigating to the directory of my localhost website, this is what I see. Instead of showing the webpage it is supposed to (as per the settings of my virtual host prior to the upgrade), it is displaying the default apache directory.

Follow the these directions to easily restore your Mac’s Apache settings (while keeping a copy of the new ones).

It works

 

 

Step 1. Restore your Apache configuration file

When apple upgrades its servers, it sets it’s Apache settings back to default. Thankfully, it does store the original files as filename~previous.

1. Open your Terminal application found in Utilities

2. Navigate to your apache directory

cd /etc/apache2

3. Move the new config file to keep it as a backup

sudo mv httpd.conf "httpd.conf~new"

4. Move the original config file back

sudo mv “httpd.conf~previous” httpd.conf

Step 2. Restore your Virtual Host settings

1. Navigate to your apache extra directory

cd /etc/apache2/extra

Run the following command to reset your virtual host file

2. Move the new file.

sudo mv httpd-vhosts.conf "httpd-vhosts.conf~new"

3. Move the old file back

sudo mv "httpd-vhosts.conf~previous" httpd-vhosts.conf

Step 3. Restart Apache

Run the following command

sudo apachectl restart

Congrats! You’re done.

Navigate to your localhost website and refresh the page. It should appear as it did before the upgrade. This website below is an example, your website will appear however you have designed it.

Apache example website

 

If you’re stilling having issues, I’ve added a checklist of steps here.

Categories
On Bicycles Resource

How does Zwift zPower estimates compare with CycleOps data for the Magneto trainer?

People love to point out that I’m riding Zwift Power – which simply means that Zwift is estimating the watts that I’m generating by comparing my speedometer sensor, cadence sensor and type of trainer. Zwift is multiplayer game for cyclists. It works by displaying an Avatar of you cycling as you pedal away on your home trainer. It’s great because not only does it make training at home fun, you can ride with people all around the world. However, to make the experience somewhat fair and realistic Zwift uses a rider’s power, weight and height to accurately determine their speed. Now, with all that data, you can suddenly race against any rider in the world on Zwift. And, as you’re likely realizing, hence the deal about Zwift Power.

Zwift workout screenshot

 

A lot of cyclists get frustrated when they see other riders using Zwift Power in the races. They are working hard, their watts are showing an accurate number, but how do you know if Zwift is any good at estimating the claimed watts of the riders you’re competing against.

Now Zwift claims that they are pretty good. They say they’ve tested every trainer approved for Zwift Power and at worst it’s 10% off, depending on the condition or tolerance of your home trainer. Eric Schlange from Zwift Insider shared, “The good folks at ZwiftHQ put many hours into testing an entire room full of classic trainers back in Zwift’s early days (trust me, I’ve seen the room!)” However, from experience, they may need to test them again – which I’ll get into shortly.

Quick caveat: I have used both the CycleOps Hammer and Tacx Neo smart trainers with Zwift and can only compare power data with my classic trainer anecdotally using FTP efforts, Heart Rate and feel.

But, first another Eric, this one over at Zwift posted that perhaps it’s not simply Virtual Zwift Power that is inaccurate. “As for Smart Trainers vs Power Meters – it’s all on what they report. They tell us the wattage that is being generated, we use that data. Some power meters are more accurate than others and some smart trainers are more accurate than others.”

So, even if they have tested every smart trainer and classic trainer, there is still a lot of room for error. Which brings me to my experience.

I use the CycleOps Magneto Trainer. It’s a simple lightweight magnetic turbo trainer. CycleOps posted power data of their trainer, which I then used to create a power curve graph with good ol’ pencil and paper.

Power Graph – Power verse Speed (KMs) (don’t laugh)

As you can see, according to CycleOps, it starts off with a curve and then becomes a very linear graph as the speed increases. This is something you can feel as well. So how does Zwift estimates compare with CycleOps?

Power graph

Classic – CycleOps Magnetic Turbo Trainer (Update, here’s the power graph from the manufacturer)

So how does Zwift estimates compare with CycleOps data?

Well this was somewhat surprising. *Each speed interval was recorded on a Garmin 520 device and on 0 degree gradients in the Zwift world with ample time to compensate for acceleration/deceleration.

Kms/hr Zwift Estimated Power CycleOps Estimated Power % Difference
23 195w 140w +32.8%
34 320w 290w +9.8%
40 412w 350w +16.3%
48 490w 450w +8.5%
64 550w 620w -12%

Back to the caveat above. Before recording this data, I did notice when switching from smart trainers to the CycleOps Magneto trainer that Zwift seemed to be over estimating power when riding at 200w. I would recover much faster after efforts (HR) and it also felt too easy. However, on the other end of the spectrum, during hard efforts, they seemed to be more challenging on the classic trainer.

For example, on the Hammer and Neo power trainers it’s possible to spin above 1000w’s. However, on the CycleOps Magneto trainer Zwift caps power at 550w.

So my conclusion from this data is that Zwift overestimates power at the lower end by much more than their claimed 10%. For a rider with an average weight, they will have an advantage in the B, C, or D classes. Based on this test, riders using zPower have a disadvantage when it comes to efforts over 550 watts. Such as when sprinting, attacking or during spurts on hill climbs.

I hope you enjoyed this analysis. Please let me know if you have experience comparing a classic trainer with actual power data. What do you think? Is Zwift Power going to be an important factor to the future of Zwift races?

Update: I got hold of a power meter and did a direct comparison test between zPower and real data over here.