Beyond Trump

经历了上周的大选大戏,和这周开心又无奈的等待,看起来终于大结局快要揭晓了。Biden 306票这个数已出,Trump的各种闹剧诉讼也扑腾不出几个水花。程序走下去迟早要把这个史上最烂总统扫地出门的吧。

大选从上周二开始。周一看各种报道感觉民主党一边还是挺乐观的,NYT的The Daily讨论的几种情况里着墨比较多的是一上来拿下佛罗里达/乔治亚这样一边倒的大胜。下午开始看了一会儿网上和电视直播的选情,感觉还挺乐观,喝了两杯就昏昏睡去了。晚上十点多醒来一看吓了一跳,摇摆州几乎一片红色。。佛罗里达也已经被反超了。当即就有一种擦擦擦难道要再来四年的感觉。虽然看了很多分析说邮寄选票和提前投的票统计得慢而且偏蓝,所以会蓝移(blue shift)。但看到一片红色领先还是很难淡定。躺在床上焦虑的刷了俩小时手机,又起来看了半天选情。看到了Trump宣布自己胜选的那个发言(“Frankly, we did win”),真是怒向胆边生。Twitter上喷了一句再去睡了。

周三早上起来一看发现状况好了不少。有一些大州翻蓝,还有一些趋势向好。这一天就在胶着状态。对我工作效率影响很大,因为不停的刷NYT和FiveThirtyEight的选情页面。。16年的时候投票当天就出结果了。这次虽然慢但很多人都觉得数到第二天应该能出结果,然而并没有。这天在AZ还没出问题之前其实如果Nevada能数完那就可以call拜登赢了。然而NV很鸡贼的拖延了很久直到自己的票数已经无关大局才数完……

周三下午的焦点就移到乔治亚了(GA)。GA作为三个重点争夺的大州之一如果翻蓝影响还是很大的。Trump在GA的早期优势很大,然而后面蓝票追得很多。到周三晚上数了90%+,从趋势来看会翻蓝。很多报导分析剩下的票是从哪个郡(county)出来的以及各个county的,分析结果也是很有希望。从这里开始,关注选情已经要从州细分到郡了。。

周四开始焦点又移到了宾州(PA),拜登的老家,20票的大州。和GA的情况类似,也是后来数的邮寄+城市圈选票很蓝。这两个州都是数到了95%以上,NYT上的图做个简单线性拟合就能看到数完的话都很有希望翻蓝。然而不知道为什么最后这百分之几的票都数得超慢。

周五早上起来就看到GA翻蓝了,但差距很微小,只有几千票。随后PA也翻蓝,并且差距随着数票继续扩大。这时候有一些比较激进的媒体就call race了。但大媒体都比较保守,于是磨磨唧唧又等了一天。

周六上午十一点半,联合社(AP)和一批大媒体宣布拜登胜选。全城一片欢腾。我下楼去溜了两趟,行人都在庆祝,街头各种唱歌跳舞的。随时走着就会有人鼓掌然后就一片鼓掌起来。随时都有车辆按着喇叭或者大喊着Fuck Trump驶过,然后路边就一片欢呼声。公园里整个就是个大party,到处都是音乐声,公园一角的路上一大堆人在跳舞,场面相当热烈。大家主要庆祝的并不是拜登当选,而是川普滚蛋。。四年下来真的受够了。

各大媒体宣布拜登胜选的同时,Trump的幕僚还在Four Seasons Total Landscaping开了新闻发布会(可自行google这个编剧都编不出来的段子)。这个梗真是他这出闹剧的一个完美收场。

今年看的几个综艺

前几年甚少看综艺节目,今年不知怎么看了好几个。随便评论几句。

先看的是《乘风破浪的姐姐》(aka. 浪姐)。起因大概是因为这档节目找来的明星有一些我还知道点儿,年龄段比较符合。虽然后来戏份主要还是集中在我之前不怎么知道的人上,但这个一半歌舞一半真人秀的节目娱乐性和观赏性都还挺强的,于是也就看下去了,还特地买了几个月芒果TV的会员。

看浪姐的的感觉是国内这些综艺节目的舞美是真的很酷炫。参演的姐姐们每两周就得拿出一堆歌舞也是下了功夫,挺辛苦的。然而这个节目有个问题就是这个“女团”的概念到底算是怎么回事,最后的“成团出道”到底意味着什么后续。这个颇为拧巴的问题越到后来就越明显,以至于整个节目的口碑都有点高开低走。

