<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
  <channel>
    <title>Herong&#039;s forum :: Forum</title>
    <link>http://help.herongyang.com/</link>
    <description>Ask your programming questions here! :: XOOPS Community Bulletin Board</description>
    <lastBuildDate>Thu, 09 Feb 2012 04:01:05</lastBuildDate>
    <docs>http://backend.userland.com/rss/</docs>
    <generator>CBB 3.08</generator>
    <category>Forums</category>
    <managingEditor>herong_yang@yahoo.com</managingEditor>
    <webMaster>herong_yang@yahoo.com</webMaster>
    <language>en</language>
        <image>
      <title>Herong&#039;s forum :: Forum</title>
      <url>http://help.herongyang.com/modules/newbb/images/xoopsbb_slogo.png</url>
      <link>http://help.herongyang.com/</link>
      <width>92</width>
      <height>52</height>
    </image>
            <item>
      <title>Re: PDF Updates , Bulk/Package Buying &amp; more ideas?! [by DSEyers]</title>
      <link>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=41&amp;forum=1</link>
      <description>Forum:: PDF Updates , Bulk/Package Buying &amp; more ideas?!&lt;br /&gt;
Any progress on the above? was 2007 asked!</description>
      <pubDate>Tue, 17 May 2011 21:09:49</pubDate>
      <guid>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=41&amp;forum=1</guid>
    </item>
        <item>
      <title>tools [by Anonymous]</title>
      <link>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=50&amp;forum=1</link>
      <description>Forum:: tools&lt;br /&gt;
hi!&lt;br /&gt;   I am working in Aglet2.0.2. I wolud like to know the memory usage of my Aglets. for that I am trying to use jconsole. &lt;br /&gt;When I start these two both of them is not connecting? &lt;br /&gt;Anybody can answer?</description>
      <pubDate>Sat, 22 Jan 2011 06:34:41</pubDate>
      <guid>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=50&amp;forum=1</guid>
    </item>
        <item>
      <title>Re: How can i set limit to Characters input in comment textarea [by Herong]</title>
      <link>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=49&amp;forum=1</link>
      <description>Forum:: How can i set limit to Characters input in comment textarea&lt;br /&gt;
Quote:&lt;div class=&quot;xoopsQuote&quot;&gt;&lt;blockquote&gt;Hi how can i Limit the text input for comment textarea to 250 characters only.&lt;br /&gt;and i also want a display message below the text are showing how many character are left.&lt;/blockquote&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Looks like you write a JavaScript code to do both.</description>
      <pubDate>Sat, 21 Nov 2009 03:06:53</pubDate>
      <guid>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=49&amp;forum=1</guid>
    </item>
        <item>
      <title>Re: How to input and display Chinese characters to and from MySQL if I use Ruby on Rails [by Herong]</title>
      <link>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=48&amp;forum=1</link>
      <description>Forum:: How to input and display Chinese characters to and from MySQL if I use Ruby on Rails&lt;br /&gt;
I know little about Ruby on Rails at this moment, but I am sure it supports UTF-8 encoding. To input and display Chinese characters, all you need to do is to put content=&amp;quot;text/html; charset=utf-8&amp;quot; in your Web pages, and follow these suggestions when communicating with MySQL:&lt;br /&gt;&lt;br /&gt;    * Define all text columns as UTF-8.&lt;br /&gt;    * Run &amp;quot;SET character_set_client=utf8&amp;quot; and &amp;quot;SET character_set_connection=utf8&amp;quot;.&lt;br /&gt;    * Include all text data in UTF-8 encoding in SQL statements.&lt;br /&gt;    * Run &amp;quot;SET character_set_result=utf8&amp;quot;.&lt;br /&gt;    * Fetch all text data in UTF-8 encoding.&lt;br /&gt;&lt;br /&gt;- Herong</description>
      <pubDate>Sat, 08 Aug 2009 12:48:39</pubDate>
      <guid>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=48&amp;forum=1</guid>
    </item>
        <item>
      <title>Encryption &amp; Decryption [by Anonymous]</title>
      <link>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=47&amp;forum=1</link>
      <description>Forum:: Encryption &amp; Decryption&lt;br /&gt;
Hi,&lt;br /&gt;Does anybody know how to encrypt and decrypt  password field in jsp page..&lt;br /&gt;&lt;br /&gt;Thanks in advance</description>
      <pubDate>Sat, 01 Aug 2009 11:44:35</pubDate>
      <guid>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=47&amp;forum=1</guid>
    </item>
        <item>
      <title>Re: DLL file [by Herong]</title>
      <link>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=46&amp;forum=1</link>
      <description>Forum:: DLL file&lt;br /&gt;
