9th Week of 2021
DevOps⚑
Infrastructure as Code⚑
Helm Git⚑
-
Correction: Suggest version 0.8.0 until issue is solved.
Newer versions have a bug that makes impossible to use helm_git with a repository that contains just one chart in the root of the git repository.
Monitoring⚑
Prometheus Install⚑
-
Correction: Add warning that helm 2 support is dropped.
If you want to use the helm chart above 11.1.7 you need to use helm 3.
Scrum⚑
-
New: Introduce the scrum framework.
Scrum is an agile framework for developing, delivering, and sustaining complex products, with an initial emphasis on software development, although it has been used in other fields such as personal task management. It is designed for teams of ten or fewer members, who break their work into goals that can be completed within time-boxed iterations, called sprints, no longer than one month and most commonly two weeks. The Scrum Team track progress in 15-minute time-boxed daily meetings, called daily scrums. At the end of the sprint, the team holds sprint review, to demonstrate the work done, a sprint retrospective to improve continuously, and a sprint planning to prepare next sprint's tasks.
In the article I explain:
- I use to do the meetings: Daily, Refinement, Retros, Reviews and Plannings.
- The relevant roles.
- Some definitions, such as definition of done and definition of ready.
Coding⚑
Python⚑
Code Styling⚑
-
Improvement: Don't use try-except to initialize dictionaries.
Instead of:
try: dictionary['key'] except KeyError: dictionary['key'] = {}
Use:
dictionary.setdefault('key', {})
Python Snippets⚑
-
New: Add date management snippets.
-
Get the week number of a datetime:
datetime.datetime(2010, 6, 16).isocalendar()[1]
.
import datetime d = "2013-W26" r = datetime.datetime.strptime(d + '-1', "%Y-W%W-%w")
* Get ordinal from numberimport calendar >> calendar.month_name[3] 'March'
def int_to_ordinal(number: int) -> str: '''Convert an integer into its ordinal representation. make_ordinal(0) => '0th' make_ordinal(3) => '3rd' make_ordinal(122) => '122nd' make_ordinal(213) => '213th' Args: number: Number to convert Returns: ordinal representation of the number ''' suffix = ['th', 'st', 'nd', 'rd', 'th'][min(number % 10, 4)] if 11 <= (number % 100) <= 13: suffix = 'th' return f"{number}{suffix}"
-
Pydantic⚑
-
Correction: How to solve the No name 'BaseModel' in module 'pydantic'.
It's still a patch, so I've also monitored the relevant issues
Health⚑
Sleep⚑
-
Humans cycle through two types of sleep in a regular pattern throughout the night with a period of 90 minutes. They were called non-rapid eye movement (NREM) and rapid eye movement (REM).
I answer the questions:
- What is the period of the REM/NREM cycle?
- What happens to your body in REM and NREM phases?
- How does the ratio of REM/NREM changes throughout the night? with a possible explanation.
- Why sleeping 6 hours can make you loose up to 90% of your REM or NREM phases?
-
New: Explain sleeping time and sense distortions.
Answer the questions:
- Why time feels longer in our dreams?
- How do we loose awareness of the outside world when sleeping?
Activism⚑
-
New: Define Diversity, Equity and Inclusion.
-
Diversity is the representation and acknowledgement of the multitudes of identities, experiences, and ways of moving through the world. This includes—but is not limited to—ability, age, citizenship status, criminal record and/or incarceration, educational attainment, ethnicity, gender, geographical location, language, nationality, political affiliation, religion, race, sexuality, socioeconomic status, and veteran status. Further, we recognize that each individual's experience is informed by intersections across multiple identities.
-
Equity seeks to ensure respect and equal opportunity for all, using all resources and tools to elevate the voices of under-represented and/or disadvantaged groups.
-
Inclusion is fostering an environment in which people of all identities are welcome, valued, and supported. An inclusive organization solicits, listens to, learns from, and acts on the contributions of all its stakeholders.
-
Operative Systems⚑
Linux⚑
Vim Plugins⚑
mkdocs⚑
-
New: Document the Navigation object and the on_nav event.
Useful if you develop MkDocs plugins, it holds the information to build the navigation of the site.
-
New: Describe navigation objects used in plugins.
Explain how to use the Page, Section, and SectionPage objects.
-
Correction: You need to edit the nav in the on_nav and not in the on_files event.
Even though it seems more easy to create the nav structure in the
on_files
event, by editing thenav
dictionary of theconfig
object, there is no way of returning theconfig
object in that event, so we're forced to do it in this event.
Arts⚑
Writing⚑
Grammar and Orthography⚑
- Improvement: Expand the introduction and add Dave's suggested link.
-
New: Explain where to add your pronouns.
Hi, I’m Lyz (he/him), I'm writing to tell you…
-
New: Explain when to capitalize after a question mark.
If the sentence ends after the question mark you should capitalize, if it doesn't end, you shouldn't have used the question mark, since it ends a sentence.
Writing Style⚑
-
New: Analyze interesting books on writing style.
- The elements of style by William Strunk Jr and E.B White
- On writing well by William Zinsser
- Bird by bird by Anne Lamott
- On writing by Stephen King
-
New: Explain how to end a letter.
Use Sincerely in doubt and Best if you have more confidence. Add a comma after the sign-off and never use Cheers (it's what I've been doing all my life
(◞‸◟;)
).