Binary, Decimal, Graycode

Gray code Gray code can reduce the errors of changing bits (or switches). It only needs to change 1 bit at a time to increments the decimal number. Example 1 decimal binary gray code 5 101 111 6 110 101 From 5 to 6, binary has two bits changed, while gray code only changed 1 bit. XOR is the method of converting binary to gray code....

May 26, 2019 · Kyle Fang

Rotation Matrix

$P = (x, y) = (1, 0)$ $P' = (x', y' )$ $\cos{\theta} = \frac{x'}{x}$ $\sin{\theta} = \frac{y'}{x}$ therefore: $x' = \cos{\theta} \cdot x$ $y' = \sin{\theta} \cdot x$ similarly: $Q = (x, y) = (0, 1)$ $ Q' = (x', y' )$ $\cos{\theta} = \frac{y'}{y}$ $\sin{\theta} = \frac{-x'}{y}$ therefore: $x' = -\sin{\theta} \cdot y$ $y' = \cos{\theta} \cdot y$ add them together: $\begin{bmatrix} \cos{\theta} & -\sin{\theta} \\ \sin{\theta} & \cos{\theta} \\...

May 14, 2019 · Kyle Fang

Jibber Jabber 3

iPad iPad Pro 新出了一系列的 how-to 广告和 Life on iPad。看完之后产生了自己的生活也像广告中的那样精彩的幻觉:到处旅行,制作音乐和视频,能策划婚礼和生意,时不时和两三个人视频通话,还能单手旋转带着 Apple Pencil 的 iPad 并且不让任何部件掉在地上。 实际上我的生活比这单调的多。iPad 派不上什么用场。 溪谷恩说 Surface 指不定就行。 看了之后觉得 Surface 的广告不行。 我觉得我就不可能会突然拿着平板开始和一群不认识的人在街上或者办公室跳街舞。太羞耻了。平板还可能会掉进喷泉里或者摔在地板上。 撇开 Surface 不说,iPad 实际上就是一个能用 Apple Pencil 的大屏幕 iPhone。iOS 和非鼠标操作极大地限制了 iPad 在专业领域能发挥的作用。在 Surface 和 iPad 的广告中都在使劲强调“笔”这个配件。设计师,艺术家,文字相关的工作,还有学生,可能会从中受益。但是我不能用它编译代码或者制作 3D 模型的话,iPad 对我来说就是个玩具。虽然 Apple 一直宣传 iPad 是电脑的替代品,可是它的使用场景实际上是非常有限的。 没用过 Surface。考虑到它的系统是 Windows,我感觉它站在笔记本和台式机的中间某个位置。 Calvin Ball Calvin Ball is a game. Go back to the magic circle theory and ritual, wearing Calvin mask, which is the only fixed rule, is the ritual....

April 19, 2019 · Kyle Fang

方便面 3

又开始迷上方便面了。上次吃日本的日清拉面,因为太好吃就吃到想吐。 这次吃韩国的。 Hot Chicken Flavor Ramen 就是那个有的人说辣,有的人说不辣的火鸡面。对于我这种不能够吃辣的人来说,肯定是辣的。 每一包有一个面饼,一包芝麻和蔬菜,一包辣酱。 辣酱放进去后很快就出现了那种红油一般的颜色。已经可以感受到辣味。我在煮面的时候室友刚好走进厨房,立刻打了个喷嚏,也不知道是不是因为辣。尝起来算是比较辣的面。我的感觉是在甜椒之上,干辣椒之下。这个排名没什么用处,但我这几年来吃过的辣椒也就这两种,所以也做不出什么比较。 吃的时候请用遮挡物围住衣服。有先见之明的我成功保护了我的衣服。 Nongshim Chapagetti 谷歌告诉我这是炸酱面。 每一包有一个面饼,一包蔬菜,一包粉料,一包油。 韩国的面包就比较厚实。每一根面条都是比日清或者康师傅的面条的要粗一些。 煮起来没什么味,吃起来也没什么味。但是很魔性的还想吃?就莫名其妙地还想吃。吃了两天后终于腻了。 Nongshim Neoguri 这个是辣的海鲜面。 每一包有一块面饼,一包粉料,一包蔬菜。 煮面的时候香味四溢。辣味比火鸡面弱很多,在我的可接受范围中。面条很有嚼劲。 我觉得比前面两种都好吃。 Shin Noodles 辛拉面。 每一包有一块面饼,一包粉料,一包蔬菜。 很 Neoguri 很类似,但是有更强的刺激性气味。并不是贬义。 就一般的辣味面条。 Samyang Ramen 三养拉面。 每一包有一块面饼,一包粉料,一包蔬菜。 这个是属于那种长了后会觉得“这就是方便面”的方便面。味道比辛拉面好,和 neoguri 是一个级别。面条比其它的都要细,也没什么嚼头。汤汁很好喝,而且是包装袋上的那种橘红色,不像火鸡面的汤就是辣油的颜色。

April 19, 2019 · Kyle Fang

Jibber Jabber 02

I’m afraid of the night because of nightmares. I have been having them since I was diagnosed as having depression. My dream contains a continent of bizarreness. Strange and perplexing things dwell on it. The unpredictable horror disguised in various forms comes to me every night. Soon, they escape and vanish in the air in the morning. Only the unsettling feeling tells that how ill it was at last night....

April 15, 2019 · Kyle Fang