Sorry. The link has an extra dot in it. Here is the correct one:&lt;br /&gt;&lt;a href=&quot;http://www.inonit.com/cygwin/jni/helloWorld/load.html&quot; target=&quot;_blank&quot;&gt;http://www.inonit.com/cygwin/jni/helloWorld/load.html&lt;/a&gt;</description>
      <pubDate>Tue, 21 Jul 2009 01:13:04</pubDate>
      <guid>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=46&amp;forum=1</guid>
    </item>
        <item>
      <title>Download File Using JSP [by suvransu]</title>
      <link>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=45&amp;forum=1</link>
      <description>Forum:: Download File Using JSP&lt;br /&gt;
Hi,&lt;br /&gt;i&amp;#039;m able to upload files using jsp. Now i want to download those files with a popup window showing open save or cancel options.can anyone tell me the code for it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks</description>
      <pubDate>Sat, 04 Jul 2009 02:47:54</pubDate>
      <guid>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=45&amp;forum=1</guid>
    </item>
        <item>
      <title>Apache: Certificate Verification: Error (20): unable to get local issuer certificate [by wolfbuda]</title>
      <link>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=44&amp;forum=1</link>
      <description>Forum:: Apache: Certificate Verification: Error (20): unable to get local issuer certificate&lt;br /&gt;
I there,&lt;br /&gt;&lt;br /&gt;I&amp;#039;m in trouble to validate client certificate on apache. If I verify it by hand&lt;br /&gt;it report ok: openssl verify -CAfile root.crt -untrusted all.crt&lt;br /&gt;client.pem&lt;br /&gt;But if a copy root.crt and all.crt to /etc/httpd/conf/ssl.crt/ run&lt;br /&gt;c_rehash /etc/httpd/conf/ssl.crt/ and restart httpd it can&amp;#039;t validate&lt;br /&gt;the client certificate.&lt;br /&gt;Please help!&lt;br /&gt;&lt;br /&gt;PS:&lt;br /&gt;*Apache mailinglist: &lt;a href=&quot;http://groups.google.com/group/comp.infosystems.&lt;a href=&quot;http://www.servers.unix/browse_thread/thread/4a6d93d186f9c455?q=apache+error&quot; target=&quot;_blank&quot;&gt;www.servers.unix/browse_thread/thread/4a6d93d186f9c455?q=apache+error&lt;/a&gt;&quot; target=&quot;_blank&quot;&gt;http://groups.google.com/group/comp.infosystems.&lt;a href=&quot;http://www.servers.unix/browse_thread/thread/4a6d93d186f9c455?q=apache+error&quot; target=&quot;_blank&quot;&gt;www.servers.unix/browse_thread/thread/4a6d93d186f9c455?q=apache+error&lt;/a&gt;&lt;/a&gt;(20)+unable+to+get+local+issuer#15aef42ad61bc2c8&lt;br /&gt;&lt;br /&gt;*The client certificate is retrieved by pkcs11 library from mozilla&lt;br /&gt;firefox browser&lt;br /&gt;&lt;br /&gt;*My system conf is: Linux 2.6.27.9-159.fc10.i686, Apache/2.2.10,&lt;br /&gt;OpenSSL 0.9.8g&lt;br /&gt;&lt;br /&gt;*httpd.conf:&lt;br /&gt;&amp;lt;VirtualHost 10.53.8.18:443&amp;gt;&lt;br /&gt;    SSLEngine on&lt;br /&gt;    SSLProtocol all -SSLv2&lt;br /&gt;    SSLCipherSuite HIGH&lt;br /&gt;    SSLCertificateFile /etc/httpd/conf/ssl.crt/myTest.crt&lt;br /&gt;    SSLCertificateKeyFile /etc/httpd/conf/ssl.key/myTest.key&lt;br /&gt;&lt;br /&gt;    SSLVerifyClient optional&lt;br /&gt;    SSLVerifyDepth 4&lt;br /&gt;    SSLCACertificatePath /etc/httpd/conf/ssl.crt/&lt;br /&gt;    SSLOptions +StdEnvVars&lt;br /&gt;    SSLOptions +ExportCertData&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;&lt;br /&gt;Relevant Log:&lt;br /&gt;[Tue Feb 03 13:11:56 2009] [debug] ssl_engine_kernel.c(1190):&lt;br /&gt;Certificate Verification: depth: 2, subject: /CN=Cart\\xC3\\xA3o de&lt;br /&gt;Cidad\\xC3\\xA3o 001/OU=ECEstado/O=SCEE - Sistema de Certifica\\xC3\&lt;br /&gt;\xA7\\xC3\\xA3o Electr\\xC3\\xB3nica do Estado/C=PT, issuer: /C=PT/&lt;br /&gt;O=SCEE/CN=ECRaizEstado&lt;br /&gt;[Tue Feb 03 13:11:56 2009] [error] Certificate Verification: Error&lt;br /&gt;(20): unable to get local issuer certificate&lt;br /&gt;[Tue Feb 03 13:11:56 2009] [debug] ssl_engine_kernel.c(1770): OpenSSL:&lt;br /&gt;Write: SSLv3 read client certificate B&lt;br /&gt;[Tue Feb 03 13:11:56 2009] [debug] ssl_engine_kernel.c(1789): OpenSSL:&lt;br /&gt;Exit: error in SSLv3 read client certificate B&lt;br /&gt;[Tue Feb 03 13:11:56 2009] [debug] ssl_engine_kernel.c(1789): OpenSSL:&lt;br /&gt;Exit: error in SSLv3 read client certificate B&lt;br /&gt;[Tue Feb 03 13:11:56 2009] [info] [client 10.53.8.155] SSL library&lt;br /&gt;error 1 in handshake (server jesus_mobile:443)&lt;br /&gt;[Tue Feb 03 13:11:56 2009] [info] SSL Library Error: 336105650 error:&lt;br /&gt;140890B2:SSL routines:SSL3_GET_CLIENT_CERTIFICATE:no certificate&lt;br /&gt;returned&lt;br /&gt;[Tue Feb 03 13:11:56 2009] [info] [client 10.53.8.155] Connection&lt;br /&gt;closed to child 5 with abortive shutdown (server jesus_mobile:443)</description>
      <pubDate>Fri, 06 Feb 2009 09:44:35</pubDate>
      <guid>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=44&amp;forum=1</guid>
    </item>
        <item>
      <title>Re: bitwise snippet in DES algorithm [by Herong]</title>
      <link>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=43&amp;forum=1</link>
      <description>Forum:: bitwise snippet in DES algorithm&lt;br /&gt;
