命令行连接mysql时,报了“Can't connect to local MySQL server through socket '/tmp/mysql.sock'”的错误;用Navicat连接是报62号错误。首先确定我本机是装了mysql的尝试用安全模式启动mysql,命令行执行:/usr/lo...
分类:
数据库 时间:
2015-05-27 15:24:54
阅读次数:
139
安装:brew install nsq使用:The following steps will run a small NSQ cluster on your local machine and walk through publishing, consuming, and archiving mes...
分类:
系统相关 时间:
2015-05-27 11:36:52
阅读次数:
586
连接不上mysql ,启动mysqld进程,发现可以启动成功,但几秒后进程立马关闭了,后来发现主要原因是因为磁盘空间满了。报错: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'解决办法:se...
分类:
数据库 时间:
2015-05-25 20:17:19
阅读次数:
143
Full Tank?Time Limit:1000MSMemory Limit:65536KTotal Submissions:6724Accepted:2194DescriptionAfter going through the receipts from your car trip throug...
分类:
其他好文 时间:
2015-05-25 16:11:52
阅读次数:
160
最短路+记忆化搜索#include#include#include#include#includeusing namespace std;const int maxn = 1003;const int INF = 0x3f3f3f3f;vectorljb[maxn];int jz[maxn][max...
分类:
其他好文 时间:
2015-05-23 15:27:09
阅读次数:
120
解决方法:使用URL重写技术
URL重写:在原来的URL后面加上";jsessionid=123456789" 即:url--->url;JSESSIONID=123
注意:
*For robust session tracking, all URLs emitted by a servlet should be run through this method.
Otherwise, URL rewriting cannot be used with browsers which do n...
分类:
其他好文 时间:
2015-05-22 17:05:26
阅读次数:
122
StyleCheck is an application that helps you to make sure your code comforms to the standard coding style.This tutorial will walk you through the insta...
分类:
其他好文 时间:
2015-05-21 22:06:49
阅读次数:
152
First make a backup of your /var/lib/mysql/ directory just to be safe.sudo mkdir /home//mysql/cd /var/lib/mysql/sudo cp * /home//mysql/ -RNext purge M...
分类:
数据库 时间:
2015-05-21 19:18:08
阅读次数:
182
1.Given an array of integers, find a contiguous subarray which has the largest sum.hint: Go through the array with 2 variable -- cur and count. cur i....
分类:
其他好文 时间:
2015-05-21 16:52:25
阅读次数:
107
We’ve been using IE 8 for just over two weeks and wanted to run through some of the significant differences that will affect anyone involved in web development, debugging or performance tuning.
#1 ...
分类:
其他好文 时间:
2015-05-21 10:49:28
阅读次数:
306