`
ant04444
  • 浏览: 21960 次
  • 性别: Icon_minigender_1
  • 来自: 广州
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表

navigator h and v

    博客分类:
  • css
  菜单垂直   ul { padding: 0; width: 200px; //否则下面border bottom会过长 list-style: none; border-bottom: 1px dashed #666; } ul a { display: block; //使链接充满整行,方便点击,否则直接移到链接文字出才能点击 border: 1px dashed #666; border-bottom: none;//解决bottom border double的问题 zoom: 1; //解决ie bug:li之间有空隙 }     ...

session expire

    博客分类:
  • java
source: http://stackoverflow.com/questions/2960764/how-to-set-session-timeout-dynamically-in-java-web-applications   http://stackoverflow.com/questions/1026846/how-to-redirect-to-login-page-when-session-is-expired-in-java-web-application

log4j.properties

    博客分类:
  • java
# Define the root logger with appender file log = c:/logger log4j.rootLogger = DEBUG, stdout, FILE log4j.logger.org.snowflying = DEBUG, FILE # Define the file appender log4j.appender.FILE=org.apache.log4j.FileAppender log4j.appender.FILE.File=${log}/log.out # Define the layout for fi ...

JUnit - Tutorial

    博客分类:
  • java
original source :  http://www.vogella.com/articles/JUnit/article.html#junit_intro   JUnit - Tutorial Lars Vogel   Version 2.1   Copyright © 2007, 2008, 2009, 2010, 2011, 2012 Lars Vogel 02.04.2012 Revision History Revision 0.1-0.5
I am sure all of you have used ‘echo’ and ‘print_r’ to debug PHP. We all know that this way debugging is hard and you need to remember to remove them from production server. Well, thanks to xdebug you can now debug, and you don’t need expensive or blotted IDE for that, just plain and simple Note ...

MyEclipse快捷键

    博客分类:
  • java
俗话说工欲善其事,必先利其器。熟悉开发环境对开发能造成事半功倍的效果 找了网络上一些他人总结的MyEclipse常用快捷键如下: ------------------------------------------------------------------------------------------- Ctrl+1 快速修复(最经典的快 ...

css fix

    博客分类:
  • css
come from http://www.webtoolkit.info/css-clearfix.html CSS clearfix The problem happens when a floated element is within a container box, that element does not automatically force the container’s height adjust to the floated element. When an element is floated, its parent no longer contains it beca ...

Generate random numbers

    博客分类:
  • java
There are two means of generating random (really pseudo-random) numbers : the Random class generates random integers, doubles, longs and so on, in various ranges. the static method Math.random generates doubles between 0 (inclusive) and 1 (exclusive). To generate random integers : do not use Math.ran ...
<label for="radio_test"> 男生:<input type="radio" id="radio_test" /> </label>

mysql小内存优化

[mysqld] key_buffer_size = 16K max_allowed_packet = 1M table_open_cache = 4 sort_buffer_size = 64K read_buffer_size = 256K read_rnd_buffer_size = 256K net_buffer_length = 2K thread_stack = 128K ignore_builtin_innodb default-storage-engine = MyISAM
come from http://eksith.wordpress.com/2010/11/07/nginx-php-mysql-windows/3/ The last time I posted a tutorial on Nginx, there wasn’t a native port of the server available. Riez Opuz posted a link to his Xenstack project on that post that prompted me to write the rest of what I’ve been putting off ...

Change mysql password

use mysql; UPDATE user SET password=PASSWORD(‘new_password’) WHERE user=’root’; FLUSH PRIVILEGES;
更新说明: 1.        解决实例化时自动补全不必要的单词问题 2.        以MyEclipse 6.5重新配图 鉴于网上的批评之声甚大,我只想说明我的想法:这样的增强代码提示,最终是用来辅助我们开发的,提高开发效率的,而不是用来满足“不用敲那么多的代码”的偷懒行为的。初学者,可以通过提示,获得一些容易忘记的包名、容易忘记的类名(对于初学者来说,很多东西只是用得少而已),减少多次重复查询API的痛苦。对于高手,自然不用多说,每个人都有自己的快捷键,还炉火纯青那种,而这里的增强代码提示,就是充当这样的角色,来提高敲代码速度的,提高开发效率的。当然了,每个人要适应这个代码提示,要 ...
  作為網頁設計師,我們經常會瀏覽網站尋求靈感,很多時我們發現一隻合適的顏色會希望立即查看它的rgb值。今次介紹一個叫ColorZilla的Firefox插件給大家,它可以立刻顯示HSV和RGB數值。詳細資料可以到ColorZilla的網頁看看。

CSS Note 1

    博客分类:
  • css
1.对html,body设置background-color区别,body的背景色只对content所在区域起作用,而html则是全部区域; html { background-color: #fff884; } body { background-color: #ffffff; border: 3px solid #85a110; } 2.body居中常用方法: body { width: 760px; margin-top: 20px; margin-left: auto; margin-right: auto; padding: 15px; ...
Global site tag (gtag.js) - Google Analytics