Light and Motion sensor control of Relay

Python code for MicroPython v1.19.1 using Thonny

# Light and Motion sensor control of Relay

from machine import ADC, Pin
from time import sleep
import tm1637
mydisplay = tm1637.TM1637(clk=Pin(26), dio=Pin(27))
mydisplay.brightness(0)

# Microcontrollerslab.com - LED button
# peppe8o.com/how-to-use-a-photoresistor-with-raspberry-pi-pico - light sensor

mot_delay  = 100.

Summary - Atomic Habits

Atomic Book coverThe Book in Three Sentences

  1. An atomic habit is a regular practice or routine that is not only small and easy to do but is also the source of incredible power; a component of the system of compound growth.
  2. Bad habits repeat themselves again and again not because you don’t want to change, but because you have the wrong system for change.
  3. Changes that seem small and unimportant at first will compound into remarkable results if you’re willing to stick with them for years.

The Five Big Ideas

  1. Habits are the compound interest of self-improvement.
  2. If you want better results, then forget about setting goals. Focus on your system instead.
  3. The most effective way to change your habits is to focus not on what you want to achieve, but on who you wish to become.
  4. The Four Laws of Behavior Change are a simple set of rules we can use to build better habits.

The Innovator's Dilemma

The Innovator's Dilemma by Clayton Christensen explains how successful companies fail by sticking to their established business models, overlooking disruptive innovations. It offers a framework to help managers anticipate and respond to market changes.

The innovator's dilemma is a management book about innovation written by Clayton M. Christensen, a Harvard Business School professor with a fantastic haircut, in 1997. Its findings are widely considered to be extremely insightful and in contrast to common wisdom at the time of publishing. Due to the importance of innovation in the technology sector, it has since become the quintessential management book in those circles.

Here is an excerpt from the book to hopefully explain disruptive innovation:

"Most new technologies foster improved product performance. I call these sustaining technologies. Some sustaining technologies can be discontinuous or radical in character, while others are of an incremental nature.

Summary - 5 Love Languages

5 love languages book coverBy Gary Chapman

 

The 5 Love Languages: The Secret to Love that Lasts has sold over fifteen million copies in English and has been translated into over fifty languages around the world. It has helped literally millions of couples learn how to connect with each other and keep emotional love alive. They have made the transition from Stage One to Stage Two. They have learned how to express love effectively.

Here is a brief summary of the five love languages:Summary chart 5 love languages

Take the quiz at 5lovelanguages.com

9 qualities that immediately make people respect you

9 qualities that immediately make people respect you when you first meet them

by Lachlan Brown | April 1, 2024, 5:07 pm

MeetThere’s a marked difference between being liked and being respected.

To be liked, you simply have to be pleasant and agreeable. But to be respected? That takes a little more.

Respect is earned through our actions, words, and even our demeanor. It’s about how we present ourselves and how we treat others.

Now, there are certain qualities that are universally admired and immediately command respect from others. These are traits that you can cultivate in yourself to create a positive and lasting first impression.

In this article, I will break down the 9 qualities that can instantly make people respect you when you first meet them.

Let’s dive in. 

1) Authenticity

In a world constantly bombarded with filters and edits, authenticity stands out like a beacon.

siege Web-site benchmark tool

siege

Run the benchmark siege test to simulate 50 clients accessing 10 random cached pages.

siege -b -c 50 -r 10 -i -f urls_list.txt

  • -b benchmark mode, no delay between intereation
  • -c <num> concurrent number of concurrent users
  • -r repititions - tells how many times each user should run
  • -i internet mode, read URLs from urls.txt file in random order
  • -d <seconds> delay between page request, can be 0.1
  • -m "<string>" log message to log file for this run
  • -f <file> path to file with URLs one per line unlike command line argument the URLs in the file or not quoted
    •  The file also supports UNIX-style commenting:

               # Comment looks like this

               https://www.joedog.org/

               https://www.joedog.org/haha/

               https://www.joedog.org/haha/ POST homer=simpson&marge=doestoo

    • <scheme>://<username>:<password>@<hostname>:<port>/<path> POST <query>

Summary - Good to Great by Jim Collins

Aniket Ambekar  Summary by Aniket Ambekar Good to Great Book

Good is the enemy of Great’. This is how the author sets off a riveting journey explaining the findings from his and his team’s half a decade of research in the conquest of how to make good companies great. Essentially, ‘Good to Great’ happens very rarely and it is because it is damn difficult. In his research, Jim Collins (the author), has found out systematic phases through which any great company goes through and lays out a framework as shown below:

Good to Great Flywheel

The framework has got three main components: