2012年11月7日
摘要: /etc/sysctl.conf修改kernel.msgmni=1000kernel.msgmax=81920kernel.msgmnb=163840MSGMNB每个消息队列的最大字节限制。该文件指定一个消息队列的最大长度(bytes)。MSGMNI 整个系统的最大数量的消息队列。该文件指定消息队列... 阅读全文
posted @ 2012-11-07 18:05 老游条 阅读(536) 评论(0) 推荐(0) 编辑
  2012年9月21日
摘要: git clone git@github.com:leinchu/event2game.gitgit show-branchgit remote add origin git@github.com:leinchu/event2game.gitcd /data/event2game/git add .... 阅读全文
posted @ 2012-09-21 14:54 老游条 阅读(112) 评论(0) 推荐(0) 编辑
  2012年7月13日
摘要: function getClipboard() { if (window.clipboardData) { return window.clipboardData.getData("text"); } else { if (window.netscape) { try { netscape.secu... 阅读全文
posted @ 2012-07-13 11:33 老游条 阅读(217) 评论(0) 推荐(0) 编辑
  2012年7月11日
摘要: Debugging javascript on a mobile device can be maddening. As a novice, I usually have no idea what has gone wrong, and I am often frustrated with a bl... 阅读全文
posted @ 2012-07-11 17:20 老游条 阅读(273) 评论(0) 推荐(0) 编辑
  2012年6月26日
摘要: 现支持iOS、Android和电脑swipe swipeleft swiperight -1 -2 -3 -4 -5 -6 -7 -8 -9 ... 阅读全文
posted @ 2012-06-26 13:36 老游条 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 测试Javascript类pro = prototypepri = privatepub = public 阅读全文
posted @ 2012-06-26 11:00 老游条 阅读(179) 评论(0) 推荐(0) 编辑
摘要: function printEvent(evt){ try { var tmp = ''; for(var i in evt) { tmp += i+':' var v = evt[i]+''; if(v=='[object HTMLDivElement]') { tmp... 阅读全文
posted @ 2012-06-26 09:35 老游条 阅读(188) 评论(0) 推荐(0) 编辑
  2012年5月16日
摘要: 我也知道是bug,还是本来就是这样的看js代码:var ep={ title:"默认相册", desc:"快来上传照片吧", img:"http://pic.**m...403d0c295512c740_mb.jpg", link:"u1191122496/photo/show/82354307",... 阅读全文
posted @ 2012-05-16 20:11 老游条 阅读(147) 评论(0) 推荐(0) 编辑
  2012年5月11日
摘要: 这里有很多的字,浏览器会帮你自动省略,ie6就支持了诀窍是,必须设定合适的宽度和高度,text-overflow: ellipsis才会起到作用 阅读全文
posted @ 2012-05-11 16:36 老游条 阅读(142) 评论(0) 推荐(0) 编辑
  2012年4月3日
摘要: 因为个人想开发 iphone native web app,所以想用HTML 5新特性,研究了两天,终于写了一个Web Sql Database 操作类。Author: LeinEmaill: lein_urg@163.com网上很多文章都不是通过传入参数的办法,而是写死代码的方法,这样就很难灵活运... 阅读全文
posted @ 2012-04-03 16:04 老游条 阅读(284) 评论(0) 推荐(0) 编辑