A set of principles to help keep large object-oriented codebases understandable, maintainable, extensible and testable. Created by Robert C Martin in 2000 paper Design Principles and Design Patterns. https://web.archive.org/web/20150906155800/http:/www.objectmentor.com/resources/articles/Principles_and_Patterns.pdf Single Responsibility Principle (SRP) A class should have one and only one responsibility. All its methods and data should support that responsibility. Makes classes more focused,… Continue reading SOLID Design Principles
Storing Git HTTPS Authentication Credentials Locally
Pretty simple but I always forget this: This will store your git password unencrypted on the hard drive. You will need to enter it once more for this to kick in. Alternatively you can store it in memory: By default this will timeout after 900 seconds but you can add the –timeout parameter to alter… Continue reading Storing Git HTTPS Authentication Credentials Locally
ping from a container without ping installed
Troubleshooting docker network issues can be a bit tricky, especially if your container is minimal (as it should be). If you don’t want to install ping then you can do the following: If you can’t connect with the hostname, remember to try with a FQDN or an IP to rule out DNS issues. Pretty fancy!
Graphics Drivers in Ubuntu 20.10
Ubuntu 20.10 has a nice new feature when it comes to managing graphics drivers. Use the following to see what drivers are available and which is recommended: Then if you are happy with the recommendation: It seems like a good idea to run this after every dist-upgrade.
Getting Ionic framework up and running on Ubuntu 14.04
Ionic is a framework for hybrid or progressive mobile app development. Throw in electron and you can get a desktop app too! Note that this will only deal with android app development, there are likely many more steps involved with iOS. We need the following software setup – NodeJS – ionic is build using node.… Continue reading Getting Ionic framework up and running on Ubuntu 14.04