Tuesday, July 15, 2025
C# note
https://github.com/markjprice/cs10dotnet6
1. naming conventions
Camel case cost, orderDetail, dateOfBirth -> Local variables, private fields
Title case aka Pascal case String, Int32, Cost -> Types, non-private fields, and other members like methods
2. double vs decimal
double is not accurate but the decimal type is accurate because it stores the number as a large integer and shifts the decimal point.
decimal c = 0.1M; // M suffix means a decimal literal value
decimal d = 0.2M;
if (c + d == 0.3M)
{
Console.WriteLine($"{c} + {d} equals {0.3M}");
}
3.
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.
Debug.WriteLine("Debug says, I am watching!");
Trace.WriteLine("Trace says, I am watching!");
In Visual Studio, navigate to View | Output and make sure Show output from: Debug is selected.
4.
xUnit was created by the same team that built NUnit but they fixed the
mistakes they felt they made previously. xUnit is more extensible and has better community support.
Saturday, July 12, 2025
The Power of Now - chapter 5
1. loin, gird
If he had "kept his loin girded and his lamp burning." which is one of the analogies that Jesus used for presence, he would have noticed the master coming up from behind and stopped him or stepped aside.
2. esoteric
The esoteric meaning of "waiting"
3. qualitatively
There is a qualitatively different kind of waiting, one that requires your total alertness.
4. lest
So he stays awake, alert, poised, still, lest the miss the master's arrival.
5. vigilance
Because of the narrowness of that gap and a lack of vigilance and alertness on your part, you were probably unable to see the fundamental difference between the perception, the thoughtless awareness of beauty, and the naming and interpeting of it as thought.
6. seer
This is what the ancient seers of India asked themselves. They saw the world as lila, a kind of divine game that God is playing.
7. squander, destitue
This process is explained by Jesus in his parable of the lost son, who leaves his father's home, squanders his wealth, becomes desitue, and is then forced by his suffering to return home.
8. respite
Already for most humans, the only respite they find from their own minds is to occasionally revert to a level of consciousness below thought.
9.temporal/discursive
The words I am used in a sentence that starts in the past sentence indicate a radical shift, a discontinuity in the temporal dimension. It is a Zen-like statement of great profundity. Jesus attempted to convey directly, not through discursive thought, the meaning of presence, of self-realization.
Raise the concern for The power of now, Chapter 5 The state of presence. "I am that I am"
Paul's answer/comment:
There's just one now. It's not the case there are a lot of now moments.
Take movie/screen as the example. For the characters, they have no idea and cannot realize they are just reflection of the screen pixels. Time is illusion. It seems like everything changes but the screen is still the screen. Nothing matters.
Consciousness/Now is the screen, and you are the characters.
Quote for most people: The mind is a cage with no prisioner.
Quote for the seeker: Nothing happens.
Thursday, July 3, 2025
Menu: Sausage Potato and Chicken Wing
For 3 people
1. Medium Heat with few olive oil into the pan, put 6 Hot Italian port sausages into the pan around 5 min per side. Make sure the fat is burned out. Poke some holes and add few olive oil after the heat is turned off
2. Put 9 chicken wings, wash and cut to the bones
3. Wash and cut potatos and Sausages and pour leftover oil into the mixing, add few olive oil
4. Put 3 tea spoon salt, a few black pepper and Italian herbs, mix thoroughly
5. Wrap Pan with Aluminum foil and put evenly the materials and put aluminum foil (leave some space).
6. Turn on Oven Bake, 425F. After the prehat, set timer to 50 minutes
Copywright @Paul
Subscribe to:
Comments (Atom)