<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://wiki.freecode.com.cn/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://wiki.freecode.com.cn/feed.php">
        <title>Who Is Wiki</title>
        <description></description>
        <link>http://wiki.freecode.com.cn/</link>
        <image rdf:resource="http://wiki.freecode.com.cn/lib/images/favicon.ico" />
       <dc:date>2009-12-20T14:40:55+08:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://wiki.freecode.com.cn/doku.php?id=mirnshi:a_java_class_to_get_a_compressed_file_from_the_server&amp;rev=1261200150&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.freecode.com.cn/doku.php?id=mirnshi:speed_up_mysql_import&amp;rev=1261066347&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.freecode.com.cn/doku.php?id=mirnshi:adjust_tomcat_time&amp;rev=1260457689&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.freecode.com.cn/doku.php?id=mirnshi:reduce_time_wait_on_linux&amp;rev=1259145594&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.freecode.com.cn/doku.php?id=mirnshi:monitor_the_statistics_of_nginx_with_cacti&amp;rev=1258788358&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.freecode.com.cn/doku.php?id=mirnshi:apparmor_and_mysql_on_ubuntu&amp;rev=1239764012&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.freecode.com.cn/doku.php?id=mirnshi:sysctl_string&amp;rev=1239678961&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.freecode.com.cn/doku.php?id=mirnshi:the_easy_way_to_add_locale_environment_on_ubuntu&amp;rev=1239678900&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.freecode.com.cn/doku.php?id=start&amp;rev=1236851210&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.freecode.com.cn/doku.php?id=wiki:vpcs&amp;rev=1236850713&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.freecode.com.cn/doku.php?id=mirnshi:shrink_the_larger_log_of_mssql_server&amp;rev=1234411132&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.freecode.com.cn/doku.php?id=mirnshi:hide_delphi_application_from_taskbar&amp;rev=1233414116&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.freecode.com.cn/doku.php?id=mirnshi:unlock_svnsync&amp;rev=1231388451&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.freecode.com.cn/doku.php?id=mirnshi:installed_blog_plugin&amp;rev=1230626420&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.freecode.com.cn/doku.php?id=mirnshi&amp;rev=1230626301&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://wiki.freecode.com.cn/lib/images/favicon.ico">
        <title>Who Is Wiki</title>
        <link>http://wiki.freecode.com.cn/</link>
        <url>http://wiki.freecode.com.cn/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://wiki.freecode.com.cn/doku.php?id=mirnshi:a_java_class_to_get_a_compressed_file_from_the_server&amp;rev=1261200150&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-12-19T13:22:30+08:00</dc:date>
        <dc:creator>mirnshi</dc:creator>
        <title>mirnshi:a_java_class_to_get_a_compressed_file_from_the_server - created</title>
        <link>http://wiki.freecode.com.cn/doku.php?id=mirnshi:a_java_class_to_get_a_compressed_file_from_the_server&amp;rev=1261200150&amp;do=diff</link>
        <description>Some guys often ask me to help them to get some files from the server, such as tomcat log. Everytime I must open ftp client to connect the server, download these file. The lazy man need a smart way to do this job. Now they can help themselves.


 import java.io.File;
 import java.io.FileInputStream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStream;
 import java.util.zip.*;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletR…</description>
    </item>
    <item rdf:about="http://wiki.freecode.com.cn/doku.php?id=mirnshi:speed_up_mysql_import&amp;rev=1261066347&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-12-18T00:12:27+08:00</dc:date>
        <dc:creator>mirnshi</dc:creator>
        <title>mirnshi:speed_up_mysql_import - created</title>
        <link>http://wiki.freecode.com.cn/doku.php?id=mirnshi:speed_up_mysql_import&amp;rev=1261066347&amp;do=diff</link>
        <description>Generally, it is very slow to restore the data from mysqldump file. Here is a tip to speed up this work:


  % mysql -u someuser -p
  &gt; SET AUTOCOMMIT=0;
  &gt; SET UNIQUE_CHECKS=0;
  &gt; SET FOREIGN_KEY_CHECKS=0;
  &gt; source dump.sql;
  &gt; SET FOREIGN_KEY_CHECKS=1;
  &gt; UNIQUE_CHECKS=1;
  &gt; COMMIT;</description>
    </item>
    <item rdf:about="http://wiki.freecode.com.cn/doku.php?id=mirnshi:adjust_tomcat_time&amp;rev=1260457689&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-12-10T23:08:09+08:00</dc:date>
        <dc:creator>mirnshi</dc:creator>
        <title>mirnshi:adjust_tomcat_time - created</title>
        <link>http://wiki.freecode.com.cn/doku.php?id=mirnshi:adjust_tomcat_time&amp;rev=1260457689&amp;do=diff</link>
        <description>Tomcat alway complains that it got wrong timezone, but the Linux time is right. 


