Posted on

Duck typing in python

When I see a bird that walks like a duck and swims like a duck and quacks like a duck I called that bird a duck

J. W. Riley

The Python code language is dynamically typed. In many languages (C++, Java) you do need to explicitly declare the types of variables. Python uses duck typing for all operations (function calls, method calls, and operators). You can treat an object as a duck. It raises a TypeError at runtime if an operation cannot be applied to an object because it is of an inappropriate type.

Posted on

kerfuffle

ker·fuf·fle

/kərˈfəfəl/

noun

INFORMAL•BRITISH

  1. a commotion or fuss, especially one caused by conflicting views. For example, “there was a kerfuffle over the chairmanship”.
  2. a disturbance or commotion typically caused by a dispute or conflict. “In all the kerfuffle, nobody seemed to have noticed Harry, which suited him perfectly”.
  3. Example: “Given Noah’s social media kerfuffle with Kanye West, viewers should also be attuned to any biting commentary.” — Melissa Ruggieri, USA TODAY, 30 Mar. 2022

Synonyms

disturbance, hoo-ha, to-do, commotion, flutter, hurly-burly, disruption, hoo-hah and brouhaha.

Origin

The root of “kerfuffle” is the very old Scots verb “fuffle,” which first appeared in print in the early 16th century and means “to throw into disorder.” The Oxford English Dictionary suggests that the “ker” part of “kerfuffle” may hare come from the Gaelic word “car,” meaning “to twist, bend or turn around.” In the case of “kerfuffle,” that would serve as a sort of intensive element, giving us the sense of “a twisted up, confused ruckus or dispute.” Sounds like every “kerfuffle” I’ve ever seen.

My Little Pony Kerfuffle

Kerfuffle - My Little Pony
Kerfuffle

Sources: google, http://www.word-detective.com/2009/04/kerfuffle/, https://www.merriam-webster.com/dictionary/kerfuffle#examples

Posted on

3 Sins of Heracles (Hercules)

Heracles was the greatest of the Greek heroes, the ancestor of royal clans who claimed to be Heracleidae (Ἡρακλεῖδαι), and a champion of the Olympian order against chthonic monsters. In Rome and the modernWest, he is known as Hercules, with whom the later Roman emperors, in particular Commodus and Maximian, often identified themselves. – Wikipedia

The Three Sins of Heracles

Excerpt from Georges Dumézil

Heracles is the Greek reflex of a far more ancient Indo-European mythic figure, arques Dumézil-a warrior figure who commits three sins, violating each stratum of tripartite Indo-European society. Dumézil here follows the account of Heracles’ three sins preserved in the work of Diodorus Siculus, a Greek historian of the first century B.. Heracles’ twelve-year servitude to Eurystheus was only the first of three “penalties” the hero would suffer, each the consequence of his sin, each bound up with mental or physical ailment. Coqnate heroic figures among other Indo-European peoples to whom Dumézil makes reference in this selection are Indra, warrior deity par excellence of India, and Starcatherus, the Danish avatar of a well-known Scandinavian hero (Old Norse Starkar), whose tale is preserved in the Gesta Danorum of the twelfth/thirteenth-century cleric Saxo Gram-
maticus. (RDW)

Download/Read the full passage in pdf by Georges Dumézil below.

Read more

Continue reading 3 Sins of Heracles (Hercules)
Posted on

Trilogies as Persuasion | 1 min watch

Little Lawyer Lesson #1: Use Trilogies #shorts. Robert Gouveia Esq.

Trilogies can be very powerful tools of persuasion.
Terence McCarthy, author of MacCarthy on
Cross-Examination, explains just how important
trilogies are in trials.

Little Lawyer Lesson #1: Use Trilogies

Robert Gouveia (formerly Robert Gruler) is a
criminal defense lawyer in Scottsdale, Arizona,
and host of Watching the Watchers, a show
focused on Accountability, Transparency and
Justice.

Source: https://youtube.com/shorts/2Pg82ju0J3c?feature=share

Posted on

No ifs, ands, or buts

The phrase no ifs, ands, or buts is a list of words that are often used to begin a sentence that is an explanation or excuse for bad behavior or for not fulfilling an obligation. Most often, no ifs, ands or buts is one of those phrases that is expressed in informal, spoken English.

If someone says they don’t want to hear no ifs, ands, or buts then that means they don’t want to hear any excuses. Example: Jimmy has been relaxing all morning, so his mother said to him, “It’s time for you to do some house chores.

