When developing software that has many potential uses, we may encounter a situation where potentially sensitive datasets are used by some users, but should not be available to others. …
How to convert to and from hex dumps using
In an earlier article, I explained the use of compiled binary files to hide the code run within them:
However, it is not possible to set environmental variables using this method. MD5 checksums were considered, however, these are NOT…
Unlike the interactive Graphical User Interface, there is also a CLI for use on headless machines or HPC clusters, when local memory requirements just don’t cut it. Here we go over some of the basic functionality:
Although the script works through normal python or Jupyter notebooks, the most intuitive way…
A quickstart anaconda environment cheatsheet for everyday use.
We choose to create an environment named
conda create --name myenv
A custom location (e.g. this directory under the name myenv)
conda create --prefix ./myenv python=3.7 --yes;
conda create --name myenv --clone env2clone
conda info --envs
conda activate myenv
With the introduction of two-factor authentication, we are now required to change the way we access our repositories. There are now two main methods to upload to Github: using ssh keys or access tokens. This page describes the latter.
How to create a fully customised colour mapping within matplotlib.
Our data is split into non-uniform categories, where a linear colour bar will be inefficient. In this tutorial, we cover how to create a custom colourmap with colours matching bins of our chosen sizes.
We start by importing the required…
Just some notes on getting started.
Bede is the N8’s Tier 2 Power and GPU-based high-performance computing (HPC) platform.
Notes on how to set up an interactive GPU session for computation on the Leeds System.
qrsh -l h_rt=2:0:0,coproc_v100=1,h_vmem=8G -pty y bash
A single V100 card, 10 CPU cores and 48GB system memory (one quarter of the available resource on a V100 node)
qrsh -l h_rt=2:0:0,coproc_k80=1 -pty y bash
Sometimes we require multiple modules all of which communicate using the I2C channel. In this post, we discuss how to do exactly that using available GPIO pins.
We begin with installing the required libraries,
sudo apt-get install -y python-smbus i2c-tools
followed by enabling I2C using the advanced tab within
You have a suite you wish to run, but need to constrain it such that it can run on your allocated queues — this guide explains how to break it into segments which allow you to do so.
The run I am using is
u-ca218 . First, you need to…