无来

不管你来还是不来
我都在这里,夜夜点亮
不是为了守候
只是为了做好我自己

0%

chatgpt 4 提供方案

在 MacBook 上使用 M3 芯片训练 Transformers 模型时,您可以通过多种优化措施来提升训练效率。以下是一些专门针对该硬件的优化建议:

软件优化

  1. 使用适合的框架和库

    • Transformers 库:使用最新版本的 Hugging Face Transformers 库,因为它通常包含针对各种硬件优化的更新。
    • Accelerate 库:Hugging Face 的 Accelerate 库可以帮助简化多设备训练配置,优化训练速度。
  2. 混合精度训练

    • 使用混合精度训练(Mixed Precision Training)来加速训练过程,同时减少显存使用。

    • 在 PyTorch 中,可以通过 torch.cuda.amp 进行混合精度训练:

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      from torch.cuda.amp import autocast, GradScaler

      scaler = GradScaler()
      for data, labels in dataloader:
      optimizer.zero_grad()
      with autocast():
      outputs = model(data)
      loss = criterion(outputs, labels)
      scaler.scale(loss).backward()
      scaler.step(optimizer)
      scaler.update()
  3. 数据加载优化

    • 使用 torch.utils.data.DataLoader 中的 num_workers 参数来并行加载数据,以减少数据加载的瓶颈。

      1
      dataloader = DataLoader(dataset, batch_size=32, shuffle=True, num_workers=4)
  4. 小批量训练(Gradient Accumulation)

    • 使用梯度累积技术来模拟更大的批量大小,从而稳定训练过程,同时降低每次迭代所需的显存。

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      accumulation_steps = 4
      optimizer.zero_grad()
      for i, (data, labels) in enumerate(dataloader):
      outputs = model(data)
      loss = criterion(outputs, labels)
      loss = loss / accumulation_steps
      loss.backward()
      if (i + 1) % accumulation_steps == 0:
      optimizer.step()
      optimizer.zero_grad()
  5. 模型剪枝和量化

    • 使用模型剪枝和量化技术来减少模型大小和计算量,提高训练速度。

硬件优化

  1. 充分利用 GPU

    • 如果有外部 GPU,可以通过设置 M1/M3 设备与外部 GPU 协同工作来加速训练过程。确保训练框架正确识别并使用可用的 GPU 设备。
  2. 减少 MacBook 其他任务的负载

    • 关闭不必要的应用程序和后台进程,以确保更多的系统资源可以用于模型训练。

环境优化

  1. 优化 Python 环境

    • 使用专门为 Mac ARM 芯片优化的 Python 发行版,例如 Miniforge,可以提高性能。

    • 确保安装的 PyTorch、TensorFlow 和 Transformers 库是针对 M1/M3 优化的版本。

      1
      2
      conda install -c conda-forge tensorflow-macos
      conda install -c conda-forge tensorflow-metal
  2. 确保良好的散热

    • 在长时间训练期间,确保 MacBook 有良好的散热环境,防止过热导致的性能下降。
  3. 使用更快的存储设备

    • 如果可能,使用外部 SSD 存储设备来加速数据加载和保存模型检查点的速度。

通过结合这些优化措施,您可以在 MacBook M3 芯片上显著提升 Transformer 模型的训练效率。

Beginner Agility Ladder Drills:

初级敏捷绳梯训练:

  • two foot run
    双脚跑
  • Ladder Taps
    梯子轻敲
  • Lateral Single Leg Hops
  • 侧向单脚跳
  • Single Leg Forward Hops
  • 单脚向前跳
  • Two -Foot Lateral Run
  • 双脚侧向跑
  • Fight Shuffle
  • 战斗滑步
  • Skiers
  • 滑雪跳
  • Carioca
  • 侧滑步
  • Lateral In,In, Out, Out
  • 侧向进进出出
  • Two-Foot Lateral Hops In and Out
  • 双脚侧向进出跳

Intermediate Agility Ladder Drills (中级)

中级敏捷绳梯训练

  • High Knee Run
  • 高抬腿跑
  • Straddle Squat Hops
  • 开合跳蹲
  • Quick Hopscotch
  • 快速跳房子
  • Two-Foot Lateral Hop
  • 双脚侧向跳
  • Ali Shuffle
  • 阿里滑步
  • 180 Degree Rotations
  • 180度旋转
  • Jumping Jack Variations
  • 跳跃变式

Advanced Agility Ladder Drills

高级敏捷绳梯训练

  • In, In, Out ,Out
  • 进进出出
  • Icky Shuffle
  • 依奇滑步
  • Icky Shuffle variation
  • 依奇滑步变式
  • Heisman Shuffle
  • 海斯曼滑步
  • 2 In, 2 Out Weaving
  • 2进2出编织
  • Forward, Backward Hops
  • 向前、向后跳
  • Cross Behind
  • 交叉向后跳
  • Backward Cross in Front
  • 向前交叉
  • Quarter Turns
  • 四分之一转身
  • Two Forward, One Back
  • 两步前进一步后退
  • Hopscotch
  • 跳房子
  • Single, Double Rotations
  • 单、双旋转

《老子今注今译》 陈鼓应 注译

一 章

道可道,非常道;名可名,非常名。
无、名天地之始;有,名万物之母。
故常无,欲以观其妙;常有,欲以观其徼。
此两者,同出而异名,同谓之玄,玄之又玄,众妙之门。

二 章

天下皆知美之为美,斯恶矣;皆知善知为善,斯不善已。
有无相生,难易相成,长短相形,高下相盈,音声相和,前后相随。
是以圣人处无为之事,行不言之教;万物作而不为始,生而不有,为而不恃,功成而弗居。夫唯弗居,是以不去。

三 章

不尚贤,使民不争;不贵难得之货,使民不为盗;不见可欲,使民心不乱。
是以圣人之治,虚其心,实其腹,弱其志,强其骨。常使民无知无欲。使夫智者不敢为也。为无为,则无不治。

四 章

道冲而用之或不盈,渊兮,似万物之宗;【挫其锐,解其纷,和其光,同其尘,】 湛兮,似或存。吾不知谁之子,象帝之先。

五 章

天地不仁,以万物为刍狗。圣人不仁,以百姓为刍狗。
天地之间,其犹橐籥乎,虚而不屈,动而欲出。
多言数穷,不如守中。

六 章

谷神不死,是为玄牝。玄牝之门,是为天地根。绵绵若存,用之不勤。

七 章

天地长久,天地所以能长且久者,以其不自生,故能长生。
是以圣人后其身而身先;外其身而身存。非以其无私耶?故能成其私。

八 章

上善若水。水善利万物而不争,处众人之所恶,故几于道。居善地,心善渊,与善仁,言善信,政善治,事善能,动善时。夫唯不争,故无尤。

九 章

持而盈之,不如其已。
揣而锐之,不可长保。
金玉满堂,莫之能守。
富贵而骄,自遗其咎。
功成身退,天之道也。

