Yi's Blog

目之所及,尽是萌芽

Minimum Selenium Tutorial

Selenium is an umbrella project for a range of tools and libraries that enable and support the automation of web browsers. In my own words, it’s a solution for you to manipulate a browser in scripts.

As you can imagine, this can be useful in many ways. In tech companies, this is used to test web pages. For personal projects, we can use it to crawl some information which is hard to query directly.

Migrate Away from Octopress

I have been using Octopress since 2012, and it works fine for me in all these years. But unfortunately the project has been abandoned since January 2015, which means it depends on a lot of legacy packages, and misses a lot of fancy new features. For example, the version I was using depends on jekyll-0.11.2, while jekyll-4.0.0 was already released in August 2019.

新域名 WANGYI.AI

启用全新的域名 WANGYI.AI,并增加了 SSL 支持。

选择了 AI 域名后缀,并不是会写更多和 AI(Artificial Intelligence) 相关的内容,而主要是因为 COM 和 IO 域名后缀无法购买,AI 作为关键词,和计算机密切相关,也有人对于自身智慧一无所知的神秘,用作域名,对自己也是一种提示,不要忘记对于未知的敬畏。

增加 SSL 支持。在调试新域名的过程中,发现 HTTP 流量会被未知服务器缓存,无法调试(事后发现,是我在设置 DNS 的时候,IP 地址打错了一位,解析到了别人的服务器,造成的囧境),所以就购买了一个 SSL 证书,并在 Nginx 中启用了新买的证书。

Extract Subtitles From TV Shows

Round Table Party

In the past 3 years, I really enjoyed watching a Chinese talk show called Round Table Party (I couldn’t find any official English name in the show, this name is used a few in other sites, so I am not sure this is correct. It maybe called Table π instead.), which was made by a famous Chinese TV show host Dou Wentao.

YouTube 观看历史分析

来到美国之后,访问 YouTube 不再需要翻墙了,看的视频也越来越多。后来办了 YouTube Premium,看视频没有广告,更是把 YouTube 视频当成了日常生活的背景音,一刻也不闲着,生活在刷 YouTube 视频中度过。

视频看得多了没觉得有什么问题,毕竟视频作为一个传播的媒介,有许多文字和声音无法媲美的特性,好的视频能在短时间内传递大量的信息,并且让人记忆犹新。

二〇一九年终总结

cactus

二〇一九年转眼就要结束了,年终岁尾,总结一下过去一年都经历了一些什么,给将来一个念想。

Notes with Dictionary Lookup History

Notes

Learning English is so important after I moved to US. Without sufficient English skills, I can’t communicate clearly with my colleagues, and can’t even have a relaxing and sometimes cheerful daily life. Even more seriously, I feel anxious if I couldn’t fully understand the conversations around me. So as a result, the crisis pushes me learning English. One of the important parts is reading books that others read. During reading, I inevitably encounters unknown words. So I look up dictionaries on my iPhone and MacBook all the time.

One important missing feature of the Dictionary app on macOS for me is saving lookup history. Without the ability to review what I have looked up recently, I end up looking up the same words over and over again. As a programmer, I will solve it with a program for sure.

上海情书

钱仓路

两年多以前写给老婆的几段文字,怀念在上海钱仓路时的生活。

编程题目

说来惭愧,作为一名已经工作了四年的程序员,我并没有做过多少编程题目:在 2014 年准备面试的过程中,在 LeetCode 做了 100 多道题目,笔试 Google 在 CodeJam 上做过个位数的题目,工作期间偶尔为面试准备几道题目。究其原因,一方面是自己懒惰,工作上的事情常常是焦头烂额,忙不过来,偶尔休息,就想放松一下,做点远离电脑屏幕的事情;另一方面,编程题目总是给我一种在健身房锻炼的感觉,偶尔锻炼可以保持头脑清醒,健康地工作生活,而天天健身,把大把时间奉献给健身,把健身作为一个事业来追求,至少是现阶段,这并不是我所想要的。