Plurrrr

a tumblelog
18 Jun 2019

Use mmap with care

Using mmap in desktop applications has some serious caveats, and here's why:

writes Benjamin Schaaf in Use mmap With Care. An interesting read.

Falsehoods programmers believe about Unix time

These three facts all seem eminently sensible and reasonable, right?

  1. Unix time is the number of seconds since 1 January 1970 00:00:00 UTC
  2. If I wait exactly one second, Unix time advances by exactly one second
  3. Unix time can never go backwards

False, false, false.

Curious? Read Falsehoods programmers believe about Unix time by Alex Chan.

/usr/bin/ld: cannot find -lz

When building Net::SSLeay, a Perl module, on Ubuntu 19.04 the log contained the following error after the build process halted prematurely.

/usr/bin/ld: cannot find -lz

This was fixed by installing the zlib1g-dev package as follows:

sudo apt-get install zlib1g-dev