十 章

载营魄抱一,能无离乎?
专气致柔,能如婴儿乎?
涤除玄览,能无疵乎?
爱民治国,能无为乎?
天门开阖,能为雌乎?
明白四达,能无知乎?
生之畜之。生而不有,为而不持,长而不宰,是为“玄德”

十一 章

三十辐,共一毂,当其无,有车之用。
埏埴以为器,但其无,有器之用。
凿户牖以为室,当其无,有室之用。
故有之以为利,无之以为用。

十二 章

五色令人目盲;五音令人耳聋;五味令人口爽;驰骋畋猎,令人心发狂;难得之货,令人行妨。
是以圣人为腹不为目,故取彼取此。

十三 章

宠辱若惊,贵大患若身。
何为宠辱若惊?宠为下,得知若惊,失之若惊,是为宠辱若惊。
何为贵大患若身?吾所以有大患者,为吾有身,及吾无身,吾有何患?
故贵以身为天下,若可寄天下;爱以身为天下,若可托天下。

十四 章

视之不见,名曰”夷”;听之不闻,名曰“希”;搏之不得,名曰“微”。此三者不可致诘,故混而为一。其上不皦,其下不昧,绳绳兮不可名,复归于无物。是谓无状之状,无物之象,是谓恍惚。迎之不见其首,随之不见其后。
执古之道,以御今之有。能知古始,是谓道纪。

十五 章

古之善为士者,微妙玄通,深不可识。夫唯不可识,故强为之容:
豫兮若冬涉川;
犹兮若畏四邻;
俨兮其若客;
涣兮其若释;
敦兮其若朴;
旷兮其若谷;
混兮其若浊;
孰能浊以静之徐清;孰能安以动之徐生;
保此道者,不欲盈。夫唯不盈,故能蔽而新成;

十六 章

致虚极,守静笃;
万物并作,吾以观复;
夫物芸芸,各复归其根。归根曰静,静曰复命。复命曰常,知常曰明。不知常,妄作凶。
知常容,容乃公,公乃全,全乃天,天乃道,道乃久,没身不殆。

十七 章

太上,不知有之;其次,亲而誉之;其次,畏之;其次、侮之;信不足焉,有不信焉。
悠兮其贵言。功成身遂,百姓皆谓“我自然”。

十八 章

大道废,有仁义;六亲不和,有孝慈;国家昏乱,有忠臣。

十九 章

绝智弃辩,民利百倍;绝伪弃诈,民复孝慈;绝巧弃利,盗贼无有;此三者以为文,不足。故令有所属:见素抱朴,少私寡欲。

二十 章

绝学无忧。唯之与阿,相去几何?美之与恶,相去若何?人之所畏,不可不畏。
荒兮,其未央哉!
众人熙熙,如享太牢,如春登台。
我独泊兮,其未兆,如婴儿之未孩;
儽儽兮,若无所归。
众人皆有余,而我独若遗。我愚人之心也哉!沌沌兮!
俗人昭昭,我独昏昏。
俗人察察,我独闷闷。
澹兮其若海,飂兮若无止。
众人皆有以,而我独顽且鄙。
我独异于人,而贵食母。

二十一 章

孔德之容,惟道是从。
道之为物,惟恍惟惚。惚兮慌兮,其中有象;恍兮惚兮,其中有物。窈兮冥兮,其中有精;其精甚真,其中有信。
自今及古,其名不去,以阅众甫。吾何以知众甫之状哉!以此。

二十二 章

曲则全,枉则直,洼则盈,敝则新,少则得,多则惑。
是以圣人执一为天下式,不自见,故明;不自是,故彰;不自伐,故有功;不自矜,故能长。
夫唯不争,故天下莫能与之争。古之所谓“曲则全”者,岂虚言哉,诚全而归之。

二十三 章

希言自然。
故飘风不终朝,骤雨不终日。孰为此者?天地。天地尚不能久,而况於人乎?故从事於道者,同於道;德者,同於德;失者,同於失。
同於德者,道亦德之;同於失者,道亦失之。
信不足焉,有不信焉?

二十四 章

企者不立,跨者不行;自见者不明;自是者不彰;自伐者无功;自矜者不长。
其在道也,曰:余食赘形。物或恶之,故有道者不处。

二十五 章

有物混成,先天地生。寂兮廖兮,独立不改,周行而不殆,可以为天下母。吾不知其名,强字之曰“道”,强为之名曰“大”。大曰逝,逝曰远,远曰反。
故道大、天大、地大,人亦大。域中有四大,而人居其一焉。
人法地、地法天、天法道、道法自然。

二十六 章

重为轻根,静为躁君。
是以君子终日行不离辎重。虽有荣观,燕处超然。奈何万乘之主,而以身轻天下?
轻则失根,躁则失君。

二十七 章

善行无辙迹;善言无瑕谪;善数不用筹策;善闭无关楗而不可开,善结无绳约而不可解。
是以圣人常善救人,故无弃人;常善救物,故无弃物。是谓袭明。
故善人者,不善人之师;不善人者,善人之资。不贵其师,不爱其资,虽智大迷,是谓要妙。

二十八 章

知其雄,守其雌,为天下谿。为天下谿,常德不离,复归于婴儿。
知其白,【守其黑,为天下式。为天下式,常德不忒,复归于无极。知其荣,】守其辱,为天下谷。为天下谷,常德乃足,复归於朴。
朴散则为器,圣人用之,则为官长,故大制不割。

二十九 章

将欲取天下而为之,吾见其不得已。天下神器,不可为也,【不可执也。】为者败之,执者失之。
故物或行或随;或嘘或吹;或强或羸;或培或堕。
是以圣人去甚,去奢,去泰。

三十 章

以道佐人主者,不以兵强天下。其事好还。师之所处,荆棘生焉。【大军之后,必有凶年。
善有果而已,不敢以取强。果而勿矜,果而勿伐,果而勿骄,果而不得已,果而勿强。
物壮则老,是谓不道,不道早已。

三十一 章

夫兵者,不祥之器,物或恶之,故有道者不处。
君子居则贵左,用兵则贵右。兵者不祥之器,非君子之器,不得已而用之,恬淡为上。胜而不美,而美之者,是乐杀人。夫乐杀人者,则不可得志於天下矣。
吉事尚左,凶事尚右。偏将军居左,上将军居右。言以丧礼处之。杀人之众,以悲哀泣之,战胜以丧礼处之。

三十二 章

道常无名、朴。虽小,天下莫能臣。侯王若能守之,万物将自宾。天地相合,以降甘露,民莫之令而自均。
始制有名,名亦既有,夫亦将知止,知止可以不殆。
譬道之在天下,犹川谷之於江海。

三十三 章

知人者智,自知者明。
胜人者有力,自胜者强。
知足者富。
强行者有志。
不失其所者久。
死而不亡者寿。

三十四 章

