摘要: <script>function c1(){ var d = document.getElementsByName("s")[0].value; var b = (new Date(d)).getTime(); document.getElementsByName("s")[0].value = b; }function c2(){ var d = document.getElementsByName("d")[0].value; var b = new Date(d); b.setTime(d); document.ge 阅读全文
posted @ 2013-02-22 12:50 双面煎蛋 阅读(1700) 评论(0) 推荐(0) 编辑
摘要: # Example MySQL config file for medium systems.## This is for a system with little memory (32M - 64M) where MySQL plays# an important part, or systems up to 128M where MySQL is used together with# other programs (such as a web server)## MySQL programs look for option files in a set of# locations whi 阅读全文
posted @ 2013-02-04 11:12 双面煎蛋 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 转载地址:http://www.oseye.net/question/96源码的安装一般由3个步骤组成:配置(configure)、编译(make)、安装(make install)。Configure是一个可执行脚本,它有很多选项,在待安装的源码路径下使用命令./configure –help输出详细的选项列表。其中--prefix选项是配置安装的路径,如果不配置该选项,安装后可执行文件默认放在/usr /local/bin,库文件默认放在/usr/local/lib,配置文件默认放在/usr/local/etc,其它的资源文件放在/usr /local/share,比较凌乱。如果配置--p 阅读全文
posted @ 2013-02-03 19:19 双面煎蛋 阅读(1533) 评论(0) 推荐(0) 编辑
摘要: adv.表示副词prep.表示介词vi.不及物动词vt.及物动词其他有:prep = 介系词;前置词,preposition的缩写 pron = 代名词,pronoun的缩写 n = 名词,noun的缩写 v = 动词,兼指及物动词和不及物动词,verb的缩写 conj = 连接词 ,conjunction的缩写 s = 主词 sc = 主词补语 o = 受词 oc = 受词补语 vi = 不及物动词,intransitive verb的缩写 vt = 及物动词,transitive verb的缩写 aux.v = 助动词 ,auxiliary的缩写 a = 形容词,adjective的缩写 阅读全文
posted @ 2013-01-25 11:24 双面煎蛋 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 转载地址:http://www.2cto.com/kf/201211/170227.html判断是pc还是移动设备true:pcfunction IsPC(){ var userAgentInfo = navigator.userAgent; var Agents = new Array("Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"); var flag = true; for (var v 阅读全文
posted @ 2013-01-14 18:13 双面煎蛋 阅读(791) 评论(0) 推荐(0) 编辑
摘要: 使用jquery简单实现分页,功能很简单,可以自己扩展在jsp页面调用(只要数据类型是array、list、json类型都可以的): <link href="${contextPath }/css/paging.css" rel="stylesheet" type="text/css"> <script language="javascript" type="text/javascript" src="${contextPath }/js/jquery.js" 阅读全文
posted @ 2013-01-14 16:04 双面煎蛋 阅读(8312) 评论(2) 推荐(0) 编辑
摘要: Java: instanceof contains() charAt() 泛型2013-1-8 split() 2013-1-9 getDeclaredFields()2013-1-23JQuery: each()css("") 2013-1-9 each()指定元素2013-1-11 siblings 2013-3-21 CSS: div文字居中2013-1-9 div被撑开 2013-3-26JAVASCRIPT: 取整 2013-3-29 阅读全文
posted @ 2013-01-08 14:35 双面煎蛋 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Hibernate.hbm.xml1、should be mapped with insert="false" update="false":存在重复映射的字段;2、Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]:配置文件与实体文件映射错误,多了字段或少了字段或少些了getter 方法;3、org.hibernate.LazyInitiali 阅读全文
posted @ 2012-12-26 15:19 双面煎蛋 阅读(3546) 评论(0) 推荐(0) 编辑
摘要: 转载地址:http://mafei.aoercom.com/?p=93VirtualBox 安装 ubuntu 出现This kernel requires an X86-64 CPU,but only detected an i686 CPU错误的解决办法基本情况VirtualBox4.1.12下载ubuntu操作系统版本ubuntu-11.10-alternate-amd64.iso ( 64位专家版)安装过程出现错误:This kernel requires an X86-64 CPU,but only detected an i686 CPU(当前系统内核需要64位的cpu,可是只检测 阅读全文
posted @ 2012-12-17 17:59 双面煎蛋 阅读(57189) 评论(0) 推荐(1) 编辑
摘要: -----自家的------------------------------------------------------------------------------------------1、java 常见异常;2、MySql 命令;3、Tomcat内存大小配置;4、英语;-----未读------------------------------------------------------------------------------------------1、java 数据缓存;2、java 多线程;3、java 线程池;4、java web.xml ;5、MySql 存储过程 阅读全文
posted @ 2012-10-29 18:18 双面煎蛋 阅读(716) 评论(0) 推荐(0) 编辑