The problem is the timezone in the file /etc/sysconfig/clock is wrong. This timezone is not same as the timezone of the command 'date', so modified /etc/sysconfig/clock, make Java happy.</description>
    </item>
    <item rdf:about="http://wiki.freecode.com.cn/doku.php?id=mirnshi:reduce_time_wait_on_linux&amp;rev=1259145594&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-11-25T18:39:54+08:00</dc:date>
        <dc:creator>mirnshi</dc:creator>
        <title>mirnshi:reduce_time_wait_on_linux - created</title>
        <link>http://wiki.freecode.com.cn/doku.php?id=mirnshi:reduce_time_wait_on_linux&amp;rev=1259145594&amp;do=diff</link>
        <description>sysctl net.ipv4.tcp_tw_reuse=1
sysctl net.ipv4.tcp_tw_recycle=1</description>
    </item>
    <item rdf:about="http://wiki.freecode.com.cn/doku.php?id=mirnshi:monitor_the_statistics_of_nginx_with_cacti&amp;rev=1258788358&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-11-21T15:25:58+08:00</dc:date>
        <dc:creator>mirnshi</dc:creator>
        <title>mirnshi:monitor_the_statistics_of_nginx_with_cacti</title>
        <link>http://wiki.freecode.com.cn/doku.php?id=mirnshi:monitor_the_statistics_of_nginx_with_cacti&amp;rev=1258788358&amp;do=diff</link>
        <description>First, add the next lines to configuration file of nginx
 location /server_status {
    stub_status on;
    access_log off;
    # Only me can access this
    #allow 10.0.0.12;
    #deny all;
 }
Run nginx -t to make sure the configuration file is correct. Then run kill -1 nginx_pid, nginx will reload the configuration.
After nginx reload it, try to access the url: &lt;http://server/server_status/&gt;, the browser will display like this:</description>
    </item>
    <item rdf:about="http://wiki.freecode.com.cn/doku.php?id=mirnshi:apparmor_and_mysql_on_ubuntu&amp;rev=1239764012&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-04-15T10:53:32+08:00</dc:date>
        <dc:creator>mirnshi</dc:creator>
        <title>mirnshi:apparmor_and_mysql_on_ubuntu - created</title>
        <link>http://wiki.freecode.com.cn/doku.php?id=mirnshi:apparmor_and_mysql_on_ubuntu&amp;rev=1239764012&amp;do=diff</link>
        <description>The default data directory is /var/lib/mysql. How to change to a new directory, such as /data?

	* stop mysql
		* move /var/lib/mysql /data
		* modify /etc/apparmor.d/usr.sbin.mysqld, /var/lib/mysql to /data/mysql
		* restart apparmor
		* start mysql</description>
    </item>
    <item rdf:about="http://wiki.freecode.com.cn/doku.php?id=mirnshi:sysctl_string&amp;rev=1239678961&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-04-14T11:16:01+08:00</dc:date>
        <dc:creator>mirnshi</dc:creator>
        <title>mirnshi:sysctl_string</title>
        <link>http://wiki.freecode.com.cn/doku.php?id=mirnshi:sysctl_string&amp;rev=1239678961&amp;do=diff</link>
        <description>The way to 'sysctl' string in the kernel module program




The sysctl_proc function:


char sysctl_str[1024];
static int
sysctl_str_ctrl(SYSCTL_HANDLER_ARGS)
{
   int error;
   char *p;
   p = sysctl_str;
   error = sysctl_handle_string(oidp, p, sizeof(sysctl_str), req);
   if (!error &amp;&amp; req-&gt;newptr) {
      //
   }
   error = SYSCTL_OUT(req, sysctl_str, sizeof(sysctl_str));
   return error;
}
Note: SYSCTL_OUT sends the value to user space, that is to update the MIB value.</description>
    </item>
    <item rdf:about="http://wiki.freecode.com.cn/doku.php?id=mirnshi:the_easy_way_to_add_locale_environment_on_ubuntu&amp;rev=1239678900&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-04-14T11:15:00+08:00</dc:date>
        <dc:creator>mirnshi</dc:creator>
        <title>mirnshi:the_easy_way_to_add_locale_environment_on_ubuntu - created</title>
        <link>http://wiki.freecode.com.cn/doku.php?id=mirnshi:the_easy_way_to_add_locale_environment_on_ubuntu&amp;rev=1239678900&amp;do=diff</link>
        <description>sudo /usr/share/locales/install-language-pack zh_CN.GBK

install-language-pack will have nothing to do if the locale is invalid.</description>
    </item>
    <item rdf:about="http://wiki.freecode.com.cn/doku.php?id=start&amp;rev=1236851210&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-12T17:46:50+08:00</dc:date>
        <dc:creator>mirnshi</dc:creator>
        <title>start</title>
        <link>http://wiki.freecode.com.cn/doku.php?id=start&amp;rev=1236851210&amp;do=diff</link>
        <description>Today, what do you find?Google  baidu


 Tools of the Dynamips simulator 