大道汜兮,其可左右。万物恃之以生而不辞,功成而不有。衣养万物而不为主,【常无欲,】可名於小;万物归焉而不为主,可名为大。以其终不自为大,故能成其大。

三十五 章

执大象,天下往。往而不害,安平太。
乐与饵,过客止。道之出口,淡乎其无味,视之不足见,听之不足闻,用之不足既。

三十六 章

将欲歙之,必固张之;将欲弱之,必固强之;将欲废之,必固举之;将欲取之,必固与之,是谓微明。
柔弱胜刚强。鱼不可脱於渊,国之利器不可以示人。

三十七 章

道常无为而无不为。侯王若能守之,万物将自化。化而欲作,吾将镇之以无名之朴。无名之朴,夫亦将不欲。不欲以静,天下将自正。

三十八 章

上德不德,是以有德;下德不失德,是以无德。
上德无为而无以为;【下德无为而有以为】。
上仁为之而无以为,上义为之而有以为。
上礼为之而莫之应,则攮臂而扔之。
故失道而后德,失德而后仁,失仁而后义,失义而后礼。
夫礼者,忠信之薄,而乱之首。
前识者,道之华,而愚之始。是以大丈夫处其厚不居其薄;处其实,不居其华。故去彼取此。

三十九 章

昔之得一者:天得一以清;地得一以宁;神得一以灵;谷得一以盈;万物得一以生;侯王得一以为天下正。
其致之也,谓天无以清,将恐裂;地无以宁,将恐废;神无以灵,将恐歇;谷无以盈,将恐竭;万物无以生,将恐灭;侯王无以正,将恐蹶。
故贵以贱为本,高以下为基。是以侯王自称孤、寡、不谷。此非以贱为本邪?非乎?故致誉无誉。是故不欲琭琭如玉,珞珞如石。

四十 章

反者道之动,弱者道之用。
天下万物生於有,有生於无。

四十一 章

上士闻道,勤而行之;中士闻道,若存若亡;下士闻道,大笑之。不笑不足以为道。故建言有之:
明道若昧;
进道若退;
夷道若纇;
上德若谷;
大白若辱;
广德若不足;
建德弱偷;
质真若渝;
大方无隅;
大器晚成;
大音希声;
大象无形;
道隐若名;
夫唯道,善贷且成。

四十二 章

道生一,一生二,二生三,三生万物。万物负阴而抱阳,冲气以为和。
【人之所恶,为孤、寡、不谷,而王公以为称。故物或损之而益,或益之而损。人之所教,我亦教之。强梁者不得其死,吾将以为教父。】

四十三 章

天下之至柔,驰骋天下之至坚。无有入无间,吾是以知无为之有益。
不言之教,无为之益,天下希及之。

四十四 章

名与身孰亲?身与货孰多?得与亡孰病?
甚爱必大费,多藏必厚亡。
故知足不辱,知止不殆,可以长久。

四十五 章

大成若缺,其用不弊。
大盈若冲,其用不穷。
大直若屈,大巧若拙,大辩若讷。
躁胜寒,静胜热。清净为天下正。

四十六 章

天下有道,却走马以粪。天下无道,戎马生于郊。
咎莫大於欲得;祸莫大於不知足。故知足之足,常足矣。

四十七 章

不出户,知天下;不窥牖,见天道。其出弥远,其知弥少。
是以圣人不行而知,不见而明,不为而成。

四十八 章

为学日益,为道日损。损之又损,以至于无为。无为而无不为。取天下常以无事,及其有事,不足以取天下。

四十九 章

圣人常无心,以百姓心为心。
善者,吾善之;不善者,吾亦善之;德善。
信者,吾信之;不信者,吾亦信之;德信。
圣人在天下,翕翕焉,为天下浑其心,百姓皆注其耳目,圣人皆孩之。

五十 章

出生入死。生之徒,十有三;死之徒,十有三;人之生【】,动之於死地,亦十有三。夫何故?以其生生之厚。
盖闻善摄生者,陆行不遇兕虎,入军不被甲兵;兕无所投其角,虎无所用其爪,兵无所容其刃。夫何故?以其无死地。

五十一 章

道之生,德畜之,物形之,势成之。
是以万物莫不尊道而贵德。
道之尊,德之贵,夫莫之命而常自然。
故道生之,德畜之;长之育之;亭之毒之;养之覆之。生而不有,为而不恃,长而不宰,是谓“玄德”。

五十二 章

天下有始,以为天下母。既得其母,以知其子,复守其母,没身不殆。
塞其兑,闭其门,终身不勤。开其兑,济其事,终身不救。
见小曰明,守柔曰强。用其光,复归其明,无遗身殃;是为袭常。

五十三 章

使我介然有知,行於大道,唯施是畏。
大道甚夷,而人好径。朝甚除,田甚芜,仓甚虚;服文采,带利剑,厌饮食,财货有余;是谓盗夸。非道也哉!

五十四 章

善建者不拔,善抱者不脱,子孙以祭祀不辍。
修之於身,其德乃真;修之於家,其德乃余,修之於乡,其德乃长;修之於邦,其德乃丰;修之於天下,其德乃普。
故以身观身,以家观家,以乡观乡,以邦观邦,以天下观天下。吾何以知天下然哉?以此。

五十五 章

含德之厚,比於赤子。蜂虿虺蛇不螫,攫鸟猛兽不博。骨弱筋柔而握固。未知牝牡之合而朘作,精之至也。终日号而不嗄,和之至也。
知和曰常,知常曰明。益生曰祥。心使气曰强。物壮则老,谓之不道,不道早已。

五十六 章

知者不言,言者不知。
塞其兑,闭其门,挫其锐,解其纷,和其光,同其尘,是谓“玄同”。故不可得而亲,不可得而疏;不可得而利,不可得而害;不可得而贵,不可得而贱。故为天下贵。

五十七 章

以正治国,以奇用兵,以无事取天下。吾何以知其然哉?以此:
天下多忌讳,而民弥贫;民多利器,国家滋昏;人多伎巧,奇物滋起;法令滋彰,盗贼多有。
故圣人云:“我无为,而民自化;我好静,而民自正;我无事,而民自富;我无欲,而民自朴。”

五十八 章

其政闷闷,其民淳淳;其政察察,其民缺缺。
福兮,祸之所倚;祸兮,福之所伏。孰知其极?其无正。正复为奇,善复为妖。人之谜,其日固久。
是以圣人方而不割,廉而不刿,直而不肆,光而不耀。

五十九 章

治人事天,莫若啬。
夫唯啬,是谓早服;早服谓之重积德;重积德则无不克;无不克则莫知其极;莫知其极,可以有国;有国之母,可以长久;是谓深根固柢,长生久视之道。

六十 章

治大国,若烹小鲜。
以道莅天下,其鬼不神;非其鬼不神,其神不伤人;非其神不伤人,圣人亦不伤人。夫两不相伤,故德交归焉。

