Git fork and synchronize
Synchronize a forked projectStep 1: Enter to your local repository1cd themes/butterfly/
Step 2: launch the command git remote -v to check your remote repositorymake sure that you have the both “origin” and “source” repository
123456789SHI YEJIA@Hendryshi MINGW64 /d/WorkSpace/Blog/NewBlog (hexo)$ cd themes/butterfly/SHI YEJIA@Hendryshi MINGW64 /d/WorkSpace/Blog/NewBlog/themes/butterfly (master)$ git remote -vorigin git@github.com:Hendryshi/hexo-theme-butterfly.git (fetch)origin git@github.com: ...
Docker Formation Notes
I took part in a formation for docker technology last week. Here I will list the notes I take during the formation.
De la virtualisation à docker“Build, Ship, and Run Any App, Anywhere”, docker est un outil de packaging, pour résoudre le problème: Environnements différents, Librairies manquantes, Versions logicielles différentes
=> De la nécessité d’avoir des environnements d’exécution identiques
Différents types de virtualisation
Scripts d’installation automatisée
Ansible
D: il fa ...
Driving Lesson Study Summary(Automatical)
更新: 从2020年8月开始学车,我终于在2022年8月5号考到驾照,这期间一共学了60个小时,其中学习了20个小时的手动挡,疫情期间无奈停止学习,然后2022年3月我又重新开始学习了自动挡,最后考到了31/31分的满分成绩。
2022/07/12(高速)
进入高速阶段加速到70码,然后观察后视镜有没有车,变道进入高速
在看到禁止右转时,注意左边车辆有么有最后一刻变道的,后视镜观察右边车辆有么有太多,提速不要让他么挤进来
在下高速时,要踩刹车90 => 70 => 50 => 30,下高速时基本都是一个圆环,注意自己的placement以及减速
沿trottire转弯时只要过了中间的线就可以tourner方向盘了
高速110限速我们只能开100
2022/06/16(侧方停车&倒车入库)
在大马路上靠最右边的线走,因为中间的线可能有摩托车
看到绿灯可以提前观察人行灯,如果行人灯已经红了说明feu也快要红了,可以把脚放在刹车上
左边侧方停车,开到前面车并行的地方,打左转向 ...
Excel tips - VLOOKUP & MATCH
VLOOKUPVLOOKUP is an Excel function to look up data in a table organized vertically.
Syntax1=VLOOKUP (lookup_value, table_array, col_index, [range_lookup])
Arguments
lookup_value: The value to look for in the first column of a table.
table_array: The table from which to retrieve a value.
col_index: The column in the table from which to retrieve a value.
range_lookup: [optional] TRUE = approximate match (default). FALSE = exact match.
Example1: Exact Match
In this example, the range ...
Different SQL JOIN Type
ContextSQL Server performs sort, intersect, union, and difference operations using in-memory sorting and hash join technology. Using this type of query plan, SQL Server supports vertical table partitioning, sometimes called columnar storage.
SQL Server employs three types of join operations:
Nested loops joins (By default)
Merge joins
Hash joins
Use default JoinIf one join input is small (fewer than 10 rows) and the other join input is fairly large and indexed on its join columns
Use Merge J ...
MarkDown Syntax
Records the mark down syntax
There is a online tool to transfer HTML code to Mark Down syntax
TypographyAdd a picture
1
HyperLinkThis is a link
1[Link Name](link url)
Show code differencediff:layout/layout.jsx1234<Head site={site} config={config} helper={helper} page={page} />- <body class={`is-${columnCount}-column`}>+ <body class={`is-3-column`}><Navbar config={config ...
Some modifications when updating Blog to Icarus version 4.0
Update 2023/04/08: My blog has been moved to theme butterfly. This post may not be useful any more
The modification is based on the icarus version 4.x, version 2.0 of icarus uses the ejs.
The blog used the theme Icarus , and made some personal modifications. A lot of diff can be viewed directly in this blog. However, you can go to diff if you want to review the modifications detailed
LayoutArticle display by two-columnThe theme defaults to a three-column layout, which seems a bit c ...
Driving Lesson Study Summary
This blog records of all my summary of driving lesson in France. Continue updating…
Lesson 10 - 10/21/2020 - 看路上标志
看到路上的限速标志,到下一个路口就可以提速,看到路上travaux标志,在travaux的区域里一直都是限速30
在遇到铁轨时,如果你要左转,记得要停在铁轨上(红灯时),为的是让后面的车能够跟上来,避免交通堵塞
在遇到丁字路口时,如果教练没有指示,那就一定有向左向右的禁止标志,要找到
Lesson 9 - 10/14/2020 - 看路上标志 & 地面标记
判断是否在单行道上的标志是,左右都有指示牌,在路口的时候会有stop的标志
在单行道上,如果向左转,立马转到左边的路上准备左转
在双行道上,如果要左转,要找到最右边左转的那跟道路
Lesson 8 - 10/7/2020 - 看路上标志
在路上看到人行道时,头要左右不停的看有没有行人过马路
在看到绿灯时间较长时,脚要放在刹车上随时停 ...
Chrome new cookie attribute SameSite
About chrome’s new version 80: Cookie attribute “SameSite = none”
ContextRecently we met a strange problem in our program: when users finished payment in site A and went back to site B, the cookie of site B was lost. While the site B use a anti-CSRF that always linked to a cookie. the user found an error message in the page said that “Cannot validate CSRF because your session is lost”.
After investigating this problem, we found that the chrome introduced a new cookie attribute “SameSite ...
Generate a SetUp.exe file in WinForms application
Create a Setup Project for your applicationWhen you are sure that have finished your development for your application (WinForms application in my case). You can right click your Solution in Solution Explorer, then click Add new project. In the windows came out, search Installer. then choose Setup Project And create it.
Create Primary outputAfter you create your Installer project, you will find three folders in the left of screen: - The folder Application Folder stocks all your project file ...
