git pull 时,报错:
Git Pull Failed: refusing to merge unrelated histories
解决方案:
git pull origin master --allow-unrelated-historie
Git Pull Failed: refusing to merge unrelated histories
解决方案:
git pull origin master --allow-unrelated-historie

新建 Go 项目时,一定要通过 “File -> New -> Project...” 方式建立,,千万不要通过 “File -> Open”,即“直接打开现有文件夹” 的方式建立,否则,调试(Debug)功能失效,只有运行(Run)功能。
1、由于默认情况下,根据archetype创建maven项目会从网络下载catalog文件,导致创建maven项目缓慢
Searching for remote catalog: http://repo1.maven.org/maven2/archetype-catalog.xml
2、解决办法可以设置使用本地catalog文件,在IDEA中设置archetype的使用方式为local;
-DarchetypeCatalog=local
如果数据库有相同的前缀,左边数据库导航会把前缀合并,即所谓的“以树形显示数据库”,真的有点不习惯,如下图所示:
如何设置phpMyAdmin自动登录?
首先在根目录找到config.sample.inc.php复制一份文件名改为config.inc.php(如果已经存在 config.inc.php 文件,则直接修改该文件即可)。
打开config.inc.php 找到 $cfg['Servers'][$i]['auth_type'],将
$cfg['Servers'][$i]['auth_type'] = 'cookie';
改成
$cfg['Servers'][$i]['auth_type'] = 'config';
创建一个 SSH key
$ ssh-keygen -t rsa -C "lesjava@163.com"
代码参数含义:

有的说把无线路由当做交换机用,有的说开启Win7系统的网络共享功能,有的说估计是对方记录你的Mac地址,你只需要把电脑的Mac地址拷贝给路由器即可。
在配置文件中 phpMyAdmin安装目录/libraries/config.inc.php 文件添加如下配置即可修改该值:
$cfg['LoginCookieValidity'] = 3600; // 有效期: 1小时
另外,修改PHP配置文件 php.ini,找到节点
session.gc_maxlifetime = 1440 // 24分钟 Session的垃圾回收时间,即 Session的有效期
把它也修改为
session.gc_maxlifetime = 3600 // 1小时