04 2017 档案

摘要:之前在寫 MySQL 的時候常常會遇到如果直接用 bash script 下 SQL 指令就會出現提示訊息,雖然無傷大雅,但看得很煩 Warning: Using a password on the command line interface can be insecure 在 MYSQL 5.6 阅读全文
posted @ 2017-04-26 21:02 kilen 阅读(173) 评论(0) 推荐(0)
摘要:git clone 不需要输入密码步骤 1, vim ~/.git-credentials 2, git config --global credential.helper store 3, vim ~/.gitconfig 4, git clone https://username:passwor 阅读全文
posted @ 2017-04-25 10:48 kilen 阅读(1256) 评论(0) 推荐(0)
摘要:1、git detached state(git checkout <commit id>):pull data from version package,you can not do any operation in this state,只是简单的将HEAD指向一个<commit id>(一个不 阅读全文
posted @ 2017-04-24 14:28 kilen 阅读(94) 评论(0) 推荐(0)
摘要:整了一阵子google proto message.h, 遇到很多问题,各种百度、google ,估计是用的人不是很多,整的焦头烂额,很多API都不知道该怎么用,只能一点一点的扣,为了方便在这里先简单的记一下,遇到同样问题的同行可以稍稍借鉴一下,不对的地方还望多多指教,一起讨论! 五一完成该工作,w 阅读全文
posted @ 2017-04-24 12:24 kilen 阅读(155) 评论(0) 推荐(0)
摘要:#include <iostream>#include <string> int main (){ std::string name; std::cout << "Please, enter your full name: "; std::getline (std::cin,name); std:: 阅读全文
posted @ 2017-04-24 12:11 kilen 阅读(105) 评论(0) 推荐(0)
摘要:1、replace() (1) 替换字符 str1 = "abcdef"; replace(str1.begin(), str1.end(), ‘a’, '1'); >str1 中的 a 替换成 1 (2)字符串中连续字符串替换成指定字符串 str1.replace(sit, length, "st 阅读全文
posted @ 2017-04-24 12:11 kilen 阅读(122) 评论(0) 推荐(0)