ELF Hello World Tutorial / SHN_ABS Updated 2025-07-16
hello_world_len points to the special st_shndx == SHN_ABS == 0xF1FF.
0xF1FF is chosen so as to not conflict with other sections.
st_value == 0xD == 13 which is the value we have stored there on the assembly: the length of the string Hello World!.
This means that relocation will not affect this value: it is a constant.
This is small optimization that our assembler does for us and which has ELF support.
If we had used the address of hello_world_len anywhere, the assembler would not have been able to mark it as SHN_ABS, and the linker would have extra relocation work on it later.
MongoDB Updated 2025-07-16
List databases:
echo 'show dbs' | mongo
Delete database:
use mydb
db.dropDatabase()
or:
echo 'db.dropDatabase()' | mongo mydb
View collections within a database:
echo 'db.getCollectionNames()' | mongo mydb
Show all data from one of the collections: stackoverflow.com/questions/24985684/mongodb-show-all-contents-from-all-collections
echo 'db.collectionName.find()' | mongo mydb
The best cycling map app Updated 2025-07-16
  • Google Maps download offline maps. This works very reliably, you can select the area you want to download. The only downside is that Google maps can't reliably show a route offline, and it does not contain national cycle route routes. Or those features are impossible for a software engineer to get working after trying for about 2 hours.
  • OpenStreetMap on browser with cycling layer: www.openstreetmap.org/#map=5/49.582/1.934&layers=C This is the best visualization of cycling routes I've found so far, contains both National Cycle Network and National Byway and a few others, and they are shown extremely clearly. But as a website it doesn't reliably work offline
  • the OsmAnd app for Android is the best offline free-ish OpenStreetMap viewer I've found so far. You only have to pay after reaching 5 region downloads, and it is very cheap if you want to do so. The cycle route view is not amazing, the routes are not so clearly marked and mixed with very similarly colored big roads, but with a bit of effort you can make them out. No routing though
  • I've heard Komoot can keep a predefined route (possibly auto planed) reliably offline, but haven't used it myself. I was not able to see National Cycle Route clearly marked anywhere on it
Alphabet Updated 2025-07-16
Larmor precession Updated 2025-07-16
The equation is simple: frequency is proportional to field strength!
Program the Micro Bit in C Updated 2025-07-27
Official support is abysmal, very focused on MicroPython and their graphical UI.
The setup impossible to achieve as it requires setting up the Yotta, just like the impossible to setup Compile MicroPython code for Micro Bit locally on Ubuntu 22.04 with your own firmware setup.
So we just use github.com/lancaster-university/microbit-samples + github.com/carlosperate/docker-microbit-toolchain:
docker pull ghcr.io/carlosperate/microbit-toolchain:latest
git clone https://github.com/lancaster-university/microbit-samples
cd microbit-samples
git checkout 285f9acfb54fce2381339164b6fe5c1a7ebd39d5

# Select a sample, builds one at a time. The default one is the hello world.
cp source/examples/hello-world/* source

# Build and flash.
docker run -v $(pwd):/home --rm ghcr.io/carlosperate/microbit-toolchain:latest yotta build
cp build/bbc-microbit-classic-gcc/source/microbit-samples-combined.hex "/media/$USER/MICROBIT/"
.hex file size for the hello world was 447 kB, much better than the MicroPython hello world downloaded from the website which was about 1.8 MB!
If you try it again for a second time from a clean tree, it fails with:
warning: github rate limit for anonymous requests exceeded: you must log in
presumably because after Yotta died it started using GitHub as a registry... sad. When will people learn. Apparently we were at 5000 API calls per hour. But if you don't clean the tree, you will be just fine.
To use a prebuilt firmware, you can just use uflash, tested on Ubuntu 22.04:
git clone https://github.com/bbcmicrobit/micropython
cd micropython
git checkout 7fc33d13b31a915cbe90dc5d515c6337b5fa1660
uflash examples/led_dance.py
What that does is:
Not in other sections:
Erik Finman Updated 2025-07-16
www.unilad.com/technology/erik-finman-bitcoin-12-year-old-millionaire-invest-798094-20231207
In 2011, Finman made a deal with his parents that he would not pursue a college degree as he wanted to make his fortune outside of traditional education.
After receiving $1,245 from his grandmother that year, Finman invested into Bitcoin (BTC) - which was then trading at around $12 - and this gave him about 103 BTC.
Shame that he seems to be a American exceptionalism idiot. Perhaps it was inevitable given his circonstances. After a small market crash: x.com/erikfinman/status/1820457023013626322.
Opportunities like this come across only once every few years.
This ain’t financial advice…
But if you got the cash.
Never bet against America
Cell projection Updated 2025-07-16
One of several things that can stick out of a cell, e.g. flagellum or an axon.

Unlisted articles are being shown, click here to show only listed articles.