前几天安装了一个bugfree,但是测试人员在用的时候发现保存bug的时候直接报500了,然后我看了下apache的错误日志,内容是:[TueAug1214:42:342014][error][client192.168.30.67]PHPFatalerror:Calltoundefinedfunctionmb_detect_encoding()in/var/www/html/bugfree/protected/ex..
分类:
其他好文 时间:
2014-08-12 17:34:45
阅读次数:
273
这6条移动操作指令可以分为两类:一类是不涉及特殊寄存器HI、LO的指令,包括movn、movz;另一类是涉及特殊寄存器HI、LO的指令,包括mfhi、mflo、mthi、mtlo。前一类很好实现,基本思路与第5章实现逻辑、移位操作指令时类似,只需要修改ID、EX模块即可。后一类涉及到特殊寄存器HI、LO,需要为OpenMIPS添加HI、LO寄存器,以及相应的读写控制。下面分别介绍各自的实现思路。...
分类:
移动开发 时间:
2014-08-12 17:31:04
阅读次数:
644
Trie树模板
#include
using namespace std;
struct Trie
{
int word[100020<<2][26];
int ex[100020<<2];
int sz;
Trie()
{
sz=1;
memset(word,0,sizeof(word));
memset(...
分类:
其他好文 时间:
2014-08-12 17:15:24
阅读次数:
180
try { } catch (Exception ex) { Debug.WriteLine(ex.Message); MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); }
分类:
其他好文 时间:
2014-08-12 10:17:53
阅读次数:
256
DSU stands for ‘decorate, sort, undecorate’ and refers to a pattern that is often useful for sorting lists according to some attribute of elements.For...
分类:
其他好文 时间:
2014-08-10 18:03:30
阅读次数:
204
#!/bin/bash
set 'apple pie' pears peaches
for i in $* /*单引号被去掉,循环单个字符输出*/
do echo $i
done
[root@luozhonghua Ex_14.02-14.31]# sh 14-14-1
apple
pie
pears
peaches
------------------...
分类:
其他好文 时间:
2014-08-09 23:22:59
阅读次数:
393
Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or another ex...
分类:
其他好文 时间:
2014-08-08 23:49:56
阅读次数:
314
1、HTML 标签caption 标签必须紧随 table 标签之后。您只能对每个表格定义一个标题。通常这个标题会被居中于表格之上。表格标题2、模板继承是thinkphp的一项更加灵活的模板布局方式,模板继承不同于模板布局。模板可以定义一个基础模板,并且定义相关的区块(block),然后继承(ex....
分类:
其他好文 时间:
2014-08-08 21:04:36
阅读次数:
268
1,采集网页用的curl 系列函数。 可以模拟登陆,模拟ip,抓取网页,通过抓取的网页来提取数据。 2,flock 文件锁。 ( LOCK_SH取得共享锁定(读取的程序)。 LOCK_EX 取得独占锁定(写入的程序。 LOCK_UN 释放锁定(无论共享或独占) ) 用在模拟进程锁方面的。 3,fso...
分类:
其他好文 时间:
2014-08-08 21:00:06
阅读次数:
314
??
Problem Description
Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amount of the stars...
分类:
其他好文 时间:
2014-08-07 13:17:10
阅读次数:
247