Yesterday I learned that Virgin Media is inserting itself into some of my DNS requests. Much as I am not a fan of how powerful Cloudflare are, if they are telling the truth about their DNS, then it’s safe, so I followed their instructions on how to use their DNS and then removed the default DNS and hopefully my Internet will work now.
From the serverfault answer by lauc.exon.nod:
nmcli con mod "Wired connection 1" ipv4.dns "220.127.116.11 18.104.22.168"
nmcli con mod "Wired connection 1" ipv4.ignore-auto-dns yes
nmcli con down "Wired connection 1"
nmcli con up "Wired connection 1"
[Introduction including details about my own air source heat pump install, and mention of the ending of the RHI funding in April 2022.]
After I have installed an air source heat pump, I will pay more money to heat my home, even though I am using less energy, because electricity is more expensive than gas. So this change will hurt me financially over both the short and longer terms.
Do you agree with me that climate emergency is the most important issue the government is now facing?
Do you also agree with me that we urgently need people to switch their heating and home insulation to reduce our dependence on burning gas?
Please do all you can to persuade the Prime Minister to introduce initiatives before COP26 that make it financially viable for families without spare cash to insulate their home and heat them with renewable energy.
Please pass my letter on to the Prime Minister and any government departments you consider relevant.
Thank you very much for your time.
I started a new job today at Element!
It has been a long-standing ambition of mine to work in Free and Open Source software, and I am very excited to work for a company that is the main developer of a really important project: the Matrix communication network.
I don’t know much about what I’ll be doing yet, but finding an open source company with a decent business model that is prepared to pay me is very exciting. The fact that they have offices that are close enough for me to go for is another huge bonus.
Wish me luck, and I’ll let you know what I’m working on when it becomes more clear.
Update: caching $RUSTUP_HOME and $CARGO_HOME does not work for me – I removed them.
When building your project with Gitlab CI or a similar build tool, you can end up spending a lot of time watching your build repeat the same steps over and over. This is especially frustrating when it mostly consists of downloading and compiling the same things we downloaded and compiled last time.
To mitigate this, we can ask Gitlab CI to cache things that will be the same next time.
For a Rust project, the most important thing to cache is target in the local directory.
Update: nope, incorrect But, if you are installing tools using rustup or cargo, it will really help if you cache those too. Fortunately, Rust knows where those are by using environment variables, and these are defined in the standard Rust Docker image.
Update: if anyone knows how to cache the output of rustup and cargo installations, let me know. I think I would need to push a Docker image to Dockerhub to do it?
We can make sure we’re caching as much as possible by adding a section like this to .gitlab-ci.yml:
If you add this to all your jobs, they will share a single cache between them, and cache the local target directory as well as any tools installed with rustup or cargo.
Here is a full example from my Evolve SVGs project:
- rustup component add rustfmt
- rustup target add wasm32-unknown-unknown
- cargo install trunk wasm-bindgen-cli
- echo "Publishing pages to" $CI_PAGES_URL
- make deploy
- mv dist public
- make test
To print a Maven project’s version number, try:
mvn help:evaluate -Dexpression=project.version -q -DforceStdout
-q suppresses all output(!)
-DforceStdout unsuppresses the actual thing you asked to be printed.
I will refrain from commenting on how difficult this was to find.