Skip to content

Blog

How to Snapshot Your Windows Container in Docker

Saving the state of a container in Docker is an anti-pattern. You should create your containers in a way that you can throw them away and start with a new one. However, there are some use-cases in which a snapshot of your current container is of great help.

One such use-case is creating a snapshot of your database container for integration testing. Instead of creating a fresh database from scratch and adding the seed data before every test run, I could do that once and reuse this known good starting point. This will save a lot of time and I get the feedback of my tests faster.

Little Git Tricks: Change the Author of a Commit

Git tracks the author of every commit. If you do not modify anything, the global settings will be used. That is great for the day-to-day use, but it may not be what you want in all situations.

If you do pair-programming, you may want to make the commits as a team. If you commit your code on the command line, you can use this option with your commit:

git commit --author="John Doe <[email protected]>"

Pen & Paper

An often-overlooked combination of tools to develop software are pen and paper. Don't panic, I do not propose to write a first draft of your code on paper and only use a computer for the final version. Some universities or companies in their hiring process may do that, but that is not what I mean.

Bringing dotCover Back to Life After a Failed Upgrade of ReSharper

Last week I did something stupid: While working in the train I decided now would be a good time to upgrade ReSharper to the newest version. It took far longer than expected and when the train reached my station, I had to put my laptop into the sleep mode. As I started it again in the next morning, the ReSharper installation finished and everything looked fine. Except it was not.