<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by WongGei</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Wed, 10 Jun 2026 22:36:59 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Newbie, junior, senior programmer</title>
            <link>http://forum.lowyat.net/topic/5357819</link>
            <description>&lt;a href='https://pictr.com/image/E1SUDZ' target='_blank'&gt;&lt;img src='https://pictr.com/images/2023/02/20/E1SUDZ.md.jpg' border='0' alt='user posted image' /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Requirement,&lt;br /&gt;&lt;br /&gt;Create a simple POS system that take in customer order and calculates the total amount of the order.&lt;br /&gt;&lt;br /&gt;This seems like a simple question that suits 1st assignment of the programming language class.&lt;br /&gt;&lt;br /&gt;Let see how the &lt;b&gt;N&lt;/b&gt;ewbie, &lt;b&gt;J&lt;/b&gt;unior Programmer, &lt;b&gt;S&lt;/b&gt;enior Programmers&amp;#39; work.&lt;br /&gt;&lt;br /&gt;And discuss why the program classified as such (N,J,S)</description>
            <author>WongGei</author>
            <category>Codemasters</category>
            <pubDate>Mon, 20 Feb 2023 12:29:39 +0800</pubDate>
        </item>
        <item>
            <title>Wireguard</title>
            <link>http://forum.lowyat.net/topic/5273166</link>
            <description>Anyone familiar with VPN using Wiregaurd?&lt;br /&gt;&lt;br /&gt;I&amp;#39;m trying out this opensource VPN to build a virtual private network of my own.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;a href='https://pictr.com/image/BKjeIP' target='_blank'&gt;&lt;img src='https://pictr.com/images/2022/05/19/BKjeIP.md.png' border='0' alt='user posted image' /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Manage to let pc102 (192.168.226.102) and pc158 (192.168.227.158) talk to each other via ping.&lt;br /&gt;&lt;br /&gt;&lt;a href='https://pictr.com/image/BKjXvf' target='_blank'&gt;&lt;img src='https://pictr.com/images/2022/05/19/BKjXvf.png' border='0' alt='user posted image' /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The problem annoying me is that pc102 is unable to ping the external address of gw226 (10.10.0.2) , but able to ping gw227 (10.10.0.3).&lt;br /&gt;Same apply to pc158, unable to ping gw227 (10.10.0.3) but can ping gw226 (10.10.0.2).&lt;br /&gt;&lt;br /&gt;Any comment?</description>
            <author>WongGei</author>
            <category>Linux &amp;amp; Open Source Software</category>
            <pubDate>Thu, 19 May 2022 18:43:37 +0800</pubDate>
        </item>
        <item>
            <title>10.235.17.206%200</title>
            <link>http://forum.lowyat.net/topic/4970495</link>
            <description>Hi all.&lt;br /&gt;&lt;br /&gt;As refer to the title, I received a list of IPv4 addresses and there are some extra things (%200) at the back.&lt;br /&gt;Try to google it but no luck.&lt;br /&gt;May I know what is the %200 after the IP?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;192.168.1.101%enp0s3:68&lt;br /&gt;&lt;br /&gt;I know &lt;br /&gt;192.168.1.101 is the IPv4 address.&lt;br /&gt;:68 is the port&lt;br /&gt;But what is %enp0s3 (&amp;lt;-after percentage, the enp0s3 is the network device)</description>
            <author>WongGei</author>
            <category>Networks and Broadband</category>
            <pubDate>Sat, 30 May 2020 15:49:22 +0800</pubDate>
        </item>
        <item>
            <title>Linux traffic control</title>
            <link>http://forum.lowyat.net/topic/4131842</link>
            <description>Hi, I am trying to emulate a network traffic environment using linux tc command.&lt;br /&gt;&lt;br /&gt;Testing scenario:&lt;br /&gt;&lt;br /&gt;3 network with different bandwidth and latency between them.&lt;br /&gt;&lt;br /&gt;A 192.168.100.xxx&lt;br /&gt;B 192.168.101.xxx&lt;br /&gt;C 192.168.102.xxx&lt;br /&gt;&lt;br /&gt;A - B,  max bandwidth = 100M, latency 10ms &lt;br /&gt;A - C,  max bandwidth = 1M, latency 300ms&lt;br /&gt;B - C, max bandwidth = 10M, latency 100ms&lt;br /&gt;&lt;br /&gt;I use tc-htb to do traffic control&lt;br /&gt;&lt;br /&gt;tc qdisc del root dev eth1 &lt;br /&gt;&lt;br /&gt;tc qdisc add dev eth1 root handle 1: htb default 1&lt;br /&gt;&lt;br /&gt;tc class add dev eth1 parent 1: classid 1:1 htb rate 1000mbps burst 15k&lt;br /&gt;tc class add dev eth1 parent 1:1 classid 1:10 htb rate 100mbit ceil 100mbit burst 15k&lt;br /&gt;tc class add dev eth1 parent 1:1 classid 1:20 htb rate 10mbit ceil 10mbit burst 15k&lt;br /&gt;tc class add dev eth1 parent 1:1 classid 1:30 htb rate 1mbit ceil 1mbit burst 15k&lt;br /&gt;&lt;br /&gt;tc qdisc add dev eth1 parent 1:10 handle 10: sfq perturb 10&lt;br /&gt;tc qdisc add dev eth1 parent 1:20 handle 20: sfq perturb 10&lt;br /&gt;tc qdisc add dev eth1 parent 1:30 handle 30: sfq perturb 10&lt;br /&gt;&lt;br /&gt;tc filter add dev eth1 parent 1: protocol ip prio 2 u32 match ip src 192.168.100.0/24 flowid 1:10&lt;br /&gt;tc filter add dev eth1 parent 1: protocol ip prio 2 u32 match ip src 192.168.101.0/24 flowid 1:20&lt;br /&gt;tc filter add dev eth1 parent 1: protocol ip prio 2 u32 match ip src 192.168.102.0/24 flowid 1:30&lt;br /&gt;&lt;br /&gt;I manage to control the bandwidth.&lt;br /&gt;May I know how to add in the control of latency?&lt;br /&gt;&lt;br /&gt;</description>
            <author>WongGei</author>
            <category>Linux &amp;amp; Open Source Software</category>
            <pubDate>Wed, 30 Nov 2016 17:06:03 +0800</pubDate>
        </item>
        <item>
            <title>C++11 default parameter</title>
            <link>http://forum.lowyat.net/topic/2947427</link>
            <description>Hi All&lt;br /&gt;&lt;br /&gt;Playing with the new C++11 Lambda function.&lt;br /&gt;&lt;br /&gt;Would like to create a Container class that will arrange() itself.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;class Cont c;&lt;br /&gt;&lt;br /&gt;c.arrange&amp;#40;&amp;#41;; //sort ascending, default action&lt;br /&gt;	&lt;br /&gt;c.arrange&amp;#40;&amp;#91;&amp;#93;&amp;#40;int l,int r&amp;#41;{return l &amp;#62; r;}&amp;#41;; //sort descending, using Lambda function&lt;br /&gt;	&lt;br /&gt;c.arrange&amp;#40;greater&amp;#60;int&amp;#62;&amp;#40;&amp;#41;&amp;#41;; //sort descending using std&amp;#58;&amp;#58;binary_functions&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Anyone know how to declare the Cont class for arrange()?</description>
            <author>WongGei</author>
            <category>Codemasters</category>
            <pubDate>Wed, 04 Sep 2013 13:56:41 +0800</pubDate>
        </item>
        <item>
            <title>C++ and STL</title>
            <link>http://forum.lowyat.net/topic/2083922</link>
            <description>Just wonder which one is more familiar to you.</description>
            <author>WongGei</author>
            <category>Codemasters</category>
            <pubDate>Tue, 25 Oct 2011 22:28:12 +0800</pubDate>
        </item>
        <item>
            <title>C/C++ private lesson</title>
            <link>http://forum.lowyat.net/topic/2058107</link>
            <description>Private lesson offer to those who are at Klang Valley. &lt;br /&gt;&lt;br /&gt;PM me or mail to wonggei@gmail.com</description>
            <author>WongGei</author>
            <category>Codemasters</category>
            <pubDate>Tue, 04 Oct 2011 21:49:28 +0800</pubDate>
        </item>
        <item>
            <title>Interesting C code</title>
            <link>http://forum.lowyat.net/topic/586569</link>
            <description>Try this simple code and see the result.&lt;br /&gt;&lt;br /&gt;Why?&lt;br /&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int main ( int argc , char *argv[] )&lt;br /&gt;{&lt;br /&gt; int i = 0;&lt;br /&gt;&lt;br /&gt; printf ( &amp;quot;%d&amp;quot; , i++ );&lt;br /&gt; printf ( &amp;quot;%d&amp;quot; , i++ );&lt;br /&gt;&lt;br /&gt; i=0;&lt;br /&gt;&lt;br /&gt; printf ( &amp;quot;%d&amp;quot; , ++i );&lt;br /&gt; printf ( &amp;quot;%d&amp;quot; , ++i );&lt;br /&gt;&lt;br /&gt; i=0;&lt;br /&gt;&lt;br /&gt; printf (&amp;quot;%d%d&amp;quot;, i++ , i++ );&lt;br /&gt;&lt;br /&gt; i=0;&lt;br /&gt;&lt;br /&gt; printf (&amp;quot;%d%d&amp;quot;, ++i , ++i );&lt;br /&gt;&lt;br /&gt; return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Hard to explain even for U professor.  &lt;!--emo&amp;:hyper:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/rclxm9.gif' border='0' style='vertical-align:middle' alt='rclxm9.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>WongGei</author>
            <category>Codemasters</category>
            <pubDate>Fri, 07 Dec 2007 16:20:26 +0800</pubDate>
        </item>
    </channel>
</rss>
