The lighthouse keeper's son

John James Turpin’s memories of growing up in occupied Jersey at La Corbière lighthouse. Born in 1930. Chapter 1 My father was a full time naval man. Having served before the First World War up until the late twenties, he joined the lighthouse service. He was then in a position to bring his family to the lighthouse cottage which consisted of my mother, my two brothers, my sister and of course myself. [Read More]

GDB

Debugger crib sheet

Adding debug symbols gcc -g hello.c gdb a.out # Run program run # Run and immediately break start # View code at current break point list # Break main b main # Break at line 9 b 9 TUI mode - text user interface Type ctrl-X A ctrl L - repaint ctrl X2 - multiple windows ctrl X2 - view registers tui reg float - view floating registers ctrl x 1 - source code view ctrl p/n - command history Python interpreter built in (since version 7) import os print(os. [Read More]

Big data

A consolidated list of sources

Sources of big data Big data communities / platforms http://archive.ics.uci.edu/ml/index.php https://www.kaggle.com/ https://www.statista.com/ Crime https://www.fbi.gov/services/cjis/ucr https://www.pcr.uu.se/research/UCDP/ https://www.drugabuse.gov/drug-topics/trends-statistics Internet https://wiki.dbpedia.org/ https://trends.google.com/trends/explore Government https://www.ukdataservice.ac.uk/ https://data.gov.uk/ https://data.london.gov.uk/ https://www.data.gov/ https://opengovernmentdata.org/data/ https://www.cia.gov/library/publications/the-world-factbook/ https://data.gov.au/ https://opendata.cityofnewyork.us/ https://open.canada.ca/en/open-data Health https://healthdata.gov/ https://digital.nhs.uk/data-and-information/data-collections-and-data-sets https://www.who.int/data/collections http://portals.broadinstitute.org/cgi-bin/cancer/datasets.cgi https://www.cdc.gov/datastatistics/ https://www.fda.gov/drugs/drug-approvals-and-databases/drugsfda-data-files https://github.com/publichealthengland/coronavirus-dashboard Business https://www.glassdoor.com/research/type/data-sets/ https://opencorporates.com/ Transport https://www1.nyc.gov/site/tlc/about/tlc-trip-record-data.page Weather http://africaclimate.opendataforafrica.org/ https://openaq.org/ https://www.weather.gov/help-past-weather Travel https://www.ustravel.org/research Entertainment https://www.bfi.org.uk/industry-data-insights Sport http://www. [Read More]

Miso-seaweed bread

Ingredients Proportion Ingredient g 100% Shipton Mill white organic bread flour 540 65.00% Evian mineral water 351 2.80% Fresh yeast 15.12 1.90% Billington’s Organic Golden Granulated 10.26 9.30% Sanchi Hatcho Miso 50.22 1.90% Poppy seeds 10.26 1.90% Sussex Gold extra virgin rapeseed oil 10.26 0.45% Dried seaweed 2.43 Method Make a miso solution with the water, poppy seeds and oil 30 minute rest Combine 60% of the flour Leave to rest for 8 hour rest Mix yeast and sugar Yeast/sugar mix with the remaining flour 1 hour lazy baker knead Dust with flour 40 minute prove at 35°C 35 minutes in oven at 225°C Autolyse The 8-hour rest isn’t absolutely necessary but a pre-ferment stage breaks down some of the anti-nutrients in the flour husks. [Read More]

Learning circular breathing

On the didgeridoo

I’ve been playing for a few months so it’s time to give something back. I gave myself a month to learn circular breathing. You need to immerse yourself in the culture and practice, go into a YouTube flat spin. Commit to 20 minutes a day, no excuses. And it’s difficult. The first few weeks you’ll be building up the muscles you haven’t used before and it’s very hard to measure progression. [Read More]

WSL

Linux without running a VM

Work demands that I run a Windows 10 laptop but I no longer run a Linux VM on the side. Apart from some slightly esoteric networky stuff like tcpdump WSL does it all and it feels like a native shell.

  • Windows key > “features”
  • Enable “Windows Subsystem for Linux”
  • Probably restart
  • Windows key > store
  • Install Ubuntu 20
  • And you’re away!

Android Repo

Managing project dependencies

There are lots of tutorials on how to initialise a repo but then what? The basics work quite well and use multiple processors to sync dependencies but I’ve yet to get to grips with doing a basic commit! It feels like you should be able to do an atomic commit across multiple repos but the curses interface goes all weird and I gave up for now. It’s also really annoying searching for information on something called “repo”! [Read More]

git submodules

Managing project dependencies

Are they really that bad? [Spoiler alert: yep, worse than you can imagine.] Adding submodules Clone an existing repo and update the submodules - note the hashes against folders in the repo. git submodule init git submodule update Add a new submodule by HTTPS. $ git submodule add https://github.com/deanturpin/dft.git Cloning into '/home/deant/deps-submodules/dft'... remote: Enumerating objects: 1417, done. remote: Total 1417 (delta 0), reused 0 (delta 0), pack-reused 1417 Receiving objects: 100% (1417/1417), 17. [Read More]

git subtrees

Managing project dependencies

A mono repo under the hood. See the Atlassian documentation. Create your outer repo and add something to it just to have history – otherwise you’ll see this unhelpful error: fatal: ambiguous argument ‘HEAD’: unknown revision or path not in the working tree. # Make history touch readme.md && git add . && git commit -am "create empty readme" && git push # Add subtree git subtree add --prefix=cpp/ git@gitlab. [Read More]