The Twelve Factors

1. Codebase

One codebase tracked in revision control, many deploys

2. Dependencies

Explicitly declare and isolate dependencies

3. Config

Store config in the environment

4. Backing services

Treat backing services as attached resources

5. Build, release, run

Strictly separate build and run stages

6. Processes

Execute the app as one or more stateless processes

7. Port binding

Export services via port binding

8. Concurrency

Scale out via the process model

9. Disposability

Maximize robustness with fast startup and graceful shutdown

10. Dev/prod parity

Keep development, staging, and production as similar as possible

11. Logs

Treat logs as event streams

12. Admin processes

Run admin/management tasks as one-off processes

 

courtesy of https://12factor.net/

copy and pasted from a slack chat. Special shoutout to Anthony L. for the tip!

here’s a time saver i just drummed up that’s worthy of sharing. it will be of interest to you:

in your ~/.ssh/config put:

look mom, no hands! now, any time you log into an EC2 node, there’s a convenient reverse tunnel to your dev box and all you have to do is ssh ec2-node-fqdn from your workstation,

Once on the node, you can do the following:

boom! you can edit files on your workstation and then, rather than push them to master/dev, just pull the changeset on the dev ec2 node naturally with a git pull and you’re up-to-date and ready to test on!

 

In Mac OS X Terminal I used  CTRL+R to enter a reverse history search.
However, if the command I want was not found (after repeated CTRL-R), then there must be a way to immediately exit back to the (empty) command prompt. Especially, with no historical command entered. Better yet, I haven’t executed anything on the command line?

The way to cancel your prompt after (reverse-i-search)`': is:
Ctrl+G this will abort the search

To make vim display line numbers, you need to set the number flag. To do so:

  1. Press the Esc key if you are currently in insert or append mode.
  2. Press : (the colon). The cursor should reappear at the lower left corner of the screen next to a : prompt.
  3. Enter the following command:
  4. A column of sequential line numbers will then appear at the left side of the screen. Each line number references the text located directly to the right.

To turn off line numbering, again follow the preceding instructions, except this time enter the following line at the: prompt:

Normally, vi will forget the setting you’ve chosen once you’ve left the editor. You can, however, make either setting take effect automatically whenever you use vi on a particular account. To do this, place the appropriate set statement as a line in a file in your home directory named .exrc .

For a list of all current settings, at the : prompt, enter:

For a list of everything that you have set, at the : prompt, enter:

Current Read =>

The existential threat of Artificial Intelligence is real. I am in the process of collecting data for my first science fiction short story. I am reading a plethora of material to gather inspiration. I am only on page 20, but the case that is presented is pretty substantial if not pedantic. I am still in my no-ship;however,  I thought that this section of my web journal was empty. I believe it is best I kick it off with this book. I will see you all hopefully by May.

 

About the author: 

Nick Bostrom is Professor at Oxford University, where he is the founding Director of the Future of Humanity Institute, a multidisciplinary research center which enables a set of exceptional mathematicians, philosophers, and scientists to think about global priorities and big questions for humanity. He also directs the Strategic Artificial Intelligence Research Center.

The embedded link is not an affiliate. I will generate an income of $0.00 if you click on it.

It’s ugly for sure. First method has too many lines. I over commented the last 2 blocks. Hacked the last 2 method blocks and integrated with

method. The comments alone is too much.Useless ‘pp’ gem. If you are a Rubyist you already know what is going on. Ugly Ugly. Poor practices all over the place, but guess what? It works. This is what a newbie’s code looks like. Make no mistake, this is the first of many snippets of code you will see. I will explain what is going on in full detail. It may take me a couple of days to give you a nuanced explanation. This post will be an evolving process. I will refactor more as time goes on. I must admit it is a strange euphoria.. I feel like Dr.David Bowman in the shuttle traveling inside the monolith (seeing colors) engulfed by the Stargate . I wish there was not an Opioid crisis. Why take Oxycontin when you can get high coding?

Me after getting it to work!


Time to celebrate is already over in a nanosecond. I am planning to burn the midnight oil and get on with my Odin Project track.

Good Night!

I decided 3 days into my 2nd renaissance to go full-time into The Odin Project. It is a self study curriculum on the path to web development. I have gotten feedback on fellow codebuddies members and they agree that if I put in many hours a day, I would accomplish many feats. I will keep you posted. So far so good. It will be a chance to prove myself right! I got the grit and determination to be a programmer!

 

 

A 2nd renaissance.





December 17th, 2017.

Today, I am a postHuman of nuclei and atom. A rebirth of astronomical importance. An upright bipedal male carbon based lifeform . I exist to find astral planes of new possibilities.  It is a moment to reject everything that has come before and embrace what is to be.

  1. My full name is unabashedly explicit.
  2. Geek. Yes.
  3. A single man: possibly forever.
  4. Health: -番.
  5. Programming: discrete intellectualism exemplified.
  6. Traveling: to explore unabated.
  7. Social Media Interaction: Nil.
  8. Reading: Fundamental.
  9. Writing: an extension of my imagination to be shared.
  10. Financial Responsibility: Discipline with military precision.

I am not the person I was last year.

 

I am not the person I was last month.

 

I am not the person I was 8600 seconds ago.

 

To have a fulfilling life. To start anew.

 

Prescient. Phuturist.. Plausible.

 

I.. Am.. Albert Fougy.