The database clinicaltrials.gov is a web resource of clinical trials around the world. It has a REST API that gives access to clinical trial data. There are some resources available to interact with this resource using R, such as rclinicaltrials and ClinicalTrialsAPI. We were interested at looking clinical trials for rare diseases and particularly whether […]
Category: computing
Cluster One II: comparing cycling performance on similar courses
A short follow-up post. Previously, I looked at how to reproduce a Strava feature that compares performance over similar courses. With a few modifications to the code, I was able to analyse a much larger dataset of cycling performance on similar courses. Two courses with the highest number of tracks are shown below. I cycle […]
Cluster One: comparing running performance on similar courses
One of several features that Strava put behind a paywall was the ability to compare performance on similar courses. I miss this comparison tool and wondered how hard it would be to code my own. This post is a walkthrough of how I approached the problem. The code is available here. It uses the trackeR […]
Tips From The Blog XIII: siunitx, Helvetica and LaTeX
I searched several times in vain to solve this problem. After finding a solution, I thought i’d put it up here. The problem Formatting of units using siunitx in LaTeX does not match the typeface of the body text. We like to use the helvet package to get a close approximation to Helvetica in LaTeX. […]
Find The Answer Within: using grep to find lost code
A short tech-tip this week. How can you find a line of code somewhere on your computer? I often find that I need to write a line of code and I can’t remember the exact syntax. To add to the frustration, I can remember writing a similar line before, but can’t remember in which file […]
Walk This Way
Over the holidays, I had an idea about looping an animation between two images. I wrote some code to do this in Igor Pro (sorry, no R this time…). This post describes how the code works and how you can make a similar animation. There was a reason to do this animation, but as a […]
Rotation: using quaternions in Igor Pro
Quaternions are essentially magic. With just four numbers, they can describe the position and orientation of an object in space. For example, the rotation of an object about one axis. Consecutive rotations can also be described by a quaternion. There are many explainer articles which help to understand quaternions and their uses (they are used […]
Calendar: Assessing Raspberry Pi Camera Uptime
A while ago, I set up a couple of Raspberry Pi Zero cameras to make long-term time lapse movies. To recap: the idea was to take pictures every ten minutes and turn them into a movie. The process is totally automated so that every day, the photos from each Pi get saved to a server, […]
Tips From The Blog XII: Improving your Twitter experience
This is a quick set of tips to improve your Twitter experience. YMMV on these tips. Plus I can see Twitter changing things so that they no longer work, but this advice is correct as of today. I see a lot of people on Twitter complaining about two things: Twitter changing the tweets shown from […]
Child’s Play: pi-hole set up for a safer internet
I have been running a pi-hole to block ads on my home network for a while. It’s great! Not only are ads blocked, but it speeds up internet browsing because… the ads do not load. I wondered if it would be possible to use a pi-hole to make a child-safe internet experience to protect the […]