PBS and Maui

Introduction

Portable batch system (PBS) was originally developed by NASA, which is comprised of a resource manager, a scheduler and a client. What is different, a resource manager and a scheduler are usually running on server side, while clients running on computing nodes. For the softwares, both commercial PBS Pro and open-source Torque are available. But herein, we consider the open-source Torque only.

Just as their names indicate, a resource manager targets for resource management and configuration, responsible for checking the availability of resource, e.g. CPU, memory, etc., and resource assignment; a scheduler accept jobs from subscribers and maintains one or more queues.

The built-in scheduler is a simple FIFO scheduler. However, other schedulers can be adopted instead. For instance, Maui is a very popular and powerful scheduler, based on which advanced and complex strategies can be realized and customized.

[Read More]

C++ - Armadillo

Introduction

Armadillo1 is an excellent C++ library, which provides efficient linear algebra related operations, based on a series of classes, e.g., for vectors, matrices, etc. Thanks to its friendly interfaces, similar to MATLAB, the library is very easy to use.

Armadillo is developped by Conrad Sanderson and Ryan Curtin, and released under Apache 2.0 license.

[Read More]

K - Means Clustering

K - Means is a classical clustering algorithm, targeting intra-cluster close resemblance and inter-cluster difference.

[Read More]

English Study

发音

元音字母和辅音字母

在英文的26个字母中,有5个元音字母,分别为 a, e, i, o, u; 剩下的21个字母为辅音字母。

开音节和闭音节

  • 开音节单词: 以元音字母结尾的单词
  • 闭音节单词: 以辅音字母结尾的单词

通常,辅音字母的发音较单一,而元音字母的发音相对复杂。元音字母的发音有长音(也即字母本身的音)和短音,通常在开音节单词中发长音,在闭音节单词中发短音。

元音字母aeiou
开音节[ei][i:][ai][əʊ][ju:]
闭音节[æ][e][ɪ][ɒ][ʌ]

音标

  • 爆破音: [p], [b], [t], [d], [k], [g].

Misc.

  • I can't do it 中的 't 不发音,所以这句话读起来和I can do it相似,区别仅仅在于后者中的can弱读。
  • 字母组合 ee 和 ea 均发 [i:] 音。不同在于, ee 喜欢和字母 b 和字母 p 在一起;而 ea 喜欢和字母 d 和字母 t 在一起。
  • 字母组合 ai 和 ay 均发 [ei] 音。不同在于, ai 一般位于单词中间;而 ay 位于单词尾部。
[Read More]

Electromagnetic Field (EMF)

Maxwell's equations without free charge

\[\begin{aligned} \nabla \times \mathbf{E} &= -\mu \frac{\partial \mathbf{H}}{\partial t} \\ \nabla \times \mathbf{H} &= \epsilon \frac{\partial \mathbf{E}}{\partial t} \\ \nabla \cdot \epsilon\mathbf{E} &= 0 \\ \nabla \cdot \mu\mathbf{H} &= 0 \end{aligned}\] where

  • \(\mathbf{E}\) and \(\mathbf{H}\) are strengths of electric and magnetic fields respectively;
  • \(\epsilon\) and \(\mu\) are permittivity and permeability respectively.
[Read More]

LaTeX - Beamer

Beamer is a convenient \LaTeX package for high quality slides. A template can be shown as follows.

[Read More]

MMSE-based Channel Estimation

Regarding channel estimation, minimum mean square error (MMSE) is a popular algorithm widely utilized in a variety of applications. This short document is just written to reveal the rationale between the algorithm.

[Read More]

Orgmode - Beamer

Emacs's builtin utility, orgmode can export an orgmode file to beamer slides. A template for beamer can be used directly.

[Read More]

Python - Argument Parser

Package argparse is a convenient utility for argument parsing, in which class ArgumentParser is defined. Concerning its usage, a simple example can be given as follows.

[Read More]

Python - Concurrent

Python has 2 builtin concurrent utilities which is widely utilized, i.e., process pool and thread pool, dedicated to CPU intensity and I/O intensity respectively.

[Read More]