of

ref – https://www.youtube.com/watch?v=zuVWK3V_zyg

Show possession

of the
Objects/things that are not alive

‘s
Person, group of people, country, animals.

example:

The leg of the chair is broken.
The dog‘s leg is broken.

My father‘s house is really nice.
The house of my father is really nice.

Expressions of quantity

A lot of sugar.
A number of mistakes.
Lots of love.

A great deal of money.
The majority of students are poor.
A couple of reasons.

Both of of my arms are broken.

Making it specific

All students hate math. (students in general)

All of my students hate math.
All of the students hate math.
(Specific group)

June Admin React App Test

Scan QR Code – Register/Login

When the admin register page loads, it will present a QR code.

We can it with our wechat scanner.

1) When scanned, it will open our Wechat mini’s app’s pages/auth/admin page.

In that wechat mini page, the user NEEDS TO PUSH THE AUTHORIZE BUTTON and it will call getUserProfile, which gives response with a one time code. The page will also have a scene string from its onLoad function’s option parameter.

Then we provide the 1 time code and scene to our backend.

The /v1/auth/grant on the server side will receive the wechat user’s openId via an Wechat API call. Then, the server will see whether this use exists or is new. If it exists, it will have the existing user’s data ready for the front end. If it does not, it will have user data that is all null, and only the openId valid. A variable will be switched on so the front end’s request will know if its okay to receive it.

When the QR code renders on the page, we need to poll the server because we’re waiting for the user to push that authorize button in order to get the server hit Wechat’s API.

We are looking at the status of the QR code. The server will return user data.

The user exists if the id and tokenInfo are valid, and we just load it into the stat’e user object.

If they DO NOT exist, then that means its a new user and we only have the openid.

Thus, we then open up a form for the new user to fill in their email, nickname, and phone number.

Create Word

POST on /rickyabc/api/v1/word/add
form data:

wordInfo blob
imageFile imageFile
audioFile audioFile

Get Word

GET on /rickyabc/api/v1/word/get?date=2023-06-18&teacherId=6

Update Word

POST on /rickyabc/api/v1/word/update

form data:
wordInfo blob
imageFile imageFile
audioFile audioFile

Delete Word

POST on /rickyabc/api/v1/word/delete

form data:
id toDeleteID

headers: {
‘Content-Type’: ‘multipart/form-data’,
[tokenName]: tokenValue
},

Create Example

POST on /rickyabc/api/v1/word/addExample

We need the word id that this example belongs to:

data form:

example blob // contains obj
imageFile imageFile
audioFile audioFile

Update Example

Delete Example

POST /rickyabc/api/v1/word/deleteExample

form data:

id toDeleteID

adding s, es to verbs in present simple

ref – https://www.learnenglishlanguagewell.com/grammar/verbs-with-s-in-present-simple/

In English, the -s is only added to regular verbs in the present tense when the subject of the verb is a third person singular subject.

Let’s look at some simple examples:

  • I run
  • (first person)

  • You run
  • (second person)

  • He/she/it runs
  • (third singular)

  • We run
  • (first plural)

  • You run
  • (second singular)

  • They run
  • (third plural)

We add “s” to the end of a verb (run –> runs, sit –> sits, see –> sees, play –> plays)

We add “es” to the end of the verb that has a sibilant sound. i.e ss, ch, x, tch, sh, zz

example:

guess > guesses
watch –> watches
mix -> mixes)
smash –> smashes
buzz –> buzzes

Plural pronoun

This -s is different from the plural -s. Do not confuse the two.
i.e The subject “Lisa and Ronald” is a third person plural subject, so the verb DOES NOT get an -s.

drop singular plural
first person → I drop the ball. We drop the ball.
second person → You drop the ball. You (all) drop the ball.
third person → He/She/It drops the ball They drop the ball.

Notice that the verb is always drop in the present tense, unless the subject is third person singular.
Subjects like “Lisa and Ronald” are third person plural subjects. The names can be replaced by the third person plural pronoun “they” in the sentence, as shown below:

