项目成功最重要的十点因素
May 31st, 2007 by song

项目成功最重要的十点因素
引言

大多数的软件项目都是失败的。实际上,Standish group 报告表明,80% 以上的项目都是不成功的,或者是因为超过预算或延期未完或缺失功能,或者几种因素都有。此外,30% 的软件项目执行得十分糟糕以至于在完成之前就被取消了。根据我们的经验,即便使用了诸如 Java、J2EE、XML 及 Web 服务的现代技术,软件项目都无一例外的应验了这条规律。本文概述了有助于提高软件开发项目成功率的最重要的十点因素。Standish Group 等业界领头羊也为软件项目提供了重要的成功因素文档。
Read the rest of this entry »

ApacheBench(ab)使用简介  
May 31st, 2007 by song

ApacheBench(ab)使用简介  
服务器负载太大而影响程序效率也是很常见的,Apache服务器自带有一个叫AB(ApacheBench)的工具,在bin目录下。使用这个轻巧的工具我们可以对服务器进行负载测试,

基本用法:

ab -n 全部请求数 -c 并发数 测试url

例:ab -n 1000 -c 50 http://www.abc.com/a.php

得到结果类似于(后面颜色字为中文翻译): Read the rest of this entry »

Apache Rewrite
May 31st, 2007 by song

