机动车车牌管理作为城市交通管理的重要一环,直接影响着城市的交通状况、环境质量以及居民的生活品质。中国和新加坡作为两个发展程度不同的国家,在机动车车牌管理上采用了截然不同的模式。本文将以新加坡和中国上海市为例,深入探讨中新两国在车牌管理方面的异同,并分析两种模式背后的逻辑和优缺点。
如何设置小米澎湃OS在新加坡搭乘公交系统
Posted on
In
中文内容
SyntaxError: "[object Object]" is not valid
Posted on
In
Programming
When you try to directly parse a server side responed json to a JSON object ,it will popup an err.
1 | const message = {"code":"200","msg":"Sample movement recorded succsfully"} |
1 | SyntaxError: "[object Object]" is not valid JSON |
you need to use JSON.stringify()
method first, then parse the data to JSON object
1 | const message = {"code":"200","msg":"Sample movement recorded succsfully"} |
How to move your hexo source code to new laptop
- Before you clone your repository or just copy your source code folder to a new windows computer, you need to install git and Node.js first.
- Clone your hexo repository to your local folder
1
git clone [email protected]:yourname/your_website.git
- Run the following command in your source folder
1
2
3npm install hexo-cli -g
npm install
hexo clean
Now you can use your Hexo to continue your blogging.
How to move your vscode from old laptop to new laptop
Before you move the whole development, just login the vscode with your github account and sync all your settings to the cloud.
- Copy all your project folder to new laptop
- Install vscode and login your github account and sync
- open your powershell and run following commmand
1
ssh-keygen -t rsa -b 4096 -C “[email protected]”
- open folder C:\Users\yourUserName\.ssh and then open a file named id_rsa.pub with notepad or your favorite edit apps, then copy all content in this file to your clipboard.
- open your github -> settings -> SSH and GPG keys -> New SSH key
- copy all contents to the “key” field and put your new laptop name to the “title” field then save
- install git for windows and set up your git user informationif you forget your git user information on your old laptop use this
1
2git config --global user.name "Your Name"
git config --global user.email "[email protected]"1
git config --list
- restart your vscode and enjoy
if your laravel project can not run after you move to new laptop you just clear the optimize
1 | php artisan optimize:clear |