slice return a shallow copy of a portion of an array into a new array object selected from begin to end (not included). The original array will not be modified.
Posted onEdited onInandroid Symbols count in article: 94Reading time ≈1 mins.
Android dependencies conflict resolve
今天在编译Android应用“草书字典”时突然发现以下错误:
1
Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules jetified-guava-18.0 (com.google.guava:guava:18.0) and jetified-listenablefuture-1.0 (com.google.guava:listenablefuture:1.0)
Posted onEdited onInhexo Symbols count in article: 484Reading time ≈2 mins.
Hexo Usage
How to Write a new post
Generate new post in your terminal: hexo new "Your post name"
Open your project by vscode, then open file: source\_post\Your post name.md
Edit your post with vscode, hexo support markdown and ejs files
Clean cache
After finish editing, you can type hexo clean in your terminal to clean the cache, clean is short for clean here.
1
hexo clean
Generate static files
After finish editing, you can type hexo g in your terminal to generate static files, g is short for generate here.
1
hexo g
Publish your post
Type hexo d to deploy your post to github.io, d is short for deploy here.
1
hexo d
View your post
open zdd.github.io to see your post, good job!
you can use npm run deploy to combine generate and deploy in a single command.
View post locally
Run hexo s in terminal, then open localhost:4000 to see your post, this is very convenient to check your post before publish.
1
hexo s
404 File not found
When you encounter the 404 error, make sure to do the following
Check your source\_post\Your post name.md file name, make sure it is the same as the title in the file.
run hexo clean to clean the cache
run hexo g to generate static files
run hexo d to deploy your post to github.io
Tags not working
Make sure you have a tags folder under source folder
Install easy tag plugin by npm install hexo-easy-tags-plugin --save
Delete .deploy_git folder
Run hexo clean to clean the cache
Run hexo g to generate static files
Run hexo d to deploy your post to github.io
Force refresh your browser by Ctrl + F5
Make sure tags config in themes\next\_config.yml is correct, remember to set amount to a large number
1 2 3 4 5 6 7
tagcloud: # All values below are same as default, change them by yourself. min:12# Minimun font size in px max:30# Maxium font size in px start:"#ccc"# Start color (hex, rgba, hsla or color keywords) end:"#111"# End color (hex, rgba, hsla or color keywords) amount:2000# <--------------- Set this to a large number
<div *ngIf="condition; then thenBlock else elseBlock"></div> <ng-template #thenBlock>Content to render when condition is true.</ng-template> <ng-template #elseBlock>Content to render when condition is false.</ng-template>
Posted onEdited onInhexo Symbols count in article: 78Reading time ≈1 mins.
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.