2022 Week 45

Original link: https://limboy.me/links/2022-45/

github-block1.jpg

Web Programming

Github Blocks

The Feature that Github is testing, makes the text dynamic and interactive (such as displaying the real-time data of the project through p5.js, adding a drawing board or using an Excel-like table), and even adding this ability to folders (For example, you can quickly see the file composition inside a directory). Similar in concept to Coda or Notion .

github-block1.jpg

github-block2.jpg

Github Mona Sans

Github is an open source all-purpose font that supports Variable Fonts . Traditional fonts are designed separately. For example, Regular and Bold are two styles, so you need to download two files. If you add italics and different font weights, the download volume will be considerable. Variable Fonts are all styles in one file. Animation effects can also be achieved by setting different Weight and Width, instead of blunt switching. Download it and read it. The size of a woff2 file is 134KB , which is acceptable.

mona-hubot-sans.png

Write Better Error Messages

better-error-message.png

It is very difficult to handle Error Message, which will involve the adjustment of the existing error handling system (because errors are everywhere, so this amount is usually very large), and also requires cross-department (such as front-end and back-end) collaboration, and different departments Attitudes and standards for Error are different (so this kind of thing is usually top-down), which makes it easy for users to be at a loss when they see Error (such as “system error, please try again”), and then locate the problem. inconvenient. This post shares how the Wix team spent a month refactoring their Error Messages, how they dealt with these difficulties, and what they achieved in the end.

We reviewed every single piece of content related to errors and decided if it was relevant for this effort. Once we had a list of all the errors we considered “generic” or “not helpful”, we sent everything to developers.

“Generic errors are the result of bad development and product. We must all care about it together.”

Rendering Patterns

render.jpg

With the development of web technology, there are more rendering modes of pages, such as SSG, SSR, Streaming SSR, etc. How do these different rendering modes work, what are their characteristics, and what are the differences in user experience? They are analyzed in detail.

The differences between these rendering modes are mainly reflected in: where the HTML is rendered (Client or Server), whether Hydrate is required (so that the DOM can accept events), whether the data is separated from the HTML, and whether the content is streamed. The main measurement indicators are: TTFB (Time To First Byte), TTI (Time To Interact), FCP (First Content Paint).

PS: A table is attached at the end of the article to compare the differences between different modes. If you want to see the answer directly, you can skip to the end.

LevelTypeScript

A very good TypeScript teaching website. Different from other Tutorials, this website will arrange interactive exercises after each knowledge point. The design of the questions is closely related to the current knowledge points, and it will automatically determine whether the answer is correct. I tried a few The chapters are very smooth, and there is a sense of accomplishment after answering correctly. I feel that this is a direction worth exploring for online courses.

type-level-typescript.jpg

Tiny Helpers

tiny-helpers.jpg

This website collects many gadgets that may be used in web development, and it is very complete.

Mastering the Command Line

The article is not long. It mainly introduces a few cli tips, which are more basic, such as ctrl+R Fuzzy search history, or ctrl+a , ctrl+e to jump to the head/tail, etc.

Cool Stuff

TickTick

Been wanting a Todo App that combines Calendar, and finally found TickTick. At present, I feel pretty good after using it. Combined with the built-in Pomodoro clock, I can easily review what I did every day and how much time I spent (just roughly, there will be “forgot to open a tomato” or “do something else in the middle” from time to time. “Case).

ticktick.webp

A good tool usually changes people imperceptibly. For example, I was not used to opening the Pomodoro clock at work, but when this feature was combined with tasks and calendars, I found it very convenient, and then I used it naturally. One of the pitfalls is that after completing a pomodoro, a completed sound will be played. This sound is slightly harsh when focused and cannot be turned off. Feedback has been submitted and I hope it can be improved.

Worth Mention

Managing Complex Change

managing-complex-change.jpg

