Posts

Tools

This post just aims to summarize the excellent tools and utilites providing great convenience and efficiency. atuin: a powerful manager of shell history based on Rust fzf: a fuzzy finder based on …

Schur Complement

Schur complement is an important concept in block Gaussian elimination in matrix theory whereby a matrix with larger dimension can be reduced to another matrix with smaller dimension by elimination. …

Neyman-Pearson Lemma

Weighing the probabilities of false alarm (a.k.a. type I error) and misdetection (a.k.a. type II error), 2 young mathematicians (Jerzy Neyman and Egon Pearson) proposed a revolutionary method of …

Installation of ArchLinux

This post aims to record the installation procedure of ArchLinux on my notebook, Thinkpad X1 Carbon (x1c) 2018, i.e., 6th generation. Preparition Download the installation image from the nearest …

UV

As another tool for Python, uv is written by rust and provides integrated experience, e.g. interpretor management (by uv python) virtual environment manangement (by uv venv) package management (by uv …

Hyprland

Introduction Hyprland is a dynamic tiling compositor based on wlroot. Compared to sway, hyprland provides better experience and easy configuration. What is exciting, its development is much active. …

Span

std::span is a class template introduced in C++ 20. As one of the most paramount features, span is essentially a non-owning view of a sequence of objects, which is contiguously distributed in memory …

RIME Input Method Engine (RIME)

Rime input method engine (RIME) is an excellent input method application, which can be run on a variety of platforms, e.g., Linux, MacOS, and Windows. RIME does not come with a frontend. Therefore, …

Network Bonding

Just as its name indicates, network bonding is a technique to bond a plurality of network interface together for load balance and a wider bandwidth. The configuration of network bonding is simple. …

Mermaid

Mermaid is a JavaScript-based software to draw a wide variety of diagrams and charts, e.g., flowchart, sequence, state, block, class, mindmap, Gantt, git, pie, etc. In Linux, mermaid can be directly …

Slurm based Cluster

Introduction Slurm is the most popular open-source workload manager for Linux clusters released under GNU GPL v2. As a cluster manager, slurm is widely used all over the world, from academic circles …

Special Functions

Gamma function \begin{align*} \Gamma(x) \triangleq \int_0^{+\infty} e^{-t} t^{x - 1} dt \end{align*} Particularly, $\forall x \in \mathbb{Z}^+$, $\Gamma(x) = (x-1)!$. Bessel functions First kind …

Series

Taylor For function $f(x)$, if $f^{(n)}(x_0)$ exists, its Taylor expansion can be written as \begin{align*} f(x) = f(x_0) + f^{\prime}(x_0)(x - x_0) + \cdots + \frac{f^{(n)}(x_0)}{n!}(x - x_0)^n + …

Matrix

Vectorization $\forall \mathbf{A} \in \mathbb{C}^{p \times n}$, $\mathbf{B} \in \mathbb{C}^{n \times m}$, $\mathbf{C} \in \mathbb{C}^{m \times q}$, \begin{align} \text{vec}(\mathbf{ABC}) = …

Calculus

Differentiation Definition Trigonometric functions \begin{align*} \frac{d}{dx}\sin x &= \cos x\\ \frac{d}{dx}\cos x &= -\sin x\\ \frac{d}{dx}\tan x &= \sec^2 x\\ \frac{d}{dx}\cot x &= …

Add User in a Batch Way

Following script can be used to add users in a batch way. #!/bin/bash for u in `seq 9`; do useradd --create-home --gid GROUP --password PASSWORD $u # useradd -m -g GROUP -p PASSWORD $u done

PBS and Maui based Cluster

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 …

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 …

K - Means Clustering

K - Means is a classical clustering algorithm, targeting intra-cluster close resemblance and inter-cluster difference. Without loss of generality, the procedure of assigning $n$ samples to $k$ …

English

发音 元音字母和辅音字母 在英文的26个字母中,有5个元音字母,分别为 a, e, i, o, u; 剩下的21个字母为辅音字母。 开音节和闭音节 开音节单词: 以元音字母结尾的单词 闭音节单词: 以辅音字母结尾的单词 通常,辅音字母的发音较单一,而元音字母的发音相对复杂。元音字母的发音有长音(也即字母本身的音)和短音,通常在开音节单词中发长音,在闭音节单词中发短音。 元音字母 a e i o …

Electromagnetic Field (EMF)

Maxwell's equations without free charge \begin{align*} \nabla \times \mathbf{E} &= -\mu \frac{\partial \mathbf{H}}{\partial t} \\ \nabla \times \mathbf{H} &= \epsilon \frac{\partial …

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 …

Concurrent Python

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. Due to global interpreter lock …

Beamer with Orgmode

Emacs's builtin utility, orgmode can export an orgmode file to beamer slides. A template for beamer can be used directly. In the export, text between a pair of stars will not be exported to …

Beamer

Beamer is a convenient $\LaTeX$ package for high quality slides. A template can be shown as follows. \documentclass[t, compress, red, 10pt, aspectratio=169, allowframebreaks]{beamer} …

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. from argparse import …

Virtual Environment

Python的虚拟环境(virtual environment)是一个独立的Python运行环境。在一个独立的环境中,可以正常安装所需要的数据包(如使用pip等)。既不受系统环境的影响,也不会对系统环境产生影响。具体地,创建虚拟环境就是把系统Python环境复制到所创建的独立环境中。当进入一个虚拟环境时,virtualenv会修改相关的环境变量,让python和pip指向当前的独立环境。 创建独 …

Doxygen

Introduction Doxygen is a powerful tool to document the source codes. In principle, it parses the specially formated comments from the source codes and then produces very professional documents. Up …

A TDoc Processor

Introduction In order to facilitate the tdoc. related processing, I wrote a simple module using Python, termed tdoc, based on Builtin modules, os, functools, multiprocessing, argparse; and 3rd party …

Orthogonal Matching Pursuit (OMP)

Matching pursuit (MP) and its improvement orthogonal matching pursuit (OMP) are both popular algorithms in compressive sensing (CS). Compared to MP, OMP can offer better performance, e.g. in respects …

Makefile

As is well-known, makefile is a text file which specifies the behavior of make. According to the rules in makefile, a project can be automatically built in a fairly smart way. Given a project, …

Least Square and Its Iterative Approach (RLS)

Introduction As is well-known, least square (LS) is the optimal linear unbiased estimator, which plays an extremely important role in the classic estimation theory. This document motivates to …

Fourier Transform

Fourier Series Continuous Fourier Series \begin{align*} \tilde{x}(t) &= \frac{1}{T} \sum_{k=-\infty}^{\infty}X_a \left( k\frac{2\pi}{T} \right) e^{j\frac{2\pi}{T}kt} \\ X_a \left( k\frac{2\pi}{T} …

Pgf/Tikz

Introduction Pgf/tikz is an excellent LaTeX package to plot high quality graphs. This post just summaries its basic usages. Installation Pgf/Tikz is a built-in package in the texlive. As long as …

TR38.901

3GPP TR38.901 offers the guidance and methodology of channel modelling, including both system-level simulation (SLS) and link-level simulation (LLS). Coordinate systems Global coordinate system (GCS) …

RefTeX

RefTeX is a Emacs package dedicated for label, reference, citation, and index related operations in $\LaTeX$. What is exciting, RefTeX has been integrated into Emacs since version 20.2. RefTeX is …

QAM

Introduction In order to structure the utility relating to constellation modulation, I wrote a class Quadrature_Amplitude_Modulation in Python. Source code import numpy as np import matplotlib.pyplot …

Cramer-Rao Bound

In parameter estimation, the performance of an estimator is usually evaluated in the respects of unbiasedness, efficiency, and consistency. Take the estimation of parameter $\alpha$ for instance, For …

Biblatex

Biblatex is a new LaTeX package for bibliography management taking biber as backend, and more powerful than bibtex. For TeXLive users, biblatex is out-of-box. LaTeX ... \usepackage[backend=biber, …

Kalman Filter

Without loss of generality, the probability density function (pdf) of Gaussian distribution can be denoted by function \begin{align*} N(x, \mu, \sigma) = \frac{1}{\sqrt{2\pi}\sigma} …

Matplotlib

Background Matplotlib is a popular python package for figure plot and data visualization. Installation pip install matplotlib Submodules Matplotlib comes with a series of submodules, e.g., …

Professional C++

本文是阅读 Professional C++, third edition 中文版1的读书笔记. 预处理指令 预处理指令以 # 字符开始. 如 #pragma once 可以防止文件被包含多次. 头文件最常见的用途是声明在其他地方定义的函数. 宏是C遗留下来的, 类似于内联函数, 但不执行类型检测, 在调用宏时, 预处理器会自动用扩展式替换, 并不会真正地应用函数调用语义, 这一行为可能导致无法 …

Synchronization Signal Block (SSB)

Synchronization signals In NR, synchronization signals consist of primary synchronization signal (PSS) and secondary synchronization signal (SSS). Together with physical broadcast channel (PBCH), PSS …

Demodulation Reference Signal (DMRS)

Conceptions Just as its name indicates, demodulation reference signal (DMRS) is the reference signal dedicated for demodulation. Different from LTE system, the DMRS in NR system is comprised of a …

Downlink Codebook

In NR release 15, there are roughly two types of codebooks for spatial-domain CSI acquisition, termed type I and type II, respectively. The former is comprised of a finite set of vectors or matrices, …

Phase Tracking Reference Signal (PTRS)

Introduction Targetting for the great goal of the 5th generation (5G) system, the new radio (NR) system, proposed by the 3rd generation partner project (3GPP), has employed a variety of cutting-edge …

LTE - PCFICH

As its name implies, physical control format indicator channel (PCFICH) indicates the size of the control region, or equivalently the position where data region starts, of the instant subframe in …

Git

Introduction Git is a famous and powerful open-source software for version control and management. It was developed by Linus Torvalds with C programing language. What is different from subversion, …

Whitening Filter

Usually, we need to filter a mixture of desired signal and colored noise, in order to make the spectrum of the noise become white. Without loss of generality, $x(t)$ is a wide-sense stationary …

Uniform Distribution in a Ring Area

This post aims to provide an efficient method of generating uniformly distributed coordinates in a given ring area. Without loss of generality, the ring area is illustrated in the figure below. The …

SLNR-based Beamforming

Introduction In coordinatd scheduling and beamforming (CS/CB), one of coordinatd multipoint (CoMP) transmission schemes, signal leakage noise power ratio (SLNR)-based beamforming is widely used. Just …

Random Disconnection for WiFi6

Today, I found the wireless network card (Intel Corporation Wi-Fi 6 AX201) is suffering random disconnection. Maybe there is something wrong with the driver in Linux. After several rounds of …

Multi-TRP Transmission

Introduction Recently, multi-TRP transmission is one of the most remarkable features of NR and consequently the focus of discussion in the standardization of 3GPP, since it is able to efficiently …

Sway

Introduction Sway is a tiling compositor based on Wayland. It can be identified as a counterpart of i3 in Wayland, and as resource saving and lightweight as i3. Even, sway has a completely compatible …

Remap CapsLock as Ctrl

Background Usually, key CapsLock is seldom used in our daily utilization, while key Ctrl is frequently used, esp. for Emacs users. Therefore, we can turn CapsLock into an additional Ctrl. Linux Sway …

俗话说

俗话说:好马不吃回头草;可俗话又说:浪子回头金不换! 俗话说:兔子不吃窝边草;可俗话又说:近水楼台先得月! 俗话说:宰相肚里能撑船;可俗话又说:有仇不报非君子! 俗话说:男子汉大丈夫,宁死不屈;可俗话又说:男子汉大丈夫,能屈能伸! 俗话说:知无不言,言无不尽;可俗话又说:交浅勿言深,沉默是金! 俗话说:车到山前必有路;可俗话又说:不撞南墙不回头! 俗话说:人不犯我,我不犯人;可俗话又说:先下手为 …

LTE - Downlink Control

Introduction In LTE, following physical channels are involved in downlink control. Physical downlink control channel (PDCCH) carries Downlink (DL) assignment Uplink (UL) grant TPC commands for a …

Dired

Introduction Aside from editing files, including local and remote ones, Emacs can also play the role of a file manager, i.e., manipulating directories and the files by its directory editor, dired. …

NR - Downlink Control

Introduction In NR system, the downlink control information (DCI) is carried by physical downlink control channel (PDCCH), which physically occupied a region in the 2-dimension resource grid, which …

Data Type

Python中的大部分对象,如列表、字典、 Numpy 数组都是可变对象,大多数用户定义的类型(类)也是可变的。可变对象中包含的对象和值是可以被修改的。但是有一些对象是不可变的,如字符串、元组。 标量 Python的标准库中有一个小的内建类型集合,用来处理数值、字符串、布尔值以及日期和时间。这类“单值”类型被称为标量。主要的标量类型有 int1 前缀 0x 表示16进制整数。 整数除法会把结果自 …

Clean Packages

Archlinux is an excellent Linux distribution, featured by light weight, flexibility, keep it simple and stupid (KISS), as well as well-documented wiki. Therefore, I have been using it for so many …

Pytorch Lightning

Pytorch Lightning is a high level framework and encapsulation on top of pytorch, which provides simplified interfaces and elegant code structure relating to AI. Detailed usage can be found in its …

Wiener-Khinchin Theorem

Wiener-Khinchin Theorem Given a wide-sense stationary (WSS) stochastic process, its autocorrelation function and its power spectral density function are a pair of Fourier transform. Frequency domain …

MLP-Mixer

Multi-layer perceptron mixer (MLP-Mixer) is a novel neural network model, which attracts the attentions of both academic circle and industrial area. Besides the proposal paper, I found another blog …

Sparse Array

Concepts Given a sparse array, the locations of its component antennas/sensors can be normalized to a minimum inter-antenna distance, denoted by $d$, e.g., typically $d = \lambda / 2$. Accordingly, a …

Ranger

Ranger is a popular and powerful file manager in console. Installation In archlinux, ranger can be directly installed using pacman. pacman -S ranger Configuration Ranger can be customized by 4 …

Numerology

Since release 15, new radio (NR) system has explicitly proposed the concept of numerology, which is used to represent the scaling of subcarrier bandwidth, FFT size, etc. Above all, a reference …

Multiple Signal Classification (MUSIC)

Multiple signal classification (MUSIC) is a popular algorithm for spectrum estimation. This post is just written as a brief summary. MUSIC An observation signal vector can be expressed as …

Mathematica

Bracketing Parenthesis (): change the priorities in computing. Square bracket []: function parameters, e.g. f[x]. Curly brace {}: list, e.g. {a, b, c}. Double bracket [[]]: abbreviation of Part, e.g. …

Functions in Python

在Python中,函数通过关键字 def 定义。 参数 从函数的角度,parameter指函数定义圆括号内的变量列表,而argument指当函数被调用时传递的值。 Parameter 变长参数(variable-length) 参数名前加 * 可以表示该参数可以接受任意数目的位置参数。这种情况下,函数会接受元组参数(a tuple of arguments)。以 * 开头的参数只能以最后一个位置 …

Einops

Einstein-inspired notation for operations (Einops1) is a python package which provides extremely flexible and powerful opertions on tensors, e.g., permuting/reordering, reshaping (combining and …

Direction Cosine

In 3-dimension (3-D) space, a non-zero vector can be denoted by \begin{align*} \mathbf{v} = v_x \mathbf{e}_x + v_y \mathbf{e}_y + v_z \mathbf{e}_z, \end{align*} where $\mathbf{e}_x = \begin{bmatrix} …

ZSH

Introduction As is well-known, shell is an interface provided by the Unix/Linux operation systems (OS) to subscribers whereby a user can interact with the kernel of the OS efficiently and …

Zathura

Introduction Zathura is a light PDF viewer, with Vi/Vim-like keybindings. It always reloads and refreshes documents automatically. In this sense, it is naturally capable of providing real time …

Uplink Control Information (UCI)

Introduction Targetting for HARQ acknowledgement and scheduling request, similar to LTE, uplink control information (UCI) is transmitted on physical uplink control channel (PUCCH) or physical uplink …

Tensorflow

Introducation Tensorflow is a deep learning library, which provides two programming interfaces, C++ and Python. Moreover, The Python API integrates very well with numpy. In many places, Tensorflow …

Standard Template Library (STL) of C++

标准模板库(standard template library, STL)是C++标准库的子集, 其大量使用了模板. 容器 STL中的所有容器都是模板, 是泛型结构, 因此可以通过这些容器保存任意类型的数据. 除 array 和 bitset 外, 大部分STL容器的大小灵活多变, 都能自动增长或收缩, 以容纳更多或者更少的元素. STL容器是同构的, 每个容器实例只允许一种类型的元素. STL …

Network time protocol (NTP)

Network time protocol (NTP) is a very convenient service which can provide network time synchronized automatically and periodically. This post briefly describes the installation and configuration of …

Network File System (NFS)

Network file system (NFS) is a simple approach for share and exchange files in Unix/Linux. This post summarizes its installation and configuration. Installation pacman -S nfs-utils Configuration …

GNU Debugger (GDB)

GDB is the world famous GNU debugger, which is very powerful. In this article, its elementary usages can be listed as follows. b(reak) LINE_IDX: set breakpoint in line LINE_IDX. b(reak) FUN_NAME: set …

Font

On Unix/Linux desktop, there are a rich number of open source projects for font rendering. This post lists some pretty excellent choices. Taking ArchLinux for instance, the installations are …

Dynamic Window Manager (DWM)

Dynamic window manager (DWM), as one component of the suckless suite, is a flexible but lightweight window manager for X. This post just summarizes the procedure of installation and customization. …

BASH

Running ways Make the shell script executable: The script should begin with the shebang (e.g. #!/bin/bash). Treat the shell script as the argument of sh: In this case, the shebang is not necessary. …

Sed

简介 Sed 是著名的流编辑器,它能够对文本进行逐行处理,通常需要配合正则表达式使用。具体地, Sed 先把当前行的文本导入 模式空间(pattern space) 对其处理,然后输出处理后的文本。 命令格式 sed [OPTIONS] 'COMMAND' FILE(S) sed [OPTIONS] -f 'SCRIPT' FILE(S) 选项 …

Pytorch

张量 在pytorch中,神经网络的输入、输出、以及网络的参数等都采用了“张量”的数据结构。张量与numpy中的多维数组(numpy.ndarray)非常类似,区别在于张量可以在GPU或其他硬件上运行。 成员函数名称末尾加上 _ ,会采用替换模式,也即该成员函数直接修改张量对象本身。 .item() 返回其具体数值,该方法仅适用于大小为1(也即只含有一个元素)的张量。 .view() 功能为 …

Pandas

Pandas 支持大部分 numpy 语言风格的数组计算。尽管代码风格相似,但最大的不同在于前者是用来处理表格或不同类型数据的,而后者更适合处理相同类型数据的。 数据结构 Series Series 是一维数组的对象,包含 index 序列和 values 序列,分别可以通过对象的 index 和 values 属性获得。 通常需要创建一个index序列来标识每个数据点。如果不显式指定,那么默认 …

Neural Network

Introducation The network is composed of an input layer, an output layer, and optionally a series of hidden layers. Input layer does not carry out any operation/function, but the hidden and output …

Gnus

Gnus is the builtin mail client inside Emacs. As long as Emacs is installed, gnus is available. The bahavior of gnus can be customized in following two files. ~/.gnus (setq user-full-name …

Ebib

Ebib is a tool inside Emacs for bibliography management, supporting BibTeX and biblatex files. This post is just a brief summary of the online manual. Installation Ebib can be easily installed via …

Command Line Tools

Targetting for more features and conveniences, some extremely excellent command line tools are listed in this document, which is encouraged to use. Starship Starship can provide an exciting prompt to …

Python - Fundamental

Python解释器 Python程序运行时,需要Python解释器去执行 .py 文件。下面是一些常见的Python解释器。 CPython 当Python安装好之后,CPython解释器就已经安装好了。该解释器是用C语言开发的,所以被称为CPython。在终端执行 python 命令后启动的就是该解释器。 PyPy PyPy解释器采用JIT技术对Python程序代码进行动态编译,所以PyPy以 …

Beam Pattern

Beamforming Around the decades, multi-input multi-output (MIMO), a.k.a. multiantenna transmission, has been the focus of the research relating to wireless communications, and attracted the interests …

Output Object

In object oriented programming (OOP) based C++ program, we usually need to output the properties and members of one or more objects. In this case, overriding the ostream operator, <<, is a …

Notmuch

Introduction Notmuch is a mail system1. It can efficiently manage a fairly large number of emails. Particularly, it supports fast email searching and filtering based on tags, which is extremely …

Singleton

Singleton plays an important role in program architecturing for its global visibility. For instance, system parameters are usually structured as a singleton. What deserves to be noticed, a singleton …

Gaussian Distribution

Probability density function $X \sim \mathcal{N}(\mu, \sigma^2)$ \begin{align*} p(x) = \frac{1}{\sqrt{2\pi}\sigma} \exp\left[-\frac{(x-\mu)^2}{2\sigma^2}\right] \end{align*} Distribution function …

Z Transform

Given a time domain discrete signal, i.e., a sequence, it can be represented in the complex frequency domain by Z transform. It is essentially an extension of discrete time Fourier transform (DTFT). …

Laplace Transform

Given a time domain continuous signal, it can be represented in the complex frequency domain by Laplace transform. It is essentially an extension of Continuous Fourier transform. Definition Bilateral …

归去来兮辞

序 余家贫,耕植不足以自给。幼稚盈室,瓶无储粟,生生所资,未见其术。亲故多劝余为长吏,脱然有怀,求之靡途。会有四方之事,诸侯以惠爱为德,家叔以余贫苦,遂见用于小邑。于时风波未静,心惮远役,彭泽去家百里,公田之利,足以为酒。故便求之。及少日,眷然有归欤之情。何则?质性自然,非矫厉所得。饥冻虽切,违己交病。尝从人事,皆口腹自役。于是怅然慷慨,深愧平生之志。犹望一稔,当敛裳宵逝。寻程氏妹丧于武昌,情在 …

多态

简介 多态 是C++语言的一大特色。一个操作随着所传递或捆绑的对象类型的不同能够做出不同的反应,其行为模式称为多态1。而且,仅仅对于对象的指针和引用的间接访问,才会发生多态。 虚函数 在使用类的C++语言中,抽象编程需要使用 虚函数 机制。基类与派生类的同名操作,只要标记上 virtual2 ,则该操作(虚函数)便具有多态性。一旦标记基类的函数为虚函数,便有连锁反应,后面继承的类中一切同名成员函 …

ZC

Introduction The Zadoff-Chu (ZC) sequence1 is named after Solomon A. Zadoff and D. C. Chu, which is a constant amplitude zero auto-correlation (CAZAC) sequence2 with its cylically shifted versions …

Wiener Filter

设观测信号\(x(t)\)为期望信号\(s(t)\)和噪声信号\(n(t)\)的叠加,也即 \begin{align*} x(t) = s(t) + n(t). \end{align*} 其中,\(s(t)\)和\(n(t)\)是宽平稳过程,且相互联合宽平稳,观测信号\(x(t)\)和期望信号\(s(t)\)的自相关函数和互相关函数分别为\(R_x(\tau)\)、\(R_s(\tau)\)和 …

Wanderlust

Introduction Wanderlust is also a mail client within Emacs. This post aims to summarize the procedure of its installation and configurations. Installation Wanderlust can be directly installed via …

Tikz in Orgmode

Tikz/pgf is an excellent $\LaTeX$ package to draw pictures. It can be used in Emacs org mode. An example can be provided as follows. \begin{tikzpicture} tikz statements; \end{tikzpicture}

Table in Orgmode

Introduction Orgmode provides a minor mode orgtbl-mode, which makes table creating and editing extremely easy. Any line with | as the first non-whitespace character is treated as a part of a table. …

Switch in C++

在C/C++语言中, switch 语句的通用格式为 switch (int_expr) { case label1: statement(s) case label2: statement(s) ... default: statement(s) } 顾名思义, int_expr 必须是一个结果为整数值的表达式。另外,每个标签都必须是整数常量表达式。最常见的标签是 int 或 char 常量( …

SSH

Secure shell (SSH) is the most popular and efficient method for remote access. This post introduces SSH relevant issues, from installation to configuration. Installation Take Archlinux for instance …

Regular Expression

正则表达式是指用于字符串匹配的一种模式,最早出现于20世纪40年代. 字符集(字符组) [] [0-9] 可以匹配0到9范围内的任意数字.可以简写为 \d. \D 可以匹配非数字字符.相当于 [^0-9] 或 [^\d]. \t 可以匹配水平制表符. \v 可以匹配垂直制表符. \f 可以匹配换页符. \n 可以匹配换行符. \r 可以匹配回车符. \s 可以匹配空白字符.相当于 …

PgfPlots

Introduction Pgfplots is an excellent $\LaTeX$ package to plot high quality graphs. This post just summaries its basic usages. Installation Pgfplots is a built-in package in the texlive. As long as …

Package Management

Introduction One of the most charmful characters of Python is its a rich number of packages. Accordingly, package managers emerge, e.g., pip, setuptools. This post just briefly introduce the usage of …

Mutt

Mutt is a text-based but powerful mail user agent (MUA) in the world of Unix/Linux. Originally, it is nothing but a MUA. However, it can make use of other programs to edit, send and receive mails. …

Multithreading in C++

背景 C++98/03不支持多线程编程, 所以必须借助第三方库或目标操作系统中的多线程API. 这使得编写跨平台的多线程程序很困难. C++11引入了标准的多线程库, 使得多线程程序跨平台更加容易. 目前的C++11标准仅针对CPU, 不支持GPU. 多线程编程的难点之一是将算法并行化, 这个过程和算法的类型高度相关. 此外, 要防止竞争条件和死锁, 并考虑缓存的一致性. 竞争条件 当多个线程要 …

Mu4e

Introduction mu4e is an excellent mail client for Emacs whereby sending/getting mails can be carried out in Emacs. For an Emacs user, the deep integration gives rise to great convenience and …

Movement in Emacs

Character-wise movement Key binding Purpose C-f Move forward by a character C-b Move backward by a character C-p Move to previous line C-n Move to next line Word-wise movement Key binding Purpose M-f …

Microcode

Introduction Microcode is a technique that imposes an interpreter between the hardware and the architectural level of a computer. Processor vendors, e.g., Intel and AMD, release updates to the …

MATLAB over SSH

If MATLAB is installed on a secure shell (SSH) server, which is avaiable for access, we can run MATLAB remotely through SSH. In this way, MATLAB is running in symbol environment without X display, …

Matched Filter

设时间\([0, T]\)内的观察信号\(r(t)\)为信号\(s(t)\)和噪声\(n(t)\)的叠加,也即 \begin{align*} r(t) = s(t) + n(t), \quad t \in [0, T] \end{align*} 如果要设计一个冲激响应为\(h(t)\)的滤波器,使得其输出在\(t = T\)时的信噪比(signal to noise power ratio, …

Machine Learning

Introducation Machine learning (ML) is a subfield of artificial intelligence (AI). Application Image processing Image tagging Optical character recognition (OCR) Self-driving cars Text analysis Spam …

LTE - PDCCH & EPDCCH

Introduction This post provides a brief summary on physical downlink control channel (PDCCH) and enhanced physical downlink control channel (EPDCCH) in long term evolution (LTE). Note the summary is …

LTE - Mobility Management

The most remarkable character of mobile communication, which differs from other communication methods, is its mobility. The mobility can fall into two categories, intra-radio access technology (RAT) …

LTE - Frequency Domain Location of Carriers

An LTE carrier, in principle, can be positioned anywhere within the spectrum range. In order to save the time consumption of carrier search for UE's, it is necessary to introduce additional …

Link in Orgmode

Introduction Orgmode is an extremely powerful tool for get thing done (GTD), project planning, note keeping, etc. Orgmode makes it fairly easy to insert, edit, and reference to a variety types of …

Language Server Protocol (LSP)

Introduction Language server protocol (LSP) offers a uniform specification between a client and a server1. The Language Server protocol is used between a tool (the client) and a language smartness …

IT++

Introduction IT++1 is a powerful C++ library, which is widely employed in the area of communication, esp. in simulation programming and computing. It has provided a variety of useful classes, e.g. …

Helm

Helm1 is a framework to narrow selection. It can be installed by ELPA M-x package-install helm After that, it should be configured accordingly. Without loss of generality, following configurations …

GitLab

Introduction Gitlab is a code management service based on git. It is very powerful and suitable to collaborated development within a team. Installation Generally speaking, the deployment of gitlab is …

GitHub Pages

It has been quite a long time for me not to write and publish blog since Google blogspot and WordPress were blocked. Recently, I have built a new blog site on GitHub. This post is just written to …

Gantt Chart

Introduction Today, I found an interesting $\LaTeX$ package, pgfgantt. This package provides a ganttchart environment and, as its name indicates, can produce Gantt charts. Usage The framework of …

Flycheck

Introduction Flycheck1 is a on-the-fly syntax checking extension of Emacs, which supports a variety number of programming languages. It greatly facilitates the programming experience. Installation …

Export to HTML5 Slide

Introduction As is well-known, orgmode is a famous major mode of Emacs. What deserves notice, it can export org files to a variety of formats, e.g. $\LaTeX$, pdf, text, freemind. Today, I found an …

DOT

DOT 1 is a language for drawing graphs. It has three main kinds of objects, graph, node and edge. Each object has a variety of attributes. Given a node or edge, its attribute(s) can be set as below …

Data Abstraction from a MATLAB Figure

Provided a MATLAB figure file, e.g. FILE.fig, the original data can be abstracted by following procedure. open('FILE.fig'); % open the figure file fig_handle = findall(gca, 'type', …

D2D

Overview In LTE-Advanced systems, the link for D2D communication is termed sidelink 1. A sidelink carries two physical signals DMRS Synchronization signal and four physical channels Physical sidelink …

Convex Optimization

A mathematical optimization problem can be expressed as \begin{align*} \min & f_0(x) \\ \text{subject to} & f_i(x) \le b_i, \quad i=1, \ldots, m \end{align*} where $x = (x_1, \ldots, x_n)$ …

Company

Introduction Auto-completion is an important functionality in Emacs. It can greatly speed up our editing and programming. Generally speaking, the auto-completion can be divided into two parts, …

CDLaTeX

Introduction CDLaTeX1 is a minor mode for fast $\LaTeX$ environment and macro insertion2. In this sense, its functionalities are very similar to AUCTeX3. What's more, some of its convenience …

C++ - 标准库

本文是阅读 Professional C++, third edition 中文版1的读书笔记. C++标准库的核心是泛型容器和泛型算法. 包括标准模板库(Standard Template Library, STL). 所有标准库类和函数都在 std 名称空间中声明. 包括如下组件: 字符串 定义在头文件 <string> 中的 string 类. 正则表达式 定义在头文件 …

Basic Configuration of Emacs

As is well-known, Emacs is a powerful editor. Due to its infinite customizability and extensibility, in some sense, it is an operation system (OS) rather than an editor. This page briefly introduces …

Aurora

Aurora is an excellent $\LaTeX$ addon of Microsoft Office, which enables LaTeX based mathematical support, including a variety of symbols and equations. For Microsoft Office-32, there is a dedicated …

Thread Pool

Introduction Threadpool is a C++ thread pool written by Philipp Henkel based on boost library. It provides a variety of thread pools with easy usage. Installation As a prequisite, boost library …