<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by blackangel</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Fri, 19 Jun 2026 01:37:02 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>[WTS] Apple Macbook Pro 13 Retina 256GB 2014</title>
            <link>http://forum.lowyat.net/topic/3669143</link>
            <description>&lt;b&gt;Item(s): Apple Macbook Pro 13 Retina SSD 256GB RAM 8GB Late 2014 Model &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Package includes: Original package includes magsafe power adapter, screen wipe, manual, and box.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Price:RM4000&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Warranty:None but you may test it as long as you like when COD.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Dealing method:COD&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Location of seller:Penang&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Contact method/details:PM (serious buyer can ask for phone no. in PM) &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Age of item: Bought in August 2014.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;---&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Item(s) conditions: 9.9/10.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Picture:To be uploaded soon&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Reason for sale:Want to upgrade to 15 inch version. &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I upgraded the RAM to 8GB at purchase and selected the 256GB SSD version. Current 13 retina macbook line up with 256SSD is selling for at least RM5140.</description>
            <author>blackangel</author>
            <category>Notebooks Garage Sales</category>
            <pubDate>Mon, 03 Aug 2015 22:43:54 +0800</pubDate>
        </item>
        <item>
            <title>Sync Desktop App with Android App</title>
            <link>http://forum.lowyat.net/topic/2598239</link>
            <description>I have a desktop application running in .NET which communicates with the database server.&lt;br /&gt;&lt;br /&gt;I am trying to write an app to capture some data randomly. Then I would like to communicate my android app with the desktop application to transfer the data.&lt;br /&gt;&lt;br /&gt;Connectivity: USB&lt;br /&gt;&lt;br /&gt;Problem: I am stuck at the communication method between desktop app and android app. I need to be able to retrieve data from android app (stored in SQLITE) using my desktop application (written in .NET). Ideally, I would like to extend the desktop application in .NET. Worst case, I can live with other languages preferably Java/C++.&lt;br /&gt;&lt;br /&gt;Any recommendations would be appreciated&amp;#33;&lt;br /&gt;&lt;br /&gt;Thank you.</description>
            <author>blackangel</author>
            <category>Codemasters</category>
            <pubDate>Wed, 21 Nov 2012 16:06:35 +0800</pubDate>
        </item>
        <item>
            <title>WEB PAGE REFRESH</title>
            <link>http://forum.lowyat.net/topic/2525316</link>
            <description>Hi Guys, &lt;br /&gt;&lt;br /&gt;I am having a situation. newbie in web development.&lt;br /&gt;&lt;br /&gt;I have a form.  Everything is done in PHP only&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;include &amp;#40;&amp;#39;header&amp;#39;&amp;#41;;&lt;br /&gt;&amp;#036;error_msg = array&amp;#40;&amp;#41;;&lt;br /&gt;&lt;br /&gt;if &amp;#40;&amp;#036;_SERVER&amp;#91;&amp;#39;REQUEST_METHOD&amp;#39;&amp;#93; == &amp;#39;POST&amp;#39;&amp;#41;{&lt;br /&gt;check for empty &amp;#036;_POST variables. If true add string to &amp;#036;error_msg;&lt;br /&gt;proceed with business logic&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;#60;div .....&amp;#62;&lt;br /&gt;&amp;#60;?php&lt;br /&gt;if&amp;#40;&amp;#33;empty&amp;#40;&amp;#036;error_msg&amp;#41;&amp;#41;&lt;br /&gt;display error messages.&lt;br /&gt;&lt;br /&gt;&amp;#60;form method=&amp;#34;post&amp;#34;&amp;#62;&lt;br /&gt;&lt;br /&gt;&amp;#60;/form&amp;#62;&lt;br /&gt;&lt;br /&gt;?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#60;/div&amp;#62;&lt;br /&gt;&lt;br /&gt;include&amp;#40;&amp;#39;footer&amp;#39;&amp;#41;;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Ok, if I submit form with empty fields, I get error messages display which is what i want. Somehow, I want to clear the error messages and display the original form page after refreshing.&lt;br /&gt;&lt;br /&gt;Also I am facing a situation when I submitted form with empty fields for first time, on the same page again, if i resubmit with proper fields, I will get error also. This I guess is because the page is still loaded with previous &amp;#036;_POST variables. Any workaround?&lt;br /&gt;&lt;br /&gt;Thank you sifu&amp;#33;</description>
            <author>blackangel</author>
            <category>Codemasters</category>
            <pubDate>Wed, 26 Sep 2012 23:27:18 +0800</pubDate>
        </item>
        <item>
            <title>ECOMMERCE WEBSITE</title>
            <link>http://forum.lowyat.net/topic/2516408</link>
            <description>Hi,&lt;br /&gt;&lt;br /&gt;I am curious how the link below is generated:&lt;br /&gt;&lt;br /&gt;www.somewebsite.com/browse/B008GFRBBW/ref=amb_link_365379862_2?pf_rd_m=ATVPDKIKX0DER&amp;amp;pf_rd_s=center-1&amp;amp;pf_rd_r=0H83SYYAMXZNFMF3KXD6&amp;amp;pf_rd_t=101&amp;amp;pf_rd_p=1398956162&amp;amp;pf_rd_i=507846&lt;br /&gt;&lt;br /&gt;What is the concept behind generating product page that corresponds to how many products you have in your database?&lt;br /&gt;&lt;br /&gt;generating a file and dump it in some folder and then delete it after done viewing?&lt;br /&gt;&lt;br /&gt;or generate a file and store the link in database, then every time the hyperlink is clicked, it refers to link stored in database?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks in advance guys.</description>
            <author>blackangel</author>
            <category>Codemasters</category>
            <pubDate>Thu, 20 Sep 2012 08:56:00 +0800</pubDate>
        </item>
        <item>
            <title>BLOB files to SQL</title>
            <link>http://forum.lowyat.net/topic/2260268</link>
            <description>Hi guys,&lt;br /&gt;C++&lt;br /&gt;&lt;br /&gt;I am trying to convert a few files maybe in .zip format into BLOB then upload to sql. I am a bit lost.&lt;br /&gt;&lt;br /&gt;So I assume:&lt;br /&gt;&lt;br /&gt;1. Convert files to BLOB (no clue, any hints?)&lt;br /&gt;2. Upload to sql.&lt;br /&gt;&lt;br /&gt;Well, i tried converting .mp3 file into binary .bin. So then i opened .mp3 file and .bin file with notepad. The .mp3 file content is pretty normal with bunch of weird characters. The .bin file is blank when opened in notepad.&lt;br /&gt;&lt;br /&gt;But then, these two files have the same size.&lt;br /&gt;&lt;br /&gt;Am I doing it right?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thank you.</description>
            <author>blackangel</author>
            <category>Codemasters</category>
            <pubDate>Sat, 10 Mar 2012 17:06:01 +0800</pubDate>
        </item>
        <item>
            <title>Stacks &amp;amp; Queues</title>
            <link>http://forum.lowyat.net/topic/2225705</link>
            <description>Came across Stack &amp;amp; Queues again. I have been writing codes for simple applications for some time but I have never used any of the Stacks &amp;amp; Queues. I wonder under what kind of conditions, we can implement them?</description>
            <author>blackangel</author>
            <category>Codemasters</category>
            <pubDate>Mon, 13 Feb 2012 22:32:59 +0800</pubDate>
        </item>
        <item>
            <title>Excel Processor in C#</title>
            <link>http://forum.lowyat.net/topic/2185743</link>
            <description>&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;            int sRw = sheetDataGridView.RowCount;&lt;br /&gt;&lt;br /&gt;            for &amp;#40;int l = 0; l &amp;#60; sRw - 1; l++&amp;#41;&lt;br /&gt;            {&lt;br /&gt;                //MessageBox.Show&amp;#40;Convert.ToString&amp;#40;sRw&amp;#41;&amp;#41;;&lt;br /&gt;                //MessageBox.Show&amp;#40;Convert.ToString&amp;#40;l&amp;#41;&amp;#41;;&lt;br /&gt;                IsEmpty = true;&lt;br /&gt;&lt;br /&gt;                //objCmd.CommandText = &amp;#34;Insert into &amp;#91;&amp;#34;+workSheetNames&amp;#91;sheetCount&amp;#93;+&amp;#34;&amp;#93; &amp;#40;A1,A2,F3,F4,F5&amp;#41; Values &amp;#40;&amp;#39;1&amp;#39;,&amp;#39;2&amp;#39;,&amp;#39;3&amp;#39;,&amp;#39;4&amp;#39;,&amp;#39;5&amp;#39;&amp;#41;&amp;#34;;&lt;br /&gt;                //objCmd.ExecuteNonQuery&amp;#40;&amp;#41;;&lt;br /&gt;&lt;br /&gt;                for &amp;#40;int g = 0; g &amp;#60; sheetDataGridView.ColumnCount; g++&amp;#41;&lt;br /&gt;                {&lt;br /&gt;                    if &amp;#40;sheetDataGridView.Rows&amp;#91;l&amp;#93;.Cells&amp;#91;g&amp;#93;.Value.ToString&amp;#40;&amp;#41; &amp;#33;= &amp;#34;&amp;#34; || sheetDataGridView.Rows&amp;#91;l&amp;#93;.Cells&amp;#91;g&amp;#93;.Value &amp;#33;= DBNull.Value&amp;#41;&lt;br /&gt;                    {&lt;br /&gt;                        //MessageBox.Show&amp;#40;&amp;#34;false&amp;#34;&amp;#41;;&lt;br /&gt;                        IsEmpty = false;&lt;br /&gt;                        break;  &lt;br /&gt;                    }&lt;br /&gt;                }&lt;br /&gt;                if &amp;#40;IsEmpty&amp;#41;&lt;br /&gt;                {&lt;br /&gt;                    MessageBox.Show&amp;#40;&amp;#34;true&amp;#34;&amp;#41;;&lt;br /&gt;                    sheetDataGridView.Rows.RemoveAt&amp;#40;l&amp;#41;;&lt;br /&gt;                    myRow.Table.GetChanges&amp;#40;&amp;#41;;&lt;br /&gt;                    myRow.AcceptChanges&amp;#40;&amp;#41;;  &lt;br /&gt;                }&lt;br /&gt;                sRw = sheetDataGridView.RowCount;&lt;br /&gt;                MessageBox.Show&amp;#40;Convert.ToString&amp;#40;sRw&amp;#41;&amp;#41;;&lt;br /&gt;            }&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Objective: Try to remove empty row&lt;br /&gt;Issue: Successfully removing 1 empty row each at a time. However, when there are more than 2 empty rows, bug occurs where they will still be some empty rows not taken care of.&lt;br /&gt;&lt;br /&gt;Extra questions: When I change the DBNull.Value to null, empty rows will not be deleted. I am using the OleDB method to read the Excel files. It seems like empty row detection is totally dependent on this &lt;b&gt;&lt;i&gt;sheetDataGridView.Rows[l].Cells[g].Value &amp;#33;= DBNull.Value&lt;/i&gt;&lt;/b&gt; rather than &lt;b&gt;&lt;i&gt;&amp;#33;=&amp;quot;&amp;quot;&lt;/i&gt;&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;I have also tried if(sheetDataGridView.Current &amp;#33;= null) and it bypasses the empty rows after removing the first few ones.&lt;br /&gt;&lt;br /&gt;Please ignore the Comment Out statements.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Any idea, sifu?&lt;br /&gt;&lt;br /&gt;[addedon]January 11, 2012, 3:22 pm[/addedon]ok guys, i think i just found the solution. Because after removing the row, the next row becomes current row..so even when the next row is null, because after removal of previous null row, the non-null row after preceding null row replaces the null row and is treated as non-null.&lt;br /&gt;&lt;br /&gt;hope its not too confusing.&lt;br /&gt;&lt;br /&gt;I added l--; in the if(IsEmpty) condition. Then it works perfectly&amp;#33;</description>
            <author>blackangel</author>
            <category>Codemasters</category>
            <pubDate>Wed, 11 Jan 2012 13:41:44 +0800</pubDate>
        </item>
        <item>
            <title>Lintramax</title>
            <link>http://forum.lowyat.net/topic/2168567</link>
            <description>This company is currently hiring Software Engineer.&lt;br /&gt;&lt;br /&gt;I wonder what kind of company is this. Does anybody have a clue? Do they get outsource programmer for their project and sell to Clients previously?&lt;br /&gt;&lt;br /&gt;Working environment, compensation, and benefits?</description>
            <author>blackangel</author>
            <category>Jobs &amp;amp; Careers</category>
            <pubDate>Thu, 29 Dec 2011 10:55:54 +0800</pubDate>
        </item>
        <item>
            <title>Environment at Nettium</title>
            <link>http://forum.lowyat.net/topic/2100946</link>
            <description>Hi,&lt;br /&gt;&lt;br /&gt;Wonder if anybody is working/has worked at Nettium before? &lt;br /&gt;&lt;br /&gt;Whats the environment like? (political/challenging/problematic..)&lt;br /&gt;Compensation &amp;amp; Benefits?(good in short and long run)&lt;br /&gt;Corporate ladder? (climb climb climb)&lt;br /&gt;Company size?(big enough)&lt;br /&gt;Exposure to industry players and meeting people?&lt;br /&gt;&lt;br /&gt;Thank you&amp;#33;</description>
            <author>blackangel</author>
            <category>Jobs &amp;amp; Careers</category>
            <pubDate>Tue, 08 Nov 2011 20:07:43 +0800</pubDate>
        </item>
        <item>
            <title>C++ Logic with Timer</title>
            <link>http://forum.lowyat.net/topic/2065258</link>
            <description>Hey guys,&lt;br /&gt;&lt;br /&gt;I am trying to do some logic algo with Timer. Here is it:&lt;br /&gt;&lt;br /&gt;t1 &amp;lt; t2 &amp;lt; t3 &amp;lt; t4&lt;br /&gt;bool status&lt;br /&gt;&lt;br /&gt;So I am using GetCurrentTime() to sync with PC time then compare with t1,t2,t3,t4&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;&lt;br /&gt;&lt;br /&gt;Status = False&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;OnTimer&amp;#40;nIDEvent&amp;#41;&lt;br /&gt;{&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;if &amp;#40; &amp;#40;&amp;#40;CurTime &amp;#62; t1 &amp;amp;&amp;amp; CurTime &amp;#60; t2&amp;#41; &amp;amp;&amp;amp; Status == FALSE&amp;#41; || &amp;#40;&amp;#40;CurTime &amp;#62;t3 &amp;amp;&amp;amp; CurTime &amp;#60; t4&amp;#41; &amp;amp;&amp;amp; Status == FALSE&amp;#41; &amp;#41;&lt;br /&gt;DlgButton = Disable&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Actually what I am trying to do is Disable button#1 when it meets the IF statements, then button#2 is enable to do something so that I can re-enable button#1 again even though the time is still within the IF statements conditions.&lt;br /&gt;But due to OnTimer setting that keeps checking every 1 second, I can only succeed for one time and it would not go the way I want for 2nd time onwards.&lt;br /&gt;&lt;br /&gt;Any suggestions? Trying to play with logic..</description>
            <author>blackangel</author>
            <category>Codemasters</category>
            <pubDate>Mon, 10 Oct 2011 20:30:13 +0800</pubDate>
        </item>
        <item>
            <title>Decimal places</title>
            <link>http://forum.lowyat.net/topic/2061444</link>
            <description>Need help setting the precision of a double var.&lt;br /&gt;&lt;br /&gt;I have this double 0.000000 var and i want it to be 0.0000, 4 precision point.&lt;br /&gt;&lt;br /&gt;but i dont want it with .Format() because I want to use it as comparison with operators &amp;lt;=, &amp;gt;=&lt;br /&gt;&lt;br /&gt;Any idea, sifu?&lt;br /&gt;&lt;br /&gt;Thank you&amp;#33;</description>
            <author>blackangel</author>
            <category>Codemasters</category>
            <pubDate>Fri, 07 Oct 2011 11:45:37 +0800</pubDate>
        </item>
        <item>
            <title>BYTE to CString</title>
            <link>http://forum.lowyat.net/topic/2057089</link>
            <description>&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;	CSerialComm read;&lt;br /&gt;	read.OpenPort&amp;#40;PortName&amp;#41;;&lt;br /&gt;	read.ConfigurePort&amp;#40;BaudRate, ByteSize, Parity, StopBits&amp;#41;;&lt;br /&gt;	dataTransferred = read.ReadByte&amp;#40;ch&amp;#41;;&lt;br /&gt;	&lt;br /&gt;	for &amp;#40;int i = 0; i &amp;#60;= sizeof&amp;#40;ch&amp;#41;&amp;#59; i++&amp;#41;&lt;br /&gt;	{&lt;br /&gt; &amp;nbsp;//no idea&lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//ch is declared as unsigned char ch, dataTransferred is declared as CString. Both are DECLARED in the class&amp;#39;s .h file.&lt;br /&gt;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Currently, I am trying to convert data received from a RS232 connected hardware.&lt;br /&gt;&lt;br /&gt;There is a read function that will receive the data:&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;BOOL CSerialComm&amp;#58;&amp;#58;ReadByte&amp;#40;BYTE &amp;amp;resp&amp;#41;&lt;br /&gt;{&lt;br /&gt;	BYTE rx;&lt;br /&gt;	resp = 0;&lt;br /&gt;	DWORD dwBytesTransferred = 0;&lt;br /&gt;	if&amp;#40;ReadFile&amp;#40;hComm, &amp;amp;rx, 1, &amp;amp;dwBytesTransferred, 0&amp;#41;&amp;#41;&lt;br /&gt;	{&lt;br /&gt; &amp;nbsp;if &amp;#40;dwBytesTransferred == 1&amp;#41;&lt;br /&gt; &amp;nbsp;{&lt;br /&gt; &amp;nbsp;	resp = rx;&lt;br /&gt; &amp;nbsp;	return true;&lt;br /&gt; &amp;nbsp;}&lt;br /&gt;	}&lt;br /&gt;	return false;&lt;br /&gt;}&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Opening the COM port is successful. Now I am stuck at Reading the data/converting the data BYTE to CString.&lt;br /&gt;&lt;br /&gt;Sifu, please advise&amp;#33;&lt;br /&gt;</description>
            <author>blackangel</author>
            <category>Codemasters</category>
            <pubDate>Tue, 04 Oct 2011 10:08:19 +0800</pubDate>
        </item>
        <item>
            <title>[C/C++]Serial Programming</title>
            <link>http://forum.lowyat.net/topic/2053543</link>
            <description>Hi Guys,&lt;br /&gt;&lt;br /&gt;I am having a problem to Close the port once opened hence I always get the GetCommState() error when I try to open the COM after CLICKING THE CLOSE button which CALLS the ClosePort() function.&lt;br /&gt;&lt;br /&gt;I have a CSerialComm class which manages all the COMM activities and configurations. ClosePort() consist of the most critical - CloseHandle(m_hComm) API.&lt;br /&gt;&lt;br /&gt;I have a dialog class which will activate the COMM to read, closes it manually. When I click that Close button, it MIGHT(not sure) close the COM. Tested it with a MessageBox in ClosePort() of CSerialComm. The MessageBox proves that it does call up the ClosePort() function. But when I try to activate the COMM again, it shows GetCommState() error. Don&amp;#39;t know what went wrong because if the COM was not closed, first condition will fail and show &amp;quot;COM Port is not available&amp;quot;, GetCommState() is 2nd condition to check.&lt;br /&gt;&lt;br /&gt;However, if I put CloseHandle(m_hComm) in ~CSerialComm, destructor of CSerialComm, then no problem opening and closing the COM in a repetitive manner.&lt;br /&gt;&lt;br /&gt;I know I might miss out some info here. Please ask for more if you need it.&lt;br /&gt;&lt;br /&gt;Also, I am trying to read the data from the Device using RS232. I want it in CString, so the usual way would be to convert BYTE to CString. Correct me if I am wrong.&lt;br /&gt;&lt;br /&gt;Thank you.&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;&lt;br /&gt;&lt;br /&gt;&amp;#58;&amp;#58;OpenPort&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt;HANDLE m_hComm = CreateFile&amp;#40;,,,,&amp;#41;;&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;GetCommState&amp;#40;&amp;#41; condition check&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;SetCommState&amp;#40;&amp;#41; condition check&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;#58;&amp;#58;SetCommPortState&amp;#40;,,,,&amp;#41;&lt;br /&gt;{&lt;br /&gt;.&lt;br /&gt;CommTimeouts..&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;#58;&amp;#58;Read&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;#58;&amp;#58;Write&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;#58;&amp;#58;ClosePort&amp;#40;&amp;#41;&lt;br /&gt;{&lt;br /&gt;CloseHandle&amp;#40;m_hComm&amp;#41;;&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;}&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;</description>
            <author>blackangel</author>
            <category>Codemasters</category>
            <pubDate>Sat, 01 Oct 2011 08:09:31 +0800</pubDate>
        </item>
        <item>
            <title>C++</title>
            <link>http://forum.lowyat.net/topic/2012813</link>
            <description>#include &amp;lt;iostream&amp;gt;&lt;br /&gt;using namespace std;&lt;br /&gt;const int SLEN = 30;&lt;br /&gt;&lt;br /&gt;struct student {&lt;br /&gt;char fullname[SLEN];&lt;br /&gt;char hobby[SLEN];&lt;br /&gt;int ooplevel;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;// getinfo() has two arguments: a pointer to the first element of&lt;br /&gt;// an array of student structures and an int representing the&lt;br /&gt;// number of elements of the array. The function solicits and&lt;br /&gt;// stores data about students. It terminates input upon filling&lt;br /&gt;// the array or upon encountering a blank line for the student&lt;br /&gt;// name. The function returns the actual number of array elements&lt;br /&gt;// filled.&lt;br /&gt;int getinfo(student pa[], int n);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// display1() takes a student structure as an argument&lt;br /&gt;// and displays its contents&lt;br /&gt;void display1(student st);&lt;br /&gt;&lt;br /&gt;// display2() takes the address of student structure as an&lt;br /&gt;// argument and displays the structure’s contents&lt;br /&gt;void display2(const student * ps);&lt;br /&gt;&lt;br /&gt;// display3() takes the address of the first element of an array&lt;br /&gt;// of student structures and the number of array elements as&lt;br /&gt;// arguments and displays the contents of the structures&lt;br /&gt;void display3(const student pa[], int n);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;       cout &amp;lt;&amp;lt; “Enter class size: “;&lt;br /&gt;       int class_size;&lt;br /&gt;       cin &amp;gt;&amp;gt; class_size;&lt;br /&gt;       while (cin.get() &amp;#33;= ‘&amp;#092;n’)&lt;br /&gt;           continue;&lt;br /&gt;        student * ptr_stu = new student[class_size];&lt;br /&gt;        int entered = getinfo(ptr_stu, class_size);&lt;br /&gt;&lt;br /&gt;for (int i = 0; i &amp;lt; entered; i++)&lt;br /&gt;{&lt;br /&gt;        display1(ptr_stu[i]);&lt;br /&gt;        display2(&amp;amp;ptr_stu[i]);&lt;br /&gt;}&lt;br /&gt;        display3(ptr_stu, entered);&lt;br /&gt;        delete [] ptr_stu;&lt;br /&gt;        cout &amp;lt;&amp;lt; “Done&amp;#092;n”;&lt;br /&gt;        return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int getinfo(student pa[], int n)&lt;br /&gt;{&lt;br /&gt;	int i = 0;&lt;br /&gt;	//cout &amp;lt;&amp;lt;&amp;quot;Enter a student&amp;#39;s name: &amp;quot;;&lt;br /&gt;	for (i = 0; i &amp;lt; n; i++)&lt;br /&gt;	{&lt;br /&gt;		cout &amp;lt;&amp;lt;&amp;quot;Name #&amp;quot; &amp;lt;&amp;lt; i+1 &amp;lt;&amp;lt; &amp;quot; &amp;quot;;&lt;br /&gt;		cin &amp;gt;&amp;gt; pa[i].fullname;&lt;br /&gt;		cout &amp;lt;&amp;lt;&amp;quot;Hobby #&amp;quot; &amp;lt;&amp;lt; i+1 &amp;lt;&amp;lt; &amp;quot; &amp;quot;;&lt;br /&gt;		cin &amp;gt;&amp;gt; pa[i].hobby;&lt;br /&gt;		cout &amp;lt;&amp;lt;&amp;quot;ooplevel #&amp;quot; &amp;lt;&amp;lt; i+1 &amp;lt;&amp;lt; &amp;quot; &amp;quot;;&lt;br /&gt;		cin &amp;gt;&amp;gt; pa[i].ooplevel;&lt;br /&gt;		cout &amp;lt;&amp;lt; endl;&lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;	return i;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void display1(student st)&lt;br /&gt;{&lt;br /&gt;	cout &amp;lt;&amp;lt; st.fullname &amp;lt;&amp;lt; endl ;&lt;br /&gt;	cout &amp;lt;&amp;lt; st.hobby &amp;lt;&amp;lt; endl ;&lt;br /&gt;	cout &amp;lt;&amp;lt; st.ooplevel &amp;lt;&amp;lt; endl ;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void display2(const student *ps) //The arrow operator -&amp;gt; is used to access class, structures, and unions members using a pointer.&lt;br /&gt;{&lt;br /&gt;	cout &amp;lt;&amp;lt; ps-&amp;gt;fullname &amp;lt;&amp;lt; endl ;&lt;br /&gt;	cout &amp;lt;&amp;lt; ps-&amp;gt;hobby &amp;lt;&amp;lt; endl ;&lt;br /&gt;	cout &amp;lt;&amp;lt; ps-&amp;gt;ooplevel &amp;lt;&amp;lt; endl ;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void display3(const student pa[], int n)&lt;br /&gt;{&lt;br /&gt;          No idea yet...&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Im trying to do above exercise, just managed to come out with what is shown above currently. No idea on display3() function yet. And still figuring out how to complete getinfo()&lt;br /&gt;Sifu please advice.</description>
            <author>blackangel</author>
            <category>Codemasters</category>
            <pubDate>Fri, 26 Aug 2011 17:39:39 +0800</pubDate>
        </item>
        <item>
            <title>CLOSED C++ Beginner&amp;#39;s Question</title>
            <link>http://forum.lowyat.net/topic/1975952</link>
            <description>#include &amp;lt;iostream&amp;gt;&lt;br /&gt;const int Max = 5;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;using namespace std;&lt;br /&gt;// get data&lt;br /&gt;int golf[Max];&lt;br /&gt;cout &amp;lt;&amp;lt; “Please enter your golf scores.&amp;#092;n”;&lt;br /&gt;cout &amp;lt;&amp;lt; “You must enter “ &amp;lt;&amp;lt; Max &amp;lt;&amp;lt; “ rounds.&amp;#092;n”;&lt;br /&gt;int i;&lt;br /&gt;    for (i = 0; i &amp;lt; Max; i++)&lt;br /&gt;    {&lt;br /&gt;        cout &amp;lt;&amp;lt; “round #” &amp;lt;&amp;lt; i+1 &amp;lt;&amp;lt; “: “;&lt;br /&gt;            while (&amp;#33;(cin &amp;gt;&amp;gt; golf[i])) {&lt;br /&gt;             cin.clear(); // reset input&lt;br /&gt;                 while (cin.get() &amp;#33;= ‘&amp;#092;n’)&lt;br /&gt;                 continue; // get rid of bad input&lt;br /&gt;                  cout &amp;lt;&amp;lt; “Please enter a number: “;&lt;br /&gt;              }&lt;br /&gt;     }&lt;br /&gt;// calculate average&lt;br /&gt;double total = 0.0;&lt;br /&gt;      for (i = 0; i &amp;lt; Max; i++)&lt;br /&gt;         total += golf[i];&lt;br /&gt;// report results&lt;br /&gt;cout &amp;lt;&amp;lt; total / Max &amp;lt;&amp;lt; “ = average score “&lt;br /&gt;&amp;lt;&amp;lt; Max &amp;lt;&amp;lt; “ rounds&amp;#092;n”;&lt;br /&gt;&lt;br /&gt;return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There is something that confuse me. If I enter non-numeric input, it will prompt the line &amp;quot;Please enter a number&amp;quot; asking for input again for that address. I don&amp;#39;t get how this program knows if I entered a non numeric input.</description>
            <author>blackangel</author>
            <category>Codemasters</category>
            <pubDate>Thu, 28 Jul 2011 17:31:50 +0800</pubDate>
        </item>
        <item>
            <title>WTA - Budget PC Speakers</title>
            <link>http://forum.lowyat.net/topic/1859585</link>
            <description>I am looking at some cheap PC speakers for Trance/House/Classical/Soul music. So far I looked at Logitech z623 thats the price range I can afford. &lt;br /&gt;&lt;br /&gt;It would be kind if you guys could suggest a few better options. Quality comes first if price difference is little. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks&amp;#33;</description>
            <author>blackangel</author>
            <category>Audiophiles</category>
            <pubDate>Sun, 01 May 2011 20:41:48 +0800</pubDate>
        </item>
        <item>
            <title>A Girl Who Is Not Interested In Me</title>
            <link>http://forum.lowyat.net/topic/1813181</link>
            <description>People,&lt;br /&gt;&lt;br /&gt;Met this girl somewhere. We barely knew each other and talked for only two times. I started asking her out for casual lunch and phone numbers...bla bla bla. All was rejected except she gave me her MSN.&lt;br /&gt;&lt;br /&gt;So we chat almost every night, most of the time I initiated the talk. Already made another 3 attempts asking her out. Rejected and replied by &amp;quot;It is only a matter of time, time will tell, blablabla&amp;quot;. This situation lasted for 2-3 weeks since i got her MSN. During the chat, she was only friendly, not intimate or anything. She did compliment about the way I made first attempt (if this helps you to diagnose) and laughed at things I said at times.&lt;br /&gt;&lt;br /&gt;I am thinking if I should get over it. Feel that she is playing taichi with me even though she is not interested in me. So even if she wanna test my sincerity or wanna know more about me before going out with me, it ain&amp;#39;t gonna happen by just freaking MSN. So, I think its time to move on. &lt;br /&gt;&lt;br /&gt;Maybe I have some problems with myself which I am still unsure of. But I am a young energetic kid, well paid professional, degree holder..drives a fairly new japanese car considering age of 24. No face problem...180cm, not overweight. Whats wrong? Please point out some issues if you think there is any. Not gonna repeat it for next girl.&lt;br /&gt;&lt;br /&gt;But I think I have a bit problem of being desperate/aggressive and high self esteem (always think i can easily get another girl). This I know and trying to change.&lt;br /&gt;&lt;br /&gt;Thank you&amp;#33;</description>
            <author>blackangel</author>
            <category>Cupid&amp;#39;s Corner</category>
            <pubDate>Tue, 29 Mar 2011 23:08:26 +0800</pubDate>
        </item>
        <item>
            <title>Looking for White Color Laptop</title>
            <link>http://forum.lowyat.net/topic/1802672</link>
            <description>Hi Guys,&lt;br /&gt;&lt;br /&gt;I am looking to buy a multimedia laptop for every day use from chatting, entertainment to some office work. However, I am looking for a white color laptop. So far, I have only seen one from Sony Vaio but I doubt their quality and services. Can anybody recommend any other quality build?&lt;br /&gt;&lt;br /&gt;Thank you&amp;#33;</description>
            <author>blackangel</author>
            <category>Mobile Computing</category>
            <pubDate>Tue, 22 Mar 2011 20:45:51 +0800</pubDate>
        </item>
        <item>
            <title>Desktop</title>
            <link>http://forum.lowyat.net/topic/1642158</link>
            <description>Budget: 2300-2700 for full Desktop Set (speaker so so is ok LOL)&lt;br /&gt;&lt;br /&gt;Use: Programming, 3D Rendering, Gaming( minor), Movie&lt;br /&gt;&lt;br /&gt;Preference: Monitor comes first cause I enjoy looking at nice and 21-24&amp;quot; screens. 2ndly CPU/GPU equally important.  I am also looking for stable mobo and PSU. So far, what I have heard was i5 7 Series, gts 450. Thats all. This is more like a workstation I&amp;#39;d say because I am an engineer.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t mind to top up a little bit more but the constraint is to maximize your opinions. I can&amp;#39;t decide all because I am a stranger in some of the parts like mobo, psu, monitor.&lt;br /&gt;&lt;br /&gt;Thank you guys&amp;#33;</description>
            <author>blackangel</author>
            <category>Price &amp;amp; Dealers Guide</category>
            <pubDate>Wed, 17 Nov 2010 12:36:56 +0800</pubDate>
        </item>
        <item>
            <title>Programming Language</title>
            <link>http://forum.lowyat.net/topic/1628732</link>
            <description>Hi guys, I am a stranger in IT field because my major is engineering and so far I have only used C++...I have come to some confusions in programming.&lt;br /&gt;&lt;br /&gt;Today, I went on to research about the type and popular use of different languages.&lt;br /&gt;&lt;br /&gt;So, VB/C#/C++/Java are all languages. I always see connection between .NET and C# or VB and recently I come across ASP.NET ..&lt;br /&gt;&lt;br /&gt;MY questions are:&lt;br /&gt;&lt;br /&gt;1) So we can all use Visual Studio to develop applications using these languages, right?&lt;br /&gt;2) .NET is for developing web application? HTML and CSS are only for the layout and structure? Combine C#.NET with HTML CSS for a pretty website?&lt;br /&gt;3) PHP does the same thing as ASP.NET?&lt;br /&gt;3) Why are C# and VB always seen with .NET? Whats the difference between .NET and ASP.NET?&lt;br /&gt;4) So by using these languages, we can develop different applications including windows and web app?&lt;br /&gt;5) Why is not C++ used  for .NET? (is this question even right? LOL)&lt;br /&gt;6) Lastly, is there any specific languages for specific application? I see samsung phones have Java based OS. Java for interactions and lovelier UI?&lt;br /&gt;&lt;br /&gt;Actually, I have done some researches regarding these issues but I am still pretty confused here.  &lt;br /&gt;&lt;br /&gt;Thank you guys&amp;#33;</description>
            <author>blackangel</author>
            <category>Codemasters</category>
            <pubDate>Sat, 06 Nov 2010 17:42:26 +0800</pubDate>
        </item>
    </channel>
</rss>