For an organization, if it wants to make changes, what factors need to be considered, which can be measured from the perspectives of Vision, Skills, Incentives, Resources, and Action Plan. Indeed, any of them will lead to bad results.

  • Lack of Vision: Why do we do this?
  • Missing Skills: Can we do it?
  • Lack of Incentives: What’s the reward for doing it?
  • Lack of Resources: No support, not on our own
  • Missing Action Plan: Not knowing what to deliver when

decoy effect

Assuming there are products A and B, here are the options a customer can choose from:

(1) $100 – A

(2) $300 – B

(3) $300 – A + B

In this scenario, (2) is the “bait” that guides the customer to choose the “target option” – (3). Because human brain resources are limited, people tend to think about decisions that can be easily accomplished (cognitive ease). When we compare (1) and (3), the ambiguous option puts a lot of pressure on the brain; when comparing (2) and (3), option (3) is significantly better, so we can make a decision without stress, so that We made the decision to buy (3) more easily.

The Economist magazine made a similar attempt in 2009:

  1. Order the full year online version: $59
  2. Order a full year print version: $125
  3. Order a full year online + print version: $125

One professor did an experiment with his students: Option 2 was reserved, 16% chose 1, and 84% chose 3. Remove option 2, 68% choose 1, 32% choose 3.

So sometimes we think it is a decision we made, but it may be an arranged decision behind it.

My Brother My Home: Affectionate Memories of Zhang Yitang’s Sister

You may have heard the name Zhang Yitang, a legendary mathematician, who recently published a paper on Landau Siegel’s zero point problem (111 pages, we don’t know what he’s talking about, it’s very difficult anyway). ). Eight years ago, he made a name for himself in mathematics with his breakthrough in twin prime numbers. I also started to know about him after watching this video of Mr. Li Yongle. And the reason why he is called a “legend” is not only because of his extraordinary mathematical ability, but also because of his deep love for mathematics.

Communication between my father and my brother has always been a mystery to me. I’m the kind of kid who would say anything in front of my dad, and then wait for my dad to come and give me advice, but my brother, on the other hand, seldom explained his situation one by one. When it comes to family, he is more accustomed to announcing good news rather than worrying. When there is good news, he will write to tell his family. My research was not going well, I was unwilling to publish a paper I thought was not perfect, my relationship with my supervisor broke down, I couldn’t get a letter of recommendation after graduation, I could only do odd jobs without a job, and I didn’t live in a fixed place or even in an RV. Yes, but he never told us. The lowest point in his life happened to be two years when his father was seriously ill. Now I can understand how difficult he was at that time, and the loneliness that he couldn’t face his family, so he chose to remain silent. His escape made me angry at the time. But I guess Dad can feel the plight of his son, so Dad also chose to be silent. A seriously ill father has no ability to help his son who is far away from the ocean, so he can only choose not to burden him, and can only hope that he will get through the difficulties by himself.

PS: This is an answer given by the author himself on Zhihu on “Overcoming the Landau-Siegel Zero Conjecture”, you can read it together.

Regarding the Landau-Siegel conjecture, I never thought about giving up, because my whole thinking has been intermittent over the years. In 2007, I published a paper on Landau-Siegel. In fact, it was possible to continue to do it at that time, but then I encountered a situation, that is, the problem of twin primes became popular, so I did it from 2010 to 2013. When the twin primes are gone, a result of 70 million is made. After thinking about it, I thought Landau-Siegel had to do it, so I came back to this issue. I usually think about several questions at the same time, focusing on this for a while, and focusing on that for a while. In fact, I started thinking about Landau-Siegel at the end of the last century. I like to think about several questions together. Those who then think about it are relatively big problems.

Writing Down What I Do — In Obsidian

After switching from Bear to Obsidian, the author developed a Work Notes System ( video demonstration ) with the help of Obsidian’s Block Reference.

