Showing posts with label development. Show all posts
Showing posts with label development. Show all posts

Wednesday, March 29, 2017

Rails Study, Day 4: Still Working on the Dev Environment

So far I have spent time on the following:

  1. Vagrant
  2. Docker
  3. Digital Ocean Droplet
  4. Heroku
However, I'm going to take a step back and reconsider what I'm trying to accomplish.

What is my deliverable?

I want to build a Rails site, hosted on Heroku, that showcases my solutions to puzzles from Advent of Code.

How is my work supposed to flow?

Images, containers, Atom, etc.
  1. Development environment (DE) is separate from the host operating system. (Docker container or VM)
  2. Text editor (Atom) has read/write access to the code in the DE.
  3. The DE can be easily duplicated for a sandbox server.
  4. Code from the DE can be pushed to Github; from Github, the latest code cloned.
  5. Changes from the DE can be pushed to Docker Hub; from DH the latest version of the DE.
  6. Production code from the DE can be pushed to Heroku; from Heroku, the latest production code, although that should be available in Github.

What are the specifications of my development environment?


  1. Version control of all relevant packages.
  2. Read/Write access to development environment from host.
  3. Access to online platform (Github, 
  4. Available locally, without a constant internet connection.
  5. Totally accessible by Atom text editor on my host machine.
  6. Can upload code to Heroku, pull the latest code from Heroku, and push updated code to Heroku.
  7. Can push updates to the environment to a repository.

What shall be my development environment?

  1. Docker container for the DE, with all the necessary packages installed.
  2. Atom text editor installed on host.
  3. FTP access between DE and host.
  4. Github access from DE.
  5. Docker Hub access from DE.
  6. Heroku access from DE.

Saturday, October 29, 2016

The Source Code for for My Second Dash Project (Personal Blog)

<!DOCTYPE html>
<head>
  <link href="/normalize.css" rel="stylesheet">
  <style>
    header {
      text-align: center;
      background: url('https://i.ytimg.com/vi/M9RkUnmeW6I/maxresdefault.jpg');
      background-size: cover;
      color: white;
      font-family: ubuntu;
    }
    a {
      color: white;
    }
    h1 {
      font-size: 70px;
    }
    img {
      margin: 40px 0px 0px 0px;
      border: 7px solid white;
      border-radius: 20px;
    }
    ul {
      padding: 10px;
      background: rgba(0,0,0,0.5);
    }
    li {
      display: inline;
      padding: 0px 10px 0px 10px;
    }
    article {
      max-width: 500px;
      padding: 20px;
      margin: 0 auto;
    }
    @media (max-width: 500px) {
      h1 {
        font-size: 36px;
        padding: 5px;
      }
      li {
        padding: 5px;
        display: block;
      }
    }
  </style>
</head>
<body>
  <header>
    <img src="https://goo.gl/JEnUHP" width=20%>
    <h1>Alexander's Blog</h1>
    <h2>The long and short about me.<h2>
    <ul>
      <li><a href="https://missiondevops.blogspot.com.au/">Mission DevOps</a></li>
      <li><a href="http://alexandergarber.blogspot.com.au/search/label/missionmobility">Training</a></li>
      <li><a href="http://alexandergarber.blogspot.com.au/search/label/theodessia">The Odessia</a></li>
    </ul>
  </header>
  <div style="width: 100%; overflow: hidden;">
    <div style="width: 50%; float: left;">
    <article>
    <h2>Mission DevOps</h2>
    <p>My mission is to become a software developer, and ultimately a DevOps engineer. On this blog I will share with you my journey into this exciting and complex profession.</p>
    <button>Like</button>
  </article>
 </div>
    <div style="margin-left: 50%;">
       <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk9lmDzihezMpVjVM7dGc_GkuhRrEF6ix_BpDF15bTTXR1OTzHyC9mcx3VDlgtxI_wtbi6RcnZkxKu0am-gVr6JfMTcehWyRB_ZSNT3uWeN5Jg-YVFKLUR6GkP_0G0MG-A74RXa3sShktP/s1600/Screenshot+from+2016-10-26+13-53-52.png" width=50%></div>
</div>

  <div style="width: 100%; overflow: hidden;">
    <div style="width: 50%; float: left;">
    <article>
    <h2>Strength and Flexibility Training</h2>
    <p>Since the early 2000s I have been on a personal quest for an antidote to the sedentary nature of modern living.  I have learned much that I wish to share with the world.</p>
    <button>Like</button>
  </article>
 </div>
    <div style="margin-left: 50%;">
       <img src="https://lh3.googleusercontent.com/pBIqNtwwHBtkI2LLgXDWz6aLOdHy7Vb7VzgrJFPJBWCHg249Gc02FArZNUKDHWLw468KS7f_0Pcv3ENeojgP9N4D3Ho6JB-YIoUBQQcAfy8GG80WFXt_SGK8WJG_O57NvB5O2ZA4GiUrw4gttYfbVqfF_QVnzp-REYoZ-23iH1KnLP2iVe5vUUJM-22APxl-Uf-kZVghdonwlb5_i8-3fzmDbMLSF96fd21OtshYWR-8nvon6H6tuwP2NV_zqbhx1nUiYw3Wm5ZYlu2cgpDcIAFJ4YoMdCfWeJZ6e11B-yn3uhUZYyY--xUE6sz2i3bBXZI0G-GlhhR-VLgIM_4ZYMUpJQ0lpAQx_qYMpLeBOAYAh09Psm-CDTJFlRaHblo81-HN9mBdw73dxR0V3TN32HtuH3vLdkx13awaNQEdV-KIjcdg6cO1SIIL54ouSnfrDMJUvRZJtQF8D_u9QpHB7FGaGWm-UKBiodgCDWSK2Knhtl72x5HVhn6ABD0DAjWFFUYttfvN4_RPR2Ton_qz4KPU2jc_U4OSwDj-MsGOy8MC9Tt5YcNo_hevx45nDDMtSzDRr4dOcQektxIeeN-1JFqgU0G07dBne9izWwRZa0QH9s--=w506-h491-no" width=50%></div>
</div>

  <div style="width: 100%; overflow: hidden;">
    <div style="width: 50%; float: left;">
    <article>
    <h2>The Odessia</h2>
    <p>The Odessia is a fantasy novel that explores philosophy, free market economics, love, life, and the universe through the adventures of its heroine, Odessa, and her travelling companion, Trousers the cat.
</p>
    <button>Like</button>
  </article>
 </div>
    <div style="margin-left: 50%;">
       <img src="http://theodessia.weebly.com/uploads/4/1/5/9/4159515/916806.png?432" width=50%></div>
</div>
  </script>
</body>

Thursday, October 27, 2016

Atom Text Editor: My New IDE?


When I first learned Python I spent a lot of time in interactive mode:


And when I finally started using Gedit, the syntax highlighting and bracket completion felt luxurious.


But the time has come for a proper IDE.  I can't justify shelling out $200 for RubyMine just yet, but Atom 1.11.2 looks very promising.

Of course, I could learn to use Emacs or Vim, but that's probably a bit too far for me at this stage.  I'd like to get there one day though.

1,050 hours

It took me 13 working days to complete my first 100 "work" pomodoros as a Junior Software Tester at Profectus Group.  Much of ...