转自[b]dreamwaver的博客[/b](http://dreamwaver.bokee.com/5692845.html)
Read the rest of this entry »

JS代码格式化
May 21st, 2007 by song

JS代码格式化 Read the rest of this entry »

BSD 记录
May 19th, 2007 by song

安装FREEBSD

MINI 最小化安装

完成后重启进入 sysinstall
安装 posts src
更新POSTs列表树
安装MYSQL
cd /usr/ports/databases/mysql41-server
make install clean
安装APACHE2.2
cd /usr/ports/www/apache22
make install clean
安装PHP
cd /usr/ports/lang/php5
make install clean
cd /usr/ports/lang/php5-extenstion
make install clean
安装 memcache
/usr/ports/databases/memcache
make install clean
/usr/ports/databases/pecl-memcache
make install clean
如果安装出错选择PKG方式安装
fetch ftp://ftp4.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/All/pecl-memcache-2.1.2.tbz
pkg_add pecl-memcache-2.1.2.tbz
写入启动列表
ee /etc/rc.conf
mysql_enable=”YES”
apache22_enable=”YES”

可能apache启动的时候和我一样会报这样的错误:
[Wed Apr 12 21:48:09 2006] [warn] (2)No such file or directory: Failed to enable the ‘httpready’ Accept Filter
我在google上找到了解决办法,执行如下操作:

kldload accf_http

grep accf /boot/defaults/loader.conf
accf_data_load=”NO” # Wait for data accept filter
accf_http_load=”NO” # Wait for full HTTP request accept filter #将这个”NO”改成”YES”
APACHE 启动文件路径 /usr/local/sbin/
#extension=simplexml.so
#extension=spl.so
勿使用这2个


备忘的一些JS片段
May 18th, 2007 by song

备忘的一些JS片段 Read the rest of this entry »

14种天然食物迅速吃瘦下半身
May 16th, 2007 by song

对于女性来讲,减肥主要是针对下半身,除了适度的锻炼,在饮食上稍加注意也可以取得不错的效果。

   吃瘦下半身

  1.紫菜

   紫菜除了含有丰富的维生素A、B1及B2,最重要的就是它蕴含丰富纤维素及矿物质,可以帮助排掉身体内之废物及积聚的水分,从而达到瘦腿之效。

  2.芝麻

   芝麻含有“亚麻仁油酸”可以去除附在血管内的胆固醇,令新陈代谢更好,减肥瘦腿就轻松得多。

  3.猕猴桃

   猕猴桃除了维生素C是它的强项外,其纤维含量亦十分丰富,可以加快分解脂肪的速度,避免腿部积聚过多的脂肪。

  4.西芹

   西芹一方面含有大量的钙,另一方面亦含有钾,可减少下半身的水分积聚。

  5.红豆

   红豆所含的石酸成分可以增加大肠的蠕动,促进排尿及减少便秘,从而清除下半身脂肪。

  6.木瓜 Read the rest of this entry »

ActionScript 3 Cookbook
May 10th, 2007 by song

http://blog.csdn.net/lixinye0123/archive/2007/01/17/1485138.aspx

ActionScript 3 Cookbook 中文版

本文未经同意,谢绝转载

第一章. ActionScript 语言基础

第二章. 自定义类

第三章. 运行时环境

第四章. 数字和数学

第五章. 数组

第六章. 可视化对象列表 (目录)

第七章. 绘图和遮罩  (目录)

第八章. 位图 (目录)

第九章. 文本 (目录)

第十章. 滤镜和转换 (目录)

第十一章. 动画编程 (目录)

第十二章. 字符串 (目录)


pdf格式下载(前五章)

文件上传(进阶)侦听进度
May 10th, 2007 by song

文件上传(进阶)侦听进度

我做了 flash 前台的文件上传程序,后台怎么写一直没搞明白,网上找了些教程,看也看不太懂。
能不能请高手帮我写一个后台,用aspx C#的fileupload组件上传的,只要最简单的那种,文件判断那些不要,只要能上传就可以了。谢谢了!

前台程序如下(如果不知道前台怎么写的顺便当作一个教程):
——————————————————————————–
import flash.net.FileReference;                                     //调用上传控件,这个是必须的,要传文件就要用这个控件
var frToUpload:FileReference=new FileReference();        //实例化一个文件上传控件
var ofile:Object=new Object();                                   //定义对象侦听器,主要是侦听文件上传控件上面的事件
ofile.onSelect=function (fresele:FileReference):Void{     //———-
trace(fresele.name);
trace(fresele.size);
trace(fresele.type);
trace(fresele.creationDate);
trace(fresele.modificationDate);
fresele.upload(flaup1.aspx);    //这句是把文件传到哪个处理程序,这里用flaup1.aspx来处理文件上传
}                                                                           //————以上这段参数可以在flash的帮助里面找到查询关健字FileReference Read the rest of this entry »

Alexa Web Services 研究
May 5th, 2007 by song

Response Group Description
RelatedLinks 返回11个反向链接 Returns up to 11 related links for the specified URL.  
Categories 返回站点类型 Returns up to 3 DMOZ (Open Directory) categories for the specified URL.

Related 返回11个反向链接Returns up to 11 related links and up to 3 DMOZ categories. This is a meta-group, the equivalent of using response groups ‘RelatedLinks,Categories’

Rank 综合排名 Returns the Alexa three month average traffic rank for the given site.

RankByCountry 国家综合排名 Shows percentage of viewers, page views, and traffic rank based on the location of users who visit the site.

UsageStats 使用子域名 Returns Usage Statistics, such as Reach and PageView information) for the given URL

TrafficData Returns Traffic Rank and Usage Statistics for the given URL. This is a meta-group, the equivalent of using response groups ‘Rank,UsageStats.’

ContactInfo Returns information about the site owner or registrar of the given URL.

AdultContent Returns ‘no’ if the site is unlikely to contain adult content and ‘yes’ if it is likely to contain adult content.

Speed Returns the median load time and percent of known sites that are slower.

Language Returns content language code and character-encoding for the given URL

Keywords Returns a list of keywords that identify concepts or content on this site.

OwnedDomains Returns a list of other domain names that are owned by the same owner as this site.

LinksInCount Return a count of links pointing in to this site.

SiteData Returns the Title, Description, and the date created for this site.

ContentData Returns information specific to a site’s page content of a given URL. This is a meta-group, the equivalent of using response groups ‘SiteData,AdultContent,Popups,Speed,Language.’

SIDEBAR
»
S
I
D
E
B
A
R
«
»  Substance:WordPress   »