“种一棵树,最好的时机是十年前,其次是现在。” --知乎
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String getFilecharset(File sourceFile) { | |
String charset = "GBK"; | |
byte[] first3Bytes = new byte[3]; | |
try { | |
BufferedInputStream bis = new BufferedInputStream(new FileInputStream(sourceFile)); | |
bis.mark(0); | |
int read = bis.read(first3Bytes, 0, 3); | |
System.out.println("字节大小:"+read); | |
if (read == -1) { | |
return charset; //文件编码为 ANSI |
上帝是月蚀中的灯塔 --《星空》相关
取消黑苹果睡眠唤醒
(即启动卷标上带有Hibernated
):
- 在clover启动界面光标移到带有
Hibernated
的卷标上,按空格键并选择Cancel hibernate wake
启动系统。
- 显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles YES
- 隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles NO
.style_card:hover {
box-shadow: 0 12px 25px 0 rgba(0, 0, 0, 0.2);
transform: translate(0, -4px);
}
.style_card {
width: 220px;
height: 225px;
border-radius: 4px;
NewerOlder