不管怎样,看完之后我还follow了其中几个人的ins。从简单的为每个人吸引人气的角度来说,还是很成功了。

其次看的是《乐队的夏天2》。去年看了乐夏1,很不错。今年的乐夏2我看的时候有些心理准备。第一部好的东西第二部总是压力很大,不太砸锅就算还可以了。结果一出来果然就有口碑崩盘的趋势,老牌乐队名不副实的表演,一些看起来不错的新晋乐队的淘汰,节目剪辑过于浅薄,控制选票赛程过于明显。。各种问题都有。还好到后期质量有所回升,决赛看完的感觉还算圆满。重塑和五条人前两名实至名归。

然后看了一点点《脱口秀大会3》,看了一小时就懒得继续看了。第一集是早期晋级赛,水平良莠不齐也是正常。有几个说得其实还是不错的。但观众笑点太低了,或者节目剪辑的笑声太激进,不怎么好笑的地方也一堆大笑就有点disturbing……

最后,值得一提的是这三个综艺的赞助商都是乳品公司。。。

Civilization 6

前一阵子在twitter上看到文明6白金版在打折,只要30$,加上又开始用PC了,就顺手买了个来玩玩。xw经常念叨说想玩文明因为她以前玩过某一代。于是我们hot seat了两盘。谈谈感想。

首先解释一下hot seat,就是多人用一台电脑轮流玩。。这种古老的回合制游戏玩法当年还是很流行的,记得高中的时候会几个人围着一台机器玩英雄无敌,还有更早没电脑的时候去机厅,为了省钱五六个人围着一台电脑玩大富翁。。时隔这多年,网上联机玩回合制游戏已经变成了主流,然而坐在一台电脑前互相催着快点结束的hot seat还是别有一番韵味。

文明是一个有点介于桌游和电脑游戏之间的游戏。一方面我贴有六角形棋盘的桌游照片经常被不玩桌游的人评论像文明,另一方面文明自己也有很著名的桌游版Through the Ages。我玩过新版和旧版Through the Ages,都不怎么喜欢玩,总觉得这游戏太拖沓;但电脑版的文明系列我却从来没玩过,可能因为文明系列流行的时候我已经只玩主机游戏了。这次玩了玩文明6,确实感到这里面很多资源管理的机制都是和桌游共通的,然而维护复杂度远远超过了一般桌游的程度,只适合做成电脑游戏让电脑去算了。

文明个人感觉比较有趣的点一个是多种胜利方式,军事/文化/科技/外交/宗教这几种方式都可以胜利,每个子系统都做得有板有眼,也比较好的融合在了一起;另一个是跨时代碾压的快感很强,打电脑的时候很容易出现科技领先对手一个甚至多个时代的情况然后就可以坦克打骑兵什么的。但打电脑总的来说并没有多少挑战,基本就是变着花样戏耍而已。而高难度下电脑的强度是资源方面的优势,我并不确定我会有兴趣去做这种挑战。感觉大概率就是尝试一下各种胜利方式和一些看起来有意思的领袖也就放下了。到现在打了两盘,一盘宗教胜利一盘外交胜利。

又养猫啦

在这个一切都脱离了正常轨道的年份里,年初立下的三个目标中相对比较容易实现的一个就是养猫了。波波去世也有四年了。这几年我一直想再养一只,但xw对猫的品相颇有想法,而美国的猫舍又少得可怜,小猫都十分抢手。在经过长达一年的寻猫过程之后,终于在纽约附近找到了一只silver tabby(银虎斑美短)。

上周四(十月一号)我特地租了辆车开赴上州去接猫,路上顺便探访了一下riki一家。接猫过程很顺利,小猫待在包里一路偶尔吱哇叫叫,后来估计也累了就趴下睡了。

关于这只小猫的起名我们考虑了一阵子。xw起了大名“子墨”,我起了英文名Momo。但平时叫“墨墨”好像有点奇怪,会觉得是在呼唤南方来的兄弟,于是小名就叫“木木”了。

