错误截图: 解决方法: 用root进入mysql终端,执行以下命令: alter database hive character set latin1;
分类:
数据库 时间:
2015-01-19 14:14:06
阅读次数:
689
Error[e16]: Segment ISTACK (size: 0xc0 align: 0) is too long for segment definition. At least 0xe more bytes needed. The problem occurred while proces...
分类:
其他好文 时间:
2015-01-18 11:40:50
阅读次数:
241
http://www.linuxask.com/questions/drop-a-database-in-mongodbDrop a database in MongoDBAnswer:Assuming you are going todropthe `test` database inMongoD...
分类:
数据库 时间:
2015-01-15 23:43:59
阅读次数:
178
先简单介绍
wc(Word Count)命令的功能为统计指定文件中的字节数、字数、行数,并将统计结果显示输出
格式:wc file
命令参数:
-c 统计Bytes数(字节数),并显示文件名
-l 统计行数:使用换行符‘\n’作为行结束标志,实际是统计换行符个数
-m 统计字符数。这个标志不能与 -c标志一起使用。
-w 统计字数。一个字被定义为由空白、跳格或换行字符分隔的字符串。
...
分类:
Windows程序 时间:
2015-01-14 12:46:11
阅读次数:
1983
In an extremely rough and simplified sketch, assuming the simplest possibleHTTP request, no proxies and IPv4 (this would work similarly fo...
分类:
Web程序 时间:
2015-01-14 00:43:31
阅读次数:
216
为啥要使用shell命令操纵本地网络?因为这样就可以绕过上层connectService来干一些事情,至于具体要干点什么事情,容我先卖个关子在以后的blog里说明。
首先进入adb shell,然后去Ping一个服务器的ip地址
ping 211.69.198.222
PING 211.69.198.222 (211.69.198.222) 56(84) bytes of data...
分类:
移动开发 时间:
2015-01-13 14:24:50
阅读次数:
152
1:数据流转byte数组
public static byte[] getByteByInputStream(InputStream fileInputStream) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
int read = 0;
byte[] bytes = new byte[1024];...
分类:
编程语言 时间:
2015-01-13 12:32:00
阅读次数:
183
这两天安装bugfree,更换了一个数据量较大的库,结果打开bug详情页要么是空白页,要么就报如题的错误,错误信息还包括C:\wamp\www\bugfree\Include\Class\ADOLite\adodbSQL_drivers\mysql\mysql_driver.inc 506,打开这个...
分类:
其他好文 时间:
2015-01-13 12:14:31
阅读次数:
139
1 # Redis 配置文件 2 3 # 当配置中需要配置内存大小时,可以使用 1k, 5GB, 4M 等类似的格式,其转换方式如下(不区分大小写) 4 # 5 # 1k => 6 1000 bytes 7 # 1kb => 1024 bytes 8 # 1m => 10000...
分类:
其他好文 时间:
2015-01-12 19:05:33
阅读次数:
144
谜题18:字符串奶酪
下面这个程序从一个字节序列创建一个字符串,然后迭代遍历字符串中的字符,并将它们作为数字打印。请描述程序打印的数字序列:
public class StringCheese{
public static void mian(String[] args){
byte bytes[] new byte[256];
for(int i = 0; i < ...
分类:
编程语言 时间:
2015-01-12 14:45:30
阅读次数:
157