Categories
Resources Software Development

Devops resources and links

Devops is the process of going from code to deployment operations.

When to use AWS OpsWorks vs. CloudFormation or Elastic Beanstalk

 

Categories
Resources Web Development

Server Environmental variables resources and info

About environmental variables – an introduction to environmental variables and how they work on the server.

Categories
Resources Software Development

Phpmyadmin links and resources.

I wanted to use Phpmyadmin without the Apache install running. I couldn’t figure it out, but someone else did.

Here is a link to how to use phpmyadmin without apache

Categories
Resources Web Development

Single page apps suck links and resources

Single page apps built with Javascript are the super hyped rage these days. This design goes against all of the hard learned lessons of the past 30 years.

The main reason SPA’s suck is networks are unreliable and SPA require large amounts of Javascript to be transferred to a users device. Most devices are mobile these days. If a users has a slow connection the app will take for ever to load or timeout and not load at all.

Another reason SPA’s suck is they assume all users are using the latest greatest highest powered device. This leaves out more than half the planet and is a very arrogant approach basically saying you are not important to us because you are poor and have a crappy device and slow connection go elsewhere you peasant.

I’ll post links here as I get time. The first one is an excellent piece covering much of why SPA’s are not a good choice.

Why you should not build your start-up as Single-Page Application?

Categories
Software Development Web Development

PHP tools for CI CD testing etc.

7 Continuous Integration Tools for PHP Laravel Developers

Categories
Resources Software Development

CI/CD resources and information.

I was going to use Gitlab for my CI/CD but they did something that made the site so slow the browser times out instead of loading the page and pushing to git doesn’t work most times. RIP gitlab. This is my resource list of information and alternatives.

CI/CD article

Understanding the CI/CD Pipeline: What It Is, Why It Matters 

Set Up a CI/CD Pipeline on AWS 

Continuous integration vs. continuous delivery vs. continuous deployment

Categories
Resources Software Development

Database design info resources and links

This page is all about databases, their design, how they work, how they replicate etc.

Living without atomic clocks – article about the subject and cockroachdb

Exploiting a Natural Network Effect for Scalable,
Fine-grained Clock Synchronization – pdf link

Amazon time sync service – atomic clock ntp time syncing for AWS based systems.

STORING UTC IS NOT A SILVER BULLET – article about storing timestamps

Keeping Time With Amazon Time Sync Service

Setting the time for your Linux instance – amazon cloud

Storing Date/Times in Databases 

Categories
Web Development Web Security

How to permanently set Linux environmental variablees

Every time I need to set Linux Environment variables and I use google to find out how, I always end up with those VALUELESS posts that tell you to use a terminal with export blah blah blah. Then when I close the terminal and try to use a variable it doesn’t exist and I am like WTF. Well those posts are how to set a temporary environmental variable.

This post covers what I always google and get the failed results for. This post is how to permanently forever set environmental variables.  This is often needed for development to store sensitive api key secrets, passwords etc. You should never put any of that information in a file for your project.

The idea is to create environmental variables to hold this info on your local machine, then when you put your code into production you add the necessary environmental variables to whatever controls them for your app. You can use kubernetes secrets or Hashicorp vault or if you are using something like Gitlab or Openshift continuous integration/delivery pipeline workflow will have a way to enter these values securely.

But here is how you set your local linux environment variables permanently. There are many ways to set these variables, here is a great article covering the topic.

But none of that above is useful to use, nope not for what we want to do. I just got a cool idea, rant/WOULDN’T IT BE COOL IF YOU COULD SET ENVIRONMENTAL VARIABLES IN MORE WAYS WITH LINUX. I mean where is the fun in only having 1 maybe 2 good ways of doing something, lets add more and more and more./rant

Ok so all of that sucks, how can we truly set environmental variables for our Development environment in a way that is easy and safe? Magic that is how.   Actually what you do is create a file with all of the secrets your app needs for development testing as environmental variables. I had to search hard and long to figure this out.

You create a file with any name you want with extension .sh like example-app.sh As described in the link above Linux will read all of the files in that directory and create the environmental variables. Hours of digging to figure that simple trick out FFS.

This is basically what I have in a simple text file

You simply add a new line for each variable you want to have created for your app.

Categories
medicine Resources

Articles resources and information about intelligence

Research study explains why highly intelligent people prefer to be alone

What is the purpose of Theta brain waves – people with ADHD have increase Theta wave production. But what are theta waves?

Categories
Resources Web Development

Serverless computing resources

Economics of serverless – a great article if you are interested in going serverless.