搜尋此網誌

2025年6月10日星期二

Carpe diem

tribute: an act, a statement or a gift that is intended to show your love or respect, especially for a dead person

scripture: the Bible

faint: that cannot be clearly seen, heard or smelt

jet ski: a vehicle with an engine, like a motorcycle, for riding across water

intoxicated: ​under the influence of alcohol or drugs

multitude: an extremely large number of things or people

devote yourself to: to give most of your time, energy, attention, etc. to somebody/something

unleash: to suddenly let a strong force, emotion, etc. be felt or have an effect

overwhelm: DJ[͵əuvəˋhwelm]

lifeline: something that is very important for somebody and that they depend on

upbringing: the way in which a child is cared for and taught how to behave while it is growing up

literally: exactly

melee: a situation in which a crowd of people are rushing or pushing each other in a confused way

hypocrite: a person whose behavior does not meet the moral standards or match the opinions that they claim to have

striving: the act of trying very hard to achieve something

vexation: the state of feeling upset or annoyed

resourcefulness: the quality of being good at finding ways of doing things and solving problems, etc.

legendary: very famous and talked about a lot by people

in jeopardy: in a dangerous position or situation and likely to be lost or harmed

stunned: very surprised or shocked

gleefully: in a happy way because of something good you have done or something bad that has happened to somebody else

honk: ​the noise made by a car horn

unpretentious: not trying to appear more special, intelligent, important, etc. than you really are/it really is

uninhibited: behaving or expressing yourself freely without worrying about what other people think

buck teeth: top teeth that stick forward

outrageous: very unusual and intended to shock people slightly

wig: a piece of artificial hair that is worn on the head, for example to hide the fact that a person is bald, to cover somebody’s own hair

incognito: DJ[inˋkɔgnitəu]

golfing: the activity of playing golf

cringe: to feel very embarrassed and uncomfortable about something

hysterically: in an extremely excited way and without any control, often with crying or laughter

nap: a short sleep, especially during the day

If you scrunch something up, you squeeze it or bend it so that it is no longer in its natural shape and is often crushed.

    His enthusiasm was contagious and he taught us to live with a "carpe diem" (seize the day) mentality and to "suck the marrow out of life," as he loved to say.

    他充滿熱情,感染著每個人;他常說,要以把握當下的心態生活,從生命中儘情汲取精華。

humble: showing you do not think that you are as important as other people

fame: the state of being known and talked about by many people

steward: a person who helps at a large public event, for example a race or public meeting, by keeping order, showing people where to go, etc.

timeless: existing or continuing forever

preach:  to give somebody advice on moral standards, behavior, etc., especially in a way that they find annoying or boring

discernible: that can be recognized or understood

compliment: a comment that expresses praise or approval of somebody

consistency: the quality of always behaving in the same way or of having the same opinions, standard, etc.; the quality of being consistent

    We should make decisions based on our values and not how we felt in the moment.
    
    我們應該根據我們的價值觀作出決定,而不是根據當下的感受。

adore: to love somebody very much

sounding board: a person or group of people that you discuss your ideas with before you make them known or reach a decision

marvel: to be very surprised or impressed by something

encompass: to include a large number or range of things

accolade: praise or an award for an achievement that people admire

acclaimed: to praise or welcome somebody/something publicly

medallion: a piece of jewelry in the shape of a large, flat coin worn on a chain around the neck

humanity: the subjects of study that are about the way people think and behave, for example literature, language, history and philosophy

entrepreneur: DJ[͵ɔntrəprəˋnə:]

Stephen R. Covey "The 7 Habits of Highly Effective People"

Online Dictionaries Used:

hk.dictionary.search.yahoo.com

www.oxfordlearnersdictionaries.com

Translated with Microsoft Copilot and Edited

2025年6月9日星期一

increment operator

Prefix (++i): Increment first, then use the value.

Postfix (i++): Use the value first, then increment

int i = 5;
int j = ++i;  // i is incremented to 6, then assigned to j
i = 6
j = 6

int i = 5;
int j = i++;  // i is assigned to j first, then incremented
i = 6
j = 5

Microsoft Copilot

2025年6月6日星期五

Quadrant II

embody: to express or represent an idea or a quality

inferior: not good or not as good as somebody/something else

ego: your sense of your own value and importance

smash: to break something, or to be broken, violently and noisily into many pieces

minutes: a summary or record of what is said or decided at a formal meeting

proactivity: taking initiative and acting to address a situation before it becomes a problem or issue

reveal: to make something known to somebody

delegate: a person who is chosen or elected to represent the views of a group of people and vote and make decisions for them

comply: to obey a rule, an order, etc.; to meet particular standards

mentality: the particular attitude or way of thinking of a person or group

offend: to make somebody feel upset because of something you say or do that is rude or embarrassing

procrastinate: DJ[prəuˋkræstineit]

abreast: ​next to somebody/something and facing the same way

excerpt: a short piece of writing, music, film, etc. taken from a longer whole

persistence: the fact of continuing to try to do something despite difficulties, especially when other people are against you and think that you are being annoying or unreasonable

make headway: to make progress, especially when this is slow or difficult

preclude: to prevent something from happening or somebody from doing something; to make something impossible

Stephen R. Covey "The 7 Habits of Highly Effective People"

Online Dictionaries Used:

hk.dictionary.search.yahoo.com

www.oxfordlearnersdictionaries.com

2025年6月3日星期二

Time Management

overflow: to be so full that the contents go over the sides

correspondence: the letters, emails, etc. a person sends and receives

rumor: a piece of information, or a story, that people talk about, but that may not be true

explicitly: clearly or directly, so that the meaning is easy to understand

agenda: a list of items to be discussed at a meeting

