Thursday, October 14, 2021

Wednesday, April 01, 2020

Which image format is better? PNG vs BMP

PNG is compressed but lossless image format. 
BMP is both uncompressed and lossless.

There is no quality difference between BMP and PNG format. The only visible difference is the file size.

PNG also supports transparency. Paint in Windows does not save bmp file with transparency.

BMP uncompressed takes more space, but when compressed (e.g. when put in a .zip or .7z file) BMP can be better.

Wednesday, July 03, 2019

TIOBE- programming language index for 2019


Jun 2019            Programming Language

1 Java
2 C
3 Python
4 C++
5 Visual Basic .NET
6 C#
7 JavaScript
8 PHP
9 SQL
10 Assembly language
11 Swift
12 Objective-C
13 Ruby
14 Groovy
15 Go
16 Perl
17 Delphi/Object Pascal
18 MATLAB
19 Visual Basic
20 PL/SQL
21 SAS
22 R

Source: https://www.tiobe.com/tiobe-index/

Tuesday, June 04, 2019

Video games platforms (stores)

Valve's Steam
Blizzard's Battle.net
EA's Origin
Epic
itch.io (for indie and small-scale developers)

Monday, June 03, 2019

Which is sourer: lime, lemon or rhubarb?

The lower pH is, the sourer the taste is.
lime – citric and ascorbic acid, pH around 1.8
lemon – citric acid, pH around 2.3
vinegar - pH 2-3
rhubarb - pH around 3.3


Saturday, May 04, 2019

Defined benefit vs. Defined contribution pension plans

A defined benefit plan is 'defined' in the sense that the benefit formula is defined and known in advance.

Conversely, for a "defined contribution retirement saving plan", the formula for computing the employer's and employee's contributions is defined and known in advance, but the benefit to be paid out is not known in advance.

Employees usually prefer the defined benefit pension, while employers prefer defined contribution.

Wednesday, December 26, 2018

Crab sticks and crab cakes

Crab sticks (also known as seafood sticks) actually have nothing to do with crab. They are made of white fish such as Pollock, egg white, pulverized into a thick paste before adding red colour.  I have no problem with the name 'seafood sticks', but they should not be called 'crab' sticks.

Crab cakes, on the other hand, usually contain at least 20% real crab meat, depending on the recipe. For example, Sainsbury's Taste the Difference crab cakes contain 25% crab meat.

Higher education in Saudi and Saudi students in western universities funded by government scholarships

Since the 1940s, Saudi Arabia has funded large-scale government scholarships for students to study abroad, significantly expanded in 2005 un...