MTTYs: Multi-TTYs, the console tools, latest version 

VPCS: the Virtual PC Simulator, latest version . Please refer to Tutorial






 IT is Information Technology, is In Thinking.</description>
    </item>
    <item rdf:about="http://wiki.freecode.com.cn/doku.php?id=wiki:vpcs&amp;rev=1236850713&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-12T17:38:33+08:00</dc:date>
        <dc:creator>mirnshi</dc:creator>
        <title>wiki:vpcs</title>
        <link>http://wiki.freecode.com.cn/doku.php?id=wiki:vpcs&amp;rev=1236850713&amp;do=diff</link>
        <description>The VPCS can simulate up to 9 PCs. You can ping/traceroute them, or ping/traceroute the other hosts/routers from the virtual PCs when you study 
the Cisco routers in the Dynamips. VPCS is not the traditional PC, it is just a program running on the Linux or Windows, and only few network commands can be used in it. But VPCS can give you a big hand when you study the Cisco devices in the Dynamips. VPCS can replace the routers or VMware boxes which are used as PCs in the Dynamips network.</description>
    </item>
    <item rdf:about="http://wiki.freecode.com.cn/doku.php?id=mirnshi:shrink_the_larger_log_of_mssql_server&amp;rev=1234411132&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-02-12T11:58:52+08:00</dc:date>
        <dc:creator>mirnshi</dc:creator>
        <title>mirnshi:shrink_the_larger_log_of_mssql_server - created</title>
        <link>http://wiki.freecode.com.cn/doku.php?id=mirnshi:shrink_the_larger_log_of_mssql_server&amp;rev=1234411132&amp;do=diff</link>
        <description>1. BACKUP DATABASE database_name TO backup_device
2. BACKUP LOG database_name TO backup_device
3. DBCC SHRINKFILE (log_file_name)

list the size of tablesEXEC sp_msforeachtable 'sp_spaceused ''?'''</description>
    </item>
    <item rdf:about="http://wiki.freecode.com.cn/doku.php?id=mirnshi:hide_delphi_application_from_taskbar&amp;rev=1233414116&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-31T23:01:56+08:00</dc:date>
        <dc:creator>mirnshi</dc:creator>
        <title>mirnshi:hide_delphi_application_from_taskbar - created</title>
        <link>http://wiki.freecode.com.cn/doku.php?id=mirnshi:hide_delphi_application_from_taskbar&amp;rev=1233414116&amp;do=diff</link>
        <description>I am newbie of dephi. I spent a few days to hide the main form from the taskbar. I wrote a application which creates security tunnel and then runs a special program, such as mstsc(MS remote desktop) to connect the remote server via this tunnel. 




I tried several ways, none can help me. Even many guys said that   shoud be added to the project, and  to onshow. It's weird that the main form was hidden at the beginning, but it's show again after the second program was executed.

 


At last, one …</description>
    </item>
    <item rdf:about="http://wiki.freecode.com.cn/doku.php?id=mirnshi:unlock_svnsync&amp;rev=1231388451&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-08T12:20:51+08:00</dc:date>
        <dc:creator>mirnshi</dc:creator>
        <title>mirnshi:unlock_svnsync - created</title>
        <link>http://wiki.freecode.com.cn/doku.php?id=mirnshi:unlock_svnsync&amp;rev=1231388451&amp;do=diff</link>
        <description>When svnsync reports:
Failed to get lock on destination repos, currently held by 'xxxxx',
use the next command to unlock svnsync:
svn propdel svn:sync-lock --revprop -r 0 file:///mirror</description>
    </item>
    <item rdf:about="http://wiki.freecode.com.cn/doku.php?id=mirnshi:installed_blog_plugin&amp;rev=1230626420&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-12-30T16:40:20+08:00</dc:date>
        <dc:creator>mirnshi</dc:creator>
        <title>mirnshi:installed_blog_plugin - created</title>
        <link>http://wiki.freecode.com.cn/doku.php?id=mirnshi:installed_blog_plugin&amp;rev=1230626420&amp;do=diff</link>
        <description>Spent a few minutes to install the plugin:blog</description>
    </item>
    <item rdf:about="http://wiki.freecode.com.cn/doku.php?id=mirnshi&amp;rev=1230626301&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-12-30T16:38:21+08:00</dc:date>
        <dc:creator>mirnshi</dc:creator>
        <title>mirnshi - created</title>
        <link>http://wiki.freecode.com.cn/doku.php?id=mirnshi&amp;rev=1230626301&amp;do=diff</link>
        <description></description>
    </item>
</rdf:RDF>