luncheon: a formal lunch or a formal word for lunch

make headway: to make progress, especially when this is slow or difficult


Stephen R. Covey "The 7 Habits of Highly Effective People"

Online Dictionaries Used:

hk.dictionary.search.yahoo.com

www.oxfordlearnersdictionaries.com

2025年5月30日星期五

霽翔《大匠無名》

    去過故宮大修現場的人,就會發現這裡和外面工地的勞作景象有個明顯的區別︰這裡沒有起重機,建築材料都是以手推車的形式送往工地,遇到人力無法運送的木料時,工人們會使用百年不變的工具——滑輪組。故宮修繕,尊重著「四原」原則,即原材料、原工藝、原結構,原型制。在不影響體現傳統工藝技術手法特點的地方,工匠可以用電動工具,比如開荒料、截頭。大多數時候工匠都用傳統工具︰木匠畫線用的是墨斗、畫籤、毛筆、方尺、杖竿、五尺;加工製作木構件使用的工具有錛、鑿、斧、鋸、刨等等。

    最能體現大修難度的便是瓦作中「苫背」的環節。「苫背」是指在房頂做灰背的過程,它相當於為木建築添上防水層。有句口訣是三漿三壓,也就是上三遍石灰漿,然後再壓上三遍。但這是個虛數。今天是晴天,乾得快,三漿三壓硬度就能符合要求,要是趕上陰天,說不定就要六漿六壓。任何一個環節的疏漏都可能導致漏雨,而這對建築的損壞是致命的。

    「工」字早在殷墟甲骨卜辭中就已經出現過。《周官》與《春秋左傳》記載周王朝與諸侯都設有掌管營造的機構。無數的名工巧匠為我們留下了那麼多宏偉的建築,但卻很少被列入史籍,揚名於後世。

    匠人之所以稱之為「匠」,其實不僅僅是因為擁有了某種嫻熟的技能,畢竟技能還可以通過時間的累積「熟能生巧」,但蘊藏在「手藝」之上的那種對建築本身的敬畏和熱愛卻需要從歷史的長河中去尋覓。

    將壯麗的紫禁城完好地交給未來,最能仰仗的便是這些默默奉獻的匠人。故宮的修護注定是一場沒有終點的接力,而他們就是最好的接力者。

Operator Precedence

explicitly: clearly or directly, so that the meaning is easy to understand

The unary plus operator does not change the value of the operand. It is primarily used explicitly indicate that a number is positive.

The unary minus operator negates the value of the operand, effectively multiplying it by -1.


int x = 5, y;

y = ++x; // x increases to 6, then y gets 6

std::cout << "Pre-increment: x = " << x << ", y = " << y << std::endl;

x = 5; // Reset x

y = x++; // y gets 5, then x increases to 6

std::cout << "Post-increment: x = " << x << ", y = " << y << std::endl;


Dot operator is used when accessing members of an object directly.

Arrow operator is used when accessing members through a pointer to an object.


When a function does not return any value, it is declared with void.


The subscript operator is used to access elements in arrays, vectors, or other indexed data structures. It allows direct indexing and retrieval of values stored in a sequential collection.

Direct indexing refers to accessing【電腦】存取(資料)elements in an indexed data by using their exact position, or index, without needing to search for them.


#include <iostream>

int main() {

    bool isRaining = false;

    if (!isRaining) {  // Negates 'false', making it 'true'

        std::cout << "Enjoy the sunshine!" << std::endl;

    }

    return 0;

}


#include <iostream>

int main() {

    int num = 42;

    int* a = &num;  // Pointer 'a' stores the address of 'num'

    std::cout << "Value of num: " << *a << std::endl;  // Dereferencing 'a'

    return 0;

}


In C++, the difference between a and *a depends on how a is defined, especially if it is a pointer.


In C++, sizeof is an operator that returns the size (in bytes) of a data type or object. It helps determine memory usage for variables, structures, arrays, and pointers.


Dynamic memory allocation in C++ allows you to allocate memory at runtime, instead of compile-time. This is useful when you do not know the exact amount of memory your program needs in advance.

Compile time occurs before execution and runtime occurs during execution.


A pointer-to-member is a special type of pointer that holds the memory address of a class member function or a variable, rather than an instance of the class itself.

#include <iostream>

class MyClass {

public:

    int value = 42;

};

int main() {

    MyClass obj;

    int MyClass::*ptr = &MyClass::value;  // Pointer to member variable

    std::cout << "Value using pointer-to-member: " << obj.*ptr << std::endl;  // Access using object

    return 0;

}


int num = 5;

int result = num <<2;

Here, 5 << 2 shifts the bits two places left:

00000101 (5) → 00010100 (20)


The ternary conditional operator in C++ is a shorthand for an if-else statement.

#include <iostream>

int main() {

    int a = 10, b = 20;

    int max = (a > b) ? a : b;  // If 'a' is greater, assign 'a', otherwise 'b'

    std::cout << "Maximum value: " << max << std::endl;

    return 0;

}


>>= equivalents to a = a >> b


The comma operator is used to evaluate multiple expressions in sequence, but it only returns the result of the last expression.

#include <iostream>

int main() {

    int a = (10, 20, 30); // Only '30' is assigned to 'a'

    std::cout << "Value of a: " << a << std::endl;

    return 0;

}


+= equivalents to a = a + b


pitfall: a danger or difficulty, especially one that is hidden or not obvious at first


Microsoft Copilot

www.oxfordlearnersdictionaries.com

辦公室用計數機

Most basic commercial calculators, especially the simple four-function ones, do not follow operator precedence (such as multiplication before addition). Instead, they perform calculations in the exact order the user enters them, following left-to-right evaluation.

Microsoft Copilot