<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.chongtin.com/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="https://wiki.chongtin.com/feed.php">
        <title>Tutorial Site</title>
        <description></description>
        <link>https://wiki.chongtin.com/</link>
        <image rdf:resource="https://wiki.chongtin.com/ttps://wiki.chongtin.com/lib/tpl/bootstrap3/images/favicon.ico" />
       <dc:date>2026-05-06T19:14:29+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.chongtin.com/adding_crt_to_java_cacerts?do=revisions&amp;rev=1620717248"/>
                <rdf:li rdf:resource="https://wiki.chongtin.com/adding_customized_pre-authentication?do=revisions&amp;rev=1539137881"/>
                <rdf:li rdf:resource="https://wiki.chongtin.com/adding_google_adsense?do=revisions&amp;rev=1567734781"/>
                <rdf:li rdf:resource="https://wiki.chongtin.com/address_lookup_service?do=revisions&amp;rev=1537926434"/>
                <rdf:li rdf:resource="https://wiki.chongtin.com/bootstrap_3_datepicker?do=revisions&amp;rev=1537148698"/>
                <rdf:li rdf:resource="https://wiki.chongtin.com/bootstrap_confirmation?do=revisions&amp;rev=1537343023"/>
                <rdf:li rdf:resource="https://wiki.chongtin.com/datatables_sorting?do=revisions&amp;rev=1537928012"/>
                <rdf:li rdf:resource="https://wiki.chongtin.com/insecurity_https_connection?do=revisions&amp;rev=1538529839"/>
                <rdf:li rdf:resource="https://wiki.chongtin.com/level_4_tcp_udp_tunneling?do=revisions&amp;rev=1584636108"/>
                <rdf:li rdf:resource="https://wiki.chongtin.com/select2_js?do=revisions&amp;rev=1537933882"/>
                <rdf:li rdf:resource="https://wiki.chongtin.com/service?do=revisions&amp;rev=1598854502"/>
                <rdf:li rdf:resource="https://wiki.chongtin.com/start?do=revisions&amp;rev=1676272160"/>
                <rdf:li rdf:resource="https://wiki.chongtin.com/ubuntu_full_backup?do=revisions&amp;rev=1539138518"/>
                <rdf:li rdf:resource="https://wiki.chongtin.com/useful_commands?do=revisions&amp;rev=1676272276"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.chongtin.com/ttps://wiki.chongtin.com/lib/tpl/bootstrap3/images/favicon.ico">
        <title>Tutorial Site</title>
        <link>https://wiki.chongtin.com/</link>
        <url>https://wiki.chongtin.com/ttps://wiki.chongtin.com/lib/tpl/bootstrap3/images/favicon.ico</url>
    </image>
    <item rdf:about="https://wiki.chongtin.com/adding_crt_to_java_cacerts?do=revisions&amp;rev=1620717248">
        <dc:format>text/html</dc:format>
        <dc:date>2021-05-11T15:14:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Adding crt to Java cacerts</title>
        <link>https://wiki.chongtin.com/adding_crt_to_java_cacerts?do=revisions&amp;rev=1620717248</link>
        <description>Adding crt to Java cacerts

Adding crt file allows Java to access your self-signed ssl site without doing something like Insecurity HTTPS Connection. 

Assume the location of your Java JDK is in C:\Program Files\Java\jdk1.8.0_131\. The following steps add the crt to Java key store:</description>
    </item>
    <item rdf:about="https://wiki.chongtin.com/adding_customized_pre-authentication?do=revisions&amp;rev=1539137881">
        <dc:format>text/html</dc:format>
        <dc:date>2018-10-10T10:18:01+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>adding_customized_pre-authentication</title>
        <link>https://wiki.chongtin.com/adding_customized_pre-authentication?do=revisions&amp;rev=1539137881</link>
        <description>Moved to Adding Customized Pre-Authentication.</description>
    </item>
    <item rdf:about="https://wiki.chongtin.com/adding_google_adsense?do=revisions&amp;rev=1567734781">
        <dc:format>text/html</dc:format>
        <dc:date>2019-09-06T09:53:01+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Adding Google AdSense in DukoWiki</title>
        <link>https://wiki.chongtin.com/adding_google_adsense?do=revisions&amp;rev=1567734781</link>
        <description>Adding Google AdSense in DukoWiki

