Ben Chuanlong Du's Blog

It is never too late to learn.

Spark Issue: Unable to Find Encoder Type

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Issue Unable to find encoder for type stored in a Dataset

Solution …

Poker Game in Casinos

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Vegas

Best place for gambling games in the US.

Washington

Max bet is 300 in non-tribals, 500 on tribal casinos. There is a 4-bet cap (3 raises) in both types of …

Operators in Different Programming Languages

Python Bash C/C++ Java Julia
and and -a && && &&
or or -o || || ||
not not ! ! ! !
bit and & & & & &
bit or | | | | |
bit not ~ ~ ~ ~ ~
bit xor ^ ^ ^ ^ ^
vector and
vector or
vector not
equals == -eq == == ==
not equal != -ne != != !=
greater than > -gt > > >
less than < -lt < < <
greater than or equal to >= -ge >= >= >=
less than or equal to …

Gitignore Examples

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips and Traps

  1. You can ignore files in the root directory only by prefixing a pattern with /. For example, if you want to ignore the file features.txt in the root …