NeatCN(NeatStudio工作室) NeatStudio工作室

Enterprise Caching Summary[using asp.net]

06.26.2010 · Posted in PHP开发

Original page url is:http://www.cnblogs.com/teddyma/archive/2010/02/23/1672295.html ,Author is Teddy. let’s read the file… Background Caching is an very important topic in enterprise-level multi-tier application, especially for web application. A general rule for applying caching is you should consider do necessary caching at each tier of your application if possible. The other basic rule for applying caching is ...

Using Bloom Filters

06.21.2010 · Posted in PHP开发

前段时间,yhustc问群里的人说是,如果有两个4G的文件,怎么样把其中相同的URL取出来?(文件大小4G,每行一个URL,每个URL64个字节),一下子迷惘了。后来他说了这个Bloom Filters,于是找了点资料 。 以下为部分资料,下次贴带图片(公式)的。。【文中有图片,但事实上原文并没有图片,来源于http://www.chinaunix.net/jh/25/601028.html,由于不知道如何在这里粘贴图片,因此本文中没有包含图片说明,请对照原文档来阅读,原文档在:http://www.perl.com/pub/a/2004/04/08】 ...

WordPress 3.0

06.08.2010 · Posted in Wordpress开发

【2010-06-21】今天,我已经升级到了3.0了。over ———————————————————- 上次是RC,这次是RC2,看来正式版离我们很近了。 事实上我也明白,如果不想多用户版,2.9已经够用了。wp为了让插件更容易开发,忽略的是性能,因此,在不装插件的情况下,WP的性能其实也还是可以接受的。只是插件多了,每次都要add_actin,add_xxxxx,就慢上很多。虽然插件都有缓存,但IO的消耗不会少呀? 看原新闻怎么说吧,RC2只更新了一条: Changes: This release contains many bugfixes and improvements since Release Candidate 1. There have been improvements in the nav menus, multisite, the TwentyTen theme, and the upgrade functions, to name a few. There is also new contextual help available. 感觉好象没什么太大的意义,看来,稳定多了。stable版本即将出现了 ...

WordPress : Adding Administration Menus

05.26.2010 · Posted in Wordpress开发

If you want to give your pluging an options page,you must set a administration menu or options sub menu. Some manual can find it on wordpress.org. OK,to add an administration menu, you must do three things: 1. Create a function that contains the menu-building code 2. Register the above function using the ...

wordpress开发的几个事项

05.18.2010 · Posted in Wordpress开发

1、自定义字段,详见 http://codex.wordpress.org/Using_Custom_Fields ,几个常见的方法有: add_post_meta($id,$key,$value,$unique),update_post_meta,delete_post_meta get_post_meta,get_post_meta_keys,get_post_meta_values 用于模版中的有,the_meta,get_post_meta 2、图片存在哪里?图片其实也是一条post数据,只是 post_type = attachment而己 其它post_type有,draft(草稿),revision(历史数据)等。 当图片的post_parent没有值时,认为它是孤立附件。如果有值是认为是有关联的,仅关联第一次,如果有多个文章插入此图片,默认只关联第一次的。 3、wp_links是友情链接表 wp_comments是回复表 wp_commentmeta和postmeta类似,但一般都用不到。 wp_options是系统配置表,可以用get_options等获取。 wp_terms等三个表是关联表,wp_terms里面存放了category,tag等信息 wp_users等两个表是用户相关表。由于usermeta信息是key,value对应的,所以当要取所有的用户及全部配置信息时就很郁闷。如果用户不多,建议是把wp_usermeta全部取出来之后,再用foreach等做键值对应,否则,SQL查询就会死人。 ...

WordPress的插件开发全攻略(目录)

05.17.2010 · Posted in Wordpress开发

