How to shrink a dynamically-expanding guest virtualboximagehttp://dantwining.co.uk/2011/07/18/how-to-shrink-a-dynamically-expanding-guest-virtualbox-image/Sometimes bigger isn’t always better. If your dynamically-expanding virtual machine images are growing out of control, then here’s how to trim th Read More
http://www.lemis.com/grog/Documentation/CFBSD/ Read More
There is a trimWhiteSpaces directive that should accomplish this,In your JSP:<%@ page trimDirectiveWhitespaces="true" %>Or in the jsp-config section your web.xml (Note that this works starting from servlet specification 2.5.):<jsp-config> <jsp-property-group> <url-patt Read More
安装阿帕奇2 Apache2的是作为一个CentOS的软件包,因此我们可以直接用下面命令安装它:yum install httpd 现在配置系统在引导时启动Apachechkconfig --levels 235 httpd on 并启动Apache/etc/init.d/httpd start 现在,您的浏览器到http://192.168.0.100,你应该看到Apache2的测试页:Apache 2测试网页 Apache的默认文档根目录是在CentOS上的/var/www/html 目录 ,配置文件是/etc/httpd/conf/httpd.conf。配置存储在的/etc/h... Read More
from:http://yaronspace.cn/blog/archives/tag/%E5%9D%97%E6%B3%A8%E9%87%8Avim下1.插入注释:按Control+v进入"可视 块"模式按大些“I”进入插入模式,输入注释符“#”,然后立刻按下ESC(两下)2.删除注释先按Control+v进入"可视 块"模式按光标键选中需要删除的注释符按x键删除 Read More
原文:http://www.cnblogs.com/alaska1131/articles/1659654.htmlSSH为 Secure Shell 的缩写,由 IETF 的网络工作小组(Network Working Group)所制定;SSH 为建立在应用层和传输层基础上的安全协议。传统的网络服务程序,如FTP、POP和Telnet其本质上都是不安全的;因为它们在网络上用明文传送数据、用户帐号和用户口令,很容易受到中间人(man-in-the-middle)攻击方式的攻击。就是存在另一个人或者一台机器冒充真正的服务器接收用户传给服务器的数据,然后再冒充用户把数据传给真正的服务器。而 SS Read More
http://trentrichardson.com/Impromptu/index.php下载:https://github.com/trentrichardson/jQuery-ImpromptuEXAMPLESTo simply call Impromptu like you would a regular alert command:$.prompt('Example 1');Example 1To add a a couple extra buttons with different values:$.prompt('Example 2',{ butt Read More
from:http://smashingspy.com/32-best-jquery-popup-window-dialog-box-example/JQuery7Tweet58<respond_social title="jQuery 32 Best jQuery Popup Window Dialog Box Example" keyword="32 Best jQuery Popup Window Dialog Box Example" category="jQuery " url="http://smashin Read More
//TCPServer.javapackage msb.demo.socket;import java.io.DataInputStream;import java.io.DataOutputStream;import java.io.IOException;import java.net.ServerSocket;import java.net.Socket;import java.util.Date;public class TCPServer { /** * @param args * @throws IOException * @throws InterruptedExcepti... Read More
//Meal.javapackage producer.consumer.demo;public class Meal { private final int orderNum; public Meal(int orderNum) { this.orderNum = orderNum; } public String toString() { return "Meal " + orderNum; }}//Chef.javapackage producer.consumer.demo;import java.util.concurrent.TimeUnit;publ... Read More