12 2013 档案

摘要://通过反射获取泛型的参数类型信息Type type = this.getClass().getGenericSuperclass();ParameterizedType pt = (ParameterizedType)type;Type argType = pt.getActualTypeArguments()[0];entityClass = (Class)argType;this.entityName = entityClass.getName(); 阅读全文
posted @ 2013-12-31 01:18 fastparse 阅读(252) 评论(0) 推荐(0)
摘要:http://xlambda.com/gevent-tutorial/ 阅读全文
posted @ 2013-12-26 10:39 fastparse 阅读(219) 评论(0) 推荐(0)
摘要:php安装pear和phpunithttp://hi.baidu.com/zjutxujie/item/7b08761f922df7476926bb2c安装pear下载go-pear.phar,放到phproot/pear目录下,地址http://pear.php.net/go-pear.phar。管理员身份运行cmd,打开phproot,运行php-dphar.require_hash=0PEAR/go-pear.phar。选择local->yes->Enter->Y。php.ini中会自动添加include_path=".;phproot\pear"。 阅读全文
posted @ 2013-12-26 10:38 fastparse 阅读(470) 评论(0) 推荐(0)
摘要:来源:http://dozview.com/blog/an-implementation-of-openvpn-system-based-on-userpass-authentication-bandwidth-control前一阵子,弄到了一个非常便宜的VPS服务器,位置在美国亚利桑那州的凤凰 城,线路可以,速度不错,于是乎在上面架起了OpenVPN服务器,以便在“特殊条件”下“更加安全地访问网络”。由于每个月1TB的流量无论如何是用不 完的,打算把它分享给朋友们一起用。为了防止被滥用,需要实现OpenVPN系统的用户认证和流量控制。考虑到方便性,需要UDP、TCP协议同时支持。 经过一番研 阅读全文
posted @ 2013-12-25 14:17 fastparse 阅读(1088) 评论(0) 推荐(0)
摘要:查看SELinux状态:1、/usr/sbin/sestatus -v ##如果SELinux status参数为enabled即为开启状态SELinux status: enabled2、getenforce ##也可以用这个命令检查关闭SELinux:1、临时关闭(不用重启机器):setenforce 0 ##设置SELinux 成为permissive模式 ##setenforce 1 设置SELinux 成为enforcing模式2、修改配置文件需要重启机器:修改/etc/selinux/config 文件... 阅读全文
posted @ 2013-12-25 11:40 fastparse 阅读(253) 评论(0) 推荐(0)
摘要:MaxentMature Java package for training and using maximum entropy models.OpenNLP CCG LibraryA collection of natural language processing components and tools which provide support for parsing and realization with Combinatory Categorial Grammar (CCG). This project is an off-shoot ofGrok.OpenNLP ToolsA 阅读全文
posted @ 2013-12-24 17:13 fastparse 阅读(263) 评论(0) 推荐(0)