Failure to download extra data files with ttf-mscorefonts-installer on Ubuntu 16.04

An annoying problem due to invalid download links in the package. The Debian package was fixed already.

Solution for Ubuntu.

1. Download ttf-mscorefonts-installer_3.6_all.deb package from Debian site into your Downloads folder

Types of joins in SQL (cheatsheet for beginners)

Better to see once than to hear a hundred times. This small article explains what are the different kinds of joins in SQL.

At the first time you should take into account that SQL is a declarative 4th generation language. So the best way to use it (especially for beginners) is to write the query and let SQL optimizer do its job. That means thinking in set-oriented terms and avoiding sub-queries.

Let's take two example tables: Companies and Contacts.

Delphi Starter doesn't support command line

Delphi feature matrix has two important points:

  • Delphi 32-bit native code optimizing compiler (dcc32) for Windows, including high performance x86
    Assembler
  • Delphi toolchains for Windows

Regardless indicated options dcc32 doesn't work in Delphi Berlin Starter with the error message "This version of the product does not support command line compiling".

Happy tickets benchmark

Some countries have integer numbers printed on the transport tickets, for example, in ex-USSR. The ticket is "happy" when the sum of the first half of digits equals to the second one. Then you should eat it and make a wish.

Example:

123456 and 111222 are not happy tickets
123123 and 123222 are the happy tickets

Pages

Subscribe to Mechanics of software RSS