- Single Responsibility Principle (Принцип единственной обязанности)
- Open Closed Principle (Принцип открытости/закрытости)
- Liskov’s Substitution Principle (Принцип подстановки Барбары Лисков)
- Interface Segregation Principle (Принцип разделения интерфейса)
- Dependency Inversion Principle (Принцип инверсии зависимостей)
Category: IT
Fibonacci numbers
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946
Matrix method:
It is interesting to note that the Fibonacci number grows so fast that F-47 exceeds the 32-bit signed integer range.
Binet’s formula
golden ratio = 1.618
Procent ratio is 62% and 38%
as
Duplicating (mirroring) a repository
To make an exact duplicate, you need to perform both a bare-clone and a mirror-push.
[code language=”java”]
git clone –bare <reponame>
# Make a bare clone of the repository
cd <reponame>
git push –mirror <newreponame>
# Mirror-push to the new repository
[/code]
Ubuntu command prompt
GZip, GZipStream
GZIP file format specification version 4.3
Can GZip compression (via .net) increase file size?
Yes. It can. It has been fixed in .net 4.
The compression algorithms for the System.IO.Compression..::.DeflateStream and System.IO.Compression..::.GZipStream classes have improved so that data that is already compressed is no longer inflated. This results in much better compression ratios. Also, the 4-gigabyte size restriction for compressing streams has been removed.