• Isolation is a population of 1.
  • Adopt a day 1/week 1 mind.
  • Suffering is Beautiful.
  • Repetition is your salvation.
  • Mental toughness begets Physical toughness.
  • Click a motion picture and a Singularity appears.
  • 33% Incremental + 33% Compartmentalization + 33% Forward Motion + 1% Spark = 100% Goal

 

get back on the horse (that bucked you)

To return to or resume an activity that one has previously failed at, had difficulty with, or which has previously caused one harm.
I know you’re discouraged after getting fired, but you need to get back on the horse that bucked you and start looking for work.
I’ve been single for three years since my divorce, but now I think it’s time to get back on the horse and start dating again.

 

get back on the horse. (n.d.) Farlex Dictionary of Idioms. (2015). Retrieved May 25 2019 from https://idioms.thefreedictionary.com/get+back+on+the+horse

Use this for Gunicorn.service code:

Notice the separation of the access log. Rather than override the previous log, we create a totally separate one. This will produce a different result and reflect the production website and not the development one.

Reboot all servers after changes (nginx, gunicorn) when in doubt.

Space Flight Dynamics is the science of space vehicle orientation and control in three dimensions.

Ragnar Anchorage is a Colonial munitions depot suspended in the upper atmosphere of the gas giant Ragnar. The Colonial Fleet learned that the atmosphere of the planet Ragnar emitted a kind of radiation that adversely affected Cylon technology and cloaked ships residing within the storm. When the Cylons launch their attack on the Twelve Colonies, the Battlestar Galactica was without any munitions for her main and point-defence batteries, having dumped them as part of her decommissioning ceremonies prior to the battle. Colonel Saul Tigh determined that Ragnar Anchorage offers the best opportunity for re-arming the ship, based on its listing in an old directory of military supply depots.

 

(Galactica)

Tigh: Five seconds to turn three.

Gaeta: Five seconds, sir.

Tigh: And turn.

Gaeta: Bow pitched positive one-half. Stern pitched negative one-quarter. Bow yaw negative three-quarters.

 

References:

  • https://scifiinterfaces.com/category/battlestar-galactica-the-mini-series-2003/page/2/
  • https://en.wikipedia.org/wiki/Flight_dynamics_(fixed-wing_aircraft)

“We are now faced with the fact, my friends, that tomorrow is today. We are confronted with the fierce urgency of now. In this unfolding conundrum of life and history, there is such a thing as being too late. Procrastination is still the thief of time. Life often leaves us standing bare, naked, and dejected with a lost opportunity. The tide in the affairs of men does not remain at flood—it ebbs. We may cry out desperately for time to pause in her passage, but time is adamant to every plea and rushes on.”

-Martin Luther King Jr

Excerpt from the speech:
“Beyond Vietnam”
4 April 1967
New York, N.Y.

I hardly been able to post as much as I wanted; however, I do want to give myself a round of applause. albertfougy.com made it past 1 year. In the past, I would launch a personal blog, just to tear it down a month or 2 later. Successes => I deleted almost all my social media presence(LinkedIn is my last hold out), I was invited into a mobile application project, and I am trending towards a more “doing not showing” presentation. Furthermore, I am switching to a flip-phone, using more analog (real books, desk calendars), and eliminating unnecessary distractions. I hope to dedicate more time to it. It comes in spurts. Onward towards 2019!

Mantra for 2019….

Computer Programming , Low Information Diet, Unexpected Album Drop, Will to Fight.

C.L.U.W.


A strongly-typed programming language is one in which each type of data (such as integer, character, hexadecimal, packed decimal, and so forth) is predefined as part of the programming language and all constants or variables defined for a given program must be described with one of the data types. Certain operations may be allowable only with certain data types. The language compiler enforces the data typing and use compliance. An advantage of strong data typing is that it imposes a rigorous set of rules on a programmer and thus guarantees a certain consistency of results. A disadvantage is that it prevents the programmer from inventing a data type not anticipated by the developers of the programming language and it limits how “creative” one can be in using a given data type.

 

This word suggested by: Reg Harbeck.
Last updated on: Dec 03, 1999

Following the Python TDD study track, I came across an older reference(but still relevant) explanation of what a context manager is. I will do a full write up when I have a chance.

Python 2.5 : The ‘with’ statement

https://docs.python.org/release/2.5/whatsnew/pep-343.html

== Have to spend a whole day to rewrite this explanation ==

Writing Context Managers

Under the hood, the ‘with‘ statement is fairly complicated. Most people will only use ‘with‘ in company with existing objects and don’t need to know these details, so you can skip the rest of this section if you like. Authors of new objects will need to understand the details of the underlying implementation and should keep reading.

A high-level explanation of the context management protocol is:

  • The expression is evaluated and should result in an object called a context manager”. The context manager must have __enter__() and __exit__() methods.
  • The context manager’s __enter__() method is called. The value returned is assigned to VAR. If no 'as VAR' clause is present, the value is simply discarded.
  • The code in BLOCK is executed.
  • If BLOCK raises an exception, the __exit__(typevaluetraceback) is called with the exception details, the same values returned by sys.exc_info(). The method’s return value controls whether the exception is re-raised: any false value re-raises the exception, and True will result in suppressing it. You’ll only rarely want to suppress the exception, because if you do the author of the code containing the ‘with‘ statement will never realize anything went wrong.
  • If BLOCK didn’t raise an exception, the __exit__() method is still called, but typevalue, and traceback are all None.

Let’s think through an example. I won’t present detailed code but will only sketch the methods necessary for a database that supports transactions.

(For people unfamiliar with database terminology: a set of changes to the database are grouped into a transaction. Transactions can be either committed, meaning that all the changes are written into the database, or rolled back, meaning that the changes are all discarded and the database is unchanged. See any database textbook for more information.)

Let’s assume there’s an object representing a database connection. Our goal will be to let the user write code like this:

The transaction should be committed if the code in the block runs flawlessly or rolled back if there’s an exception. Here’s the basic interface for DatabaseConnection that I’ll assume:

The __enter__() method is pretty easy, having only to start a new transaction. For this application the resulting cursor object would be a useful result, so the method will return it. The user can then add as cursor to their ‘with‘ statement to bind the cursor to a variable name.

The __exit__() method is the most complicated because it’s where most of the work has to be done. The method has to check if an exception occurred. If there was no exception, the transaction is committed. The transaction is rolled back if there was an exception.

In the code below, execution will just fall off the end of the function, returning the default value of NoneNone is false, so the exception will be re-raised automatically. If you wished, you could be more explicit and add a return statement at the marked location.