Solution:
sudo apt-get install -y language-pack-en
sudo update-locale
Then zsh
starts working!
Always use calloc()
instead of malloc()+memset()
. In most cases, they will be the same. In some cases, calloc()
will do less work because it can skip memset()
entirely. In other cases, calloc()
can even cheat and not allocate any memory! However, malloc()+memset()
will always do the full amount of work.
Understanding this requires a short tour of the memory system.
There are four main parts here: your program, the standard library, the kernel, and the page tables. You already know your program, so...
Memory allocators like malloc()
and calloc()
are mostly there to take small allocations (anything from 1 byte to 100s of KB) and group them into larger pools of memory. For example, if you allocate 16 bytes, malloc()
will first try to get 16 bytes out of one of its pools, and then ask for more memory from the kernel when the pool runs dry. However, since the program you're asking about is allocating for a large amount of memory at once, `mal
version: '3' | |
services: | |
postgres: | |
image: postgres | |
hostname: postgres | |
ports: | |
- "5432:5432" | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres |
# This docker-compose file intent to create a multi-container application | |
# that runs a Jenkins container connected via TLS to a Docker-in-Docker (dind) container as Docker daemon. | |
# | |
# Advice about this approach can be found at: | |
# http://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/ | |
# | |
# As well discussion about another alternatives on this setup can be found at: | |
# https://forums.docker.com/t/using-docker-in-a-dockerized-jenkins-container/322/11 | |
# | |
# Quick reference about Docker-in-Docker can be fount at: |
If you do not get the file from your system, you can extract the file from the chromium package. Follow below instructions to get the package. Original post. Copied here, just in case owner decides to delete the gist.
This short instruction shows how to install libffmpeg.so
in vivaldi to play e.g. mp4 videos.
GPG sign issue when commiting the message
error: gpg failed to sign the data
fatal: failed to write commit object
sudo apt install -y pinentry-tty && \
sudo update-alternatives --config pinentry
sudo qemu-img create -f qcow2 ~/VOLUME-NAME.qcow2 30G
^[name of storage]