Ledger 一年记

2020/2/26 10:49 PM

不知不觉 Ledger CLI 已经用了快一年了。这个简单的命令行软件在这一年里帮了我不少忙,回答了很多财务上的问题,帮我记录了收入和开销的细节,也能追踪各个账户的余额一览。

感受之一是,Ledger 并没有一个简单的替代品。找了这么多的图形界面 app,从简单记录开销的独立小型 app 比如 Next,到专业级别的 MoneyWizMoney Pro,都没能解决一个最最基本的需求:追踪和朋友的欠债。如果替朋友垫付饭钱,钱从现金(资产)账户同时流入应收账款(资产)账户和消费账户,一笔交易同时牵扯三个账户,这就干倒了一片图形界面 app;朋友还钱的时候,钱从应收账款账户流入现金账户,是一个资产到资产的转账,同类别账户之间的交易又干倒了一大片图形界面 app。

2020/2/25 10:00 AM

Every social media post — cool, cute, daredevil, inspiring, and aspirational — will seem nothing but lame if you picture the author typing out each and every letter of it.

It’s just never cool to be mincing words and catering to anyone.

The Ulysses App

2020/2/24 10:21 PM

最近跟着 Setapp 用起了 Ulysses,暂时替代了用了没几个月的 Drafts。最初用 Drafts 是因为需要一个快速便捷的文本收件箱,能够用来保存平时脑子里蹦出来的想法;之后再通过各种 Action 派送到 Things 执行、到 Bear / 备忘录收藏,或者发布到这个博客(或者成文发布到探店美食生活杂志)。

后来发现把想法和草稿写成文章的频率要远远高于发送到 Things 和收藏到 Bear,便也没了一直要用 Drafts 的想法。Ulysses 这时候就是一个更能帮我快速重新捡起之前的草稿和进度的 app ——它还是一个草稿箱,这并没有什么改变;所有成文发布的作品就没有必要继续留在这里了。

There isn’t a thing as a “tech lover.”

Technology brings around many possibilities. It improves our lives in many different aspects.

Maybe it’s a better enjoyment of life with a more colour-rich TV, a speaker with better sound quality, or a gourmet piece in the kitchen that enables new recipes.

Maybe it’s about less pain with everyday tasks, with a more powerful vacuum, a smarter laundry, or quieter dishwasher. Or it can be as small as a wireless charging pad that saves you from plugging and unplugging a cable twenty times a day.

Maybe it’s something that empowers you to do the things you love, like a lightweight pair of headphones that powers you through a workout, or iPad and Pencil that get ever so close to pen and paper.

But to blanket those needs and wants as technology is lazy. Calling your customers “tech lovers” is only the result of this laziness.

Gift ideas for tech lovers --- Best Buy Canada

“Gift ideas for tech lovers.” — Best Buy Canada. Don’t even get me started on the different colouring choices for “Tech” and “Lover.”

Hollyburn Trails

2020/2/17 10:39 PM

Hollyburn Trails

Hollyburn Trails, Cypress Mountain. iPhone XS.

Family Day 每年都来的悄无声息,组里边的同事3/7个人都不知道有这么个长周末。自从BC省改了时间,Family Day就会同时和情人节、我的生日同时出现,有时候还要撞车农历新年。反正随随便便的内陆滑雪计划搁浅,临时拆成了一天 Grouse Mountain 滑雪、一天 Cypress Mountain 爬山、一天在家里自闭养生。

这不就来了 Cypress Mountain 的 Hollyburn Trails。

朋友带着家里 11 月大的拉布拉多 Mochi,我们租了雪鞋沿着 Hollyburn Trails 往上走,拍照的地方可以回看到山下和海上的风景——时间赶的也巧,再晚一小时就变成下雪大雾天气,什么也看不到了。

Mochi in the Snow

Mochi in the snow. (c)minix_93

再送一张相机拍的 Mochi。

Backing Up My Mac in 2020