The principle is to use a fixed daily template, and then display relevant content inline by referencing the corresponding header. For example, the weekly template is like this:

 ## Outcomes  - [[Work/Tracking/2022.08.29|2022.08.29]]: ![[Work/Tracking/2022.08.29#Outcomes|2022.08.29]] - [[Work/Tracking/2022.08.30|2022.08.30]]: ![[Work/Tracking/2022.08.30#Outcomes|2022.08.30]] - [[Work/Tracking/2022.08.31|2022.08.31]]: ![[Work/Tracking/2022.08.31#Outcomes|2022.08.31]] - [[Work/Tracking/2022.09.01|2022.09.01]]: ![[Work/Tracking/2022.09.01#Outcomes|2022.09.01]] - [[Work/Tracking/2022.09.02|2022.09.02]]: ![[Work/Tracking/2022.09.02#Outcomes|2022.09.02]]

You can get this effect:

obsidian.jpg

It is a curve that makes up for Obsidian’s lack of Query capabilities. At the end of the article, the author also attached a daily/week/month/quarter/year template.

I quit my job at AWS…

but currently the YouTube business pays me more than what I was getting at AWS.

After the young lady named “Lucy” resigned from AWS, she began to concentrate on YouTube, and the income from YouTube has exceeded the income when working in AWS (mainly Sponsorship and Brand collaboration). This video tells some of the thinking behind her choice. Although working in AWS helps to produce videos, video production is also a very labor-intensive thing. When the two cannot be balanced, I still choose YouTube, which has a higher degree of freedom and enthusiasm.

In the video, she also mentioned One-Way Door and Two-Way Door Decision. She believes that working on YouTube is a Two-Way Door Decision: even if you don’t work, you can come out of this door and use the acquired experience to continue to explore other possibility without being locked.

One-way door decisions are decisions that you can’t easily reverse. These decisions need to be done carefully.

Two-way door decisions can be reversed. You can walk through the door, see if you like it, and if not go back. These decisions can be made fast or even automated.

Her current number of fans is only over 50,000, and she can achieve more than AWS’s revenue, so is it a viable business model for continuous high-quality creation in a certain segment on YouTube?

A Complete Guide to Japan’s Business Visa

Introduced in great detail some details of obtaining a Japanese business visa for students in need.

be a Buffett

One is a documentary and the other is a podcast . The former can have a general understanding of Buffett and what he does, such as what kind of family he was born in, what his daily routine is like, how he started his investment career, and what life philosophy he has. The influence of people around him, what important hurdles he has experienced, how to overcome them, etc., can turn “Buffett” from an abstract noun into a concrete character. The latter will be more detailed. For example, investing in GEICO (GEICO) insurance company talked about two episodes: what is GEICO’s insurance model, why Buffett is optimistic about GEICO, why he injects a lot of money on the brink of collapse, and what is his thinking? Wait, you can still learn a lot.

I think “investment” is still very worth learning, not necessarily in the stock market, but also in all aspects of life. For example, several important concepts of “value investing”: circle of competence, moat, controlling emotions (don’t be influenced by Mr. Market), and margin of safety, all of which are helpful when making design or decision-making.

Buy equity in a company within its own circle of competence at a discounted price significantly lower than the endogenous value of the company, so as to obtain a sufficient margin of safety to protect the investment principal from substantial economic losses in the event of major risk events , long-term holding, through the growth of the company’s own endogenous value and the return of its price to value to obtain long-term good and reliable returns.

Full New Elon Musk Interview. Ron Baron Conference Nov 2022.

An interview between Elon Musk and Ron Baron, about Tesla, Twitter, the Chinese version can be seen here . Regarding Twitter, he mentioned a vision: let everyone achieve paid certification through Twitter Blue (Blue V), which is only $8 a month. On the one hand, it can partially solve Twitter’s financial crisis, and it can effectively combat Spam. After all, if you create A Spam account has to pay $8 per month, and the cost is too high. But this strategy, which seems to be the best of both worlds, will bring certain side effects. After all, there should be not many users who want to pay to use Twitter, and it can be seen that many users have started to migrate to Mastodon , or created accounts. Stephen King has also publicly expressed his dissatisfaction with the fee mechanism.

stephen-king.jpg

This article is reprinted from: https://limboy.me/links/2022-45/
This site is for inclusion only, and the copyright belongs to the original author.