Computer and Information SciencesWordPress

quantixed

quantixed
x == (s || z). You say it kwontized
Home PageAtom FeedMastodon
language
Published

A colleague sent me a coding challenge. This is a short post to describe how I tackled it. Edit: a follow-up post is here. This is the challenge: With an eye on b, and since I code fastest in Igor, I went with Igor over python or R. I knew this would lose me major points for c since Igor code is not very compact. It took me 22 minutes to write a solution, slowed down a bit by helping a small person with their homework.

Published

Some journals sound like they should be bands. Whereas some journal titles ARE in fact the same as band names. I wondered… how many journal titles are also band names. Let’s find out! The journals cited in PubMed could be downloaded as a text file from here. This list includes every MEDLINE journal – even defunct ones – as well as non-MEDLINE journals where content is is in PMC. This will do for now, but is obviously limited.

Published

If I struggle to find the answer to something, it must be worth a post to help out others. So, here’s where to find the php.ini file on a standard WordPress install on Raspberry Pi. I installed a LAMP stack and WordPress on a Raspberry Pi following these excellent instructions. The aim was to import our lab’s ELN onto a fresh WordPress install.

Published

The scientific response to the COVID-19 pandemic has been astounding. Aside from efforts to generate vaccines, the genomic surveillance of the virus has been truly remarkable. For example, the nextstrain project has sequence many SARS-CoV-2 genomes. In fact, the rapid identification of multiple new strains and mutations by diverse groups of scientists has resulted in a nomenclature crisis.

Published

The IQ Block game is a puzzle where the player must fit eight shapes into a square space. The challenge is to find as many ways as possible to do it. The box says there are more than 40 solutions! So how many are there? I wrote a solver to crack the IQ Block game. The code is available here and a detailed description is at the end of the post. The solver found 264 solutions from 33 placements.

Published

I have a long-running project to make timelapse movies using a Raspberry Pi Zero with camera module. I’m capturing a countryside view and have images for two years. The uptime on the Pi is seriously impressive, but nonetheless I wanted to upgrade the Pi so that it would send me updates of how it’s going, so that I would know if it image capture had failed. Here is my solution.

Published

I was working on a figure in Adobe Illustrator today. The ai file had 32 embedded TIFF files (we tend to embed images rather than linking them for portability reasons). I wanted to change all of the images, but to do this I needed to know where the originals were.

Published

During the pandemic, many virtual seminar programmes have popped up. One series, “Motors in Quarantine”, has been very successful. It’s organised by my colleagues Anne Straube, Alex Zwetsloot and Huong Vu. Anne wanted to know if attendees of the seminar series were a fair representation of the field. We know the geographical location of the seminar attendees, but the challenge was to find a way to examine research activity at a country level.

Published

I’m a long-term fan of Weezer. Such was the brilliance of their first two albums that I have stuck with them through thick and thin. And dear me, there has been some very thin music. Nonetheless I own every album – thirteen of them. Among them are six albums entitled “Weezer”. These records are colloquially referred to by the colour of the album. In chronological order: blue, green, red, white, teal and black.

Published

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 it was (or for what project, or even when it might’ve been). How can I quickly track that line down? Today I needed to write a LoadWave command in Igor.