2020/2/14 10:22 PM

See Ya, Time Machine

Let’s be straightforward: Time Machine is a buggy piece of software. I’ve had a lot of trouble with setting up Time Machine on the Synology at home, primarily because of the network. I’ve tried the combination of AFP/SMB/SMB3 by wireless and by cable, but the backup was either impossibly slow for an initial backup, or too unstable after a few weeks that the Mac “must create a new backup” for me. And if I say yes, all my previous backups are gone with my history of files.

And coincidentally, there have been numerous reports of Time Machine backups that cannot be properly restored. Then my non-network external hard drive — the one that contains my backups for the last three years, and the same one that followed me to China and back — is also having the problem where Time Machine has to “create a new backup,” so there’s the last straw.

Clothing Favourites

2020/2/7 11:20 PM

A few purchases I made recently, coincidentally all from companies on the Pacific coast —

The Stay Dry Jeans from Duer is a functional pair of jeans with DWR (durable water repellency) treatment. It’s not technically “waterproof,” but is more than enough to keep me dry in light or medium rains for 10 minutes. I’ve also got their plain jeans a few months back, and they are both great — breathable and stretchy fabrics that never lose the shape. They are now my go-to for business casual days (which are five days a week). Now I’m craving their actually waterproof “All Weather Jeans” — probably a nice pair of pants to have for winter hikes or snowshoeing.

Making a List

2020/2/1 11:42 PM

Every year I update a few lists in Things app — Movies 2019, Books 2019, Destinations 2019, and Things to Buy 2019. I found that it helps me keep track of things I want to do, but don’t have to do it when. The annual review will help reflect what I have done and what I have outgrown (or rather, what I’ve decided to jettison).

I crossed off quite a lot of things as Canceled for 2019, and only brought a few into 2020. It’s only the things we leave behind that allow for space for better ones.

JetBrains Mono

2020/1/30 9:51 AM

JetBrains — the company behind popular IDEs such as PyCharm — just published their open, free-to-use font family for developers. It’s called JetBrains Mono.

The font boasts clear, sharp, and unequivocal font designs. The text looks sharp on my MacBook Pro’s Retina display, on the 4K monitor it connects to, and it is more enjoyable than Menlo and Monaco.

What’s Working

2020/1/14 10:50 AM

What’s Working is a weekly podcast show that I discovered recently. It’s all about the side of the office life that people don’t talk about — awkwardness, embarrassing stories and weird happenings. It’s my weekly dose of brightening up on Monday mornings.

2020/1/11 9:48 PM

小孩子才要搞清楚什么是出轨什么是忠贞,成年人会思考自己言行对别人带来了什么影响。小孩子才要搞清楚定义,成年人在乎的是结果和影响。说到底,搞清楚规则和定义往往是为了在游戏规则的线里越玩越大。

Finite players play within boundaries, infinite players play with boundaries.

问题是,你把感情看做是一个有限的游戏还是一个无限的游戏?A finite game is played for the purpose of winning, an infinite game for the purpose of continuing the play.

Previously: Finite and Infinite Games, Revisited

The Most Critical of All

2020/1/9 10:18 AM

Some ideas I had while reading through what’s in Code Complete, pp. 115:

Collaboration can take any of several forms:

  • […] You don’t work with anyone who can review you work, so you do some initial work, put it into a drawer, and come back to it a week later. You will have forgotten enough that you should be able to give yourself a fairly good review.

2020/1/9 9:52 AM

Unremarkable — Marker:

Affixing your own oxygen mask before helping others is a decent tagline for capitalism.

Drawing Canada Maps in R

2020/1/7 12:00 AM

There are many reasons you may want to draw a custom map with ggplot in R — overlaying data with ggplot is a lot more flexible than in Power BI1. There are many blog posts on how to do this for the US, but resources regarding Canada are scarce. But fear not! With the help from StatCan, some great pointers out there2, and the spirit of exploration, we are ready to share how to draw some Canada maps.

