Ben Chuanlong Du's Blog

It is never too late to learn.

Rising of the Julia Programming Language

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

Array with Customized Index

https://docs.julialang.org/en/latest/devdocs/offset-arrays/

https://medium.com/analytics-vidhya/0-based-indexing-a-julia-how-to-43578c780c37

https://www.reddit.com/r/Julia/comments/7btmwr/zero_based_indexing_examples/

References

Tips on VNC

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

  1. it seems that VNC is very unsecure, the password can be at most 8 characters. My Ubuntu has been hacked into by vnc multiple times. Fortunately, I'm using Linux system. Avoid …

The Unfair Wager Problem

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

https://projecteuler.net/problem=436

\(X_i \sim Bernoulli(p)\)

$$\bar{X}_n \dot{\sim} N(p, \frac{p(1-p)}{n})$$
$$[\bar{X}\pm C_{\alpha} \sqrt{\frac{p(1-p)}{n}}]$$
$$\frac …

Tips on LaTeX

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

  1. exceltex ... input from excel ...

  2. keep each line short, being a part of sentence, this makes it easier to modify LaTeX code

  3. bibtex: never skip city for book type!!!

  4. bibtex: use volume …

Collections in Java

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

Oracel Java Tutorial on Collections

ArrayList

  1. You can point an element of Array or ArrayList to null, but remember that a null reference cannot invoke any method. For example, if you …

Nature Language Processing Using NLTK

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

nltk.util.ngrams nltk.bigrams nltk.PorterStemmer

from nltk.util import ngrams
sentence = 'this is a foo bar sentences and i want to ngramize it'
n = 6
sixgrams = ngrams(sentence.split …