To add Google AdSense in your DokuWiki in a easy way, you need to first install the DokuWiki Bootstrap3 Template, and then adding HTML Hooks with your AdSense codes.

Install Bootstrap3 Template

Bootstrap3 Template can be easily install in the DokuWiki Admin page.</description>
    </item>
    <item rdf:about="https://wiki.chongtin.com/address_lookup_service?do=revisions&amp;rev=1537926434">
        <dc:format>text/html</dc:format>
        <dc:date>2018-09-26T09:47:14+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Address Lookup Service</title>
        <link>https://wiki.chongtin.com/address_lookup_service?do=revisions&amp;rev=1537926434</link>
        <description>Address Lookup Service

The Hong Kong Government Address Lookup Service take a HTTP get request, and return the look up result in the default XML format, or JSON format. The addresses information for this API is supposed to be updated every month.

Basic Request and Result</description>
    </item>
    <item rdf:about="https://wiki.chongtin.com/bootstrap_3_datepicker?do=revisions&amp;rev=1537148698">
        <dc:format>text/html</dc:format>
        <dc:date>2018-09-17T09:44:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Bootstrap 3 DateTimepicker</title>
        <link>https://wiki.chongtin.com/bootstrap_3_datepicker?do=revisions&amp;rev=1537148698</link>
        <description>Bootstrap 3 DateTimepicker

This page show you how to user the Bootstrap 3 DateTimepicker by &lt;https://eonasdan.github.io/bootstrap-datetimepicker/&gt;.

Installing

Bootstrap 3 DateTimePicker can be download on their site: &lt;https://eonasdan.github.io/bootstrap-datetimepicker/Installing/&gt;. Note that in order to install it manually, you need to first include Jquery &lt;http://jquery.com/&gt; and MomentJs</description>
    </item>
    <item rdf:about="https://wiki.chongtin.com/bootstrap_confirmation?do=revisions&amp;rev=1537343023">
        <dc:format>text/html</dc:format>
        <dc:date>2018-09-19T15:43:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Bootstrap Confirmation</title>
        <link>https://wiki.chongtin.com/bootstrap_confirmation?do=revisions&amp;rev=1537343023</link>
        <description>Bootstrap Confirmation

Bootstrap confirmation &lt;http://bootstrap-confirmation.js.org/&gt; is a JavaScript library that pop up a small confirmation box on something clicked. It requires jQuery, and Bootstrap 3 (or Popper.js + Bootstrap 4) installed.

My Typical Use

In Grails GSP. Assume we have a controller in Grails that has a function</description>
    </item>
    <item rdf:about="https://wiki.chongtin.com/datatables_sorting?do=revisions&amp;rev=1537928012">
        <dc:format>text/html</dc:format>
        <dc:date>2018-09-26T10:13:32+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>DataTables Sorting</title>
        <link>https://wiki.chongtin.com/datatables_sorting?do=revisions&amp;rev=1537928012</link>
        <description>DataTables Sorting

There are two options that control the sorting, and they are bsort and order. Note that the index of columns of the DataTables is start with 0. I.e. The index of the first column is 0.

No Sorting

Adding bSort: false in option. Example:</description>
    </item>
    <item rdf:about="https://wiki.chongtin.com/insecurity_https_connection?do=revisions&amp;rev=1538529839">
        <dc:format>text/html</dc:format>
        <dc:date>2018-10-03T09:23:59+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Insecurity HTTPS Connection</title>
        <link>https://wiki.chongtin.com/insecurity_https_connection?do=revisions&amp;rev=1538529839</link>
        <description>Insecurity HTTPS Connection