六十一 章

大邦者下流,天下之牝,天下之交也。牝常以静胜牡,以静为下。
故大邦以下小邦,则取小邦;小邦以下大邦,则取大邦。故或下以取,或下而取。大邦不过欲兼畜人,小邦不过欲入事人。夫两者各得所欲,大者宜为下。

六十二 章

道者万物之奥。善人之宝,不善人之所保。
美言可以市,尊行可以加人。人之不善,何弃之有?故立天子,置三公,虽有拱壁以先驷马,不如坐进此道。
古之所以贵此道者何?不曰:求以得,有罪以免邪?故为天下贵。

六十三 章

为无为,事无事,味无味。
大小多少,【抱怨以德。】图难於其易,为大於其细;天下难事,必作於易,天下大事,必作於细。是以圣人终不为大,故能成其大。
夫轻诺必寡言,多易必多难。是以圣人犹难之,故终无难矣。

六十四 章

其安易持,其未兆易谋。其脆易泮,其微易散。为之於未有,治之於未乱。
合抱之木,生於毫末。九层之台,起于累土。千里之行,始于足下。
为者败之,执者失之。是以圣人无为故无败;无执故无失。
民之从事,常於几成而败之。慎终如始,则无败事。
是以圣人欲不欲,不贵难得之货;学不学,复众人之所过,以辅万物之自然而不敢为。

六十五 章

古之善为道者,非以明民,将以愚之。
民之难治,以其智多。故以智治国,国之贼;不以智治国,国之福。
知此两者亦稽式,常知稽式,是谓“玄德”,玄德深矣,远矣,与物反矣,然后乃至大顺。

六十六 章

江海之所以能为百谷王者,以其善下之,故能为百谷王。
是以圣人欲上民,必以言下之;欲先民,必以身后之。是以圣人处上而民不重,处前而民不害。是以天下乐推而不厌。以其不争,故天下莫能与之争

六十七 章

天下皆谓我:”‘道’大,似不肖。” 夫唯大,故似不肖。若肖,久矣其细也夫
我有三宝,持而保之。一曰慈,二曰俭,三曰不敢为天下先。
慈故能勇;俭故能广;不敢为天下先,故能成器长。
今舍慈且勇;舍俭且广;舍后且先;死矣!
夫慈,以战则胜,以守则固。天将救之,以慈卫之。

六十八 章

善为士者,不武;善战者,不怒;善胜敌者,不与;善用人者,为之下。是谓不争之德,是谓用人,是谓配天,古之极也。

六十九 章

用兵有言:“吾不敢为主,而为客;不敢进寸,而退尺。”是谓行无行;攘无臂;扔无敌;执无兵。
祸莫大於轻敌,轻敌几丧吾宝。
故抗兵相若,哀者胜矣。

七十 章

吾言甚易知,甚易行。天下莫能知,莫能行。
言有宗,事有君。夫唯无知,是以不我知。
知我者希,则我者贵。是以圣人被褐怀玉。

七十一 章

知不知,尚矣;不知知,病也。圣人不病,以其病病。夫唯病病,是以不病。

七十二 章

民不畏威,则大威至。
无狎其所居,无厌其所生。夫唯不厌,是以不厌。
是以圣人自知不自见;自爱不自贵。故去彼取此。

七十三 章

勇於敢则杀,勇於不敢则活。此两者,或利或害。天之所恶。孰知其故?【 是以圣人犹难之。
天之道,不争而善胜,不言而善应,不召而自来,繟然而善谋。天网恢恢,疏而不失。

七十四 章

民不畏死,奈何以死惧之?若使民常畏死,而为奇者,吾将得而杀之,孰敢?
常有司杀者杀。夫代司杀者杀,是谓代大匠斫。夫代大匠斫者,稀有不伤其手矣。

七十五 章

民之饥,以其上食税之多,是以饥。
民之难治,以其上之有为,是以难治。
民之轻死,以其上求生之厚,是以轻死。
夫【唯】无以生为者,是贤於贵生。

七十六 章

人之生也柔弱,其死也坚强。
草木之生也柔脆,其死也枯槁。
故坚强者死之徒,柔弱者生之徒。
是以兵强则灭,木强则折。
强大处下,柔弱处上。

七十七 章

天之道,其犹张弓与?高者抑之,下着举之;有余者损之,不足者补之。
天之道,损有余而补不足。人之道,则不然,损不足以奉有余。
孰能有余以奉天下,唯有道者。
是以圣人为而不恃,功成而不处,其不欲见贤。

七十八 章

天下莫柔弱於水,而攻坚强者莫之能胜,以其无以易之。
弱之胜强,柔之胜刚,天下莫不知,莫能行。
是以圣人云:“受国之垢,是谓社稷主;受国之祥,是为天下王。”正言若反。

七十九 章

和大怨,必有余怨;【报怨以德,】安可以为善?
是以圣人执左契,而不责於人,有德司契,无德司彻。
天道无亲,常与善人。

八十 章

小国寡民。使有什伯人之器而不用;使民重死而不远徙。虽有舟舆,无所乘之;虽有甲兵,无所陈之。使民复结绳而用之。
甘其食,美其服,安其居,乐其俗。邻国相望,鸡犬之声相闻,民至老死,不相往来。

八十一 章

信言不美,美言不信。
善者不辩,辩者不善。
知者不博,博者不知。
圣人不积,既以为人己愈有,既以与人己愈多。
天之道,利而不害;人之道,为而不争。

使用composer安装组件提示错误:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/www # composer require --prefer-dist powerkernel/yii2-photoswipe "*"
./composer.json has been updated
Running composer update powerkernel/yii2-photoswipe
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- symfony/browser-kit is locked to version v4.2.4 and an update of this package was not requested.
- symfony/browser-kit v4.2.4 requires php ^7.1.3 -> your php version (8.2.19) does not satisfy that requirement.
Problem 2
- codeception/module-yii2 is locked to version 1.1.5 and an update of this package was not requested.
- codeception/module-yii2 1.1.5 requires php >=5.6.0 <=8.1 | ~8.1.0 -> your php version (8.2.19) does not satisfy that requirement.
Problem 3
- symfony/console v4.2.12 requires php ^7.1.3 -> your php version (8.2.19) does not satisfy that requirement.
- codeception/codeception 4.2.2 requires symfony/console >=2.7 <6.0 -> satisfiable by symfony/console[v4.2.12].
- codeception/codeception is locked to version 4.2.2 and an update of this package was not requested.


Installation failed, reverting ./composer.json and ./composer.lock to their original content.

