自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (9)
  • 收藏
  • 关注

原创 Thinkphp分页时查询条件保存方法

web应用中经常要根据用户提交的查询条件进行过滤,再以列表方式显示在浏览器上.如果这种查询是多种条件的组合,并要进行分页显示,则如何在分页导航中保持查询条件,是必须解决的问题.在Thinkphp中, 已有分页类"ORG.Util.Page",并且可以用$page->parameter保存查询参数, 但可能是受示例程序的影响,很多tper纠结于$page->parameter不能保存一些复杂条件

2013-08-04 20:17:54 2119

原创 CentOS设置防火墙只允许内网用户访问服务器

用户环境是一个局域网,adsl连接internet,有10多台pc,1台服务器.这台服务器安装的是CentOS5.8,主要运行一个特殊软件,工程人员在各自pc上用XManager登录服务器使用该软件,另外开放ftp功能以便传递工程文件.现在用户的要求是服务器需要与internet隔离,以保护数据,但不能影响其他pc正常上网,也不能影响其他pc访问该服务器思路: 用centos自

2012-10-23 18:08:04 9647

原创 PHP实现提取一个图像文件并显示在浏览器上

去年做过一个项目,要把用户上传的图像文件列出文字清单,当用户点击一个文件名后,就可以显示这个图像.因为要考虑兼容各种不同的图像格式, 我使用了GD库, 判断出具体是那种图像文件(MINE),再调用相应的image生成函数imagecreatefromXXX(),生成一个img,再将这个img以jpeg格式输出至浏览器,虽然做出来了,但总觉得不满意.今天有机会重新考虑这个功能,在php手册中

2012-09-02 23:13:26 577

原创 php生成"局部唯一识别码"LUID

UUID(Universally Unique Identifier),GUID都是希望在整个时空范围内能产生唯一识别码,这在分布式计算环境下是必要的. 然而,如果仅仅是想在一个受限定的局部环境下,想生成一个"局部唯一识别码",使用UUID就是杀鸡用牛刀,这个"局部唯一识别码",我称之为LUID(Local Unique Identifier) 比如我在用php开发网站程序时,为避免用户同时多

2012-08-10 15:52:22 799

原创 在PHP开发中使用ReportAll报表控件

前段时间做一个web项目,需要打印证照功能,一开始是采用生成pdf文件再发到本地打印的方法,在客户实际使用中发现不太灵活,主要是在不同打印机环境下,偏移量不太好设定,另外客户想自行调整打印内容,比如字体大小,这个用pdf就比较麻烦了,于是在网上找了一下,看有没有好的web打印方案,发现了reportall这个软件,试用了一下,感觉还不错,而且普通版是免费使用的.现在就和大家分享一下使用心得一.

2012-06-17 10:01:35 5894

原创 PHP中3种生成XML文件方法的速度比较

