http://blog.sina.com.cn/gaopeng19831129[订阅]
个人资料
音乐播放器
分类
    内容读取中…
评论
读取中...
友情链接
访客
读取中...
好友
读取中...
图片幻灯
博文

Ext.util.JSON
轮到大名鼎鼎的JSON了,可惜Ext提供的JSON对象功能好弱小,只有encode主decode两个方法
而且只能编码String/Array/Date,至少也要搞个 xml2json/json2xml方法呀

Ext.util.Format
主要提供了一些格式化方法

capitalize( String value ) : String
首字母大写

date( Mixed value, [String format] ) : String
格式化日期输出,还是Date.format方法好用

dateRenderer( String format ) : Function
返回一个利用指定format格式化日期的方法

defaultValue( Mixed value, String defaultValue ) : String
如果value未定义或为空字符串则返回defaultValue

ellipsis( String value, Number length ) : String
如果value的长度超过length的,取前length-3个并用...替代,对中国人来说还是垃圾功能,用的字符串长度不是字节长度

fileSize( Number/String size ) : String
简单的格式化文件长度为 xxxbytes xxxKB xxxMB,没有GB哟

htmlEncode( String value ) : String
htmlDecode( Strin

在eclipse中加入插件 spket 我的myeclipse 版本是6.0

 

http://www.spket.com/update/

插件地址。

 

破解文件可以去网上搜做,我用的这个。

http://d.download.csdn.net/down/1145721/yxmflycat

破解文件,spket,将此文件替换源文件即可

 


  • 选择菜单项目中Window > Preferences...
  • 选择spket > javascript Profile页面
  • 点击new...按钮。在名称里面,写入jquery。然后单击确定。
  • 点击Add Library 按钮. 从Library下拉列表中, 选择jquery 。然后单击确定。
  • 点击Add File 按钮, 选择jquery.js 可从jquery.com下载(也可用附件里的)。
  • 选择jQuery profile 按照第3步, 点击Default 按钮把它预设为 default 项. The default profile 也可通过配置每个项目利用 Configure Project Specific Settings... 配置。
  • 点击OK
resin 3.1中文配置手册(2009-03-16 16:10)
  1. <!-- - Resin 3.1 配置文件. -->   
  2. <resin xmlns='http://caucho.com/ns/resin' xmlns:resin='http://caucho.com/ns/resin/core'>   
  3.    <!-- 加载resin/lib下的所有.jar文件-->   
  4.    <class-loader>   
  5.      <tree-loader path='${resin.home}/lib'/>   
  6.      <tree-loader path='${resin.root}/lib'/>   
  7.    </class-loader>   
  8.    <!-- - 管理配置 -->   
  9.    <management path=
nutch0.9 增量更新(2009-03-11 12:23)

安装好 cygwin 后。

设置环境变量

 

在 nutch/bin 下建立 recrawl.sh

 

输入内容

#!/bin/bash

# Nutch recrawl script.
# Based on 0.7.2 script at http://today.java.net/pub/a/today/2006/02/16/introduction-to-nutch-2.html
#
# The script merges the new segments all into one segment to prevent redundant
# data. However, if your crawl/segments directory is becoming very large, I
# would suggest you delete it completely and generate a new crawl. This probaly
# needs to be done every 6 months.
#
# Modified by Matthew Holt
# mholt at elon dot edu

if [ -n '$1' ]
then
  tomcat_dir=$1
else
  echo 'Usage: recrawl servlet_path crawl_dir depth adddays [topN]'
  echo 'servlet_path - Path of the nutch servlet (full path, ie: /usr/local/tomc
at/

nutch0.9 增量更新(2009-03-11 12:23)

安装好 cygwin 后。

设置环境变量

 

在 nutch/bin 下建立 recrawl.sh

 

输入内容

#!/bin/bash

# Nutch recrawl script.
# Based on 0.7.2 script at http://today.java.net/pub/a/today/2006/02/16/introduction-to-nutch-2.html
#
# The script merges the new segments all into one segment to prevent redundant
# data. However, if your crawl/segments directory is becoming very large, I
# would suggest you delete it completely and generate a new crawl. This probaly
# needs to be done every 6 months.
#
# Modified by Matthew Holt
# mholt at elon dot edu

if [ -n '$1' ]
then
  tomcat_dir=$1
else
  echo 'Usage: recrawl servlet_path crawl_dir depth adddays [topN]'
  echo 'servlet_path - Path of the nutch servlet (full path, ie: /usr/local/tomc
at/

Nutch必须用命令行执行吗?当然不是.用命令行只是能让你快速的使用这个项目,我们有时候需要做二次开发或者重新编译,所以需要构建一个环境.我现在机器上的开发工具是eclipse.下面我为大家说说怎么样在eclipse下编译和执行nutch的步骤吧!其实nutch官方有介绍,懂英文的朋友也可以去看看(http://wiki.apache.org/nutch/RunNutchInEclipse0.9). 1.下载Nutch解压到某个目录下,这个不用多说了吧,谁搜谁知道. 2.File > New > Project > Java project > click Next 创建eclipse项目

Nutch必须用命令行执行吗?当然不是.用命令行只是能让你快速的使用这个项目,我们有时候需要做二次开发或者重新编译,所以需要构建一个环境.我现在机器上的开发工具是eclipse.下面我为大家说说怎么样在eclipse下编译和执行nutch的步骤吧!其实nutch官方有介绍,懂英文的朋友也可以去看看(http://wiki.apache.org/nutch/RunNutchInEclipse0.9).

1.下载Nutch解压到某个目录下,这个不用多说了吧,谁搜谁知道.

2.File > New > Project > Java project > click Next 创建eclipse项

使用Resin进行搜索测试
   
  由于笔者最近工作中经常使用Resin,因此在Tomcat上测试完毕后也想在Resin上测试一把,未曾想遇到了各种意想不到的情况。下面就将所遇到的问题以及解决方法列出,以供遇到相同问题的读者参考。
   
  (1)将nutch-0.7.1目录的nutch-0.7.1.war复制到resin-3.0.17\webapps下;
  (2)打开resin-3.0.17\conf下的resin.conf文件,把
   
  <!-- configures the default host, matching any host name -->
   
  下面的内容改成:
   
  <host id='' root-directory='.'>          
   <web-app id='/' document-directory='webapps/nutch-0.7.1'/>
   <stderr-log path='logs/stderr.log' rollover-period='1W'/>
   <stdout-log path='logs/stdout.log' rollover-period='1W'/>
  </host>
   
Nutch 安装文档(2009-03-06 11:24)
安装Cygwin
      
首先,我们去http://cygwin.com/下载到Cygwin软件的ISO文件,用Daemon软件将其设为虚拟光驱后,双击其中的Setup文件,出现程序安装的向导界面(如图1所示)。
    
    
  点击“下一步”后,安装向导要求选择Cygwin的安装方式,如图2所示:
   
    
  图示中共有三种安装方式:
  (1)Install from Internet:从Internet上下载并安装软件;
  (2)Download Without Installing:从Internet上下载安装的文件,但暂时不安装;
  (3)Install from Local Directory:从本地含有安装文件的目录进行安装。
  我们选择第三项“Install from Local Directory”后,点击“下一步”,如图3所示:
   
 
Eclipse中SVN版本控制插件的安装和使用
2009-01-07 21:07
以前提到过SVN版本控制器和客户端的安装和配置,这里再在说一下在编译器中怎么使用SVN,使其既可以单独使用,也可以配合SVN客户端一起使用。由于编译器种类众多,插件种类也不同,这里只简单介绍下Eclipse的插件安装。我用的版本是Eclipse3.2.2+MyEclipse_5.1.1,由于本身只有CVS而没有集成SVN,所以要想使用SVN做版本控制只好装一个Eclipse插件Subclipse,Subclipse的详细安装过程在其官方网站 http://subversion.tigris.org写的很清楚,还带配图,我就直接copy了:

一、Install Subclip

phpmyeclipse 网站:http://www.phpeclipse.com/wiki/Installation

 

The simplest way to install PHPEclipse is to use the PHPEclipse update site.
If you are using Eclipse 3.2 you will want to use the following URL for your update site:


http://update.phpeclipse.net/update/stable/1.1.x


For Eclipse 3.3 and 3.4 use


http://update.phpeclipse.net/update/stable/1.2.x

 

 

http://www.aptana.com/studio/download