今天一来公司,发现服务器挂掉了,然后执行日常简易操作,重启web服务器,还是不可以,然后重启mysql,结果mysql重启不了,查看日志,发现:ERROR: The partition with /var/lib/mysql is too full! failed!
于是上网搜索,发现网上也有挺多遇到这种情况,有人贴代码:
cd /var
rm -rf log
也就是删除日志文件,然后重启...
分类:
数据库 时间:
2014-08-30 01:17:58
阅读次数:
294
http://acm.tju.edu.cn/toj/showp1183.html题意:从a写到b,问每个数字各写了几次。分析:昨天做了一道how many 0's,这题算是拓展。考虑从0..a。1到9是一样的,如果目前考虑的是digit,枚举每位,左边填0..x-1,则右边随便填(10^右边长度),...
分类:
其他好文 时间:
2014-08-29 19:40:48
阅读次数:
211
本人SDK更新后,在打包时报thezipaligntoolwasnotfoundinthesdk,于是查了一下,终于找到了解决方法:按照路径Eclipse--windows--androidSDKManager打开,然后更新所有的Build-tools,更新完后再重启,在打包测试,问题解决。如图:将以上的build-tools安装完后,一切就Ok。
分类:
其他好文 时间:
2014-08-29 18:30:38
阅读次数:
214
Factorial Problem in Base KTime Limit: 2 Seconds Memory Limit: 65536 KBHow many zeros are there in the end of s! if both s and s! are written in base ...
分类:
其他好文 时间:
2014-08-29 17:46:10
阅读次数:
270
题目链接
题意:求第n个斐波那契数的递归次数MOD b
思路:用矩阵快速幂求斐波那契数列,然后打表找出递归次数的规律为f(n) = 2 * F(n) - 1(F(n)为斐波那契数)。
代码:
#include
#include
#include
#include
#include
typedef long long ll;
using namespace...
分类:
其他好文 时间:
2014-08-28 21:14:46
阅读次数:
270
Transports and Connections这两个东西,是灰熊框架的核心结构~Transports工具包含有TCP或UDP的协议,合并各种组件资源(Thread-Pool 线程池、Memory Manager 内存管理器等等。从结构来说,没什么东西,主要还是使用上1、使用Future模式建立...
分类:
其他好文 时间:
2014-08-28 21:05:56
阅读次数:
284
C. How Many... in 3D!Time Limit: 1000msMemory Limit: 131072KB 64-bit integer IO format: %lld Java class name: Main Submit Status PID: 20864[PDF Link]....
分类:
其他好文 时间:
2014-08-28 21:05:36
阅读次数:
203
/*
* Helper functions for managing events -- not part of the public interface.
* Props to Dean Edwards' addEvent library for many of the ideas.
*/
jQuery.event = {
add: function( elem, types, han...
分类:
Web程序 时间:
2014-08-28 16:19:39
阅读次数:
214
How many integers can you find
时间限制:1000 ms | 内存限制:65535 KB
难度:1
描述
给你三个数,n,m1,m2,找出所有小于n的能被m1或m2整除的数的个数。
输入输入包含多组测试数据,每组数据占一行。
0
输出每组数据输出占一行。
样例输入
12 2 3
样例输出
7
代码...
分类:
其他好文 时间:
2014-08-28 13:21:09
阅读次数:
181
Bean bags for many years. Although it is an old design, people feel like it, and still one of the most sought after tools today. If you are looking fo...
分类:
其他好文 时间:
2014-08-28 13:01:39
阅读次数:
263