#include #include #include #include #include #include #include #include #include #include #include #include #include "common.h"#include "serversignal....
分类:
Web程序 时间:
2014-07-06 21:53:31
阅读次数:
165
一、概念:SeaJS是一个遵循CommonJS规范的JavaScript模块加载框架。在 Sea.js 中,所有 JavaScript 模块都遵循 CMD(Common Module Definition) 模块定义规范。该规范明确了模块的基本书写格式和基本交互规则。在 CMD 规范中,一个模块就是...
分类:
Web程序 时间:
2014-07-06 20:42:08
阅读次数:
177
需求说明:
实际项目中,有必要上传附件(包括图片、文档、解压文件等)对数据库数据完善,这里实现的功能就是,上传附件到数据库,然后从数据读出来之后,可以“点击下载”之前上传的附件内容。
asp.net代码如下:
//用FileUpload控件,上传附件之后,导入数据库操作
protected void btnUp_Click(object sender, Event...
分类:
Web程序 时间:
2014-07-06 00:17:08
阅读次数:
299
需要进一步学习hadoop、需要看看内部源码实现,因此需要将hadoop源码导入都eclipse中,简单总结一下,具体步骤如下:
首先确保已经安装了git、maven3、protobuf2.5、如果没有安装需要提前安装一下
1、下载hadoop源码
git clone git://git.apache.org/hadoop-common.git
2、进入hadoop-common目录,...
分类:
系统相关 时间:
2014-07-05 23:37:02
阅读次数:
288
Write a function to find the longest common prefix string amongst an array of strings.class Solution {public: string longestCommonPrefix(vector &st...
分类:
其他好文 时间:
2014-07-05 18:36:22
阅读次数:
209
jsonkit 解析nsarray 时候 报错
Assertion failure in -[TXJKArray count], /Users/mqq/hudson/1740/src/TencentOpenApi_IOS/Common/Util/JSONKit.m:738
解决办法:
Had the same issue, I was trying to set the ...
分类:
Web程序 时间:
2014-07-03 18:25:16
阅读次数:
356
没事折腾struts2,遇到异常,浪费好长时间,于是干脆把所有可能的异常都给跑一遍,来个痛快的。
文件的结构
WEB-INF
|------configs
|-------struts-common.xml
|-------struts.xml
|------web.xml
遇到的异常...
分类:
其他好文 时间:
2014-07-03 17:00:52
阅读次数:
231
完整错误信息:Description Resource Path Location TypeType mismatch: cannot convert from Enumeration to Enumeration ResponseHeaderFilter.java /dwz-java/src/dwz/common/util line 46 Java Problem解决办法:...
分类:
其他好文 时间:
2014-07-03 16:22:55
阅读次数:
435
commons-io在struts框架中无法获取upload.parseRequest(request)上传的文件的主要原因是因为struts将request进行了封装,在文件上传时struts会将HttpServletRequest请求被转成了MultiPartRequestWrapper,所以如需使用request,则需要将struts封装好的的MultiPartRequestWrappe..
分类:
其他好文 时间:
2014-07-03 15:19:33
阅读次数:
148
1. 实现基础的信号处理 sigaction使用前一定内存清零2. 实现基础的进程模型 wait 等待子进程结束#include "common.h"#include "serversignal.h"static volatile sig_atomic_t graceful=0;int main.....
分类:
Web程序 时间:
2014-07-03 12:40:57
阅读次数:
221