Lisa and Ronald drop the ball. = They drop the ball.

Other rules

generic component in wechat mini

Generic Item View

In our example omponent, we have a item-view custom component that will be applied as a generic component.

pages/example/example.wxml

In other pages, when we create a generic component and create a tag called selectable. You can name this whatever you want.

For example, in custom component pageView page-view’s index.json and index.wml, we declare custom generic tag called “rickycao” under componentGeneric:

index.json

Then use it in the wx html file like this:

index.wxml

In order to use rickycao tag, it is looking for a custom component that serves as generic (as indicated in componentGenerics). So when we use
the tag rickycao, we know which custom component to use.

In order to provide this generic, we must do so like this:

generic:rickytsao, and as a property of using our pageView component.

example.wxml

where item-view is declared in:

example.json

Let’s use the custom tag itemview

components/page-view/index.json

Then in that wx html file, we use it as a tag and then insert our values into its properties.

components/page-view/index.wxml

We use a custom component, and then say that we are applying our item-view component as a generic component:

triggerEvent (wechat mini)

Example

example.json

Notice here we have declared the generic:itemview to take on our item-view component here. item-view was imported in our .json file.
example.wxml

example.wxss

Item View

item-view.js

item-view.json

item-view.wxml

item-view.wxss

Stative Verbs

ref –

  • https://www.englishwithashish.com/stative-verbs-guide/
  • https://www.englishwithashish.com/linking-verbs-and-stative-verbs/

Stative Verbs

Stative verbs describe states. They do not describe actions.

Stative verbs indicate the following state of a subject:

Mental or Cognitive state: think, believe, doubt, guess, remember, pretend, recognize, recall, guess, forget, agree, disagree, need, prefer, satisfy
Emotional state: love, hate, adore, abhor, like, dislike, appreciate, envy, detest, loathe
Senses: see, hear, feel, seem, taste, smell, sense, sound
Possessional state: have, belong, possess, own, belong, want
Others (condition): weigh, contain, involve, concern, lack, deserve, matter, resemble

For example:

√ I am late.
(Here, “am” is a stative verb. It describes a state.)

X I caught a fish.
(“Caught” is not a stative verb. It describes an action. It is an action verb.)

√ John knows where the treasure is hidden.
(Here, “knows” is a stative verb. “Is” is also a stative verb. They both describe states.)

X John found the treasure.
(“Found” is not a stative verb. It describes an action. It is an action verb.)

Thoughts

Sarah agrees with you.

I believe that karma is real.

Time and health are two precious assets that we don’t recognize and appreciate until they have been depleted. (Author Denis Waitley)
(“Are” in this sentence is also a stative verb.)

Here are another five common stative verbs related to thoughts:

  • imagine
  • know
  • remember
  • think
  • understand

Feelings

Lee loves pies.
Mark and Craig prefer cakes.
I am prepared for the worst, but hope for the best.
(“Am” in this sentence is also a stative verb.)

Here are another five common stative verbs related to feelings:

  • hate
  • like
  • value
  • want
  • wish

Senses:

I feel sick.
All seems well.

Here are another five common stative verbs related to senses:

  • appear
  • look
  • see
  • smell
  • taste

Possession

That dog belongs to me.
Ask the farmer who owns the field.

Science fiction is a kind of literature that embodies the highest aspirations of the human race. (Author Harlan Ellison)
(“Is” in this sentence is also a stative verb.)

Here are another five common stative verbs related to possession:

  • consist
  • comprise
  • have
  • include
  • possess

Measurements:

This statue weighs a lot.
Your feet reach the end of the bed.
The problem spans two decades.
The marrow measures six inches.

More Importantly

Example 1:

I remembered where I left the keys. correct
I was remembering where I left the keys. wrong

(Stative verbs are not used in the past continuous tense.)

Example 2:

That dog belongs to me. correct
That dog is belonging to me. wrong

(Stative verbs are not used in the present continuous tense.)

Example 3:

All will appear normal. correct
All will be appearing normal. wrong