修复方法,添加参数--ignore-platform-reqs:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/www # composer require --ignore-platform-reqs  --prefer-dist powerkernel/yii2-photoswipe "*"
./composer.json has been updated
Running composer update powerkernel/yii2-photoswipe
Loading composer repositories with package information
Updating dependencies
Lock file operations: 2 installs, 0 updates, 0 removals
- Locking bower-asset/photoswipe (v4.1.3)
- Locking powerkernel/yii2-photoswipe (1.1.5)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
- Downloading bower-asset/photoswipe (v4.1.3)
- Downloading powerkernel/yii2-photoswipe (1.1.5)
- Installing bower-asset/photoswipe (v4.1.3): Extracting archive
- Installing powerkernel/yii2-photoswipe (1.1.5): Extracting archive
Package overtrue/wechat is abandoned, you should avoid using it. Use w7corp/easywechat instead.
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
65 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found.

其他命令参考:

1
composer install --ignore-platform-reqs

或者

1
composer update --ignore-platform-reqs

若数据库字符集为GBK可以直接排序,其他字符集中文需要转码为GBK格式后才可以排序,ORDER BY CONVERT(user_name USING gbk)
在MYSQL中想要对字段进行中文规则的排序,常用以下SQL:

1
SELECT * FROM sys_user ORDER BY CONVERT(user_name USING gbk)

足球技战术中英双语词汇

一、属性 attributes

  • 擅长位置 Prefer Position

  • (花式)技术等级 Skill Moves

  • 擅长脚 Foot

  • 逆足能力 Weak Foot

  • 身高 Height

  • 体重 Weight

  • 年龄 Age

  • 国籍 Nation

  • 适应力 Adaptability

  • 野心 Ambition

  • 争论 Controversy

  • 忠诚 Loyalty

  • 抗压能力 Pressure

  • 职业感 Professionalism

  • 体育道德 Sportsmanship

  • 气质 Temperament

  • 稳定 Consistency

  • 肮脏 Dirtiness

  • 重要比赛 Important Matches

  • 受伤倾向 Injury Proneness

  • 多位置性 Versatility

  • 体力 Condition

  • 状态 Form

  • 身体状况 Fitness

  • 疲劳 Jadedness

  • 竞技状态 Match Exercise

  • 体质 Natural Fitness

二、技术 technical

  • 传 pass

  • 传中 crossing

  • 弧线球 curve

  • 短传 short pass

  • 长传 long pass

  • 任意球精度 free kick accuracy

  • 直塞 through pass

  • 一脚传球 one touch passing

  • 假传 fake pass

  • 大力手抛球 long throw

  • 向前直传球的好处 the advantages of forward passes

  • 安全球 safe pass

  • 威胁球 risky pass

  • 回传球 backward pass

  • 向前长传 long forward pass

  • 停 receive

  • 第一脚触球 first touch

  • 控 control

  • 控球能力 ball control

  • 运 dribble

  • 运球 dribbling

  • 推停拉球 push-stop-pull

  • 拉球 ball roll

  • L型转身 L turn

  • 射 shoot

  • 终结能力 finishing

  • 远射 long shot

  • 点球 penalty

  • 射门力量 shot power

  • 凌空 volley

  • 头球精度 heading accuracy

  • 防守 tackle

  • 拦截 interception

  • 盯人 marking

  • 铲球 slide tackle

  • 正面拦截 stand tackle

  • 封堵 block

  • 守门员 goalkeeper

  • 鱼跃 diving

  • 手控球 hand control

  • 开球 kicking

  • 反应 reflex

  • 速度 speed

  • 站位 positioning

  • 制空能力 Aerial Ability

  • 拦截传中 Command of Area

  • 指挥防守 Communication

  • 激情 Eccentricity

  • 一对一 One On Ones

  • 出击 Rushing Out

  • 击球倾向 Tendency to Punch

  • 手抛球 Throwing

三、心理 mental

  • 侵略性 aggression

  • 反应 reaction

  • 视野 vision

  • 进攻跑位 attacking position

  • 预判 anticipation

  • 勇敢 bravery

  • 镇静 composure

  • 集中 concentration

  • 创造力 creativity

  • 决断 decision

  • 决心 determination

  • 才能 flair

  • 影响 influence

  • 无球跑 off the ball

  • 位置感 positioning

  • 团队合作 teamwork

  • 工作投入 work rate

四、身体 physical

  • 协调性 coordination

  • 灵敏性 agility

  • 平衡性 balance

  • 加速 acceleration

  • 冲刺速度 sprint speed

  • 力量 strength

  • 耐力 stamina

  • 弹跳 jumping

  • 体质 natural fitness

  • 速度 pace

五、战术 tactical

  • 阵型 formation

  • 首发 line-ups

  • 后场组织 build up

  • 中场 midfield region

  • 前场 frontier

  • 边路 wide region/area

  • 进攻三区 attacking third

  • 高压 high pressure

  • 高位 high line

  • 低位 low line

  • 高位防守 high defensive line

  • 防守反击 counter attack

  • 转换 transition

  • 定位球

  • 菱形(中场)diamond

  • 平行中场442 a flat 442

  • 反抢 counter press

  • 整体 team as a whole

  • 快速赢回球权 win the ball quickly

  • 高水平对手 elite opponent

  • 进攻阶段 attacking phases

  • 节约体力 conserve energy

  • 处于劣势 on the backfoot

  • 转会目标 transfer target

  • 侧翼 flank

  • 非卖品 off the table

  • 二人组 duo

  • 人数优势 numerical advantage

  • 双核 double pivot

  • 十号位 No. 10 position

  • 战术犯规 tactical foul

  • 后插上 late run

  • 回追 track back

  • 突然死亡法 sudden death

  • 更衣室 locker room

  • 奖杯 trophy

  • 三冠王 triple title

  • 掌声 applause

  • 德比 derby

  • 八强 last 8

  • 11战10胜 10 win of 11 games

  • 杀死比赛 kill the match

  • 最佳球员 best player

  • 射手王 best shooter

  • 助攻王 best secondary

  • 关键时刻 key moment

  • 亚军奖牌 runner-up medal

  • 比赛强度 game-like intensity