Here is a quick explanation of the setBit() method:&lt;br /&gt;&lt;div class=&quot;xoopsCode&quot;&gt;&lt;code&gt;&lt;pre&gt;   private static void setBit(byte[] data, int pos, int val) {
      int posByte = pos/8; 
      int posBit = pos%8;
      byte oldByte = data[posByte];
      oldByte = (byte) (((0xFF7F&amp;gt;&amp;gt;posBit) &amp; oldByte) &amp; 0x00FF);
      byte newByte = (byte) ((val&amp;lt;&amp;lt;(8-(posBit+1))) | oldByte);
      data[posByte] = newByte;
   }&lt;/pre&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;int posByte = pos/8;  - Calculates the position index of the byte to be modified in the data[] array.&lt;br /&gt;&lt;br /&gt;int posBit = pos%8; - Calculates the position index of the bit to be modified within the byte to be modified.&lt;br /&gt;&lt;br /&gt;byte oldByte = data[posByte]; - Puts old value of the byte to &amp;quot;oldByte&amp;quot;. &lt;br /&gt;&lt;br /&gt;0xFF7F - Represents &amp;quot;11111111 01111111&amp;quot;.&lt;br /&gt;&lt;br /&gt;(0xFF7F&amp;gt;&amp;gt;posBit) - Shifts the &amp;#039;0&amp;#039; to the position of the bit to be modified.&lt;br /&gt;&lt;br /&gt;((0xFF7F&amp;gt;&amp;gt;posBit) &amp; oldByte - Sets the bit to be modified to &amp;#039;0&amp;#039;, and keeps other bits unchanged.&lt;br /&gt;&lt;br /&gt;oldByte = (byte) (((0xFF7F&amp;gt;&amp;gt;posBit) &amp; oldByte) &amp; 0x00FF); - Saves back the modified byte value back to &amp;quot;oldByte&amp;quot;.&lt;br /&gt;&lt;br /&gt;val&amp;lt;&amp;lt;(8-(posBit+1)) - Shifts the new value to the bit to be modified.&lt;br /&gt;&lt;br /&gt;byte newByte = (byte) ((val&amp;lt;&amp;lt;(8-(posBit+1))) | oldByte); - Combines the new value on the bit to be modified with old values on other bits, and saves the entire byte value to &amp;quot;newByte&amp;quot;.&lt;br /&gt;&lt;br /&gt;data[posByte] = newByte; - Stores the final byte value back to the byte array.</description>
      <pubDate>Fri, 09 Jan 2009 00:52:41</pubDate>
      <guid>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=43&amp;forum=1</guid>
    </item>
        <item>
      <title>tree in jsp [by suvransu]</title>
      <link>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=42&amp;forum=1</link>
      <description>Forum:: tree in jsp&lt;br /&gt;
hi all&lt;br /&gt;i need help to create a tree structure on jsp whose node have data from data structure its like&lt;br /&gt;&lt;br /&gt;B&lt;br /&gt;B1.0&lt;br /&gt;B1.1&lt;br /&gt;C&lt;br /&gt;C1.0&lt;br /&gt;C1.1&lt;br /&gt;&lt;br /&gt;where all B,B1.0,B1.1,C,C1.0,C1.1  all are information from the database.&lt;br /&gt;when i click on B it will show me B1.0,B1.1 and when i click on C it will show C1.0,C1.1&lt;br /&gt;&lt;br /&gt;Thanx</description>
      <pubDate>Sat, 29 Nov 2008 15:18:26</pubDate>
      <guid>http://help.herongyang.com/modules/newbb/viewtopic.php?topic_id=42&amp;forum=1</guid>
    </item>
      </channel>
</rss>
