Categories
Uncategorized

random interesting science articles

Wonder Material Mimics Desert Beetles and Cacti To Suck Water Out of Thin Air

Quantum researchers create an error correcting cat.

How earthquake resistant buildings work. – Cool article that talks about pyramid structures.

Categories
Resources Software Development

BASH shell scripting links and resources

Bash scripting manual 5.1

Advanced Bash scripting guide

Bash script cheat sheet

Bash Scripting: Everything you need to know about Bash-shell programming

Respond to prompt in Bash Script – a tutorial on how to respond to prompts in Bash scripts.

How To Write a Bash Script That Answers Interactive Prompts 

MySQL: Run Query from Bash Script or Linux Command Line

How to Use Variables in Shell Scripting

Bash scripts and Mysql – a good article about working with Mysql in bash scripts, how to load SQL etc.

If statement syntax example coverage

More coverage and examples of Bash if/else statement syntax and use

Bash read builtin command used to prompt the user for a response and store it for use in the script

How to prompt for input from user in a linux shell script


How to prompt and read user input in a Bash shell script – more examples and information. Different from the above link.

Categories
Resources Web Security

CORS cross origin resource sharing links and resources for developers

CORS Cross origin resource sharing allows you to decide if a script from a domain other than your website/app can access data aka make AJAX calls etc. to your server. For your frontend API you probably want to limit the origin to just your domain. For a developer API you probably want to allow all origins.

CORS for Developers by W3C – explains CORS for developers in clear wording

Configuring play framework 2.8 CORS filter

 

Categories
Resources Web Security

Server and cloud security resources and links

CSP Cheat Sheet – CSP content security policy is for setting server security policies for accessing your systems content/files etc.

Configuring Play Framework Content Security Policy Headers

Categories
Resources Web Development

Nginx links and resources

Nginx reverse proxy documentation

Configuring NGINX and NGINX Plus as a Web Server  

Nginx pitfalls and common mistakes –  a must read article before using Nginx

An old hacky way to add Environmental variables to linux. – probably better ways now.

Categories
medicine Resources

interesting genetic and medical links and resources

Genetic Associations between Voltage-Gated Calcium Channels and Psychiatric Disorders

Allergic tendencies are associated with larger gray matter volumes

Bad News for the Highly Intelligent 
Genetic glitch at the root of allergies revealed
The Importance of Spatial Reasoning in Early Childhood Mathematics – I find this interesting because of the above article about allergic tendencies mentions that those who suffer severe allergies have increased spatial reasoning which makes you better at mathematics. I have super severe allergies and math has always been a boring repetitive exercise. I have lots of Math books. I learn and understand math immediately. Algebra was boring, physics was just applied algebra same with Geometry. I only do math when I need to and often just review what I need to get the problem solved.

Theory on autism

Relationships between Depression and High Intellectual Potential

New study reveals why some people are more creative than others – I read about creativity because I am insanely creative, to the point I can’t stop daydreaming. When I am not doing something super complex that requires complex thinking I go into imagination land and the world around me disappears and I make huge messes as I solve problems like how does gravity work, or how to manipulate matter and create new atoms. I really want to learn about math, chemistry and physics, my brain is insanely creative. I have a severe form of ADHD and one of the highest IQ’s ever measured.

Categories
Resources Web Development

Bootstrap links and resources

Articles

Tree shaking with bootstrap and webpack

Learn the Bootstrap 4 Grid System in 10 Minutes

How to use bootstrap properly – great article about using bootstrap SASS imports properly.

Videos

Using the Bootstrap 4 Grid | BOOTSTRAP 4 TUTORIAL


Responsive Bootstrap Website Start To Finish with Bootstrap 4, HTML5 & CSS3


Bootstrap 4 Navbar Concepts | BOOTSTRAP 4 TUTORIAL


Bootstrap 4 Alerts & Modals | BOOTSTRAP 4 TUTORIAL

 

Categories
Resources Web Development

node.js package.json links and resources

Things Every Developer Should Know About package.json

Categories
Resources Software Development Web Development

CDN content delivery network links and resources

Articles
Using a CDN to Speed Up Static Content Delivery – very nice short article about how CND’s work in general
What is a CDN? | How do CDNs work? – Cloudflare documentation about CDN’s

Cloudflare free CDN

Videos

What is a Content Delivery Network (CDN)?


GOTO 2016 • What is a CDN and why Developers should Care about using one • Artur Bergman

Categories
Resources Web Development

How to install and update NVM node version manager on Ubuntu

New to node and need to install npm, node.js? Use NVM node version manager so you can install more than one version of nodejs.

I had to look for the answer to this until I found it. You update to a newer version of NVM node version manager the same way you install it regardless of how you install it.  I am not sure what happens if you install nvm with curl then try to update it in another way.

For example I used the following in my terminal as not the root user, just a plain user
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash

 

When I want to install the next version  I replace the v0.35.3 with the next version and it does all the work.  If you installed nvm as a root user then you will not be able to access it easily as any other user.

In fact, if you type nvm –version in the command line as a regular user after you installed it as a root user, you will be told it is not installed, or nvm is not a recognized command would you like to install.   I did this, so that is how I learned not to install it as a root user.

Never ever, ever, not ever use sudo when installing node, npm, nvm or anything like yarn it totally fucks every last thing up.

If you accidentally use sudo follow these instructions to fix the bowl of mashed spaghetti you end up with.

The node world feels as disorganized as Scala here is a link to the latest version

If you are using windows you can install nvm by following these instructions

More info and resources about nvm here.

More info and resources about node package manager