This expression uses the conjunctions to stand for the conditions and objections that they introduce. The earliest phrase to appear was ifs and ands in the 1600s. This phrase is actually an emphatic redundancy, for and often meant “if.” But was tacked on to this pair soon afterward.

President Biden speaking on Covid relief.
Covid relief | President Biden 2021
Partial sources: Dictionary.com, Google.com, Cartoon credit: Mark Anderson
Posted on

Security & Exchange Commission

March 6, 2022.

Gary Gensler (SEC Chairman) interview on Jon Stewart speaking about the three pillars of the SEC mission.

  • Investor protection
  • Facilitating capital formation
  • Facilitating fair orderly markets
Jon Stewart interviewing Gary Gensler (SEC)

Gary Gensler is an American government official and former investment banker serving as the chair of the U.S. Securities and Exchange Commission. Gensler previously led the Biden–Harris transition’s Federal Reserve, Banking, and Securities Regulators agency review team.

Jon Stewart is an American comedian, writer, producer, director, political commentator, actor, and television host. He hosted The Daily Show, a satirical news program on Comedy Central, from 1999 to 2015. Stewart now hosts The Problem with Jon Stewart, which premiered September 2021 on Apple TV+. Wikipedia

Posted on

Operation Petticoat

Story

Lieutenant Commander Matt Sherman (Cary Grant) is in charge of the submarine “Sea Tiger,” which was badly damaged at a Philippine shipyard by a Japanese air raid. Seeking to make sail before an oncoming invasion, Sherman enlists the help of newly transferred Lieutenant Nick Holden (Tony Curtis) to use his talents as a con artist to procure the needed supplies. Once they’re underway, Sherman evacuates a group of beautiful nurses, but can’t find anyone who will take them off his hands.

Staring

Initial release: December 3, 1959

Director: Blake Edwards

Starring: Cary Grant; Tony Curtis; Joan O’Brien; Dina Merrill; Gene Evans; Dick Sargent; Arthur O’Connell

Based on: a story suggested by; Paul King; Joseph B. Stone

Music by: David Rose; Henry Mancini (uncredited)

Video clip

Scene: “You see, when a girl’s under 21 she’s protected by law, when she’s over 65 she’s protected by nature. Anywhere in between she’s fair game”.
Posted on

Know it All

Definition of know-it-all

Know-it-all: one who claims to know everything Also: one who disdains advice

Synonyms

Smart aleck, wise guy, wiseacre, wisenheimer, smarty pants.

Anchorman movie
Anchorman movie

Examples of ‘know-it-all’ in a sentence

  1. His reputation as an autocratic know-it-all goes before him.
  2. Do not force your opinions on others and definitely do not come across as a know-it-all.
  3. Dad was never a know-it-all, he just wanted me to improve my game.
Posted on Leave a comment

The Three Dimensions of a Complete Life

Martin Luther King Jr.

Martin Luther Knig Jr.
Martin Luther King Jr

Rev. Martin Luther King Jr.

Speech Text:

I want to use as the subject from which to preach: “The Three Dimensions of a Complete Life.” (All right) You know, they used to tell us in Hollywood that in order for a movie to be complete, it had to be three-dimensional. Well, this morning I want to seek to get over to each of us that if life itself is to be complete, (Yes) it must be three-dimensional. . .

Three Sound Clips from the speech:

  •       Master the Length of Life
  •       We are Dependent on One Another
  •       The Power Of God

Audio of Complete Speech

      Three Dimensions of a Compete Life

Speech Text:

I want to use as the subject from which to preach: “The Three Dimensions of a Complete Life.” (All right) You know, they used to tell us in Hollywood that in order for a movie to be complete, it had to be three-dimensional. Well, this morning I want to seek to get over to each of us that if life itself is to be complete, (Yes) it must be three-dimensional.

Continue reading The Three Dimensions of a Complete Life

Posted on

Three types of hypotheses

* Simple hypothesis

* Complex hypothesis

* Null hypothesis

What is a hypothesis

A hypothesis states your predictions about what your research will find. It is a tentative answer to your research question that has not yet been tested. For some research projects, you might have to write several hypotheses that address different aspects of your research question.

A hypothesis is not just a guess — it should be based on existing theories and knowledge. It also has to be testable, which means you can support or refute it through scientific research methods (such as experiments, observations and statistical analysis of data).

Variables in hypotheses

Hypotheses propose a relationship between two or more variables. An independent variable is something the researcher changes or controls. A dependent variable is something the researcher observes and measures.

Daily apple consumption leads to fewer doctor’s visits.