六、位置职责 position job

  • 守门员 goalkeeper

  • 中后卫 centre back

  • 防线 block line

  • 调整脚步 adjust feet

  • 边后卫 full back

  • 施压 apply pressure

  • 后套 overlap

  • “内套” underlap

  • 拉边 hold the width

  • 防守区域 defensive zone

  • 漏洞 gaping holes

  • 压上 push high

  • 回追 track back

  • 后腰 defensive midfielder

  • 前腰 attacking midfielder

  • 观察 scan the pitch

  • 回撤 move backward

  • 摆脱 get rid of

  • 制造传球路线 create passing option

  • 防守反击(同上)

  • 控制节奏 control the rhythm

  • 制造机会 create more chances

  • 与前锋换位 fill up striker’s position

  • 边锋 winger

  • 实例 real life examples

  • 有效的 effective

  • 内插 inside run

  • 内切 cut inside

  • 转身 turn around

  • 失位 out of the play

  • 1对1 1v1 situation

  • 选择最佳时机 choose the best time

  • 要球 ask for a pass

  • 避免越位陷阱 avoid being offside

  • 破门得分机会 scoring chances

  • 跑动创造传球机会 move around and create passing option

  • 转移进攻到他这一侧 switch the play on his side

  • 关键传球 a key pass

  • 继续跑动 keep moving

  • 抬头观察 raise eyes

  • 把球拨向左侧 push ball on his left

  • 提前做出决定 take an early decision

  • 二过一配合 1-2passes

  • 弧线球射远角 curve the ball to the far post

  • 导致 result in

  • 与边后卫保持密切联系 have a good link with fullback

  • 拉开 move wide

  • 倒三角传中 crossing outside the box

  • 正确站位 position correctly

  • 带走防守队员 pull your marker out

  • 为边后卫创造空间 leave space for fullback

  • 缓解压力 decrease the pressure

  • 左右晃动 left and right feints

  • 假射 fake shot

  • 打开空间 open the way

  • 被迫 was itforced to

  • 补位 replace

  • 速度 pace

  • 过程中 in the process

  • 边路 on the side

  • 前锋 striker

  • 中锋 center forward

  • 伪九号 false nine

  • 后撤 drop down

  • 想得多 out-thinking

  • 跑得快 out-pacing

  • 弧线跑、绕弯跑 a curved run

  • 传到防线身后 paly ball behind the defenses

  • 寻找空隙 finding gasps

  • 远离控球者 moving away from the ball carrier

  • 视线 line of sight

  • 停顿片刻即冲击前点 a late and quick run in front of the defender

  • 视野盲区 blindside

  • 钻到防守者身后 sneaking behind te defenders

  • 寻找空间 find space

  • 沟通 communication

  • 挥动手臂指示传球位置 waving his arm and thetell him where to play the ball

身体、球感

  • 绳梯练习 ladder exercise

  • 1.跳房子 hopscotch

  • 2.对角线+前后移动 diagonal forwards backwards

  • 3.碎步向前+外伸脚 inside outside forwards

  • 4.单脚进出+横穿 inside outside across

  • 5.交叉步 crossover shuffle

  • 6.从脚后进出 behind foot inside outside

  • 7.从脚后进出+横穿 behind foot inside outside across

  • 8.高阶跳房子 advanced hopscotch

  • 9.交叉步 inside outside crossover

  • 10.组合步 footwork combo

爆发力 explosive

  • 1.深蹲跳 jump squats

  • 2.箭步蹲跳 jump lunges

  • 3.单腿侧向跳 lateral bounds

  • 4.跳步高抬腿 a skips

  • 5.单腿箭步蹲跳 reverse lunge knee drive

  • 6.提膝跳 tuck jumps

  • 7.高抬腿high knee

  • 8.脚跟后跳 heel flicks

  • 9.跪姿跳 kneeling jumps

  • 10.小腿跳 calf jumps

膝盖力量练习 exercise for strong knee

  • 1.靠墙静蹲 wall sits

  • 2.箭步蹲 forwards lunges

  • 3.侧步蹲 side lunges

  • 4.反向箭步蹲 reverse lunges

  • 5.控制坐 controlled sits

  • 6.单腿深蹲 singele leg squats

  • 7.单腿上台阶 step ups

  • 8.罗马尼亚单腿硬拉 single leg Romanian deadlifts

  • 9.臀桥 bridge

  • 10.臀推 hip thrusts

加速 accelerate

  • 1.3乘15米折返跑 (带球跑)three gates placed five steps apart

  • 2.矩形变向跑(带球跑)a rectangle in the middle

  • 3.T型变向跑(带球跑)T drill

减速 decelerate

  • 1.跑、急停缓冲 run and sitck absorb

  • 脚后跟着陆 back of foot stick

  • 2.跑、弓箭步急停 run and drop into a lunge

  • 3.加速、侧身急停、立稳、戳住、保持 sprint,laterally cut,plant,stick,hold

  • 4.后退、弓箭步踏稳 back pedal,lunge stick hold

  • 5.后退、侧身踏稳 back lateral pedal

  • 脚呈T型 T step

  • 6.用5米加速,5米内减速,弓箭步急停 five yards to accelerate,five yards to slow down,down into lunge

  • 7.同上,3米内减速,双腿急停 jump stop

  • 8.同上,转身急停 rotate to a stop

  • 9.药球 medicine ball

敏捷性 agility

  • 1.加速、急停、改变方向、迅速折返 sprint,cut,change direction,come right back

  • 臀部和脚踝在同一角度 want the hip and ankle to be facing the same direction

  • 肩膀不越过臀部 the shoulder is not going past the hip

  • 身体向变向方向倾斜 body lean back in the direction

  • 脚底内侧蹬地 cut on the inside of the foot

  • 2.交叉步+变向 crossover step

  • 3.后退踏步+向前跑 back pedal

  • 4.侧滑步 shuffle

  • 前侧脚打开 front side foot should open up

  • 5.综合训练 combination

  • 6.听信号变向跑(视觉、听觉)run into different direction by signal

球感 sense of ball

  • 1.脚前掌轻踩球 toe taps

  • 2.脚底轻摆动球 rocking sole

  • 3.脚底拉球 sole rolls

  • 4.脚内侧推拉球 inside push pull

  • 5.脚背推拉球 laces push pull

  • 6.油炸丸子 croquette

  • 7.脚外侧扣球 outside cuts

  • 8.单脚脚内侧+外侧 SL inside outside

  • 9.双脚… inside outside

  • 10.单脚V型拉扣球 SL V cuts

  • 11.双脚… inside V cuts

  • 12.双脚脚外侧… outside V cuts

  • 13.双脚交替… alternative V cuts

  • 14.L型拖+推+拉球 L grag sole roll

  • 15.单脚L型拖球 SL L drags

  • 16.L drag

  • 17.单脚反转L型拖球 SL reverse L drag

  • 18.reverse L drag

  • 19.L drag reverse L drag

  • 20.巴西式脚掌踩球 Brazilian toe taps

  • 21.罗纳尔迪尼奥拉球 Ronaldinho roll

  • 22.进阶… advanced…

  • 23.脚底+脚内侧推球 sole inside push

  • 24.U型 U’s

  • 25.正方形 squares

  • 26.三角形 triangles

  • 27.脚内侧、脚背、脚外侧3点推球 3 point push

  • 28.不触球跨步 no touch stepover

  • 29.脚外侧触球跨步 outside touch stepover

  • 30.脚内侧… nside touch stepover

  • 31.脚底跨步 sole stepover

  • 32.无限… infinity stepover

  • 33.脚底拉+停球 roll stops

  • 34.橡皮筋 elastics

  • 35.脚背身后反转 reverse laces

  • 36.克鲁伊夫转身 cruyffs

  • 37.advanced cruyffs

  • 38.Rabonas

  • 39.脚内侧+脚底交替 inside inside roll roll

  • 40.反转推拉 reverse push pull

  • 41.Ronaldos

  • 42.双重跨球 double stepover touch

  • 43.拉球+脚外侧挡球 outside roll snap

  • 44.拉球+脚内侧… inside roll snap

  • 45.交叉推拉球 alternate push pull

  • 46.拉+拉+L 拖球 roll roll L drag

  • 47.L 拉球+V 扣球 L drag V cut

  • 48.Ronaldinho fake pss

  • 49.Nyemar chop

  • 50.隐藏推拉球 hidden push pull

  • 脚内侧触球 inside touches

  • 脚底触球 sole touches

