tag:blogger.com,1999:blog-132727992024-03-14T06:05:22.445+08:00飞扬.轻狂飞扬.轻狂
fallseir.lee飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.comBlogger51125tag:blogger.com,1999:blog-13272799.post-33794748950837565312007-02-11T17:25:00.001+08:002007-02-11T17:32:50.956+08:00验证我的blog验证我的blog692b1532 e74ee6bd今天才发现 这个字符验证竟然是把我的blog当成垃圾被清理了郁闷,不就是尝试用mail做日志吗!!!!飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1142304800607877632006-03-14T10:53:00.000+08:002006-09-22T17:19:05.863+08:00php中截获错误 php,error,error handlerphp中截获错误 tags:php,error,error handler$old_error_handler = set_error_handler("myErrorHandler"); function myErrorHandler($errno, $errstr, $errfile, $errline){ switch($errno) { case 2048: break; default: echo "[$errno] $errstr in line $errline of file $errfile<br />\n"; }}--[:p] --飞扬.轻狂 [fallseir.lee]http://fallseir.livejournal.comhttp://feed.feedsky.com/fallseir 飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1142216445549286122006-03-13T10:20:00.000+08:002006-09-22T17:18:09.470+08:00url转向实例url转向实例 tags:url转向,apache #config in httpd.conf in apache2/conf#1、启用转向功能LoadModule rewrite_module modules/mod_rewrite.so#2、设定起始目录DocumentRoot "D:/htdocs/php"#3、设定起始页DirectoryIndex index.html index.html.var index.php#4、添加页面处理类型AddType application/x-httpd-php .php#5、启用目录层次的配置控制AccessFileName .htaccess<Directory "D:/htdocs/php"> #...允许.htaccess配置文件 AllowOverride All #...</Directory>飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1141968044767538102006-03-10T13:20:00.000+08:002006-09-22T17:13:59.146+08:00code:awk 实例解析 使用wget和awk对blogcn的十万数据进行测试分析 使用wget和awk对***站点的十万数据进行测试分析 结果和过程如下 tags:awk,wget,shell,linux,code wget 采用 --spider 非下载式任务 ------------------------------------------------------------- 测试结果分析 ---------------------------------------------------- wget效率 >>> 100003.0/((10*60+53)*60+4)2.5521386280114333 请求成功率 >>> 99983/100003.00.99980000599982页面成功率 >>> 93496/100003.00.93493195204143875 短数据 >>&飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1141887350910395912006-03-09T14:55:00.000+08:002006-09-22T16:50:34.480+08:00learn:使用wget使用手册tags:learn,wget,shell 使用wget $ wget http://www.feedsky.com #获取网页--19:50:05-- http://www.feedsky.com/ #开始时间 地址 => `index.html' # 保存位置Resolving www.feedsky.com... 211.154.171.184 #解析主机Connecting to www.feedsky.com[211.154.171.184]:80... connected. #建立连接HTTP request sent, awaiting response... 200 OK #请求 状态Length: 7,237 [text/html] #文件大小 飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1141786545562379372006-03-08T10:55:00.000+08:002006-09-22T16:49:41.773+08:00linux shell 常用指令收集 (一) tags: linux,shell,command 配置linux系统 ifconfig 查看ip ntsysv 系统服务配置 采用交互形式进行系统配置 setup 工具设置程序 采用交互形式进行系统配置 poweroff #关机 reboot #重新启动系统 shutdown #关闭系统 sudo command 使用超级用户身份执行命令 如果使用非root帐户,由于配置的环境变量不同,可能需要指定命令的全路径 使用 whereis command 可以查看命令位置 使用 which command 可以查看当前运行的命令是哪个 修改系统的语言配置 cd /etc/sysconfig #进入系统配置信息目录 ll i* #查找i18n配置文件 cp i18n i18n.orgi #备份原始配置文件 vi i18n #使用 vi进行编辑 LANG="en_US" #飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1141626120360253912006-03-06T14:22:00.000+08:002006-09-22T16:49:00.283+08:00learn:php学习笔记,语法,异常处理tags:learn,php,php5,学习笔记,语法,异常处理 PHP 5 添加了类似于其它语言的异常处理模块,可以在 PHP 内检测(try)、抛出(throw)和捕获(catch)异常。一个 try 至少要有一个与之对应的 catch。定义多个 catch 可以捕获不同的对象。PHP 会按这些 catch 被定义的顺序执行,直到完成最后一个为止。而在这些 catch 内,又可以抛出新的异常。 当一个异常被抛出时,其后(译者注:指抛出异常时所在的代码块)的代码将不会继续执行,而 PHP 就会尝试查找第一个能与之匹配的 catch。如果一个异常没有被捕获,而且又没用使用 set_exception_handler() 作相应的处理的话,那么 PHP 将会产生一个严重的错误,并且输出未能捕获异常的提示信息。 --[:p] --飞扬.轻狂 [fallseir.lee]http://飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1141626077804081862006-03-06T14:21:00.000+08:002006-09-22T16:48:05.590+08:00learn:rewrite in apachetags:apache,learn,rewrite,mod_rewrite,学习笔记 理解从apache的文档http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html mod_rewrite模块提供一个基于正则的(使用正则表达式分析器的)实时的URL重定向引擎。 支持不限量规则以及附加条件规则的灵活且强大的URL操作机制。 URL处理方式可以取决于对各种参数的决策,如服务器变量、环境变量、HTTP头、时间戳,及各种格式的用于匹配URL组成部分的数据库查询。 mod_rewrite模块可以操作URL的所有部分(包括路径信息部分), 支持在服务器级(httpd.conf)或目录级(.htaccess)进行配置,并且可以生成在最终结果中生成query-string 。 重定向的目标可以指向内部子处理,也可以重定向到外部url,或者可以是飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1141626058950204042006-03-06T14:20:00.000+08:002006-09-22T16:46:09.623+08:00异步调用窗体上的控件异步调用窗体上的控件 /// <summary> /// Write a string to the trace window /// </summary> /// <param name="message">The string to write</param> public override void Write(string message) { if ( textBox.InvokeRequired ) //控件的属性 textBox.BeginInvoke( new AppendTextDelegate( textBox.AppendText ), new object[] { message } ); else textBox.AppendText( message ); }--[:p] -飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1141366007580592502006-03-03T14:06:00.000+08:002006-08-29T17:13:18.780+08:00搜集:linux指令大全(完整篇)-----------------------------------------------------linux指令大全(完整篇)- -关键词: linux cat cdchmod chowncp cut名称:cat使用权限:所有使用者使用方式:cat [-AbeEnstTuv] [--help] [--version] fileName说明:把档案串连接后传到基本输出(萤幕或加 > fileName 到另一个档案)参数:-n 或 --number 由 1 开始对所有输出的行数编号-b 或 --number-nonblank 和 -n 相似,只不过对于空白行不编号-s 或 --squeeze-blank 当遇到有连续两行以上的空白行,就代换为一行的空白行-v 或 --show-nonprinting范例:cat -n textfile1 > textfile2 把 飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1141365917013191952006-03-03T14:05:00.000+08:002006-03-13T10:07:35.540+08:00收集:详解Bash命令行处理详解Bash命令行处理-------------------------------------详解Bash命令行处理作者:home_king来自:LinuxSir.Org整理:北南南北摘要:我看很多兄弟写脚本或命令时出现错误的主要原因,是因为不了解bash的命令行处理。我在这里总结了一下,大家可以参考一下。其中也涉及到双引号,单引号以及eval的技巧,我会一一讲述。 目录前言一、bash命令处理的12个步骤;二、关于引用 三、eval的作用;1、例子1:用eval技巧实现shell的控制结构for2、例子2:一个典型错误的例子3、例子3:设置系统的ls色彩显示 四、命令优先级表五、鉴于一些学习中会遇到的困惑,我再给出一些有趣的命令1、command builtin enable2、command3、builtin 4、enable 六、关于本文七、相关文档+++++++++++++++飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1141365642052089792006-03-03T14:00:00.000+08:002006-04-28T10:40:45.650+08:00收集:Linux Shell简介Linux Shell简介【作者: 红谷/海之屿】----------------------------------------------Linux Shell简介关键词: Linux Shell简介 Linux Shell简介原文: http://www.mandrakeuser.org/doc中译本:吴晓光 http://dummy.linux.net.cn/~xgwu/cmuo/整理: flaboy 北南南北点评:flaboy兄当时整理时发在了LinuxSir.Org 论坛 SHELL讨论区中,《Linux Shell简介》 ,是作为基础教材的形式帖出的,他在整理时"本文编译整理时对相关章节做了相应的删改处理,去掉了针对Mandrake Linux的部分内容。";我看这个文档极其不错,进行飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1141112773292867072006-02-28T15:46:00.000+08:002006-03-13T10:05:35.866+08:00code:使用php构建的xml分析器 (基础版)使用php构建的xml分析器 (基础版) tags:php,xml,parser,code,fallseirauthor:fallseir.lee : http://fallseir.livejournal.com <?php$p =& new simplexmlparser();$p->parse ('/var/www/html/tests/wellformed/sanitize/item_xhtml_body_style.xml');echo $p->tosimplexml();//print_r($p->document);//print_r($p->stack); ?><?php class simplexmlparser { //记录当前处理队列 var $stack=array(); //root树 var $飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1140769075280997532006-02-24T16:17:00.000+08:002006-03-08T11:04:04.683+08:00code:php代码片断 读magpie_rss的源码tags:file,php,md5,magpierss操作文件//打开,写,关闭 文件,序列化对象$cache_file = $file_name; $fp = @fopen( $cache_file, 'w' );//打开文件 ,@不返回错误 if ( ! $fp ) { $this->error( "Cache unable to open file for writing: $cache_file" ); return 0; } $data = $this->serialize( $rss );//序列化对象 fwrite( $fp, $data );//写文件 fclose飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1140683564279656562006-02-23T16:32:00.000+08:002006-03-08T11:01:45.013+08:00learn:配置APACHE和PHPtags:php,安装,配置下载最新的Apache for win 安装版下载最新的php for win 解压版(没有找到安装版)修改配置文件配置 apache的配置文件 httpd.conf增加PHPIniDir "D:/php-5.1.2-Win32/" #php程序路径LoadModule php5_module "D:/php-5.1.2-Win32/php5apache2.dll" #配置php模块AddType application/x-httpd-php .php #增加对.php文件的处理DirectoryIndex index.html index.html.var index.php #增加默认页查找项DocumentRoot "D:/htdocs/php" #修改网站文件存放目录配置 php的配置文件 php.ini去掉php.ini.dist的dist后缀飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1140596741089000732006-02-22T16:25:00.000+08:002006-03-08T10:59:12.043+08:00收集:cvscvshttp://ftp.gnu.org/non-gnu/cvs/binary/feature/x86-woe/?M=Ahttp://ximbiot.com/cvs/cvshome/http://www.wincvs.org/download.html#wincvs_recommendedhttp://www.tortoisecvs.org/download.shtml cvs win环境--[:p] --飞扬.轻狂 [fallseir.lee]http://fallseir.livejournal.comhttp://feed.feedsky.com/fallseir飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1140581927688868242006-02-22T12:18:00.000+08:002006-03-08T10:57:43.780+08:00收集:feed in pythonfeedvalidator.orghttp://feedvalidator.org/download/feedvalidator-1.3.ziphttp://sourceforge.net/projects/pyxml/http://feedparser.org/--[:p] --飞扬.轻狂 [fallseir.lee]http://fallseir.livejournal.comhttp://feed.feedsky.com/fallseir飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1140522091928514712006-02-21T19:41:00.000+08:002006-02-22T10:38:53.983+08:00learn:php学习笔记,类与对象(PHP 5)atags:php,php5,object,class,学习笔记,类,对象PHP 5 引入了新的对象模型(Object Model)。完全重写了 PHP 处理对象的方式,允许更佳性能和更多特性。基本概念 每个类的定义都以关键字 class 开头,后面跟着类名,可以是任何非 PHP 保留字的名字。后面跟着一对花括号,里面包含有类成员和方法的定义。伪变量 $this 可以在当一个方法在对象内部调用时使用。$this 是一个到调用对象(通常是方法所属于的对象,但也可以是另一个对象,如果该方法是从第二个对象内 静态 调用的话)的引用。 <?phpclass A{function foo (){if (isset( $this )) {echo '$this is defined (' ;echo get_class($this );echo ")\n";} else {echo "\$飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1140498280611087352006-02-21T13:04:00.000+08:002006-02-22T10:38:02.656+08:00learn:php学习笔记,语法,类与对象tags:learn,php,php5,学习笔记,语法,类与对象类 类是变量与作用于这些变量的函数的集合。<?phpclass Cart { var $items ; // 购物车中的物品 // 将 $num 个 $artnr 物品加入购物车 function add_item($artnr , $num) { $this->items[ $artnr] += $num ; } // 将 $num 个 $artnr 物品从购物车中取出 function remove_item($artnr, $num) { if ($this ->items[ $artnr] > $num ) { $this->items [$artnr] -= $num; return true ;飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1140493047288057782006-02-21T11:37:00.000+08:002006-02-22T10:36:45.860+08:00learn:php语法学习,函数tags:php,learn,语法,函数函数function foo ( $arg_1, $arg_2 , ..., $arg_n){ echo "Example function.\n" ; return $retval;}任何有效的 PHP 代码都有可能出现在函数内部,甚至包括其它函数和 类定义。PHP 中的所有函数和类都具有全局域,可以在内部定义外部调用,反之亦然。PHP 不支持函数重载,也不可能取消定义或者重定义已声明的函数。函数名是非大小写敏感的,不过在调用函数的时候,通常使用其在定义时相同的形式。在 PHP 中可以调用递归函数。但是要避免递归函数/方法调用超过 100-200 层,因为可能会破坏堆栈从而使当前脚本终止。--tom pittlik 04-Feb-2006 11:53 function format_string( $string ,$functions 飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1140432987026625402006-02-20T18:56:00.000+08:002006-02-22T10:35:55.936+08:00learn:php学习笔记 流程控制tags:learn,php,学习笔记,流程控制任何 PHP 脚本都是由一系列语句构成的。一条语句可以是一个赋值语句,一个函数调用,一个循环,甚至一个什么也不做的(空语句)条件语句。语句通常以分号结束。此外,还可以用花括号将一组语句封装成一个语句组。语句组本身可以当作是一行语句。ifelseelseif if ($a > $b) { echo "a is bigger than b" ;} elseif ($a == $b) { echo "a is equal to b" ;} else { echo "a is smaller than b";} 流程控制的替代语法PHP 提供了一些流程控制的替代语法,包括 if,while,for,foreach 和 switch。替代语法的基本形式是把左花括号({)换成冒号(:),把右花括号(})分别换成 endif;,飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1140430340752243592006-02-20T18:12:00.000+08:002006-04-05T13:08:09.133+08:00收集:DOS命令字典收集:DOS命令字典 tags:dos,linux,shell,命令,ftp,netsrc:http://edu.zzlygo.com/lioulan/4917.htmlnet use \\ip\ipc$ " " /user:" " 建立IPC空链接 net use \\ip\ipc$ "密码" /user:"用户名" 建立IPC非空链接 net use h: \\ip\c$ "密码" /user:"用户名" 直接登陆后映射对方C:到本地为H: net use h: \\ip\c$ 登陆后映射对方C:到本地为H: net use \\ip\ipc$ /del 删除IPC链接 net use h: /del 删除映射对方到本地的为H:的映射 net user 用户名 密码 /add 建立用户 net user guest /active:yes 激活guest用户 net user 查看有飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1140421948613903222006-02-20T15:52:00.000+08:002006-02-20T15:59:56.763+08:00learn:php学习笔记 常量 表达式 运算符tags:php,learn,php5,学习笔记,常量,表达式,运算符时间不允许我细细品味,所以我开始加快我的学习速度常量 [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]* 常量是一个简单值的标识符(名字)。如同其名称所暗示的,在脚本执行期间该值不能改变(除了所谓的魔术常量,它们其实不是常量)。常量默认为大小写敏感。按照惯例常量标识符总是大写的。例子: define("FOO", "something"); define("FOO2", "something else" ); define("FOO_BAR", "something more" ) 和 superglobals 一样,常量的范围是全局的。不用管作用域就可以在脚本的任何地方访问常量。 可以用 define() 函数来定义常量。一个常量一旦被定义,飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1140409822223349152006-02-20T12:30:00.000+08:002006-02-20T15:56:29.183+08:00收集:Nice Introduction to ASP.NET 2.0 WebParts src: http://weblogs.asp.net/scottgu/archive/2006/01/26/436577.aspx http://www.windowsdevcenter.com/pub/a/windows/2006/01/10/what-are-web-parts.html?page=1 tags:webparts,.net,收集收集,为了以后的了解 原文: Nice Introduction to ASP.NET 2.0 WebParts Jesse Liberty recently published a nice tutorial on building dynamic portal-like UI with drag/drop end-user customization using 飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0tag:blogger.com,1999:blog-13272799.post-1140408656657103392006-02-20T12:10:00.000+08:002006-02-20T15:50:58.366+08:00收集:UrlRewritingModule w/ Regular Expression Support for ASP.NET 2.0收集:UrlRewritingModule w/ Regular Expression Support for ASP.NET 2.0 src:http://weblogs.asp.net/scottgu/archive/2006/01/18/435870.aspx tags:urlrewrite,urlrewriting,url转向,.net,regularExpression 查看我的mail无意中看到这个,虽然这个功能一年前我就开始用了 ,不过没有文中提到的那么细致 唉!看来自己的东西就是没有大家的东西用起来好啊,先收集与此,有空的时候再对比一下以前的程序 scottgu 的原文 UrlRewritingModule w/ Regular Expression Support for ASP.NET 2.0 Here is a really cool URL 飞扬.轻狂http://www.blogger.com/profile/02348302164162073338noreply@blogger.com0