Category Archives: Programming

Command line convention – space or no space

By | August 14, 2021

Something I learnt today is that when you are passing flags into a command line application, both these syntaxes are equivalent. What is also interesting is that there are lots of other conventions such as combining all the flags together with no space. For more information refer to this useful article: https://nullprogram.com/blog/2020/08/01/

How to easily remember Vue shortcuts

By | January 27, 2021

If you’ve come across the @ and : symbol in Vue and you have forgotten what they mean, then there is an easy way to remember them. Imagine @ looking similar to an ‘o’ (aka the letter). This letter is contained in v-on. Therefore v-on can be replaced with @. We can also get rid… Read More »

How to install nodejs on Ubuntu

By | July 31, 2020

Nodejs is included in the Ubuntu repository by default. This means that if you run: sudo apt install nodejs your terminal screen will be swing into action downloading the current stable release of node. Currently it is v10.19.0. But what if you need another version? What if you need to guarantee a specific version? First… Read More »

How to remove Last Login in MacOS bash terminal

By | January 25, 2020

When you open terminal you’ll probably be greeted with: Last login: Sat Jan 25 07:54:26 on ttys001 /Users/sean> How to get rid of Last login or other Method Of The Day (MOTD) messages? It is a 2 second fix. Just type “touch .hushlogin”. Just the presence of this file will suffice.