cursor claude3.5 sonnet调试坑集
我感觉是不能着急,陷入要么全部让AI完成,要么完全不信任AI代码的极端。
程序员做的工作应该转向需求分析、概要设计、详细设计这些工作,将框架内的编码和单元测试留给AI来做。
C
一开始的简单任务, 都可以作对, 但是一旦开始出错, 如编译错误, 往往比较难改对.
最好一开始就用git, 修改正确后就立刻commit, 否则成果容易毁于一句话.
composer开新的会话要小心, 似乎新会话像一个新程序员, 跟旧的会话风格大不一样, 还可能大幅修改已经完善正确的代码
cursor写一个函数或一个文件中的几个函数是相对安全的, 整个项目大幅修改文件, 往往陷入编译错误数个回合不能自拔
在以下情况出过错, 加入.cursorrules看能否防止他再次出错
- 在 Makefile 中,条件语句不能放在规则内部。
- 请尤其注意函数先后的声明顺序,以及函数调用的顺序。
- for循环的条件判断如果是变量x>0,并且x在每个循环中递减时, x的类型不能为unsigned, 否则不能退出循环.
redroid
B站上看到这么个视频https://www.bilibili.com/video/BV1H14y1p72L/
了解到还有这么一种玩法.大概意思是在电脑上通过docker开android虚拟机, 然后手机远程连接, 就像换了个手机一样.
基于视频的说法, 步骤是:
电脑端 | 手机端 |
---|---|
容器 | docker |
虚拟机 | redroid |
私网 | Zerotier |
远程屏幕控制 | ScrCpy |
如果都在内网似乎Zerotier就不需要了.
另外虚拟机还可以开在云电脑或服务器上, 应该也不需要Zerotier.
感觉还有简单的方式, 就是在虚拟机中安装向日葵来远程控制. 只不过向日葵安装在虚拟机, 有可能会受限于虚拟机权限, 而ScrCpy安装在宿主机, 理论上不受虚拟机权限限制.
微信小程序如何禁止本页面被转发?
只要删除这个页面函数即可: onShareAppMessage
Unifont点阵字体
是一个GNU项目 https://www.unifoundry.com/unifont/index.html
按官方说明, 确实是免费可商用的字体.
unicode所有字体见官网: https://www.unicode.org/charts/nameslist/
深圳公司注册还是不要选秒批的好
市监局 https://amr.sz.gov.cn/
房屋编码查询 https://tybm.szzlb.gov.cn:10000/AddressWeb/#/
经营范围查询 https://www.jyfwyun.com/home
如果注册选择秒批, 在选择经营范围的时候, 只有150个可选, 而实际上经营范围有1000~2000个.而且这一步比较靠后, 可能填了很多内容才出现经营范围选不了. 这时候只能删掉重选了.
秒批和正常注册流程有什么不同?
正常注册相对于秒批:
- 除了选择公司, 还能选择医疗或者其他要前置审批或特殊审批的企业.
- 公司名称里的行业用语可选项更多.
- 企业组织形式不限于内资有限公司.
- 股东不限于自然人
- 经营范围完整. 秒批只有完整范围的5%.
OLED屏幕第二摔, 又给手机换了OLED屏幕
我的iqoo neo5又给摔了。 OLed屏幕不出意料的开始传染。因为第1次屏幕是我自己换的,结果到了vivo的门店里不保修了。工作人员说必须要原装屏幕才能享受折扣价450块钱换屏幕,否则这里850块钱还不如买新机了。
我看了一下二手机还没有换屏幕贵才六百多。
没办法,只好自己再买一个第三方的。上次买第3方的屏幕花了300多,当时就想不如换官方的屏幕。但是看到官方屏幕的价格是在我换屏幕之后。上次的第3方的屏幕有几个问题,一个就是显示区域小,第2个就是不支持指纹。
这次在淘宝上重新买了新的屏幕,价格260,据说支持指纹。这个屏幕带框架拆下来挺麻烦的,把所有的元器件全部拆光了,换到新的屏幕框架上。装完发现这个屏幕比第1次买的第3方屏还要小。第1次买的屏幕至少前摄像头是一个圆孔,这次直接变成了水滴屏。
测试完倒是确实支持指纹的。多点心理安慰。
在等屏幕的期间,我找备用机发现几乎所有的我用过的手机都被我屏幕摔碎了。看来屏幕在我手里摔碎是必然的。只是以前的屏幕都是lcd屏,摔碎了之后不会导致传染。
我找了一下现在比较强的lcd屏,发现iqoo z8是LCD最强的手机了,支持联发科8200,性能超出骁龙888。最大12gb+512gb。价格在1000~1200之间。
我看iqoo Z系列现在还在出新的lcd屏的手机,最新的z9用的是骁龙6系列的cpu,性能还不如z8。
scratch可以写3d的minecraft?
项目地址:
https://scratch.mit.edu/projects/908626779
项目虽然在scratch上但是推荐turbowarp运行 https://turbowarp.org/908626779
这儿还有一篇讲这个的,https://www.instructables.com/Coding-in-Minecraft-With-Scratch/
B站上的视频
https://www.bilibili.com/video/BV1qSbxeiEBT/?vd_source=a24e9520e198932372f0c014624cafa4
新疆地区的财政和税收优惠政策与主要产业
主要政策
- 财政部 税务总局 发展改革委 工业和信息化部关于印发新疆困难地区重点鼓励发展产业企业所得税优惠目录的通知(财税【2021】42号) https://xinjiang.chinatax.gov.cn/zwgk/tzgg/202112/t20211221_93745.htm
- 财政部 税务总局关于新疆困难地区及喀什、霍尔果斯两个特殊经济开发区新办企业所得税优惠政策的通知
财税〔2021〕27号 https://xinjiang.chinatax.gov.cn/sszc/zxwj/202107/t20210705_85628.htm - 新疆困难地区重点鼓励发展产业企业所得税优惠目录 https://szs.mof.gov.cn/zhengcefabu/201910/t20191031_3413822.htm
困难地区是指南疆三地州。南疆三地州是指喀什、和田、克州: http://cn.chinagate.cn/povertyrelief/2016-04/26/content_38327129.htm。霍尔果斯在伊利地区。
总的来说,喀什可享受双重政策优惠。主要产业
喀什本地农业特产是伽师新梅(西梅),近几年连年扩产。
制造业在2023年增长大约30%。是增长非常快的产业。
进出口贸易
中亚五国:哈吉塔乌土,五个斯坦国。即:哈萨克斯坦、吉尔吉斯斯坦、塔吉克斯坦、乌兹别克斯坦、土库曼斯坦。其中哈吉塔从北到南依次与新疆接壤。其中哈萨克斯坦的面积最大,超过了其他4个国家的之和。哈国面积约为新疆+西藏。吉塔各自和广东差不多,乌土各自相当于四川面积。人口方面,哈国相当于深圳,约两千万人口,吉为600万,塔为1000万。乌3300万,土1000万。
喀什在全疆进出口贸易额排名第二。伊犁地区第一。主要面向中亚五国、共建一带一路国家。面向RCEP国家增长较快,但基数不明。
根据http://xian.customs.gov.cn/urumqi_customs/556645/556648/5679082/index.html 数据,2023年伊犁为931.1亿元,同比增长59.4%。其中机电产品增长65%,劳动密集型增长45%,说明其中机电产品正占据主流。其中90%以上为出口。99%为民营企业,57%出口到哈萨克斯坦。
喀什为836.8亿元,比伊犁少100亿,但同比增长71.2%,高于伊犁。其中主要产值来与喀什综合保税区,为496.5亿元,占比约60%。主要进出口方式为陆运,占喀什外贸进出口总值的88.5%。另外,喀什自贸区刚刚在2023年双十一落地(全疆自贸区包括乌鲁木齐、霍尔果斯、喀什)。其中机电产品增长103.8%,劳密产品增长55.7%。
乌鲁木齐以700.1亿元,同比增长36.5%,在全疆位列第三。从贸易伙伴看,哈萨克斯坦、吉尔吉斯斯坦、俄罗斯、乌兹别克斯坦、印度尼西亚为乌鲁木齐排名前五的贸易伙伴。中国新疆乌鲁木齐对上述国家进出口值分别同比增长48.5%、17.2%、59.7%、52%、8.3%。很神奇印尼这么远居然还有印尼。
以上可以看出:喀什是进出口贸易增长最快地区。乌鲁木齐应该是传统的进出口贸易地区,但增长已经相对比较落后。
喀什地区前四大贸易伙伴依次为吉尔吉斯斯坦、塔吉克斯坦、哈萨克斯坦、巴基斯坦。前两个是接壤国家。
http://paper.ce.cn/pad/content/202409/01/content_300396.html
喀什最重要的有个喀交会,其中还有专门与广东对接的分会场叫疆品南下、粤品北上。粤品北上主要是通过喀什进入中亚。
从喀什的国际贸易发展情况来看,跨境物流和跨境电商都处于快速增长时期。
通过HTTP访问小程序云数据库
其实,HTTP并不能直接访问云数据库,而是要通过云函数中介。也就是说,HTTP访问云函数,云函数访问云数据库。
在微信开发者工具中有个“云开发”按钮,里面可以管理云数据库和云函数。在如果小程序打开了云开发的支持,目录数中就会增加云函数的id目录,可以在这儿直接创建云函数。但事实上,创建云函数不止这一种方法,管理云数据库也不止这种方法,而要让http访问云函数,这里并不能开启http的访问权限。
事实上,云开发是属于腾讯云的一个服务,所以可以登录腾讯云的后台https://console.cloud.tencent.com/,找到云开发CloudBase这个服务。在环境管理中就可以看到微信小程序的对应的云开发环境。点击进去以后,选择访问管理-> Http访问服务就可以进行管理。
另外点击基础服务里的云数据库,页面将引导用户进入到一个专门的云开发平台的管理后台界面https://tcb.cloud.tencent.com/, 这里的功能微信开发者工具里面的云开发有点类似,但是设置的选项又要多一些。
腾讯云开发有专门的文档,跟微信者开发文档的域名不一样https://docs.cloudbase.net/,在这里也可以选择http访问服务的文档进行浏览学习。
这边的文档就提示进行云函数的创建和编辑,是有专门的命令行cli工具的https://docs.cloudbase.net/cli-v1/intro。这样可以通过命令行进行云函数的创建, 和微信开发者工具中创建的效果是一样的。并且命令行工具的功能要更多样一些, 比如说为http访问服务创建路由, 就只有用命令行工具才能做到。
ESP-IDF esp32c2 bulfi默认示例项目配置和小程序的blufi实现
示例项目配置
- 需要选择target为esp32c2
- 需要menuconfig配置flash容量和XTAL晶振。如果串口只能通过74880连接,说明晶振是26Mhz的,如果可以通过115200连接,则晶振是40MHz的。Flash如果配置不对,模组上电后会打印警告。晶振配置不对,蓝牙会找不到。我在淘宝买的这个https://item.taobao.com/item.htm?_u=ed01qc68e7&id=733669672310晶振就是26MHz、4M Flash,详情页说了4M Flash但是没有说26Mhz晶振。而Menuconfig默认配置是40Mhz+2MFlash。
- 下载乐鑫提供的配网APP。这个APP默认不会请求权限,需要自己去设置里面打开定位、蓝牙、附近设备等各项权限。
- APP打开后就能看到BLUFI DEVICE设备。
小程序实现
参考如下项目:
https://gitee.com/weijian.kang/esp-blufi-for-wx
该项目与上面的示例项目可以配网。不过仍存在一些问题,实际使用时候需要解决:
1、设备列表没有过滤,所有的蓝牙设备都会被扫描出来而不仅仅是blufi设备
2、错误的ssid和密码会导致界面卡在wx.showLoading界面。当然也可能是固件没有返回错误。
3、异步代码采用回调方式,回调地狱现象比较严重。最多的一行代码前面有42个空格(21个tab)
4、中文ssid发送的不对,在串口putty上显示的是乱码,而乐鑫官方发送的ssid在putty上显示正常
5、ssid需要手动输入
这个项目参考的另一个项目是
https://github.com/xuhongv/BlufiEsp32WeChat
这个项目readme虽然说只支持esp32,但esp32c2实测也是支持的。
似乎前面一个项目存在的问题都存在,只是功能似乎更强一些包括:
1、增加了本地ssid扫描和选择,根据界面提示是模组扫描的结果,但扫出来的wifi数量明显不足。
2、可在配网同时发送自定义的数据。但在putty打印上没有显示。当然这也可能是固件没有处理的原因。
理解FreeRTOS的信号量binary/counting semaphore机制
官方文档:
https://freertos.org/Documentation/02-Kernel/02-Kernel-features/02-Queues-mutexes-and-semaphores/02-Binary-semaphores
https://freertos.org/Documentation/02-Kernel/02-Kernel-features/02-Queues-mutexes-and-semaphores/03-Counting-semaphores
信号量semaphore词源
semaphore除了表示信号量,还有旗语的意思。组成包括:
sema-
语义、符号/sign 的含义。如语义化版本Sematic Version,语义学Semasiologyphor-
带来/bring, 如欣快的euphoric, 隐喻metaphor, 发光体luminophor
组合起来表示带来信号。
信号量的使用
B站上有个信号量机制讲解视频https://www.bilibili.com/video/BV18P41187NV
信号灯(交通灯)就是一种信号量,在不同方向的汽车要使用同一个交叉路口的时候, 在同一时间,信号灯只允许某一方向的汽车通行。
在FreeRTOS中, 获取一个信号量即take,释放一个信号量即give。获取信号量相当于这个任务来到了十字路口,如果没有获取到信号量他就在十字路口这里等着,直到等到了信号量再继续执行。释放信号量可以在获取信号量的任务本身中进行,也可以在中断和回调中进行。
binary信号量是指只能取0或者1,counting信号量可以取大于1的值。
综合来说,信号量起到了和JavaScript的promise、await类似的作用。take相当于await等待。give相当于在promise的fullfilled。等待信号量释放的过程,相当于是等待另外一个异步程序执行完毕的过程。和await类似,避免了JavaScript的回调地狱,将异步函数执行完毕后需要做的操作仍然放在本任务中而不是放在回调后面。
对于有限的资源,JavaScript需要自行去实现信号量的计数,而freeRTOS直接提供了信号量。
下面是esp-idf的ledc fade渐变调光的示例代码,截取了其中和信号量有关的代码,以便说明。部分代码顺序略有调整,但不影响实际的代码工作逻辑。
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/semphr.h"
#include "driver/ledc.h"
#include "esp_err.h"
/*
* ....... 省略代码
*/
// 这是渐变调光结束后注册的用户回调函数。其中释放give了用于监控回调是否完成的信号量。user_arg在这个回调函数注册的时候传入了信号量。
static IRAM_ATTR bool cb_ledc_fade_end_event(const ledc_cb_param_t *param, void *user_arg)
{
BaseType_t taskAwoken = pdFALSE;
if (param->event == LEDC_FADE_END_EVT) {
SemaphoreHandle_t counting_sem = (SemaphoreHandle_t) user_arg;
xSemaphoreGiveFromISR(counting_sem, &taskAwoken);
}
return (taskAwoken == pdTRUE);
}
void app_main(void)
{
/*
* ....... 省略代码
*/
// 在主程序中注册了计数信号量,数字为要调光的led的通道数量。最后一个参数零表示计数信号量的起始值为0,也就是没有任何资源。
SemaphoreHandle_t counting_sem = xSemaphoreCreateCounting(LEDC_TEST_CH_NUM, 0);
// 在这儿注册led调光结束的回调函数, 并且将计数信号量作为用户参数也传入比较函数中。
ledc_cbs_t callbacks = {
.fade_cb = cb_ledc_fade_end_event
};
for (ch = 0; ch < LEDC_TEST_CH_NUM; ch++) {
ledc_cb_register(ledc_channel[ch].speed_mode, ledc_channel[ch].channel, &callbacks, (void *) counting_sem);
}
while (1) {
// 在主程序中会循环调亮调暗的过程。先调亮到LEDC_TEST_DUTY,再调暗到0
printf("1. LEDC fade up to duty = %d\n", LEDC_TEST_DUTY);
for (ch = 0; ch < LEDC_TEST_CH_NUM; ch++) {
ledc_set_fade_with_time(ledc_channel[ch].speed_mode,
ledc_channel[ch].channel, LEDC_TEST_DUTY, LEDC_TEST_FADE_TIME);
ledc_fade_start(ledc_channel[ch].speed_mode,
ledc_channel[ch].channel, LEDC_FADE_NO_WAIT);
}
// 因为上面的渐变调光函数事实上会调用异步任务或者中断函数ISR执行,完全执行需要时间,所以这里先取走了所有的信号量。因为起始的信号量为零,需要等待所有调光完成回调函数释放信号量后才能继续执行。
for (int i = 0; i < LEDC_TEST_CH_NUM; i++) {
xSemaphoreTake(counting_sem, portMAX_DELAY);
}
// 下面又从最高的亮度调为零,与上面类似,通过take信号量的方式等待调光执行完成。
printf("2. LEDC fade down to duty = 0\n");
for (ch = 0; ch < LEDC_TEST_CH_NUM; ch++) {
ledc_set_fade_with_time(ledc_channel[ch].speed_mode,
ledc_channel[ch].channel, 0, LEDC_TEST_FADE_TIME);
ledc_fade_start(ledc_channel[ch].speed_mode,
ledc_channel[ch].channel, LEDC_FADE_NO_WAIT);
}
for (int i = 0; i < LEDC_TEST_CH_NUM; i++) {
xSemaphoreTake(counting_sem, portMAX_DELAY);
}
/*
* ....... 省略代码
*/
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
}
小学英语
三年级上-Unit 1 How do we feel?
In this unit, you will:
- Be able to describe how you feel.
- Be able to talk about different feelings.
Get ready
Think: What feelings do we have?
A. Listen. Then point and say.
happy
sad
angry
tired
B. trace and match.
C. Build background Feelings
We have different feelings.
Look and draw.
How are you?
In this story, the children have different feelings in class.
Social science
Explore
How are you?
1
Teacher: Good morning, boys and girls! How are you?
2
Wen Jie: Not so good. I'm cold.
Teacher: OK, Wen Jie. Let's close the window.
3
Jia Li: I'm sad. I can't find my pencil.
Teacher: Look, Jia Li. Here's a pencil.
4
Teacher: What about you two?
Another Girl: I'm happy.
Another boy: I'm happy, too!
5
Teacher: well, let's start again. How are you?
Students: Fine, thank you.
Teacher: Phew! Now please look at the blackboard...
A. Look and choose.
a. Here's a pencil.
b. Let's close the window.
B. Read and act.
How are you, Wen Jie?
Not so good, I'm...
Think: How do you feel in class?
C. Listen and chant.
How are you?
How are you? How are you?
How are you this morning?
I'm fine. I'm fine.
You are very kind.
How are you? How are you?
How are you this afternoon?
Very good. Very good.
I'm very good.
Learn
How are you?
I'm fine.
I'm happy.
D. Ask and answer.
A: How are you?
B: Not so good. I'm tired. How are you?
A: I'm happy..
Communicate
A. Listen and number. Then act.
Li Chen's day
A: How are you? Li Chen?
B: I'm ...
Think: How are you today?
B. Do a role-play.
Children at the beach
A: How are you, Lulu?
B: Oh, not so good. I'm tired.
C. Trace draw and say.
Extend
A thirsty bird
1
Bird: I'm thirsty.
2
Bird: Water!
3
Bird: I can't drink the water.
The bird is sad.
4
Bird: I have a good idea!
5
Bird: I can drink the water now!
Look! the bird is happy.
Think: how do you make yourself feel better?
Unit 2. What's interesting about families?
In this unit, you will:
- Be able to explain what is interesting about families.
- Be able to talk about families and family members.
Get ready
Think: who is in your family?
A. Listen, then point and say.
Grandfather, grandmother, father, mother, sister, brother, and me.
B. Trace and match
C. Build background families
We live in families. We love each other.
Listen and number.
Preview families.
In this text, we learn about different families.
Explore
Families
My name is Linlin. This is my family, my mother, father and brother.
My name is Yangyang. This is my family. She's my mother. And he's my father. Who is he? He is Pengpeng, my twin brother.
My name is Xiaoyu. This is my family: my father, mother, brother and sister.
My name is Xiaojie. My family is big. This is my family: my grandfather, grandmother, father, mother and sister.
How are the families different?
A. Look and act
Hi, I'm... This is my...
B. Choose one family and say
Xiaojie family is big. my family is big too.
Think. What is your family like?
C. Listen and chant.
My family
Here is a picture. Come and see.
This is all my family.
Who is she? She's my mother.
Who is he? He's my father.
Who is he? He's my brother.
And what is that? Who is she?
Don't be silly. That is me!
Learn
This is my family.
Who is he? He is my father.
Who is she? She is my mother.
D. Ask and answer.
Family photos
Who is he? He is my father.
Communicate.
A. Listen and number. Then act.
Li Wen's family tree.
Hello, I'm Li Wen. This is my family tree. This is my grandfather. This is...
Think: What is your family tree like?
B. Look at the talk
School news. Family month.
Look at the children with their families. They are happy.
Who is he, Li Wen? He's my brother.
C. Trace stick and say.
I am Li Wen. I am happy, too.
Extend
At the mid-autumn festival
This is the mid-autumn festival. Lanlan and her brother Junjun are at their grandparents' house.
1
Junjun: Look, Lanlan!
Lanlan: Wow!
Junjun: Who is he?
Lanlan: He's our grandpa.
Junjun: Who is she?
Lanlan: She's our grandma.
2
Lanlan: Grandpa, is this my dad?
Grandpa: Yes, that's your father. It's our mid-autumn festival photo.
3
Dad: Hey, let's take a photo together.
Lanlan: Good idea!
Unit 3. What do we look like?
In this unit, you will:
- Be able to explain what people look like.
- What you talk about what you look like.
Get ready
Think: What body parts do we have?
A. Listen, then point and say.
Hair, head, ear, eye, face, nose, mouth.
Learn
An eye, two eyes, hair
B. Trace and match
C. Build background. Our looks
People look different. But we may look like people in our families.
Look and see
My mother and I have big eyes.
Now it's your turn.
Preview.
Minmin‘s haircut.
In this story Minmin's hair is too long. And he gets a great haircut.
Explore
Minmin's harcut
1
Mom: Look at your hair, Minmin it's too long.
Minmin: But I like it!
2
Mom: Minmin, I can't see your eyes. Now sit on this chair, please!
3
Snip! Snip!
4
Mom: Look, do you like your haircut?
5
Minmin: Oh, I have short hair.
6
Minmin: I like my hair cut, mum.
Mom: You look great!
Minmin: Thanks, mom.
What does Minmin Look like before and after his haircut?
A. Read and match
I can see your eyes.
Your hair is too long.
I can't see your eyes.
You look great!
B. Which part of the story do you like? Tick and act.
Oh, I have... I like my hair cut.
Think What do you look like?
C Listen and chant.
Look at my face
Look at my face.
Look at my face.
I have a round face.
Look at my eyes!
Look at my eyes!
I have bright eyes!
Look at my nose.
Look at my nose!
I have a small nose!
Look at my hair!
Look at my hair!
I have long black hair.
Learn
I have a small nose.
I have big eyes.
I have long hair.
D Look and act
Look, I have a big head. I have ...
Communicate
A. Listen and number. Then talk.
Who am I?
Play a guessing game.
Think: What does your best friend look like?
B. Do a Survey.
Hi, Lili. What do you like about yourself?
I like my hair. I have long hair.Trace draw and say
I'm Lili. I like my hair.
Extend
People look different
People around the world look different.
Some people have brown eyes, some have blue eyes.
Some people have black hair. Some have brown hair.
What do you like?
Do you have long or short hair?
Do you have a big or small mouth?
People look different.
It's OK to be different.
Unit 4 How do we have fun?
In this unit, you will:
- Be able to explain how you have fun.
- Be able to talk about some fun activities.
- Be able to write about having fun with others.
Listen, then point and say.
Think: What do we do for fun?
Skip, run, fly a kite, skateboard, ride a bike.Build background. Having fun.
We have fun with our family and friends.
Look, think and say
This is my father. We skip together..
Preview
In the park.
In this story, a group of children have fun in the park.Explore
In the park
1
The children are in a park.
Children: Hello, Tingting.
Tingting: Hello.
2
Yaoyao Can fly a kite! She is happy! Chenchen can ride a bike, but he is too fast.
Chenchen: It's fun. Woo hoo!
3
Chenchen: Oh no!
Huihui can run fast and help Chenchen.
4
Now the children want to stip together, but tingting can't skip.
Chenchen: Hey, let's skip together.
Children: OK!
Tingting: I can't skip, but I can get some juice. Are you thirsty?
5
Tingting can skateboard. She brings some juice.
Dangdang: Wow, Tingting! Thank you!
How do the children have fun in the park?A. Read and order
Tingting brings some juice.
Yaoyao can fly a kite.
The children skip together.
Huihui can help Chen chen.B. Read match and say.
I can run fast.
I can fly a kite.
I can ride a bike.
I can skateboard.
I can skip.
Yaoyao can...
Think: How do you have fun with your friends?C Listen and chant.
I can ...
I can't fly up in the sky,
but I can fly a kite up high.
I can't ride a bike at all,
but I can play football.
I can skip and I can run.
And I can jump -- it's fun!Learn
I can skip. I can't skateboard. Painting can skateboard. She can't skip.
D Tick and talk.
I can... I can't...
... can ...
He/She can't ...Communicate.
A. Listen and circle, then talk.
Let's have fun together.
What can Tiantian/Xiaoxiao do in the park?
He/She can ...
Think: How do you have fun with your family?B. Think and say
A sports day notice.
Time: Friday afternoon, one PM to three PM.
Place: The sports ground
You can ... - skip
- run
- jump
Come with your mom and dad. Let's have fun.
I can ... My father/mother can ... too. We can ... together.C. Trace and write.
We skip together. We have fun.
Extend
Let's play games!
We play games everyday. We have a lot of fun.
Jump, jump and jump. One two three. We can play hopscotch. You and me.
Move the rope round and round. We can skip up and down.
Two teams can play tug of war, put the rope more and more.Think: What games do you like to play? Why?
Unit 5 What do we eat?
In this unit, you will:
- Be able to describe what do we eat
- Be able to talk and write about the food and drinks you like
Get ready
Think: What food do we eat every day?
A. Listen, then point and say.
Milk, juice, apple, tomato, carrot, banana, fish, grape, meat.
Learn: Carrot → carrots, tomato → tomatoes
C. Build background Food
We eat food every day. We eat meat, fruit and vegetables.
Think and say.
07:15 Seven fifteen
11:30 Eleven thirty
18:15 Eighteen fifteen
I have carrots and bananas. I have ...
Preview: In this story, the children make Let's cut the fruits and vegetables. We can have some fun. a funny food face.
Explore
A funny food face
- Wenwen: What do you have, mum?
Chenchen: Do you have any apples?
Mum: Let's see.Chenchen: There are some fruit and vegetables.
Wenwen: Oh no! I don't like carrots.
Mum: Let's cut the fruits and vegetables. We can have some fun.
3
Huihui: Do you like carrots, Chenchen?
Chenchen: No, I don't.
Mum: Carrots are good for you.
4
Mum: What do you like, Huihui?
Huihui: I like carrots!
Mum: OK... Carrots for the "eyes".
5
Chenchen: I like apples.
Wenwen: I like bananas.
Huihui:Ha! Ha! This is fun!
6
Chenchen: We like the food face, Mum.
Mum: That's great.
What fruit and vegetables do the children eat?A. Read and match.
- The children eat the funny food face.
- The children make a funny food face.
- Mum buys some food.
- The children cut up the fruit and vegetables.
B. Read and act.
A: What do you like?
B: I like...
Think: What fruits and vegetables do you and your family eat every day?C. Listen and chant.
A Salad
What do you like?
I like salad.
Do you like tomatoes?
Yes, I do.
Do you like bananas?
Yes, I do.
Do you like chocolate?
Yes, I do.
Look! A salad for you.
Thank you very much.
Do you like it?
No, I don't like them together!
Learn
What do you like? I like tomatoes.
Do you like fish? Yes, I do.
Do you like meat? No, I don't.
do not → don'tD. Ask and answer.
A. Do you like fish? I like...
B. Yes, I do. What do you like?
Communicate.
A. Listen and tick. Then act.
China Zhong Yu. Thailand Anna. UK Ted.
A: What do you like, Zhong Yu?
B: I like ...
Think: What food from different countries do you know?
B. Look and talk.
In the restaurant.
Menu
fish ¥30
chicken ¥85
tomato soup ¥8
carrots ¥15
apple juice ¥10
grape juice ¥10
Extend
Parts of plants
We eat different parts of plants. Some of the parts are roots, fruit or leaves.
- Root: Carrots are long and orange.
- Fruit: Tomatoes are round and red.
- Leaves: Lettuce is big and green.
What parts of plants do you like to eat?Think: What other parts of plants can we eat?
Unit 6. What do we like about small animals?
In this unit, you will:
- Be able to describe what you like about small animals.
- Be able to talk about small animals
- Be able to write about your favorite small animal.
Get ready
Think: What small animals do you know?
A. Listen, then point and say.
Squirrel, rabbit, cat, dog, frog, mouse.
Learn: dog → dogs, mouse → mice
B. Trees and match.
Pets day
Build background. Small animals
There are many small animals around us. Some of them are our friends.
Preview
Coco's day in the park
In this story, two friends and the dog Coco find different small animals in the park.
Explore.
Coco's day in the park
- Boy: It's a nice day today.
Girl: It is.
Coco: Woof! Woof!
Girl: What is it, Coco? -
Boy: Oh, it's a cat! Look! it has small ears.
Girl: It's cute. I like its big eyes. -
Coco: Woof! Woof!
Girl: What is it, Coco? -
Boy: Look, that's a squirrel!
Girl: Is this a squirrel, too?
Boy: Yes, they have big long tails. -
Girl: I see two small animals. What are they?
-
Girl: Oh, they are frogs. They are small.
Boy: I like frogs. They eat bad bugs.What do the children like about the small animals in the park?
A. Read and order.
They see frogs.
They see squirrels.
They see a cat.
B. Match and talk.
- They are small.
- It has big eyes and small ears.
- They have big long tails.
A: What is it? What are they?
B: It's a ... It ... / They're ... They ...Think: What small animals do you like? What do you like about them?
C. Listen and chant.
What is it?
What is it?
What is it?
It's swimming in the river.
What is it?
What is it?
It's a little frog.
What are they?
What are they?
They are running on the grass.
What are they?
What are they?
They are cute little dogs.
Learn
What is it? It is a mouse. It is → It's
What are they? Are they are rabbits. They are → They're
D. Play a game
What is it? It's a cat.
What are they? They are...
Communicate.
A. Listen and number, then say.
Small animals in grandpa Li's garden
What small animals can you see in grandpa Li's garden?
I can see...
It has/ They have...
It's / They're ...
Think: What does your favorite small animal look like?
B. Play a game
A: It has big eyes and small ears. It has long hair. What is it?
B: It's a cat. That's picture one.C. Draw trace and write.
A Riddle.
It has big eyes and small ears. It's cute. I like it. What is it?
Extend
A frog's life
It is a small egg. It can't swim or jump.
It is a baby frog. Its tail is long. It can swim.
It is still a baby frog. It has four legs. Its tail is small and short. It can swim and jump.
It is a frog. It has four legs. It has no tail. Its mouth is big. It can swim and jump.
Think: Is a frog's life amazing? What do you like about a frog's life?
Unit 7. What do we know about the weather?
In this unit, you will:
- Be able to describe different weather.
- Be able to talk and write about the weather in different places.
Get ready
Think: What weather do you know?
A. Listen, then point and say.
sunny sun
windy wind
rainy rain
cloudy cloudB. Trace write and say
It's windy in Beijing.
C. Build background Weather
There is different whether. We can do different things in different weather.
Listen tick and say.
It's sunny. I can go to the park.
Preview: We like different weather. In this text, the children and the farmer like different weather.
Explore.
We like different weather.
- Girl: How's the weather today?
Boy: It's rainy.
Girl: I don't like the rain.Girl: It's windy today. I like the wind. I can fly my kite.
Boy: Let's go to the park.
Girl: Hooray!Girl: Oh! Dear!
Boy: It's hot today. I don't like the sun.
Farmer:
I like the rain.
Oh, no! My hat and my plants! I don't like the wind.
I like the song. I have a big harvest. I'm very happy.
What weather do the children and the farmer like? Why?
A. Read and draw.
- The rainy day.
- The windy day.
- The sunny day.
B. Think and say
- It's rainy today. I like...
- It's ... today. I like ... I can...
Think: What weather do you like? Why?
C. Listen and chant.
How's the weather?
How's the weather?
How's the weather?
How's the weather today?
Is it sunny?
Is it sunny?
Can we go out and play?
It's sunny.
It's sunny.
It's sunny today.
We can go to the park.
Let's go there and play.
Learn
How is the weather? It is windy. How is → How's
D. Make and talk.
Make a weather wheel
Communicate.
A. Listen and choose then say.
How's the weather in your city?
It's sunny. It's snowy.
It's windy. It's rainy.
It's new year's day. In Zhong Yu's city, it's ...
Think How is the weather in the city today?
B. Look and act.
Son: Hi, Dad.
Dad: Hi, how are you and your mum?
Son: We are good. How's the weather in? Shenyang, Dad?
Dad: It's ... here. How's the weather ...?
Son: It's...
Trace and write.
Dad: How's the weather in Sanya?
Son: It's sunny and hot. How's the weather in Shenyang?
Extend
On a windy day.
Woosh! Woosh!
The wind is strong.
My kite goes up.
The string is long.
Oh, no! Oh, no!
It's in the tree!
Please, Mr. Wind.
Don't take it from me.
Woosh! Woosh!
There it goes!
My kite is free.
The strong wind blows.
Think: What can you do on a windy day?
乐鑫ESP系列命名关系
核心名 | 带外围名称 | CPU类型 | 无线类型 |
---|---|---|---|
ESP8285 | ESP8266 | Xtensa | 2.4G WIFI |
ESP8684 | ESP32-C2 | RISC-V | 2.4G WIFI+BLE5 |
ESP8686/8685 | ESP32-C3 | RISC-V | 2.4G WIFI+BLE5 |
-- | ESP32-C5 | RISC-V | 2.4G/5G WIFI6+BLE5 |
-- | ESP32-C6 | RISC-V | 2.4G WIFI6+BLE5+IEEE 802.15.4 |
-- | ESP32-C61 | RISC-V | 2.4G WIFI6+BLE5 |
-- | ESP32-P4 | RISC-V | 无 |
-- | ESP32-H2 | RISC-V | BLE5+IEEE 802.15.4 |
-- | ESP32-S2 | Xtensa | 2.4G WIFI |
-- | ESP32-S3 | Xtensa | 2.4G WIFI+BLE5 |
-- | ESP32 | Xtensa | 2.4G WIFI+BLE |
系列名称 | 功能 |
---|---|
P系列 | 片上温感,jpeg编解码,isp(图像信号控制器如摄像头),camera, |
H系列 | 片上温感 |
C系列 | 片上温感 |
S系列 | 触摸,片上温感,SDIO, DAC |
32系列 | SPI,SDIO, DAC |
通用功能(包括P/H/C/S/32系列):
- Sigma Delta DAC
- SPI
- RMT红外遥控(C2不支持)
- PCNT计数器
- mcpwm电机PWM(C2不支持)
- LEDC(即LED PWM控制)
- LCD屏幕,支持I2C/i80/mipi_dsi/rgb_panel/spi.
- I2S(C2不支持)
- I2C
- GPIO
- 软I2C/软SPI/软Uart
- ADC
免费的云端数据库
似乎比较靠谱的是mongoDB atlas和google的firebase. mongoDB atlas也是基于azure aws google的云服务的,估计需要选择其一。google的firebase在国内官网居然是可以访问的,但就是无法登录购买。这意思是google部分服务国内可用?
如果在腾讯云阿里云上正儿八经的买个数据库服务,起步价一年最少都是好几千的。
我的需求是本地使用indexedDB存储,并且与云端同步。似乎pouchDB https://pouchdb.com/ 很好满足这个任务,因为他号称可以与couchDB同步,并且本地是使用indexedDB存储的。
其他简化indexedDB的js库包括
- dexie.js https://dexie.org/
- localForage https://localforage.github.io/localForage/
- idb https://github.com/jakearchibald/idb