I always had problems remembering Docker commands: to run a shell in a container, should I use
docker run or
docker exec? Wait, I probably need to "attach" the terminal to the running container. No problem, let's try
docker attach. Ooops...
These commands initially made no much sense to me - run and exec sounds like an alias to me and attach; well, Docker authors clearly had the idea that attaching to container and attaching shell input (typing commands inside container shell) are entirely unrelated things.
Because of this, I kept personal docker.org file with all the notes how I'm going to start a container, run something in it, and so on.Continue reading →
In Emacs, when you open a compressed file like
foo.txt.gz, it will transparently decompress it (using
gzip in the case above) and open as a regular file. However, what will happen if the above file is not compressed at all?
However, an application that would ship logs to S3, would ship them with gzip extension attached (hence foo.txt.gz), but files would not be compressed. I'm not sure if this behavior is intentional or bug in the script, but this will cause Emacs to fail with this error:Continue reading →
As we all know, java logging is a mess and I believe most developers are wondering how the output to terminal or file can be rocket science?
Those who want to save some sanity and keep things simple, I'm sure are already are using Timbre.
But, my use case was different - the application had to log as much as possible, but that had to be fast as possible and provide plenty of configurable options for the end-user, without touching source code.Continue reading →