自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(33)
  • 资源 (2)
  • 收藏
  • 关注

原创 PHP TimeZone 的问题

自PHP5.0开始,PHP时区默认使用UTC,所以获取系统时间时,时间比中国时间少8个小时。  解决办法:1.在PHP.ini文件中修改设置。 [Date] ; Defines the default timezone used by the date functions date.timezone = Asia/Shanghai2.在PHP程序中运行时设置。&l...

2012-09-05 11:15:35 160

原创 WAMP安装后设置

假设wamp安装在D:\dev\wamp5.3.13\  启用重定向LoadModule rewrite_module modules/mod_rewrite.so 启用虚拟主机Include conf/extra/httpd-vhosts.conf 虚拟主机设置<VirtualHost *:80> ServerName wptest...

2012-07-19 10:40:26 104

原创 xdebug设置 (for php5.2.9-2), eclipse调试

引用:http://aofengblog.blog.163.com/blog/static/631702120117283414706/ Xdebug设置先安装wamp for php 5.4到d:/dev打开 D:\dev\wamp\bin\apache\Apache#\bin\php.ini,在末尾看到只要把xdebug.remote_enable = off ...

2012-07-18 10:04:46 175

原创 U盘创建ubuntu安装盘

以ubuntu-10.04.3-desktop-i386 为例 下载并安装Universal USB Installer,运行Step 1:Select a linux Distribution .. 选择相应版本Step 2:Browse 选择下载过来的iso文件Step 3:选中U盘Create  ...

2011-08-04 10:53:06 87

原创 光盘操作

如何创建iso光盘镜像$cp /dev/cdrom /path/to/file.iso 挂载iso镜像$sudo mount -o loop -t iso9660/usr/local/tooldisk/mydisk3.iso  /mnt/iso 卸载iso镜像$sudo umount /mnt/iso  ...

2011-06-23 10:34:00 97

原创 如何U盘安装ubuntu