In this example, the independent variable is apple consumption — the assumed cause. The dependent variable is the frequency of doctor’s visits — the assumed effect.

Three steps to hypothesis testing

  • State the null hypothesis and alternative hypothesis
  • Decide on test static and critical value
  • Compute p-value. If P-value is less than the critical value reject the null hypothesis and accept the alternative hypothesis

Simple hypothesis

Simple hypotheses are ones which give probabilities to potential observations. The contrast here is with complex hypotheses, also known as models, which are sets of simple hypotheses such that knowing that some member of the set is true (but not which) is insufficient to specify probabilities of data points.

Normal curve​
Simple hypothesis – Bell Curve

Complex hypothesis

Complex hypothesis is that one in which there are multiple dependent as well as independent variables. Example: Global warming causes icebergs to melt which in turn causes major changes in weather patterns.

Complex hypothesis
Complex hypothesis

Null hypothesis

A null hypothesis is a hypothesis that says there is no statistical significance between the two variables in the hypothesis. … For example, a null hypothesis would be something like this: There is no statistically significant relationship between the type of water I feed the flowers and growth of the flowers.

null hypothesis
Null hypothesis

Create a Null Hypothesis

Depending on your study, you may need to perform some statistical analysis on the data you collect. When forming your hypothesis statement using the scientific method, it’s important to know the difference between a null hypothesis vs. the alternative hypothesis, and how to create a null hypothesis. 

  • A null hypothesis, often denoted as H0, posits that there is no apparent difference or that there is no evidence to support a difference. Using the motivation example above, the null hypothesis would be that sleep hours have no effect on motivation.
  • An alternative hypothesis, often denoted as H1, states that there is a statistically significant difference, or there is evidence to support such a difference. Going back to the same carrot example, the alternative hypothesis is that a person getting six hours of sleep has less motivation than someone getting eight hours of sleep.
Posted on Leave a comment

Three types of paradoxes

The Ways of Paradox and Other Essays

by W.V. Quine

There are essentially three categories of paradoxes

  • Falsidical – Logic based on a falsehood
  • Veridical – Truthful
  • Antinomy – A contradiction, real or apparent, between two principles or conclusions, both of which seem equally justified

Willard Van Orman Quine (AKA W. V. O. Quine, or “Van”to his friends) (1908 – 2000) was an American philosopher and mathematical logician, widely considered one of the most important philosophers of the second half of the 20th Century.

Posted on

Three types of Breathing

Change Your Breath, Change Your Life | Lucas Rockwood | TEDxBarcelona
Change Your Breath, Change Your Life | Lucas Rockwood | TEDxBarcelona

We do it as long as we live but mostly aren’t aware
of it: breathing. In his talk Lucas breaks down the
fundamentals of yoga breathing in a way that you
can easily remember and apply to your practice.
Lucas shows us how three breathing practices
water, whiskey, or coffee – can be used as a tool and help us to overcome any situation.

With a formal yoga training background in Hot
Yoga, Ashtanga Yoga, Gravity Yoga, and the Yoga
Trapeze®, Lucas has studied with some of the
most well-respected teachers on the planet. His
most influential teachers (all of whom he studied
with personally) include Sri K. Pattabhi Jois, Paul
Dallaghan, Alex Medin, Gabriel Cousens MD, and
SN Goenka.

Lucas founded Absolute Yoga Academy in 2006,
one of the top 10 yoga teacher training schools in
the world with 2,000 certified teachers (and
counting) and courses in Thailand, Holland, the
United Kingdom, and the Philippines.

In 2013, Lucas founded YOGABODY Fitness, a
revolutionary new yoga studio business model
that pays teachers a living wage and demystifies
yoga by making the mind-body healing benefits of
the practice accessible to everyone.

In search of nutritional products designed
specifically for achy yoga students’ bodies, Lucas
worked with senior nutritional formulator Paul
Gaylon and founded YOGABODY Naturals in the
back of his yoga studio a year later. The company
has gone from strength to strength and is now a
world-renowned nutrition, education, and
publishing organization serving 81 countries.

A foodie at heart, Lucas was a vegan chef and
owned and operated health food restaurants prior
to diving deep into the yoga world. He is also a
highly acclaimed writer, radio show host, TV
personality, business consultant, weight loss
expert, and health coach. This talk was given at a
TEDx event using the TED conference format but
independently organized by a local community.

Change Your Breath, Change Your Life | Lucas
Rockwood | TEDxBarcelona

Learn more at https://www.ted.com/tedx