起球 flick

  • 1.拉球挑球 pull and lift

  • 2.双脚磕球起球 pop up

  • 3.双脚夹球起跳 two footed lift

  • 4.脚外侧起球 side foot lift

  • 5.沿小腿拉球 calf roll

  • 6.插花脚 behind the leg

  • 7.向回磕球 off back foot

  • 8.向侧面磕球 Ronaldinho flick

  • 9.彩虹起球 rainbow flick

颠球 juggle

  • 右脚不落地颠球 right foot juggles

  • 左脚… left…

  • 左右脚交替… alternating juggles

  • 大腿交替颠球 alternating thigh juggles

  • 头颠球 head juggles

  • 高低颠球 low-high juggles

  • 脚内侧颠球 inside foot juggles

  • 脚外侧颠球 outside foot juggles

  • 胸部控制颠球 chest control juggles

  • 脚内侧定向压球 inside directional touch

  • 脚外侧定向压球 outside directional touch

  • 垂直接球 vertical touch

  • 花式颠球 juggling skills

  • 1.起球 foot stall

  • 2.腿绕球+弹球 hop the world

  • 3.脚尖反弹球 toe bounce

  • 4.交叉腿+脚尖反弹球 reverse toe bounce

  • 5.双腿小腿夹球 leg catch

  • 6.脚外侧反弹球 pancake

  • 7.交叉腿+弹球 cross over

  • 8.脚后跟+大腿后部夹球 thigh catch

  • 9.转球 around the world

  • 10.后颈停球 neck stall

  • 11.胸+大腿夹球 chest and thigh catch

  • 脚后跟颠球 heel juggle

  • 交叉+脚背向地面弹球 the slap

  • 头停球 head stall

技术训练

  • 无球跑位 run without theball

  • 启动、急停、摆脱 start stop start

第一脚触球 first touch

  • 1.脚内侧 inside foot

  • 2.脚内侧推球 keep the ball on the move

  • 3.后侧脚我back foot

  • 4.脚外侧 outside foot

  • 5.脚底 sole

  • 1.触球转身 touch turn

  • 2.后置脚扣球转身 behind the leg

  • 3.假传+脚内侧接球 fake pass and touch

  • 4.胸部停球 chest touch

  • 5.过顶跳球 sombrero

  • 蝎子摆尾 side scorpion

  • 有利触球 weighted touch

  • 接球转身 spin

  • 无触球转身 no touch turn

  • 反向停球 the kroos move

  • 停高球 control the ball in the air

  • 1.正脚背 top of foot

  • 2.外脚背身后停球 left behind

  • 3.脚内侧 inside of foot

  • 4.脚底踩球 underside of foot

  • 5.胸部停球 chest

  • 6.胸部传球 chest pass

  • 7.背部 back

  • 8.头 head

  • 9.大腿 thigh

  • 10.脚外侧 outside of foot

运球 dribble

  • 单腿内扣外拨 single leg weave

  • 仅用脚外侧 outside foot only

  • 单脚外侧+内侧各两次 two touch outside inside

  • 油炸丸子 la croqueta

  • croqueta outside

  • 脚内侧+外侧 inside outside

  • 脚底拉球+停球 sole roll stop

  • 脚前掌踩球向前 toe tap forwards

  • …backwards

  • 拉球+跨球 roll overstep

  • 跨球+油炸丸子 overstep croquta

  • 拉+推+推 inside pull push

  • outside pull push

  • 外侧跨步 outside foot overstep

  • 脚内侧+外侧+油炸丸子 Inside Outside 2 x Croqueta

  • 脚外侧+向外跨球 Outside Outside Stepover

  • 脚外侧+向内跨球 Outside Outside Inside Stepover

  • 脚内侧+拉球 Inside Inside Roll

  • 拉球+跨球 Roll Stepover

  • 3种拉球变向 L Drag 2 x V Cut

转身 turn

  • 1.脚内侧拨球转身 Inside Turn

  • 2.外脚背拨球转身 Outside Turn

  • 3.克鲁伊夫转身 Cruyff Turn

  • 4.L型转身(先拉再拨) L Turn

  • 5.V型转身(先拉再推)V Turn

  • 6.反向油炸丸子 Reverse Croqueta

  • 7.踩单车+转身 Stepover Turn

  • 8.反向单车+转身 Reverse Stepover Turn

  • 9.拉球+单车+转身 Roll Stepover Turn

  • 10.拉球+克鲁伊夫转身 Roll Chop Turn

高速带球、带球转身、带球变向 dribbling at speed,turning with the ball,changes of direction

  • 1.运球绕标志桶 cone weave

  • 2.斜线运球 diagonal dribble

  • 3.正方形运球 square dribble

  • 4.正方形转身(转一圈)square turn

  • 5.运球折返 shuffle

  • 1对1 one on one

  • 1.身体假动作 body feint

  • 2.脚内侧+外侧 inside outside

  • 3.假射 fake shot

  • 4.油炸丸子 la croqueta

  • 5.脚底拉球 sole roll

  • 6.停+加速 stop start

  • 7.外侧跨球 outside stepover

  • 8.内侧跨球的inside stepover

  • 9.马赛回旋 roulette

  • 10.牛尾巴 elastico

  • 11.麦吉迪转身 Mcgeady spin

  • 12.hocus pocus

  • 13.外跨+油炸丸子 stepover croqueta

  • 14.拉球+停 rollover

花式过人技术 skill move

  • 1.马赛回旋 marseille turn

  • 2.脚后跟拖球 drag back by heel

  • 3.假射 fake shot

  • 4.内跨步 inside step over

  • 5.侧面急转身 aside spinning

  • 6.身体(虚晃)假动作 body feint

  • 7.沉肩 shoulder drop

  • 8.假扣+推球 Coutinho skill

  • 9.脚后跟磕球 heel chop

  • 10.油炸丸子 la crocetta

  • 11.克鲁伊夫转身 Cruyff turn

  • 博拉西挑球 bolasie flick

  • 拉球+磕球 roll to heel

传球 pass

  • 1.挑球 the lob

  • 2.弧线球(脚内侧、外侧) curve

  • 3.正脚背 top of foot

  • 4.外脚背(不旋转) outside of foot

  • 5.脚内侧 inside of foot

长传球 long pass

  • 1.削球长传 the chopped long ball

  • 2.驱动长传 the driven long ball

  • 3.低空驱动长传 the low driven long ball

  • 4.贴地脚背长传 the driven laced ball on the ground

  • 5.脚指关节踢球(电梯球)knuckle ball

