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 »
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 »
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/
On OSX, running the npm global install command installs the packages at If you leave out the global flag (-g), the packages get installed in the current directory you are in.
These three options can be confusing for a beginner and it takes a while to know how and when to use then. Here are some quick tips to help. Methods Always use these when binding events. In other words when something (aka an event) happens such as a user has clicked a button. An example… Read More »
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 »
This is a neat video that explains very clearly what arrow functions are.
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 »
Once you have logged in, the command is quite simple. mysql> use db_name; mysql> source file_name.sql;
Sometimes you’ll come across applications that will require a specific version of Java. This will be because other versions of Java will have extra libraries that may not be compatible. To install a specific version of Java on Mac OSX with homebrew, go to Github AdoptOpen JDK to see what version you need. The basic… Read More »