<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MXcode</title>
	<atom:link href="http://mxcode.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mxcode.com</link>
	<description>All about coding</description>
	<lastBuildDate>Tue, 09 Mar 2010 03:13:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>how to install squid-2.5.STABLE13 on linux</title>
		<link>http://mxcode.com/2010/03/how-to-install-squid-2-5-stable13-on-linux/</link>
		<comments>http://mxcode.com/2010/03/how-to-install-squid-2-5-stable13-on-linux/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 03:12:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://mxcode.com/2010/03/how-to-install-squid-2-5-stable13-on-linux/</guid>
		<description><![CDATA[To build and install the Squid Cache, type:
	% ./configure &#8211;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:
	   [...]]]></description>
			<content:encoded><![CDATA[<p>To build and install the Squid Cache, type:</p>
<p>	% ./configure &#8211;prefix=/usr/local/squid<br />
        % make all<br />
        % make install<br />
<span id="more-17"></span><br />
To run a Cache, you will need to:</p>
<p>	1. customize the squid.conf configuration file:<br />
	      % vi /usr/local/squid/etc/squid.conf</p>
<p>	2. start the cache:<br />
	      % /usr/local/squid/sbin/squid</p>
<p>If you want to use the WWW interface to the Cache Manager, copy the cachemgr.cgi program into your httpd server&#8217;s cgi-bin directory.	    </p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2010/03/how-to-install-squid-2-5-stable13-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>validation problems when deploy an application in weblogic 10</title>
		<link>http://mxcode.com/2010/03/validation-problems-when-deploy-an-application-in-weblogic-10/</link>
		<comments>http://mxcode.com/2010/03/validation-problems-when-deploy-an-application-in-weblogic-10/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 11:34:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[weblogic]]></category>

		<guid isPermaLink="false">http://mxcode.com/2010/03/validation-problems-when-deploy-an-application-in-weblogic-10/</guid>
		<description><![CDATA[Error message is:

Unable to access the selected application.
&#160;
Exception in AppMerge flows' progression
&#160;
Exception in AppMerge flows' progression
&#160;
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.: [...]]]></description>
			<content:encoded><![CDATA[<p>Error message is:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">Unable to access the selected application.
&nbsp;
<span style="color: #003399;">Exception</span> in AppMerge flows<span style="color: #0000ff;">' progression
&nbsp;
Exception in AppMerge flows'</span> progression
&nbsp;
VALIDATION PROBLEMS WERE FOUND problem<span style="color: #339933;">:</span> cvc<span style="color: #339933;">-</span>complex<span style="color: #339933;">-</span>type.2.3<span style="color: #339933;">:</span> <span style="color: #003399;">Element</span> <span style="color: #0000ff;">'filter@http://java.sun.com/xml/ns/javaee'</span> with element<span style="color: #339933;">-</span>only content type cannot have text content.<span style="color: #339933;">:</span> problem<span style="color: #339933;">:</span> cvc<span style="color: #339933;">-</span>complex<span style="color: #339933;">-</span>type.2.3<span style="color: #339933;">:</span> <span style="color: #003399;">Element</span> <span style="color: #0000ff;">'init-param@http://java.sun.com/xml/ns/javaee'</span> with element<span style="color: #339933;">-</span>only content type cannot have text content.<span style="color: #339933;">:</span> problem<span style="color: #339933;">:</span> cvc<span style="color: #339933;">-</span>complex<span style="color: #339933;">-</span>type.2.3<span style="color: #339933;">:</span> <span style="color: #003399;">Element</span> <span style="color: #0000ff;">'init-param@http://java.sun.com/xml/ns/javaee'</span> with element<span style="color: #339933;">-</span>only content type cannot have text content.<span style="color: #339933;">:</span> problem<span style="color: #339933;">:</span> cvc<span style="color: #339933;">-</span>complex<span style="color: #339933;">-</span>type.2.3<span style="color: #339933;">:</span> <span style="color: #003399;">Element</span> <span style="color: #0000ff;">'filter-mapping@http://java.sun.com/xml/ns/javaee'</span> with element<span style="color: #339933;">-</span>only content type cannot have text content.<span style="color: #339933;">:</span>
&nbsp;
VALIDATION PROBLEMS WERE FOUND problem<span style="color: #339933;">:</span> cvc<span style="color: #339933;">-</span>complex<span style="color: #339933;">-</span>type.2.3<span style="color: #339933;">:</span> <span style="color: #003399;">Element</span> <span style="color: #0000ff;">'filter@http://java.sun.com/xml/ns/javaee'</span> with element<span style="color: #339933;">-</span>only content type cannot have text content.<span style="color: #339933;">:</span> problem<span style="color: #339933;">:</span> cvc<span style="color: #339933;">-</span>complex<span style="color: #339933;">-</span>type.2.3<span style="color: #339933;">:</span> <span style="color: #003399;">Element</span> <span style="color: #0000ff;">'init-param@http://java.sun.com/xml/ns/javaee'</span> with element<span style="color: #339933;">-</span>only content type cannot have text content.<span style="color: #339933;">:</span> problem<span style="color: #339933;">:</span> cvc<span style="color: #339933;">-</span>complex<span style="color: #339933;">-</span>type.2.3<span style="color: #339933;">:</span> <span style="color: #003399;">Element</span> <span style="color: #0000ff;">'init-param@http://java.sun.com/xml/ns/javaee'</span> with element<span style="color: #339933;">-</span>only content type cannot have text content.<span style="color: #339933;">:</span> problem<span style="color: #339933;">:</span> cvc<span style="color: #339933;">-</span>complex<span style="color: #339933;">-</span>type.2.3<span style="color: #339933;">:</span> <span style="color: #003399;">Element</span> <span style="color: #0000ff;">'filter-mapping@http://java.sun.com/xml/ns/javaee'</span> with element<span style="color: #339933;">-</span>only content type cannot have text content.<span style="color: #339933;">:</span></pre></div></div>

<p>If you meet this error message, please check your web.xml and make sure it does not contain any unusual characters.</p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2010/03/validation-problems-when-deploy-an-application-in-weblogic-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>open a port on linux server</title>
		<link>http://mxcode.com/2010/01/open-a-port-on-linux-server/</link>
		<comments>http://mxcode.com/2010/01/open-a-port-on-linux-server/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 14:39:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[port]]></category>

		<guid isPermaLink="false">http://mxcode.com/2010/01/open-a-port-on-linux-server/</guid>
		<description><![CDATA[=========================================
iptables -A RH-Firewall-1-INPUT -p tcp -m state &#8211;state NEW -m tcp &#8211;dport 3690 -j ACCEPT
=========================================
RH-Firewall-1-INPUT is the name of the chain, and change 3690 to the port number you expect.
You must restart the service to make it effective:
[root@localhost ~]# service iptables restart
]]></description>
			<content:encoded><![CDATA[<p>=========================================<br />
iptables -A RH-Firewall-1-INPUT -p tcp -m state &#8211;state NEW -m tcp &#8211;dport 3690 -j ACCEPT<br />
=========================================<br />
RH-Firewall-1-INPUT is the name of the chain, and change 3690 to the port number you expect.</p>
<p>You must restart the service to make it effective:<br />
[root@localhost ~]# service iptables restart</p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2010/01/open-a-port-on-linux-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>make div align center</title>
		<link>http://mxcode.com/2009/12/make-div-align-center/</link>
		<comments>http://mxcode.com/2009/12/make-div-align-center/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 03:15:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://mxcode.com/2009/12/make-div-align-center/</guid>
		<description><![CDATA[use style as:
.style{margin-left:auto;margin-right:auto;}

or
.style{margin:0 auto;}
for short
]]></description>
			<content:encoded><![CDATA[<p>use style as:<br />
<code><span style="color: #ff0000;">.style{margin-left:auto;margin-right:auto;}<br />
</span></code><br />
or<br />
<code><span style="color: #ff0000;">.style{margin:0 auto;}</span></code><br />
for short</p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2009/12/make-div-align-center/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ORACLE UTL_RAW.BIT_AND</title>
		<link>http://mxcode.com/2009/12/oracle-utl_raw-bit_and/</link>
		<comments>http://mxcode.com/2009/12/oracle-utl_raw-bit_and/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 09:39:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://mxcode.com/2009/12/oracle-utl_raw-bit_and/</guid>
		<description><![CDATA[eg.
select to_number(UTL_RAW.bit_and(to_char(1), &#8216;3&#8242;)) from dual;
]]></description>
			<content:encoded><![CDATA[<p>eg.<br />
select to_number(UTL_RAW.bit_and(to_char(1), &#8216;3&#8242;)) from dual;</p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2009/12/oracle-utl_raw-bit_and/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>href and onclick method in &#8216;A&#8217; tag</title>
		<link>http://mxcode.com/2009/10/href-and-onclick-method-in-a-tag/</link>
		<comments>http://mxcode.com/2009/10/href-and-onclick-method-in-a-tag/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 09:25:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://mxcode.com/2009/10/href-and-onclick-method-in-a-tag/</guid>
		<description><![CDATA[How to invoke onclick method but not go to the page head.

1
&#60;a href=&#34;#&#34; onclick=&#34;javascript:jsMethod();return false;&#34;&#62;a link&#60;/a&#62;

]]></description>
			<content:encoded><![CDATA[<p>How to invoke onclick method but not go to the page head.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span> onclick<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;javascript:jsMethod();return false;&quot;</span><span style="color: #339933;">&gt;</span>a link<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2009/10/href-and-onclick-method-in-a-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>create a swing application</title>
		<link>http://mxcode.com/2009/09/create-a-swing-application/</link>
		<comments>http://mxcode.com/2009/09/create-a-swing-application/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 07:34:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[swing]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://mxcode.com/2009/09/create-a-swing-application/</guid>
		<description><![CDATA[
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
&#160;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
&#160;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JApplet;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.WindowConstants;
&#160;
public class Test3 extends JApplet &#123;
&#160;
	public void init&#40;&#41; &#123;
		Container contentPane = getContentPane&#40;&#41;;
&#160;
		Icon icon = new ImageIcon&#40;ClassLoader.getSystemResource&#40;&#34;swing.gif&#34;&#41;&#41;; 
		JLabel label = new JLabel&#40;icon&#41;;
//		java.net.URL codebase = getClass().getResource(&#34;../swing.gif&#34;);
//		JLabel label = new JLabel(new ImageIcon(codebase));
&#160;
		contentPane.setLayout&#40;new FlowLayout&#40;&#41;&#41;;
		contentPane.add&#40;label&#41;;
	&#125;
&#160;
	public static void main&#40;String args&#91;&#93;&#41; &#123;
		final JFrame f = new JFrame&#40;&#41;;
		JApplet applet = new Test3&#40;&#41;;
&#160;
		applet.init&#40;&#41;;
&#160;
		f.setContentPane&#40;applet.getContentPane&#40;&#41;&#41;;
		f.setBounds&#40;100, 100, [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>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
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.Container</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.FlowLayout</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.event.WindowAdapter</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.event.WindowEvent</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.swing.Icon</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.swing.ImageIcon</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.swing.JApplet</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.swing.JFrame</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.swing.JLabel</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.swing.WindowConstants</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Test3 <span style="color: #000000; font-weight: bold;">extends</span> <span style="color: #003399;">JApplet</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> init<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #003399;">Container</span> contentPane <span style="color: #339933;">=</span> getContentPane<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #003399;">Icon</span> icon <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">ImageIcon</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">ClassLoader</span>.<span style="color: #006633;">getSystemResource</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;swing.gif&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
		<span style="color: #003399;">JLabel</span> label <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">JLabel</span><span style="color: #009900;">&#40;</span>icon<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//		java.net.URL codebase = getClass().getResource(&quot;../swing.gif&quot;);</span>
<span style="color: #666666; font-style: italic;">//		JLabel label = new JLabel(new ImageIcon(codebase));</span>
&nbsp;
		contentPane.<span style="color: #006633;">setLayout</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">FlowLayout</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		contentPane.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>label<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> args<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">final</span> <span style="color: #003399;">JFrame</span> f <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">JFrame</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003399;">JApplet</span> applet <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Test3<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		applet.<span style="color: #006633;">init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		f.<span style="color: #006633;">setContentPane</span><span style="color: #009900;">&#40;</span>applet.<span style="color: #006633;">getContentPane</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		f.<span style="color: #006633;">setBounds</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">100</span>, <span style="color: #cc66cc;">100</span>, <span style="color: #cc66cc;">308</span>, <span style="color: #cc66cc;">199</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		f.<span style="color: #006633;">setTitle</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;An Application&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		f.<span style="color: #006633;">setVisible</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		f.<span style="color: #006633;">setDefaultCloseOperation</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">WindowConstants</span>.<span style="color: #006633;">DISPOSE_ON_CLOSE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		f.<span style="color: #006633;">addWindowListener</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">WindowAdapter</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> windowClosed<span style="color: #009900;">&#40;</span><span style="color: #003399;">WindowEvent</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #003399;">System</span>.<span style="color: #006633;">exit</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2009/09/create-a-swing-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to read a url</title>
		<link>http://mxcode.com/2009/09/how-to-read-a-url/</link>
		<comments>http://mxcode.com/2009/09/how-to-read-a-url/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 05:15:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://mxcode.com/2009/09/hwo-to-read-a-url/</guid>
		<description><![CDATA[
String s = request.getRequestURL&#40;&#41;.toString&#40;&#41;;
URL url = new URL&#40;s&#41;;
BufferedReader bf = new BufferedReader&#40;new InputStreamReader&#40;url.openStream&#40;&#41;&#41;&#41;;

]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #003399;">String</span> s <span style="color: #339933;">=</span> request.<span style="color: #006633;">getRequestURL</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003399;">URL</span> url <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">URL</span><span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003399;">BufferedReader</span> bf <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">BufferedReader</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">InputStreamReader</span><span style="color: #009900;">&#40;</span>url.<span style="color: #006633;">openStream</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2009/09/how-to-read-a-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>use kill with awk</title>
		<link>http://mxcode.com/2009/08/use-kill-with-awk/</link>
		<comments>http://mxcode.com/2009/08/use-kill-with-awk/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 06:40:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://mxcode.com/2009/08/use-kill-with-awk/</guid>
		<description><![CDATA[kill `ps -ef &#124; awk &#8216;{if($11~/WorkOrderProcessor/) print$2}&#8217;`
]]></description>
			<content:encoded><![CDATA[<p>kill `ps -ef | awk &#8216;{if($11~/WorkOrderProcessor/) print$2}&#8217;`</p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2009/08/use-kill-with-awk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VI command &#8211; D &amp; x</title>
		<link>http://mxcode.com/2009/08/vi-command-d-x/</link>
		<comments>http://mxcode.com/2009/08/vi-command-d-x/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 03:16:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://mxcode.com/2009/08/vi-command-d-x/</guid>
		<description><![CDATA[D
The D command deletes from the cursor position to the end of the line. (D is a shortcut for d$.)
x
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 [...]]]></description>
			<content:encoded><![CDATA[<h2>D</h2>
<p>The D command deletes from the cursor position to the end of the line. (D is a shortcut for d$.)</p>
<h2>x</h2>
<p>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.</p>
]]></content:encoded>
			<wfw:commentRss>http://mxcode.com/2009/08/vi-command-d-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