射门 shoot

  • 1.助跑 run up

  • 2.支撑脚立足 planting foot

  • 3.踢球脚摆腿 backswing

  • 4.触球部位 contact area

  • 5.踢球脚前随 follow through

  • 1.脚踝绷紧 lock your ankle

  • 2.身体前倾 lean over the ball

  • 3.有力的助跑take a more aggressive run-up

  • 4.击球点中偏下 hit the center of the ball

  • 5.训练时候模拟真实的比赛环境 practice with the game in mind

  • 1.挑射 the lob

  • 2.外脚背弧线 outside curve

  • 3.大力射门 power shot

  • 4.弧线球 curve shot

  • 5.推射 inside of foot

  • 6.搓射 chip

  • 7.吊射 lofted shot

  • 1.进入禁区 get inside the box

  • 2.瞄准下角 aim low

  • 3.尝试多射门、左右脚射门 shoot more often and with both feet

  • 4.确保比赛强度的练习 make sure to practice with game-like intensity

  • 1.反向射近角 reverse shots to the near post

  • 2.单刀时,射门越过出击的守门员的腿 shoot over goalkeeper’s leg

  • 3.利用传中球的速度 use the pace of the cross

  • 4.大力射近角 the near post smash

  • 5.补射 follow up shots

  • 6.身体前倾过球后 lean over the ball

  • 7.射门穿过后卫的裆下 shoot through defender’s legs

弧线球 curve ball

  • 1.助跑 the run up

  • make sure you have enough angle on your run up

  • as you get better,you will discover your optimal run up

  • 2.击球部位 the contact area

  • hit the ball with the inside area of your foot

  • keep your ankle locked and toe pointing slightly upwards

  • hit the lower half of the ball slightly on the outside

  • the movement starts from your hip

  • your non-kicking foot should point slightly off-target

  • 3.跟随动作 the follow through

  • continue your follow through after your foot hits the ball

  • lean over the ball with your upper body

  • 4.额外建议 extra tips

  • shoot against the wall

  • analyze pro players

  • film your free kicks

  • 5.常见错误 common mistakes

倒挂金钩 bicycle kick

  • 1.勇气 courage

  • 2.踢球脚发力单腿起跳 drive off with your kicking foot

  • 3.身体向后倾斜 lean back

  • 4.打开身体向着传中球 open up your body towards the cross

  • 5.借助手臂扭动身体 use your arm to twist your body

  • 6.用支撑脚发力 use your none kicking leg to create energy

  • 7.确保脚背踢球 make sure to strike the ball with your laces

  • 8.腿和身体成对角线方向挥动 kick over yourself diagonally

  • 9.弯曲的手臂来做缓冲 cushion the fall with a bent elbow

点球 penalty、shootout

  • 1.观察守门员 watch the keeper

  • 2.勺子射门 panenka

  • 3.下角 bottom corner

  • 4.上角 top corner

  • 5.爆射中路 smash down the middle

常见错误 common mistake to avoid

  • 1.没停好就射门 shooting off a poor touch

  • 2.传球给被对手紧盯的队友 passing to someone under pressure

  • 3.不去跑位接球 not moving to receive

  • 4.盲目转身到防守队员身前 turning into defenders(turn the body to the side)

  • 5.让球反弹 letting the ball bounce

  • 6.没有根据风力做调整 failing to adjust for wind

守门员 goalkeeper

  • 1.一脚、两脚出球热身 one touch-twi touch activation

  • 2.4次凌空踢球 4 volleys,4次落地反弹球 4 drop kicks,4次踢地面球 4 ground

  • 3.熟悉地面球 ground familiarity

  • 4.移动+接凌空球 move + volleys

  • 1.转身+接凌空球 pivot to volleys

  • 2.斜角转身+手接球 angle pivot to handling

  • 1.转身+鱼跃 pivot+dive

    作者:绿茵追风 https://www.bilibili.com/read/cv13264517 出处:bilibili

  1. 创建svnserve系统服务配置文件/etc/systemd/system/svnserve.service

Create systemd service configuration for svnserve /etc/systemd/system/svnserve.service

1
2
3
4
5
6
7
8
9
10
11
12
[Unit]
Description=SVN server
After=network.target

[Service]
User=svn
Group=svn
Type=forking
ExecStart=/usr/bin/svnserve -d -r /home/svn

[Install]
WantedBy=multi-user.target

Note that I set Type=forking because svnserve daemonizes itself with -d.

请注意,我设置Type=forking是因为svnserve使用-d.

Side note: Your own service definitions should go to /etc/systemd/system/, /lib/systemd/system/ is reserved for unit definitions that come with system packages.

旁注:您自己的服务定义应该转到/etc/systemd/system/,/lib/systemd/system/保留给系统包附带的单元定义。

  1. 启动服务器sudo systemctl start svnserve.service

  2. 添加到开机启动 sudo systemctl enable svnserve.service

1 修改 /usr/local/php/etc/php.ini

1
display_errors = On

2 在 /usr/local/php/etc/php-fpm.conf 添加

1
2
3
4
5
6
7
8
[global]
......
error_log = /usr/local/php/var/log/php-fpm.log
......

[www]
catch_workers_output = yes
......

3 重启php-fpm

yii ajax post 请求出现400错误,如下:

Bad Request (#400): Unable to verify your data submission.

或者

错误请求(#400):无法验证您的数据

整个页面所有ajax请求都出现错误,在ajax请求的header里面包含了_csrf信息,由于使用了yii2-sortable-grid-view-widget控件,所以无法通过ajax添加csrf来处理。

在网上总结了一下方法,将所有方法列出如下:

1、禁用csrf验证

在controller里面添加:

1
public $enableCsrfValidation = false;

或者

1
2
3
public function init(){
$this->enableCsrfValidation = false;
}

禁止某一个action使用crsf验证

1
2
3
4
public function beforeAction($action) {
$this->enableCsrfValidation = ($action->id !== "save-order"); // <-- here
return parent::beforeAction($action);
}

2、在ajax添加_csrf参数

1
2
3
4
5
6
7
var csrfToken = $('meta[name="csrf-token"]').attr("content");
$.ajax({
url: 'request',
type: 'post',
dataType: 'json',
data: {param1: param1, _csrf : csrfToken},
});
1
2
3
4
5
6
7
8
$.ajax({
url: '$urlSave',
type: 'post',
data: {payload: payload, _csrf: yii.getCsrfToken()},
dataType: 'json',
}).success(function(response) {
//处理
});

3、在全局里面添加csrf数据

我采用这种方式,所有的ajax都会更新csrf,包括第三方控件。

1
2
3
4
5
6
7
<script>
$.ajaxSetup({
data: <?= yiihelpersJson::encode([
yii::$app->request->csrfParam => yii::$app->request->csrfToken,
]) ?>
});
</script>