% ./configure –prefix=/usr/local/squid
% make all
% make install
To run a Cache, you will need to:
1. customize the squid.conf configuration file:
% vi /usr/local/squid/etc/squid.conf
2. start the cache:
% /usr/local/squid/sbin/squid
If you want to use the WWW interface to the Cache Manager, copy the cachemgr.cgi program into your httpd server’s cgi-bin directory.
]]>Unable to access the selected application. Exception in AppMerge flows' progression Exception in AppMerge flows' progression VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.3: Element 'filter@http://java.sun.com/xml/ns/javaee' with element-only content type cannot have text content.: problem: cvc-complex-type.2.3: Element 'init-param@http://java.sun.com/xml/ns/javaee' with element-only content type cannot have text content.: problem: cvc-complex-type.2.3: Element 'init-param@http://java.sun.com/xml/ns/javaee' with element-only content type cannot have text content.: problem: cvc-complex-type.2.3: Element 'filter-mapping@http://java.sun.com/xml/ns/javaee' with element-only content type cannot have text content.: VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.3: Element 'filter@http://java.sun.com/xml/ns/javaee' with element-only content type cannot have text content.: problem: cvc-complex-type.2.3: Element 'init-param@http://java.sun.com/xml/ns/javaee' with element-only content type cannot have text content.: problem: cvc-complex-type.2.3: Element 'init-param@http://java.sun.com/xml/ns/javaee' with element-only content type cannot have text content.: problem: cvc-complex-type.2.3: Element 'filter-mapping@http://java.sun.com/xml/ns/javaee' with element-only content type cannot have text content.:
If you meet this error message, please check your web.xml and make sure it does not contain any unusual characters.
]]>You must restart the service to make it effective:
[root@localhost ~]# service iptables restart
.style{margin-left:auto;margin-right:auto;}
.style{margin:0 auto;}1 | <a href="#" onclick="javascript:jsMethod();return false;">a link</a> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | import java.awt.Container; import java.awt.FlowLayout; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JApplet; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.WindowConstants; public class Test3 extends JApplet { public void init() { Container contentPane = getContentPane(); Icon icon = new ImageIcon(ClassLoader.getSystemResource("swing.gif")); JLabel label = new JLabel(icon); // java.net.URL codebase = getClass().getResource("../swing.gif"); // JLabel label = new JLabel(new ImageIcon(codebase)); contentPane.setLayout(new FlowLayout()); contentPane.add(label); } public static void main(String args[]) { final JFrame f = new JFrame(); JApplet applet = new Test3(); applet.init(); f.setContentPane(applet.getContentPane()); f.setBounds(100, 100, 308, 199); f.setTitle("An Application"); f.setVisible(true); f.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); f.addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent e) { System.exit(0); } }); } } |
String s = request.getRequestURL().toString(); URL url = new URL(s); BufferedReader bf = new BufferedReader(new InputStreamReader(url.openStream()));
The D command deletes from the cursor position to the end of the line. (D is a shortcut for d$.)
Often you want to delete only one or two characters. Just as r is a special change command to replace a single character, x is a special delete command to delete a single character. x deletes only the character the cursor is on.
]]>