以安装ubuntu-10.10-server-amd64.iso为例需要的软件:USBstarter-setup.exe(http://u.115.com/file/f594d63aa3)ubuntu-10.10-server-amd64.iso(或者其他版本)initrd.gz(http://archive.ubuntu.com/ubuntu/di...

2010-11-12 14:49:51 98

原创 常用的开发工具

IEDeclipse apache+mysql+phpwamp  mysql clientHeidiSQL FTP clientFileZilla Client  firefox插件delicious, firebug, FoxyProxy, FormSaver, CookieMonster, Live HTTP he...

2010-08-06 09:10:15 84

tomcat一些配置

如何列出目录下的文件.TOMCAT_HOME/conf/web.xml    <servlet>        <servlet-name>default</servlet-name>        <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet...

2008-11-18 14:19:51 90

关于new和函数调用

function Point(x, y){    this.x = x    this.y = y    this.f = function(){}}var p1 = Point(1, 2)        //undefined, 因为Point()无返回值var p2 = new Point(3, 4)    //object, 拥有x, x, f属性 ///////////...

2008-10-01 11:57:27 95

关于undefined和null

不解的问题是: null 和 undefined 有何区别  function fun1(p1){  //在这个function中,p1已经存在  alert(p1==null);               //如果fun1(), 这两个都会是true  alert(p1==undefined);     } //底下两句会抛出RefferenceErroraler...

2008-09-25 10:04:21 137

os模块

#path in windows a='d:/dev/cygwin'b = os.path.normpath(a)   #'d:\\dev\\cygwin' #decide file modestatinfo = os.stat(fullpath)if statinfo.st_mode&stat.S_IEXEC:  print 'executable'else:  ...

2008-09-22 21:03:29 90

python的3种时间表示

# -*- coding: utf8 -*-import time#时间表示# 1.time tuple: (year, month, date, hour, mn, sec...)# 2.time string: Sat Jun 06 16:33:20 1998# 3.time seconds since Epoch print time.asctime()          ...

2008-09-15 13:05:34 174

中文保存,读取,搜索

# -*- coding: utf-8 -*-                这行到底什么作用??? #中文字符保存到文件,读取,搜索f = open('out2.txt', 'w')f.write('你好吗?')f.close()#文件可正常显示中文。#读取, print 到eclipse cosolef = open('out2.txt')s = f.read...

2008-09-05 11:36:17 109

原创 关于<#assign>

两种assign方式&lt;#assign a=1&gt; &lt;#assign b="hello, ${dataModel.user}"&gt; &lt;#asssign c&gt;    &lt;h1&gt;Greeting message. ${b}&lt;/h1&gt;&lt;/#asssign&gt;可以在&lt;#include "anot

2008-09-02 12:22:46 664

3种设定template加载目录方法

cfg.setClassForTemplateLoading(Test.class, "/org/xxx/templates");设定从包org.xxx.templates中加载模板org.xxx.util.FreemarkerUtil.javaorg.xxx.templates.temp.ftl    //模板放在org/xxx/templates/包下 ...

2008-08-22 17:19:38 1492

原创 javascript 变量与条件判断

//判断哪些东西被当作falsefunction fun(a){    if(!a) alert("not " + a)    else alert(true)}fun();            //not undefinedfun(0);          //not 0fun("");        //notfun(false);   //not false...

2008-08-14 12:29:37 147

virtualbox安装配置

$sudo apt-get install virtualbox$sudo gpasswd -a `whoami` vboxusers$sudo apt-get install scim-bridge-client-qt    #防止输入法冲突• 声音:声卡类型PulseAudio | ALSA Audio Driver• USB设备: 1./etc/fstab 后增加none ...

2008-08-06 23:53:08 104

常见问题和解决方法

mp3乱码#sudo apt-get install python-mutagen#find . -iname "*.mp3" -exec mid3iconv -e GBK {} \; 在ubuntu中运行windows先安装Ubuntu, 再安装virtualbox(#sudo apt-get install virtualbox),建立虚拟机,CD Rom选择window...

2008-07-27 22:47:51 81

文本处理(grep, vim)

grep参考: http://www.panix.com/~elflord/unix/grep.htmlregexp in grep: \ 添加或删除special meaninghello.gif         #match hello.gif, helloxgifhello\.gif        #only match hello.gif            \ has e...

2008-07-27 11:36:02 99

ubuntu 常用命令

--------------------------------文件系统------------------------------------pwdcdcp -r /some/dir /target/dir     #将/some/dir目录下的所有文件拷贝到/target/dirmv        #重命名或移动rm filerm -R dirls [dir | file]   ...

2008-07-26 13:40:16 91

java IO

InputSteam &amp; OutputSteamInputStream(InputStreamReader)BufferedInputStream: used as other input stream's wrapper.ByteArrayInputStream: new ByteArrayInputStream(byteContent), A ByteArrayIn...

2008-07-14 13:51:22 71

Class简单使用

//how to get classClass clazz = String.class;clazz = int.class;String s = "abc";clazz = s.getClass();clazz = Class.forName("java.util.ArrayList");//create instance using default con...

2008-06-24 10:07:07 72

原创 regexp 简单运用

        //split        String s = "hello world i am 23 years";        String[] ss = s.split("\\s");        //replace        s.replaceAll("\\s", "#");        s.replaceFirst("\\d", "#");     

2008-06-23 10:37:38 122

ImageServlet

public class ImageServlet extends HttpServlet {    @Override    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {        //get the image...

2008-05-29 14:26:58 152

dojo and ajax

XHRhas limitations. The big one is that url: is not cross-domain: you can't submit the requestoutside of the current host (eg: to url:"http://google.com"). It is a know...

2008-05-14 23:14:39 94

Dojo 与style相关的函数整理

1)dojo.addClass(node:DomNode|String, classStr: String)添加某class到节点,var node=dojo.byId('divv');dojo.addClass('divv', 'color');dojo.addClass(node, 's1'); 2)var bool = dojo....

2008-05-14 22:10:21 125

OGNL表达式

 OGNL表达式语言 &lt;o:p&gt;&lt;/o:p&gt;一    常量 &lt;o:p&gt;&lt;/o:p&gt; Char ‘a’ ...

2007-01-08 08:32:47 96

jdbcTemplate 的query方法

jdbcTemplate.query(????)&lt;o:p&gt;&lt;/o:p&gt; &lt;o:p&gt;&lt;/o:p&gt;主要是一些callback interface 的用法&lt;o:p&gt;&lt;/o:p&gt;&lt;o:p&gt;&lt;/o:p&gt;PreparedStatement处理&lt;o:p&gt;&l

2007-01-04 16:13:00 438

日期处理

 DateFormat DF =       // 2006-12-12 11:54:47 格式           DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM);                   Calendar cal = GregorianCalen...

2006-12-15 12:01:25 70

收集一些样式

圆角:http://www.html.it/articoli/nifty/nifty1js.html

2006-12-15 11:37:26 91

几种id attribute 的使用

 几种id attribute 的使用 &lt;o:p&gt;&lt;/o:p&gt;1. [s:url id="url" namespace="/skill" action="list"/]&lt;o:p&gt;&lt;/o:p&gt;[s:a href="%{url}"]List available Skills[/s:a]&lt;o:p&amp

2006-12-15 11:19:12 309

将数据库中的文章显示在页面上~如何解决分段?

示例文章:这是第一段。这是第二段,这是第二段。假设已经取出了数据库中的这篇文章,放在 news.content。如果页面只是单纯的用这个标签 [s:property value="news.content"]: &lt;s:property value="news.content"&gt;&lt;/s:property&gt;那文章不会分段,而是一段接在一段后面。变成这样:这是第一段。 ...

2006-12-14 22:05:17 1499

Hibernate+mysql 不能保存text类型的中文的解决方法

hibernate.cfg.xml &lt;property name="connection.url"&gt;    jdbc:mysql://localhost:3306/somedb?useUnicode=true&amp;characterEncoding=GBK  &lt;/property&gt;注意后面的useUnicode=true&amp;characterEnco...

2006-12-14 19:12:02 241

Professional iPhone and iPod Touch Programming

Professional iPhone and iPod Touch Programming.pdf

2009-11-30

Alfresco2_1_Installation_Guide.

alfresco installation guide

2008-03-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除