木木是只三个月大的小公猫,淘气亲人,习惯良好。在家里最喜欢玩的东西是数据线,但只扑不咬;最喜欢趴的地方是HM的电脑椅,但磨爪子会去自己的猫沙发。我们叫他名字他还没太大反应,但走到另一个屋的时候他一般都会在后面颠颠的跟着,或者从后面追上来在两脚之间嗖的一下窜过。吃饭的时候他也会去食盆等着开饭,晚上关了灯他会在被子上兴奋的到处扑腾个几分钟,然后就也一觉睡到天大亮,迅速融入成了家里的一分子。

Windows, Long Time No See

After working from home for a few months, we decided not to renew Flux’s office lease. So I brought a monitor back for my home work station. A problem soon surfaced: my 2017 13-inch Macbook Pro got annoying noisy when connected to a 4K monitor. Its fan speed shot up to maximum frequently and the whole system got slightly sluggish. So I started thinking: since there is little need to travel with a work laptop now, why not get a desktop?

Mac Mini is not powerful enough, Mac Pro feels like an expensive toy, and I don’t need another screen at home so iMac is out, too. It has been 10+ years since I used Windows. And I heard this new WSL2 (Windows Subsystem for Linux) thing was great. Let’s give it a try! The last time I used Windows for work was more than 10 years ago.

I wasn’t really in the mood of assembling a PC, and kind of want to get it to work asap. So I ordered a Dell XPS desktop. It arrived in a few days with Win 10 pre-installed. I connected it to monitor, my Apple mouse/keyboard. All worked! Great, but…

The single biggest challenge right off the bat was the shortcut keys… With ⌘ replaced by ⊞ Win and my strong muscle memory of using ⌘ shortcuts, it took me quite a while to map all these shortcut keys… PowerToys from Microsoft include a “Keyboard Manager” which can do most of them. (I later found PowerToys is not very reliable and the shortcut keys stop functioning from tiem to time). But then I need to use AutoHotKey to map out a few weird ones, such as disabling that “ctrl+scroll” zoom. Last but not least, a bunch of application-specific shortcut keys needs to be tweaked, e.g. VS Code. It was no fun. My biggest suggestion is to use a PC keyboard other than Apple’s Magic Keyboard.

Adjusting and getting used to the display was another pain in the butt. It took me a while to realize the “recommended” 150% zoom level on a 4K monitor was still way too small for me. I adjusted it to 200% and it looked much better. Fonts look different but generally OK in those popular apps (browser, code editor, terminal, etc).

The fun part started with WSL. It was actually really easy to install WSL, install a Linux in it, and get it to work with VS Code. Windows Terminal and Docker on Windows are two other things that integrate well with WSL. Basically, I installed dev tools in WSL: Git, Brew (yeah I was surprised Homebrew actually has a Linux version), Postgres, node, etc; checked out codes into WSL; use VS Code Remote WSL to connect to WSL. Then it’s a good combination of the two systems: all GUI run in Windows and all commands/servers run in Linux. Auto port forwarding makes it pretty seamless to use the two environments together, meaning you can start a server at port 3000 in WSL then open http://localhost:3000 in Chrome on Windows and it automatically works.

This desktop’s performance is as expected. For starter, It runs our API tests twice faster than my laptop… This one single reason justifies the hassle of switching. And I threw another 32G ram to the gig, now it runs any usual web dev workload without breaking a sweat. #peace

Common applications were easier to replace than I thought. Fortunately, most day-to-day tasks can be done in a browser now, or Electron-based apps that look the same as their Mac version. I don’t want to pick up another set of Mail/Calendar shortcuts, so I just use pinned tabs in Chrome for mail and calendar. Other apps that stay on the taskbar during worktime are Windows Terminal, VS Codes, File Explorer, Slack. Other apps I open from time to time for work are Zoom, Firefox. TablePlus, and Postman. After spending a day or two to get used to the Windows system and fonts, things are not bad.

There were definitely some tough issues. It took me about a day to figure out how to run Cypress testing… The solution was to run web servers (front-end and backend) in WSL and Cypress in Windows, and web servers need to bind IPv4 0.0.0.0 instead of IPv6… which showsWSL’s port forwarding doesn’t magically work for everything.

And one last benefit of using Windows is I can play some games on PC now. I bought Terraforming Mars on Steam the other day and found it only supported Mac :/ And maybe I’ll play Civilization 6 sometime? Anyway, nothing in mind right now.