Category Archives: Programming

Neat VuePress codeblock

By | September 3, 2021

TL;DR To get from this: to this: Do this: The deets Often when explaining a concept in programming, there are many ways to achieve the task. For example, Yarn or NPM package managers can be used and instructions are provided for both. There is a neat little hack where code-groups can be used to produce… Read More »

Get text and cmd in

By | August 22, 2021

TestProject is a really neat app to perform automated testing. It takes a bit of getting use to but is generally really easy to use. I had a situation where I was manually logging in every hour to get solar data in order to plot my cumulative generation. I get instantaneous output overtime from the… Read More »

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:

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 »