这篇文章是我转自sexywp.com的文章,有PDF版的下载哦,不过仔细看了之后,还是觉得比较简单,当然如果是初学的话,了解一下也足够了。 How to Write a WordPress Plugin – Introduction 介绍 Seven Reasons to Write a WordPress Plugin 编写插件的七个理 由 How to Get Ideas for WordPress Plugins 怎样获得 WordPress插件的创意 Structure of a WordPress Plugin WordPress 插件的结构 WordPress Plugin Actions WordPress 插件Actions WordPress Plugin Filters WordPress 插件Filter Constructing a WordPress Plugin Admin Panel 构造一个 WordPress插件管理员面板 Constructing a ...

Yii framework documentation and api manual

05.06.2010 · Posted in PHP开发

When you wrote your php code with yii framewok,you must look the reference.so i try to find yii framework documentation and api manual. Yii api manual is a chm file,so you can download it ,and you can write code for the reference.(又在乱写了。。。) Yii documentation that gives the definitive description of every feature of Yii and ...

php-curl manual

04.29.2010 · Posted in PHP开发

curl 是使用URL语法的传送文件工具,支持FTP、FTPS、HTTP HTPPS SCP SFTP TFTP TELNET DICT FILE和LDAP。curl 支持SSL证书、HTTP POST、HTTP PUT 、FTP 上传,kerberos、基于HTT格式的上传、代理、cookie、用户+口令证明、文件传送恢复、http代理通道和大量其他有用的技巧。详见参考手册。 以下关于此函数各项使用参数: bool curl_setopt (int ch, string option, mixed value) curl_setopt()函数将为一个CURL会话设置选项。option参数是你想要的设置,value是这个选项给定的值。 下列选项的值将被作为长整形使用(在option参数中指定): * CURLOPT_INFILESIZE: 当你上传一个文件到远程站点,这个选项告诉PHP你上传文件的大小。 * CURLOPT_VERBOSE: 如果你想CURL报告每一件意外的事情,设置这个选项为一个非零值。 * CURLOPT_HEADER: 如果你想把一个头包含在输出中,设置这个选项为一个非零值。 * CURLOPT_NOPROGRESS: 如果你不会PHP为CURL传输显示一个进程条,设置这个选项为一个非零值。注意:PHP自动设置这个选项为非零值,你应该仅仅为了调试的目的来改变这个选项。 * CURLOPT_NOBODY: 如果你不想在输出中包含body部分,设置这个选项为一个非零值。 * CURLOPT_FAILONERROR: 如果你想让PHP在发生错误(HTTP代码返回大于等于300)时,不显示,设置这个选项为一人非零值。默认行为是返回一个正常页,忽略代码。 * CURLOPT_UPLOAD: 如果你想让PHP为上传做准备,设置这个选项为一个非零值。 * CURLOPT_POST: 如果你想PHP去做一个正规的HTTP POST,设置这个选项为一个非零值。这个POST是普通的 application/x-www-from-urlencoded 类型,多数被HTML表单使用。 * CURLOPT_FTPLISTONLY: 设置这个选项为非零值,PHP将列出FTP的目录名列表。 ...

YUI Node and jQuery

04.28.2010 · Posted in Javascript开发

The Node Utility provides an expressive way to collect, create, and manipulate DOM nodes. Each Node instance represents an underlying DOM node, and each NodeList represents a collection of DOM nodes. With Node, you can manage classNames (myNode.addClass(‘foo’)) and styles (myNode.setStyle(‘opacity’, 0.5)), create elements (Y.Node.create(‘< div id="foo" class="foo">< p>foo’)), and much more.[..sorry ,if i don't ...

try to use Yii framework

04.26.2010 · Posted in PHP开发

i want to try use the framework named Yii,so i downloaded it . It’s so easy to create a new project. First,please edit yiic.bat on framework directory,and set PHP_COMMAND path. Second.open yiic.bat on command line.if no paramters ,it will be show: Yii command runner (based on Yii v1.1.1) Usage: E:\www\htdocs\travel\yii\framework\yiic [parameters...] The following commands are ...