Yanfeng's life and thought
Monday, May 11, 2026
The Power of Now - excerpt
Those who have not found their true wealth, which is the radiant joy of being and the deep, unshakable peace that comes with it, are beggars,
even if they have great material wealth. They are looking outside for scraps of pleasure or fulfillment, for validation, security, or love,
while they have a treasure within that not only includes all things but is indefinitely greater than anything the world can offer.
The word enlightment conjures up the idea of some superhuman accomplishment, and the ego likes to keep it that way, but it is simply your
natural state of felt oneness with Being. It is a state of connectedness with something immeasurable and indestructable, something that,
almost paradoxically, is essentially you and yet is much greater than you. It is finding your true nature beyond name and form. The
inability to feel this connectedness gives rise to the illusion of separation, from yourself and from the world around you. You then
perceive yourself, conscously or unconsciously, as an isolated fragment. Fear arises, and conflict within and without becomes the norm.
P12, Chapter 1
You used the word Being. Can you explain what you mean by that?
Being is the eternal, ever-present One Life beyond the myriad forms of life that are subject to birth and death. However, Being is not
only beyond but also deep within every form as its innermost invisible and indestructible essence. This means that it is accessible to
you now as your own deepest self, your true nature. But don't seek to grasp it with your mind. Don't try to understand it. You can know
it only when the mind is still. When you are present, when your attention is fully and intensely in the Now, Being can be felt, but it
can never be understood mentally. To regain awareness of Being and to abide in that state of "feeling-realization" is enlightment.
P13, Chapter 1
Instead of "watching the thinker,", you can also create a gap in the mind stream simply by directing the focus of your attention
into the Now. Just become intensely conscious of the present moment. This is a deeply satisfying thing to do. In this way, you
draw consciousness away from mind activity and create a gap of no-mind in which you are highly alert and aware but not thinking.
This is the essence of meditation.
In your everyday life, you can practice this by taking any routine activity that normally is only a means to an end and giving it
your fullest attention, so that it becomes an end in itself. For example, every time you walk up and down the stairs in your house
or place of work, pay close attention to every step, every movement, even your breathing. Be totally present. Or when you wash your
hands, pay attention to all the sense perceptions associated with the activity: the sound and feel of the water, the movement of
your hands, the scent of the soap, and so on. Or when you get into your car, after you close the door, pause for a few seconds and
observe the flow of your breath. Bcome aware of a silent but powerful sense of presence. There is one certain criterion by which
you can measure your success in this practice: the degree of peace that you feel within.
So the single most vital step on your journey toward enlightment is this: learn to disdentify from your mind. Every time you create a gap
in the stream of mind, the light of your consciousness grows stronger.
One day you may catch yourself smiling at the voice in your head, as you would smile at the antics of a child. This means that you no longer
take the conent of your mind all that secirously, as your sense of self does not depend on it.
P20-21, Chapter 1
Friday, April 24, 2026
Wednesday, April 8, 2026
Good people are found, not changed
之前写邮件不知道“只筛选,不改变”用英语该怎么表达,今天读 Jim Rohn 有一句:
Good people are found, not changed.
塞涅卡有句名言:人们对钱财斤斤计较,对时间却挥霍无度。
我有两个计算机学位,曾在望京的互联网公司做过程序员
Saturday, March 7, 2026
C# 12 and .NET 8 note
C# 12 and .NET 8
1.
https://github.com/markjprice/cs12dotnet8
2.
The companion book, Apps and Services with .NET 8
3.
code --list-extensions
Visual Studio Code Extensions: C# Dev Kit
4.
dotnet --list-sdks
dotnet --info
dotnet new console --use-program-main
dotnet run
5.
namespace doesn't require the folder structure like Java, can remove namespace com.t1; and ran it directly
dotnet new sln --name Chapter01
dotnet new console --output HelloCS
dotnet sln add HelloCS
dotnet help new
6.
Console.WriteLine($"Namespace: {name}");
Console.WriteLine("Value is {0}",19.8);
#error version
7.
Scott Hanselman from Microsoft has an excellent YouTube channel about computer stuff
they didn’t teach you at school: http://computerstufftheydidntteachyou.com/.
8.
C# keywords use all lowercase. Although you can use all lowercase for your own type names,
you should not. With C# 11 and later, the compiler will give a warning if you do.
9.
You must prefix it with the @ symbol to use a verbatim literal string, as shown in the following code:
string filePath = @"C:\televisions\sony\bravia.txt";
10.
Raw string literals start and end with three or more double-quote characters, as shown in the following code:
string xml = """
Mark
""";
11.
float realNumber = 2.3f;
double anotherRealNumber = 2.3;
The double type is not guaranteed to be accurate
decimal c = 0.1M; // M suffix means a decimal literal value
decimal d = 0.2M;
object height = 1.88; // Storing a double in an object.
object name = "Amir"; // Storing a string in an object.
int length2 = ((string)name).Length;
dynamic something;//has impact on performance
Console.WriteLine($"something is a {something.GetType()}");
12.
Local variables are declared inside methods, and they only exist during the execution of that method.
Once the method returns, the memory allocated to any local variables is released.
This happens at compile time so using var has no effect on runtime performance.
13.
The Debug class is used to add logging that gets written only during development.
The Trace class is used to add logging that gets written during both development and runtime.
14.
Constant: The data never changes. The compiler literally copies the data into any code that reads it.
Read-only: The data cannot change after the class is instantiated, but the data can be calculated or loaded from an external source at the time of instantiation.
15.
private
The member is accessible inside the type only. This is the default.
internal
The member is accessible inside the type and any type in the same assembly.
protected
The member is accessible inside the type and any type that inherits from the type.
C# 11 introduced the required modifier. If you use it on a field or property,
the compiler will ensure that you set the field or property to a value when you instantiate it.
16.
When a parameter is passed into a method, it can be passed in one of several ways:
By value (this is the default): Think of these as being in-only
As an out parameter: Think of these as being out-only.They must be set inside the method
By reference as a ref parameter: Think of these as being in-and-out.
As an in parameter: Think of these as being a reference parameter that is read-only.
17.
Tuples are an efficient way to combine two or more values into a single unit.
public (string, int) GetFruit()
{
return ("Apples", 5);
}
(string, int) fruit = bob.GetFruit();
WriteLine($"{fruit.Item1}, {fruit.Item2} there are.");
You can explicitly specify the field names:
public (string Name, int Number) GetNamedFruit()
{
return (Name: "Apples", Number: 5);
}
var fruitNamed = bob.GetNamedFruit();
// Deconstruct the return value into two separate variables.
(string name, int number) = bob.GetNamedFruit();
// You can then access the separate variables.
WriteLine($"{name}, {number}");
18.
Local functions are the method equivalent of local variables. In other words, they are methods that are only
accessible from within the containing method in which they have been defined. In other languages, they are sometimes
called nested or inner functions.
19.
A property is simply a method (or a pair of methods) that acts and looks like a field when you want to get or set a value,
but it acts like a method, thereby simplifying the syntax and enabling functionality, like validation and calculation,
when you set and get a value.
20.
public class ImmutablePerson
{
public string? FirstName { get; init; }
public string? LastName { get; init; }
}
public record ImmutableVehicle
{
public int Wheels { get; init; }
public string? Color { get; init; }
public string? Brand { get; init; }
}
ImmutableVehicle car = new()
{
Brand = "Mazda MX-5 RF",
Color = "Soul Red Crystal Metallic",
Wheels = 4
};
ImmutableVehicle repaintedCar = car
with { Color = "Polymetal Grey Metallic" };
Two records with the same property values are considered equal.
21.
Stack memory is faster to work with but limited in size.
Heap memory is slower but much more plentiful.
When you define a type using record struct or struct, you define a value type. This means that the memory for the object itself is allocated to the stack.
22.
Publishing a single-file app
dotnet publish -r win10-x64 -c Release --no-self-contained /p:PublishSingleFile=true
If you prefer the .pdb file to be embedded in the .exe file, embedded
23.
from wsl
sudo sqlite3 Northwind.db < Northwind4SQLite.sql
sqlite3 Northwind.db
.tables -- List all tables
.schema -- Show all table schemas
SELECT COUNT(*) FROM Orders; -- Check if data exists
.quit -- Exit
24.
The EF Core database providers for SQLite and SQL Server are built on top of the ADO.NET libraries, so EF Core is always inherently slower
than ADO.NET.
Furthermore, ADO.NET can be used independently for better performance because the EF Core database providers are “closer to the metal.”
Friday, February 27, 2026
道可道,非常道。名可名,非常名。理解
道德经的开头:道可道,非常道。名可名,非常名。老子到了完全开悟的境界,有了完全开悟的体验。同时知道这对普通人来说是很难理解的,单薄的语言也很难描述这个体验。但老子还是想尽量用语言来描述一下。意思是我要讲的这个,不是普通的或者常人理解的可以言说的道。尽量给了一些命名,但不是通常意义上的命名。这个跟金刚经里佛说般若波罗蜜,即非般若波罗蜜,是名般若波罗蜜完全一样的意思。
Tuesday, February 24, 2026
比特币减半周期 202612月做多比特币相关
熊底在减半前约500天(本轮推算2026年12月)。
bitcoin
Grok:
是的,这个说法在加密货币社区(尤其是中文圈和一些分析帖)里确实存在,而且有一定历史数据支撑,但它属于一种常见的“周期派”经验总结,而不是严格的铁律。很多人用它来推演比特币的四年减半周期。
你贴的这篇内容核心观点总结如下:
比特币减半形成四年周期(牛熊交替)。
历史减半日期基本准确(2012.11、2016.7、2020.5、2024.4)。
声称“每次减半后到新高约需540天”(前三轮:540天、549天、562天,平均约550天左右)。
因此2024年4月减半后,新高点推算在2025年10月左右。
熊底在减半前约500天(本轮推算2026年12月)。
这个“540天到新高”的说法在社区里流传挺广:
一些Binance Square、TradingView、Reddit和X上的分析帖直接提到过类似数字(比如“减半后540天新高”“549天”“562天”)。
很多人把前三轮从减半日到周期顶点(ATH)的天数统计为540–562天区间,用来类比本轮。
部分中文分析师和KOL(比如币安广场的一些长帖)几乎一模一样地用这个“540天规律”预测2025年10月左右见顶。
但实际情况更 nuance(细微差别):
历史天数确实接近,但不完全统一:不同数据源统计的“到新高”天数有小差异(有的算368–525–549天,有的从底部算起,有的严格从减半日算)。比如有些来源显示2012那轮更快(约368–540天不等,取决于怎么定义“新高”)。
熊底500天前的说法也常见,但更像社区经验法则(“减半前500天买”或“熊底在减半前1年多”),不是精确到月。
本轮已经部分验证又部分偏离:2024减半后到2025年10月确实出现了高点(很多分析认为2025年10月左右的126k左右可能是周期顶),但涨幅递减、机构/ETF影响让周期“变形”,不再是早期那种爆炸式涨幅。
现在(2026年2月)市场已明显转熊,很多机构/分析师认为熊市还在继续,底部可能在2026年某个时间(有说5–10月,有说年底,甚至2027年初),但没人能100%确定12月就是底。
总的来说:
这个“大饼减半后540天新高 + 减半前500天熊底”的框架是社区里很流行的简化模型,有历史数据的粗略支持,也被很多人拿来做推演(包括你看到的这篇)。但它更像“历史押韵”而非精确预测公式——每轮周期都会受宏观、机构、监管等新变量影响而变形。
如果你是参考它做投资决策,建议多看链上数据(MVRV、CVDD、200周均线等)、宏观环境(降息预期)和不同机构的观点组合判断,而不是只靠这个单一“540天”规律。周期还在,但“这一轮不同”的声音也越来越大。
Sunday, February 8, 2026
A New Earth - Preface
1.
Is a "new earth" arising, a world where the egoic state of consciousness in its insanely dysfunctional manifestations, both individual and collective, has dissolved or at least subsided, and where humans no longer create unnecessary suffering for themselves, one another, as well as other life forms on the planet?
2. subjugation
The subjugation of one race by another, the domination of women throughout thousands of years of patriarchy, and the devaluing of people based on social class are for growing numbers of us nightmares of the past.
3.
There is a growing awareness of the intrinsic oneness of everything that exists, so that more and more we are seeing an awareness of and deep concern for our fellow humans, the countless animals that are our traveling companions, and the planet itself.
4. affiliation
This diminishment of the ego gives rise to empathy and compassion beyond tribal, racial, national, or religious affiliations.
5. succumb
If you stay present and do not succumb to fear, if you do not believe the media when they tell you that you should be afraid, these things will not affect you deeply.
6. Acute
Acute crisis and dysfunction always precede or coincide with any evolutionary advancement or gain in consciousness.
7.
All life-forms need obstacles and challenges in order to evolve.
8. demise
Eventually, the ego brings about its own demise.
9.
Make sure the present moment is your friend, not your enemy. Honor it by giving it your fullest attention. Appreciate it by being thankful for it. Become internally aligned with it by allowing it to be as it is. That is the arising of the new earth.
Subscribe to:
Posts (Atom)