The basic idea is to initial the SSLContext with a TrustManager that would never throw exception.

:!::!::!: This method is not secure, and can be attacked by Man-in-the-middle attack. THIS METHOD SHOULD NEVER USE IN PRODUCTION.</description>
    </item>
    <item rdf:about="https://wiki.chongtin.com/level_4_tcp_udp_tunneling?do=revisions&amp;rev=1584636108">
        <dc:format>text/html</dc:format>
        <dc:date>2020-03-20T00:41:48+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>level_4_tcp_udp_tunneling</title>
        <link>https://wiki.chongtin.com/level_4_tcp_udp_tunneling?do=revisions&amp;rev=1584636108</link>
        <description>First make sure you have done the following in the setting:


net.ipv4.ip_forward=1


Assume we want to listen to port 12345, and forward it to internal ip 192.168.1.100 with port 12345:


iptables -t nat -A PREROUTING -p tcp --dport 12345 -j DNAT --to-destination 192.168.1.100:12345
iptables -t nat -A POSTROUTING -j MASQUERADE</description>
    </item>
    <item rdf:about="https://wiki.chongtin.com/select2_js?do=revisions&amp;rev=1537933882">
        <dc:format>text/html</dc:format>
        <dc:date>2018-09-26T11:51:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Select2 JS</title>
        <link>https://wiki.chongtin.com/select2_js?do=revisions&amp;rev=1537933882</link>
        <description>Select2 JS

Select2 is a JavaScript library. It is a jQuery replacement for select boxes. It has two main files, and they are select2.css and select2.js

Manual Install

Although this is not suggested by the Select2 official site, manual install might something be usual.</description>
    </item>
    <item rdf:about="https://wiki.chongtin.com/service?do=revisions&amp;rev=1598854502">
        <dc:format>text/html</dc:format>
        <dc:date>2020-08-31T14:15:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Service</title>
        <link>https://wiki.chongtin.com/service?do=revisions&amp;rev=1598854502</link>
        <description>Service

Grails service mainly handle the business logic passed from the controller, and database access. By adding a @Transcational annotation, it will be wrap all methods within that service in a transaction. In case of any exception, it will roll-back automatically so that the database will not be modified.  The controller class must located at /grails-app/services/ directory.</description>
    </item>
    <item rdf:about="https://wiki.chongtin.com/start?do=revisions&amp;rev=1676272160">
        <dc:format>text/html</dc:format>
        <dc:date>2023-02-13T15:09:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Programming</title>
        <link>https://wiki.chongtin.com/start?do=revisions&amp;rev=1676272160</link>
        <description>Why creating this site? Mostly for myself because I forget stuff all the time, and computer science is just too much stuff need to be remembered. I think it would be good to have a place to write down some notes in case I need to do something again and forgot. Feel free to look around, and see if the ads above and below has the content you are interested in (Well, you know</description>
    </item>
    <item rdf:about="https://wiki.chongtin.com/ubuntu_full_backup?do=revisions&amp;rev=1539138518">
        <dc:format>text/html</dc:format>
        <dc:date>2018-10-10T10:28:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ubuntu_full_backup</title>
        <link>https://wiki.chongtin.com/ubuntu_full_backup?do=revisions&amp;rev=1539138518</link>
        <description>Moved to Ubuntu Full Backup</description>
    </item>
    <item rdf:about="https://wiki.chongtin.com/useful_commands?do=revisions&amp;rev=1676272276">
        <dc:format>text/html</dc:format>
        <dc:date>2023-02-13T15:11:16+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>useful_commands</title>
        <link>https://wiki.chongtin.com/useful_commands?do=revisions&amp;rev=1676272276</link>
        <description>to be written...</description>
    </item>
</rdf:RDF>
