|
标签:杂谈 |
分类:javascript |
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
|
标签:extjs |
分类:javascript |
在eclipse中加入插件 spket 我的myeclipse 版本是6.0
插件地址。
破解文件可以去网上搜做,我用的这个。
http://d.download.csdn.net/down/1145721/yxmflycat
破解文件,spket,将此文件替换源文件即可
安装好 cygwin 后。
设置环境变量
在 nutch/bin 下建立
输入内容
#!/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
else
at/
安装好 cygwin 后。
设置环境变量
在 nutch/bin 下建立
输入内容
#!/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
else
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项
|
以前提到过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