有3种方法,分别是直接写;使用DomDocument;使用SimpleXML;其实还有第4种:使用XMLWriter,不过我没用过,也懒得试了.主要是想看看这3种方式哪个速度要快些直接上代码:private function directWriteXml(&$data){ $xmltext=''; $xmltext .=''; $xmltext .='';

2012-01-01 23:41:11 935

原创 PHP面向对象学习笔记之二:生成对象的设计模式

一. 单例模式(Singleton) 如果应用程序每次包含且仅包含一个对象,那么这个对象就是一单例. 用来替代全局变量.<?phprequire_once("DB.php");class DatabaseConnection{ public static function get(){ static $db = null; if ( $db == null

2011-12-25 01:21:02 673

原创 PHP面向对象学习笔记之一:基础概念

1> if( "false" ) 等效于 if( true), 因为非空字符串是true2> 检查数据类型:    is_array();    is_object();    is_string();    is_null();    is_integer();3> PHP5 引入类的类型提示(type hint),用来约束一个方法的参数类型(不是基本数据类型,而

2011-12-24 22:05:58 418

原创 Thinking In UML学习笔记一

一.Modeling:建模通过对客观事物建立一种抽象的方法用以表征事物并获得对事物本身的理解,同时把这种理解概念化,将这些逻辑概念组织起来,构成一种对所观察的对象的内部结构和工作原理的便于理解的表达.首先要确定抽象的角度 人(actor),事(use case),物(entity),规则二. 版型stereotype三.参与者actor,主角在系统之外与系统

2011-12-23 01:21:23 781

原创 Firebug:调试PHP ajax程序的好工具

最近一直被ajax程序的错误所困扰. 为了查找定位bug费了很大的力气. 今天学了几个调试技巧和工具,觉得对我帮助很大. 总结一下,与大家分享.首先是在firefox下使用firebug发现和定位ajax服务器端的错误.因为ajax的特点, 在服务器端不能直接向页面输出,

2011-09-14 10:53:14 2158 1

tensorflow 在计算机图形学方面的应用

谷歌大牛们在SIGGRAPH(Special Interest Group for Computer GRAPHICS,计算机图形图像特别兴趣小组)上的ppt文件

2022-02-09

CRF教程(An Introduction to crf for relation learnig).pdf

CRF在关系提取方面的应用,但主要是介绍基础的CRF知识,值得认真学习An Introduction to crf for relation learnig.pdf

2020-01-27

大牛写的CRF教程-经典!

Andrew McCallum 可以说是Maximum Entropy Markov Models的开山鼻祖,在CRF也贡献颇多,他写的CRF教程值得认真学习. 全英文,An Introduction to Conditional Random Fields

2020-01-27

Netflix Prize 完整数据集

著名的Netflix 智能推荐 百万美金大奖赛使用是数据集. 因为竞赛关闭, Netflix官网上已无法下载. Netflix provided a training data set of 100,480,507 ratings that 480,189 users gave to 17,770 movies. Each training rating is a quadruplet of the form . The user and movie fields are integer IDs, while grades are from 1 to 5 (integral) stars.[3] The qualifying data set contains over 2,817,131 triplets of the form , with grades known only to the jury. A participating team's algorithm must predict grades on the entire qualifying set, but they are only informed of the score for half of the data, the quiz set of 1,408,342 ratings. The other half is the test set of 1,408,789, and performance on this is used by the jury to determine potential prize winners. Only the judges know which ratings are in the quiz set, and which are in the test set—this arrangement is intended to make it difficult to hill climb on the test set. Submitted predictions are scored against the true grades in terms of root mean squared error (RMSE), and the goal is to reduce this error as much as possible. Note that while the actual grades are integers in the range 1 to 5, submitted predictions need not be. Netflix also identified a probe subset of 1,408,395 ratings within the training data set. The probe, quiz, and test data sets were chosen to have similar statistical properties. In summary, the data used in the Netflix Prize looks as follows: Training set (99,072,112 ratings not including the probe set, 100,480,507 including the probe set) Probe set (1,408,395 ratings) Qualifying set (2,817,131 ratings) consisting of: Test set (1,408,789 ratings), used to determine winners Quiz set (1,408,342 ratings), used to calculate leaderboard scores For each movie, title and year of release are provided in a separate dataset. No information at all is provided about users. In order to protect the privacy of customers, "some of the rating data for some customers in the training and qualifyin

2018-12-03

Joomla! Development - A Beginner’s Guide

Joomla! Development - A Beginner’s Guide 涉及最新的2.5版, 是进行Joomla!开发的难得入门教程

2013-01-05

Joomla! 2.5 Beginner's guide

Joomla! 2.5 Beginner's guide ,这是免版权免费发放的入门书,英文pdf格式

2013-01-05

PHP工具组件ezcomponent

ezcomponent是一套低耦合度的php基础工具组件, 大名鼎鼎的ezPublish就是使用这套组件

2012-12-03

最新版simpleGraph2.7.2源码

SimpleGraph是一个完全免费的delphi图形工具,利用它可以方便的在软件中集成图形功能,制作出一流的用户图形交互界面.这是最新的2.7.2版

2010-07-02

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除