By the end of the post, you will be able to —

  • Use R and ggplot to draw maps for Canada: all of the 10 provinces and the 3 territories
  • Zoom in to draw only select provinces or select areas within a province
  • Apply coordinate transformation so that the maps of the Great White North appear closer to reality
  • Overlay custom data points with coordinates — we are pinning Vancouver, Calgary, Edmonton, Toronto, Ottawa, and Montréal.

Canada Maps drawn in R

You will be using —

  • Shape files from StatCan (.shp, shx, .dbf)
  • R with multiple shape file-related packages listed below
  • SQL connected to SCDB to grab coordinates for the open big box stores
  1. We use Microsoft Power BI across the company. 

  2. Canada Maps - R Bloggers was my starting point. The post neatly points which packages to look into, and where to get the data. However, it falls short explaining how to draw your own data that are now part of a shape file. A lot of code in this post is taken from this post with only minor modifications. 

For me, the year of 2019 is about regaining balance — balance I’ve lost since the jump back to Beijing in 2017, and in 2018, the move back to Vancouver with clarity of what I want of my life. I’ve phrased my decisions in very different ways and described them to many different people, and I’ve only got compliments that I was brave and dared to try things. It was not until this year that I was able to look back and agree. Without that experience, my current life might have been fast-tracked by a year or two, but I would not have learned when to settle.

20 Reasons to Work From Home

2019/12/30 11:25 PM
  1. There is a mandatory fire inspection at home.
  2. The pipes broke and I have to wait home for the plumber.
  3. I have furnitures delivered to my house.
  4. I didn’t do my laundry. I’d have to show up stinky.
  5. My dog is sick from the mushroom he had from the backyard and he cannot stop drooling.

Moody as the Mountain

2019/12/22 5:18 PM

Anne Marie Vivienne, in Moody As The Mountain

The mountain is complex in her moodiness. She is all at once threatening and inviting, dangerous and calm, complex and simple. The more intimate you become with the mountain, the more you feel the subtle nuances of daily and seasonal change. You learn to become a witness of intensity.

2019/12/22 8:52 AM

可能是我的巅峰之作了。再也不是年初那个强迫症般拉直所有地平线海平面的我了。

——我对三点说

Exit the Gungeon

2019/12/21 11:41 PM

An amazing combination of rogue-like, platformer and dodge-roll, Exit the Gungeon has been a great play from Apple Arcade. Too bad that once I got the hang of it the randomly generated stages were not at all challenging anymore (and the game’s “Beast Mode” did not seem to have brought further thrill).

That said, the game has been a hook and a lot of fun. The random terrain and boss system, the guns, and the rhythm of each stage all contribute.

And at its core lies what rogue-like games offer: you don’t accumulate assets and better equipments and stronger stats; instead, you become a better player through each play.

最近听的爵士/说唱

2019/12/21 5:49 PM

那英《毒药》——头一次知道那英在 1999 年就有这种爵士风格的歌,似乎到现在这首歌也没被人在网上讨论,也没有被 Apple Music 收到那英的入门精选或者另类精选里¯\_(ツ)_/¯

王若琳《寒雨曲》——同样 Jazzy 的一首流行歌曲。王若琳的收放自如倒比原唱更有张力。

Lu1 ft. 蔡健雅: Just Say So——最近重新迷上了 Lu1 的说唱。虽然不是小老虎那种天上一脚地下一脚,但是偶尔的双语作词没有丝毫的油腻,反而非常有启发性。蔡健雅加入的这首 Just Say So 算是挺轻松的入门歌曲,我还挺喜欢 Follow 打造的炮房心思和 Feelin’ Blue 的上海夜店氛围。Lu1 作为爵士说唱艺人在做着民谣歌手做的事,唱的都是青春爱情和梦想。

小老虎《通宵酒》和《说唱艺术》——两首博古;《每当我用词不当》、《再等等格子》——两首通今。

内容归档
下一页 ▶︎︎