(Stative verbs are not used in the future continuous tense.)

If a stative verb is used in a continuous tense, native English speakers will treat it as an action verb, not a stative verb.

For example:

I was remembering where I left the keys. correct
(Native English speakers would assume that the speaker was in the act of remembering. In other words, they would treat it as an action verb not a stative one.)

More examples

Ashish loves his parents more than anyone in the world.
Nobody likes to talk to Rohan. He brags too much about his job.
I hated Mathematics for many years.
Do you believe in God?
He pretended to be a cop in front of my friends.
I can’t recall the date.
Every time we doubted him, he proved us wrong.
How can he dislike chocolates?
We appreciate what Max has done for our family.
He needed food very badly.
You seem upset about something.
The food tastes awful.
You smell great.
He sounds quite confident.
All of us have a gaming laptop.
She wanted a cook.
The syrup contains alcohol.
Shami deserves the credit for this win.

How to use calendar

You have a calendar component.
You want to use it in courses, so you set it up like this:

courses.json

courses.wxml

courses.js

wechat mini – fetch, get user test

pages/index/index.wxml

pages/index/index.wxss

pages/index/index.js

app.js

Video Ideas

China vs America (Sea Turtle Diaries)

schools
coffee
dating
marriage
drinks temperature
education
dress style

Present Perfect vs Present Perfect Continuous

ref –

  • https://www.grammarwiz.com/difference-present-perfect-and-present-perfect-continuous.html
  • https://www.oxfordlearnersdictionaries.com/grammar/online-grammar/present-perfect-simple-and-present-perfect-continuous
  • https://www.youtube.com/watch?v=7NGLHYVmr00

Present Perfect: Has/Have + Past Participle

e.g. He has passed his driving test

Present Perfect Continuous: Has/Have + Been + Present Participle

e.g. She has been reading a book

The broad rule is that although both tenses relate to the fact that something is being referred to in the past, the present perfect refers to something that has completed and the focus is on the result of that action, but the present perfect continuous refers to something that is continuing in the present and the focus is on the duration.

Can Choose Either

In some cases we can choose either of the tenses.
This is usually the case when we are referring to biographical type facts about someone’s life, often with the words for and since or some other time frame.

For example:

He’s eaten red meat his whole life
He’s been eating red meat his whole life

He’s worked for the company since he was a teenager
He’s been working for the company since he was a teenager

I’ve lived here for three years
I’ve been living here for three years

They’ve studied English since high school
They’ve been studying English since high school

Short Term or Long Term Action

These facts in the examples above tend to be long-term. However, we tend to use the present perfect continuous to emphasize the fact that an event or activity has been happening over a period of time that is relatively short-term.

I’ve been playing tennis for two hours (short-term)

Compare the long-term, which could be either present perfect or present perfect continuous:

I’ve played tennis most of my life (long-term)
I’ve been playing tennis most of my life (long-term)

Continuing or Completed Action

Another difference between the present perfect and the present perfect continuous is when we want to show whether something is completed or not.
The continuous tense shows that it is not completed.

Compare these:

He has read the book about JFK (the book is finished)
He has been reading the book about JFK (the book’s still being read)

She has taken the medicine (action completed)
She has been taking the medicine (referring to medicine that is being taken over a period of time)

Repeated or Single Action

This is similar to the previous one, but it shows the continuous form can be used to show that something is repeated:

Your wife has phoned you (may have been only once)
Your wife has been phoning you – (she has rung several or many times)

I’ve gone to the local swimming pool (could just be once)
I’ve been going the local swimming pool (indicates going there on several or many occasions)

Examples

State Verbs

State verbs are those that represent a state of mind, such as thinking, knowing, wanting, seeing etc.

Though there are some we can use in the present perfect continuous tenses,
generally most are cannot be used in the continuous tense and
so they are only used with the present perfect:

For instance, we don’t say this:

She has been knowing him for 3 days (X)
He has been seeing the car go past every day (X)

We would say:

She has known him for 3 days (√)
He has seen the car go past every day (√)