<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Camilo Lozano III &#187; Software Development</title>
	<atom:link href="http://camilord.kagayan.com/category/information-technology/software-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://camilord.kagayan.com</link>
	<description>Linux for Servers, Macintosh for Graphics and Windows for Solitair...</description>
	<lastBuildDate>Sat, 24 Jul 2010 13:07:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>dev-C++ : Bubble Sort with Graphic Plotting</title>
		<link>http://camilord.kagayan.com/2010/07/24/dev-c-bubble-sort-with-graphic-plotting/</link>
		<comments>http://camilord.kagayan.com/2010/07/24/dev-c-bubble-sort-with-graphic-plotting/#comments</comments>
		<pubDate>Sat, 24 Jul 2010 13:01:10 +0000</pubDate>
		<dc:creator>Camilo III</dc:creator>
				<category><![CDATA[Info.Tech]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[dev-C++]]></category>

		<guid isPermaLink="false">http://camilord.kagayan.com/?p=423</guid>
		<description><![CDATA[I&#8217;m having difficulties in creating good programming algorithm with C++. I find its very difficult. Somehow, I would like to share my accomplishment in creating this program, Bubble Sort with Graphic Plotting. But first, what is bubble sort? Bubble sort is a simple sorting algorithm. It works by repeatedly stepping through the list to be]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m having difficulties in creating good programming algorithm with C++. I find its very difficult. Somehow, I would like to share my accomplishment in creating this program, Bubble Sort with Graphic Plotting. But first, what is bubble sort?</p>
<p><strong>Bubble sort </strong>is a simple sorting algorithm. It works by repeatedly stepping through the list to be sorted, comparing each pair of adjacent items and swapping them if they are in the wrong order. The pass through the list is repeated until no swaps are needed, which indicates that the list is sorted. The algorithm gets its name from the way smaller elements &#8220;bubble&#8221; to the top of the list. Because it only uses comparisons to operate on elements, it is a comparison sort.</p>
<p>Below is the demo, source codes and libraries needed&#8230;</p>
<ul>
<li><a class="downloadlink" href="http://camilord.kagayan.com/download/bubbesort.exe" title="Version1.0 downloaded 5 times" >Bubble Sort with Graphic Plotting Demo (executable file) (5)</a></li>
<li><a class="downloadlink" href="http://camilord.kagayan.com/download/bubblesort2_source.zip" title="Version1.0 downloaded 0 times" >Bubble Sort with Graphic Plotting (Source Code) (0)</a></li>
<li><a class="downloadlink" href="http://camilord.kagayan.com/download/graphic_lib.zip" title="Version1.0 downloaded 0 times" >Graphic Library (0)</a></li>
</ul>
<p>If you have better algorithm solutions, if you don&#8217;t mind, can you email it to me&#8230; Like to see how others solve the problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://camilord.kagayan.com/2010/07/24/dev-c-bubble-sort-with-graphic-plotting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prototype POS System &#8211; Transparent GUI</title>
		<link>http://camilord.kagayan.com/2010/04/23/prototype-pos-system-transparent-gui/</link>
		<comments>http://camilord.kagayan.com/2010/04/23/prototype-pos-system-transparent-gui/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 08:48:45 +0000</pubDate>
		<dc:creator>Camilo III</dc:creator>
				<category><![CDATA[Info.Tech]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Visual C#]]></category>

		<guid isPermaLink="false">http://camilord.kagayan.com/?p=381</guid>
		<description><![CDATA[POS System &#8211; Transparent GUI My article is about a prototype POS system for grocery stores or 24 hours mini marts using Transparency graphical user interface. Transparency in MS Visual C# works similar to chroma keys in Adobe After Effects or Premiere. All you have to do is set a color key to make it]]></description>
			<content:encoded><![CDATA[<p>POS System &#8211; Transparent GUI</p>
<p style="text-align: center;"><a href="http://camilord.kagayan.com/wp-content/uploads/2010/04/screenshot.jpg"><img class="aligncenter size-medium wp-image-386" title="Transparent POS System screenshot" src="http://camilord.kagayan.com/wp-content/uploads/2010/04/screenshot-300x230.jpg" alt="" width="300" height="230" /></a></p>
<p>My article is about a prototype POS system for grocery stores or 24 hours mini marts using Transparency graphical user interface.</p>
<p>Transparency in MS Visual C# works similar to chroma keys in Adobe After Effects or Premiere. All you have to do is set a color key to make it transparent.</p>
<ol>
<li>As you create a form as Form1, go to Form1 properties and set TransparencyKey to Black.</li>
<li>Then set your Backcolor of your form to Black.</li>
<li>In Photoshop or any image editing tools, create an GUI or layout design then save as PNG format.</li>
<li>In Form1 properties, set BackgroundImage and select the PNG image you created from Photoshop or other image editing tools.</li>
<li>Set also the FormBorderStyle to None and Opacity to 95%.</li>
<li>Then run your project. You&#8217;ll see the transparency works well. <img src='http://camilord.kagayan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ol>
<p>See my sample source code.</p>
<a class="downloadlink" href="http://camilord.kagayan.com/download/testNewUI.zip" title="Version0.0.1 downloaded 11 times" >Prototype POS System - Transparent GUI (11)</a>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://camilord.kagayan.com/2010/04/23/prototype-pos-system-transparent-gui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual C#: Detect Conflict Schedule</title>
		<link>http://camilord.kagayan.com/2010/01/18/visual-csharp-detect-conflict-schedule/</link>
		<comments>http://camilord.kagayan.com/2010/01/18/visual-csharp-detect-conflict-schedule/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 08:55:53 +0000</pubDate>
		<dc:creator>Camilo III</dc:creator>
				<category><![CDATA[Info.Tech]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Visual C#]]></category>

		<guid isPermaLink="false">http://camilord.kagayan.com/?p=325</guid>
		<description><![CDATA[It seems a lot of people are searching about solving conflict schedule. So I decided to create a sample. Below is the core code of checking conflict schedule&#8230; // sample conflict detection (defined) [start] DateTime d = new DateTime(2010, 1, 13); richTextBox1.Text = DateTime.Now.ToLongDateString() + &#8221; = &#8221; + d.ToLongDateString() + &#8220;\n&#8221;; if (DateTime.Now.CompareTo(d) &#62;]]></description>
			<content:encoded><![CDATA[<div id="attachment_329" class="wp-caption alignright" style="width: 281px"><img class="size-medium wp-image-329" title="det_conf_sched" src="http://camilord.kagayan.com/wp-content/uploads/2010/01/det_conf_sched-271x300.jpg" alt="Screenshot" width="271" height="300" /><p class="wp-caption-text">Screenshot</p></div>
<p>It seems a lot of people are searching about solving conflict schedule. So I decided to create a sample. Below is the core code of checking conflict schedule&#8230;</p>
<blockquote><p>// sample conflict detection (defined) [start]<br />
DateTime d = new DateTime(2010, 1, 13);<br />
richTextBox1.Text = DateTime.Now.ToLongDateString() + &#8221; = &#8221; + d.ToLongDateString() + &#8220;\n&#8221;;<br />
if (DateTime.Now.CompareTo(d) &gt; 0)<br />
{<br />
richTextBox1.Text += &#8220;true\n&#8221; + DateTime.Now.CompareTo(d).ToString();<br />
}<br />
else<br />
{<br />
richTextBox1.Text += &#8220;false\n&#8221; + DateTime.Now.CompareTo(d).ToString();<br />
}<br />
richTextBox1.Text += &#8220;\n\n&#8221;;<br />
DateTime dx = DateTime.Now;<br />
//MessageBox.Show(dx.Hour.ToString());<br />
DateTime[] dt = new DateTime[4];<br />
// enrolled schedule<br />
dt[0] = new DateTime(int.Parse(dx.Year.ToString()), int.Parse(dx.Month.ToString()), int.Parse(dx.Day.ToString()), 8, 0, 0);<br />
dt[1] = new DateTime(int.Parse(dx.Year.ToString()), int.Parse(dx.Month.ToString()), int.Parse(dx.Day.ToString()), 9, 0, 0);<br />
// adding new schedule<br />
dt[2] = new DateTime(int.Parse(dx.Year.ToString()), int.Parse(dx.Month.ToString()), int.Parse(dx.Day.ToString()), 9, 0, 0);<br />
dt[3] = new DateTime(int.Parse(dx.Year.ToString()), int.Parse(dx.Month.ToString()), int.Parse(dx.Day.ToString()), 10, 0, 0);<br />
// checking schedule conflict<br />
if (((dt[0].CompareTo(dt[2]) &lt; 0) &amp;&amp; (dt[1].CompareTo(dt[2]) &gt; 0)) || (dt[0].ToShortTimeString() == dt[2].ToShortTimeString()))<br />
{<br />
richTextBox1.Text += dt[0].ToShortTimeString() + &#8221; &#8211; &#8221; + dt[1].ToShortTimeString() + &#8221; against &#8221; + dt[2].ToShortTimeString() + &#8221; &#8211; &#8221; + dt[3].ToShortTimeString() + &#8220;\nResult: CONFLICT&#8221;;<br />
}<br />
else<br />
{<br />
richTextBox1.Text += dt[0].ToShortTimeString() + &#8221; &#8211; &#8221; + dt[1].ToShortTimeString() + &#8221; against &#8221; + dt[2].ToShortTimeString() + &#8221; &#8211; &#8221; + dt[3].ToShortTimeString() + &#8220;\nResult: NO CONFLICT&#8221;;<br />
}<br />
// sample conflict detection (defined) [end]</p></blockquote>
<p>If you want to download the whole code, link below and enjoy&#8230; Do not practice the copy and paste! <img src='http://camilord.kagayan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Download: <a class="downloadlink" href="http://camilord.kagayan.com/download/detectScheduleConflict.zip" title="Versionv.0.1.0 downloaded 14 times" >Detect Conflict Schedule (14)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://camilord.kagayan.com/2010/01/18/visual-csharp-detect-conflict-schedule/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Visual C#: Retrieving Image (BLOB) from MySQL database</title>
		<link>http://camilord.kagayan.com/2009/12/14/visual-c-retrieving-image-blob-from-mysql-database/</link>
		<comments>http://camilord.kagayan.com/2009/12/14/visual-c-retrieving-image-blob-from-mysql-database/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 07:48:29 +0000</pubDate>
		<dc:creator>Camilo III</dc:creator>
				<category><![CDATA[Info.Tech]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Visual C#]]></category>

		<guid isPermaLink="false">http://camilord.kagayan.com/?p=286</guid>
		<description><![CDATA[I&#8217;ve been searching an article about storing and retrieving an image (BLOB data type) from MySQL database. Somehow, I only found the retrieving process but I created the storing process using PHP&#8230; You may download my works, link provided below&#8230; idsystem_database.sql.zip &#8211; the dump file of MySQL database; import this SQL file before running the]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been searching an article about storing and retrieving an image (BLOB data type) from MySQL database. Somehow, I only found the retrieving process but I created the storing process using PHP&#8230; <img src='http://camilord.kagayan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You may download my works, link provided below&#8230;</p>
<ul>
<li>idsystem_database.sql.zip &#8211; the dump file of MySQL database; import this SQL file before running the project</li>
<li>the rest of the files are the project sample files</li>
</ul>
<p>-&gt; <a class="downloadlink" href="http://camilord.kagayan.com/download/retrieveImg_public.zip" title="Versionv.0.1.0 downloaded 39 times" >retrieveImg_public.zip (39)</a> or http://camilord.kagayan.com/my.files/retrieveImg_public.zip</p>
<p>For the credits, Thanks to Markusek Peter&#8230;</p>
<blockquote><p>MySqlConnection myConnection = new MySqlConnection(myConnString);</p>
<p>string testQuery = &#8220;SELECT sp.studePhoto, s.firstName, s.lastName</p>
<p>FROM students AS s, student_photos AS sp WHERE s.id = sp.studentID&#8221;;<br />
MySqlCommand myCommand = new MySqlCommand(testQuery, myConnection);</p>
<p>myConnection.Open();<br />
MySqlDataReader myReader = myCommand.ExecuteReader();</p>
<p>FileStream fs; // Writes the BLOB to a file (*.jpg).</p>
<p>BinaryWriter bw; // Streams the BLOB to the FileStream object.</p>
<p>int bufferSize = 100; // Size of the BLOB buffer.</p>
<p>// The BLOB byte[] buffer to be filled by GetBytes.</p>
<p>byte[] outbyte = new byte[bufferSize];<br />
long retval; // The bytes returned from GetBytes.<br />
long startIndex = 0; // The starting position in the BLOB output.</p>
<p>while (myReader.Read())<br />
{<br />
DateTime tmp = new DateTime();<br />
tmp = DateTime.Now;<br />
// Create a file to hold the output.<br />
string filename = camilordMD5(tmp.ToLongDateString().ToString() + tmp.ToLongTimeString().ToString()) + &#8220;.jpg&#8221;;</p>
<p>string dest = Directory.GetCurrentDirectory() + &#8220;/&#8221; + filename;<br />
fs = new FileStream(dest, FileMode.OpenOrCreate, FileAccess.Write);<br />
bw = new BinaryWriter(fs);</p>
<p>// Reset the starting byte for the new BLOB.<br />
startIndex = 0;<br />
// Read the bytes into outbyte[] and retain the number of bytes returned.</p>
<p>//myReader.GetBytes(0, startIndex, outbyte, 0, bufferSize);<br />
retval =(long) myReader.GetBytes(0, startIndex, outbyte, 0, bufferSize);<br />
lblName.Text = myReader.GetString(1) + &#8221; &#8221; + myReader.GetString(2);</p>
<p>// Continue reading and writing while there are bytes beyond the size of the buffer.<br />
while (retval == bufferSize)<br />
{<br />
bw.Write(outbyte);<br />
bw.Flush();</p>
<p>// Reposition the start index to the end of the last buffer and fill thebuffer.<br />
startIndex += bufferSize;<br />
retval = myReader.GetBytes(0, startIndex, outbyte, 0, bufferSize);</p>
<p>}</p>
<p>pictureBox1.ImageLocation = Directory.GetCurrentDirectory() + &#8220;/test.jpg&#8221;;<br />
//pictureBox1.Image = retval;</p>
<p>// Write the remaining buffer.</p>
<p>bw.Write(outbyte, 0, (int)retval &#8211; 1);<br />
bw.Flush();</p>
<p>// Close the output file.<br />
bw.Close();<br />
fs.Close();<br />
}</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://camilord.kagayan.com/2009/12/14/visual-c-retrieving-image-blob-from-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual C#: Handling X button (top-right)</title>
		<link>http://camilord.kagayan.com/2009/12/07/visual-c-handling-x-button-top-right/</link>
		<comments>http://camilord.kagayan.com/2009/12/07/visual-c-handling-x-button-top-right/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 02:21:46 +0000</pubDate>
		<dc:creator>Camilo III</dc:creator>
				<category><![CDATA[Info.Tech]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Visual C#]]></category>

		<guid isPermaLink="false">http://camilord.kagayan.com/?p=281</guid>
		<description><![CDATA[Disabling the X button private const int CP_NOCLOSE_BUTTON = 0x200; protected override CreateParams CreateParams { get { CreateParams myCp = base.CreateParams; myCp.ClassStyle = myCp.ClassStyle &#124; CP_NOCLOSE_BUTTON; return myCp; } } Add confirmation if window closing or closed&#8230; Insert this code to Main form or the Form1.cs&#8230; private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e) { if (MessageBox.Show("Are]]></description>
			<content:encoded><![CDATA[<p><strong><img class="alignright size-full wp-image-306" title="xbutton" src="http://camilord.kagayan.com/wp-content/uploads/2009/12/xbutton.jpg" alt="xbutton" width="223" height="223" />Disabling the X button</strong></p>
<pre>private const int CP_NOCLOSE_BUTTON = 0x200;

protected override CreateParams CreateParams
{
     get
     {
        CreateParams myCp = base.CreateParams;
        myCp.ClassStyle = myCp.ClassStyle | CP_NOCLOSE_BUTTON;
        return myCp;
     }
}</pre>
<p><strong>Add confirmation if window closing or closed&#8230;</strong></p>
<p>Insert this code to Main form or the Form1.cs<strong>&#8230;</strong></p>
<p><strong><br />
</strong></p>
<pre>private void Form1_Closing(object sender,
                   System.ComponentModel.CancelEventArgs e)
{
     if (MessageBox.Show("Are you sure you want to exit?", "Confirm exit",
         MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
     {
        e.Cancel = true;
     }
}</pre>
<p>Insert this to Form1.Designer.cs&#8230;</p>
<pre>this.Closing += new System.ComponentModel.CancelEventHandler(
                             this.frmCCS_Closing);</pre>
]]></content:encoded>
			<wfw:commentRss>http://camilord.kagayan.com/2009/12/07/visual-c-handling-x-button-top-right/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Oracle Database 10g Express Edition</title>
		<link>http://camilord.kagayan.com/2009/05/20/oracle-database-10g-express-edition/</link>
		<comments>http://camilord.kagayan.com/2009/05/20/oracle-database-10g-express-edition/#comments</comments>
		<pubDate>Tue, 19 May 2009 19:58:31 +0000</pubDate>
		<dc:creator>Camilo III</dc:creator>
				<category><![CDATA[Info.Tech]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[10g]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://camilord.kagayan.com/?p=234</guid>
		<description><![CDATA[Oracle Database 10g Express Edition Free to develop, deploy, and distribute Oracle Database 10g Express Edition (Oracle Database XE) is an entry-level, small-footprint database based on the Oracle Database 10g Release 2 code base that&#8217;s free to develop, deploy, and distribute; fast to download; and simple to administer. Oracle Database XE is a great starter]]></description>
			<content:encoded><![CDATA[<p><strong> Oracle Database 10g Express Edition</strong><br />
<em>Free to develop, deploy, and distribute</em></p>
<p><img src="http://www.oracle.com/technology/products/database/xe/xe_logo.gif" border="0" alt="Oracle XE" hspace="6" vspace="4" align="right" />Oracle Database 10g Express Edition (Oracle Database XE) is an entry-level, small-footprint database based on the Oracle Database 10g Release 2 code base that&#8217;s free to develop, deploy, and distribute; fast to download; and simple to administer. Oracle Database XE is a great starter database for:</p>
<p>* Developers working on PHP, Java, .NET, XML, and Open Source applications<br />
* DBAs who need a free, starter database for training and deployment<br />
* Independent Software Vendors (ISVs) and hardware vendors who want a starter database to distribute free of charge<br />
* Educational institutions and students who need a free database for their curriculum</p>
<p>With Oracle Database XE, you can now develop and deploy applications with a powerful, proven, industry-leading infrastructure, and then upgrade when necessary without costly and complex migrations. <a href="http://www.oracle.com/technology/products/database/xe/users.html" target="_blank">Read what users say about Oracle Database XE</a>.</p>
<p>Oracle Database XE can be installed on any size host machine with any number of CPUs (one database per machine), but XE will store up to 4GB of user data, use up to 1GB of memory, and use one CPU on the host machine.</p>
<ul>
<li><a href="http://www.oracle.com/technology/software/products/database/xe/index.html" target="_blank">Download Oracle Database 10g Express Edition</a></li>
</ul>
<p>After installation, be sure to register for an exclusive <a href="http://www.oracle.com/technology/products/database/xe/forum.html" target="_blank">Oracle Database 10g Express Edition Discussion Forum</a> hosted by Oracle expert Tom Kyte—click on the &#8220;Registration&#8221; link on XE&#8217;s Database homepage.</p>
]]></content:encoded>
			<wfw:commentRss>http://camilord.kagayan.com/2009/05/20/oracle-database-10g-express-edition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual C#: Connecting to MySQL remotely</title>
		<link>http://camilord.kagayan.com/2009/04/13/visual-c-connecting-to-mysql-remotely/</link>
		<comments>http://camilord.kagayan.com/2009/04/13/visual-c-connecting-to-mysql-remotely/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 21:29:04 +0000</pubDate>
		<dc:creator>Camilo III</dc:creator>
				<category><![CDATA[Info.Tech]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Visual C#]]></category>
		<category><![CDATA[connect]]></category>
		<category><![CDATA[connecting remotely]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[visual C#]]></category>

		<guid isPermaLink="false">http://camilord.kagayan.com/?p=190</guid>
		<description><![CDATA[I have a current project that connects to a remote database server using Visual C# as client window application. So before I started my project, I tested it if it is possible to connect and the result, it does connect. For those does who failed to solve this problem, here&#8217;s my tutorial/guide. Test Project Requirements:]]></description>
			<content:encoded><![CDATA[<p>I have a current project that connects to a remote database server using Visual C# as client window application. So before I started my project, I tested it if it is possible to connect and the result, it does connect. For those does who failed to solve this problem, here&#8217;s my tutorial/guide.</p>
<p><strong>Test Project Requirements:</strong></p>
<ul>
<li>VMware Workstation 5.5</li>
<li>CentOS 4.4</li>
<li>Visual C# Express Edition</li>
<li>MySQL Data Connector .Net v1.0.7</li>
</ul>
<p><strong>Scenario:</strong></p>
<p>The client&#8217;s OS is MS Windows XP and the server is CentOS Linux. The client will connect to the Linux server to query and process some transaction. But in the sample code, it demonstrate only how to connect remotely in the server. My server&#8217;s IP address is <strong>192.168.10.117</strong> and a MySQL port of <strong>3306</strong> (default port).</p>
<p><strong>Screenshots:</strong></p>
<p style="text-align: center;">
<a href="http://camilord.kagayan.com/wp-content/gallery/tutorials-images/mysqlRemote1.jpg" title="" class="shutterset_singlepic97" >
	<img class="ngg-singlepic ngg-center" src="http://camilord.kagayan.com/wp-content/gallery/cache/97__287x226_mysqlRemote1.jpg" alt="mysqlRemote1.jpg" title="mysqlRemote1.jpg" />
</a>
</p>
<p><strong>Step 1:</strong></p>
<p>Setup the Linux server, be sure you already installed MySQL server. In our case, we use VMware and a CentOS 4.4 is installed. For installation help, google it! <img src='http://camilord.kagayan.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  The first thing to do is configure your IP tables by using <em><strong>iptables</strong></em> command. see illustration below;</p>
<p style="text-align: center;">
<a href="http://camilord.kagayan.com/wp-content/gallery/tutorials-images/iptables1.jpg" title="" class="shutterset_singlepic95" >
	<img class="ngg-singlepic" src="http://camilord.kagayan.com/wp-content/gallery/cache/95__400xfloat=center_iptables1.jpg" alt="iptables1.jpg" title="iptables1.jpg" />
</a>
</p>
<p>If your configuration does not allow foreign connection to your MySQL, then change that and allow it. In real scenario if your server is public, I recommend that you must have a new server which can only be access through local network. Or if cannot afford, just setup well the IP tables that only local connections are allowed. Anyway, here&#8217;s my new IP tables setup in my server;</p>
<p style="text-align: center;">
<a href="http://camilord.kagayan.com/wp-content/gallery/tutorials-images/iptables2.jpg" title="" class="shutterset_singlepic96" >
	<img class="ngg-singlepic" src="http://camilord.kagayan.com/wp-content/gallery/cache/96__400xfloat=center_iptables2.jpg" alt="iptables2.jpg" title="iptables2.jpg" />
</a>
</p>
<p>In MySQL CLI, create a user that can access everywhere. To do this, see sample below;</p>
<p>mysql&gt; GRANT ALL PRIVILEGES ON *.* to &#8216;beasaw&#8217;@'%&#8217; IDENTIFIED BY &#8216;qwerty&#8217;;</p>
<p>Explained: the command shown above is to allow user, <em>beasaw</em>, to access anywhere using a password <em>qwerty</em>.</p>
<p>That&#8217;s it&#8230; server setup completed. <img src='http://camilord.kagayan.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><strong>Step 2:</strong></p>
<p>Before you create a new project in VCS, test first the connection using the command;</p>
<p><strong>C:\&gt; mysql\bin\mysql -</strong><strong>-host=192.168.10.117 -</strong><strong>-port=3306 -</strong><strong>-user=beasaw -</strong><strong>-password=qwerty</strong></p>
<p>See image below;</p>
<p style="text-align: center;">
<a href="http://camilord.kagayan.com/wp-content/gallery/tutorials-images/cmd_mysql.jpg" title="" class="shutterset_singlepic93" >
	<img class="ngg-singlepic" src="http://camilord.kagayan.com/wp-content/gallery/cache/93__400xfloat=center_cmd_mysql.jpg" alt="cmd_mysql.jpg" title="cmd_mysql.jpg" />
</a>
</p>
<p><strong>Step 3:</strong></p>
<ol>
<li>Open your Visual C# and create a new project, name it to <em>remoteMySQL</em>.</li>
<li>In Form1.cs, layout just like the screenshot above.</li>
<li>Add a reference, <em><strong>MySql.Data.dll</strong> </em>(assumed that you already installed the MySQL data connector .Net v1.0.7)</li>
<li>Add mysql to the project: using MySql.Data.MySqlClient;</li>
<li>Begin your codes, see sample code (download link below)&#8230; <img src='http://camilord.kagayan.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </li>
</ol>
<p style="text-align: center;">
<a href="http://camilord.kagayan.com/wp-content/gallery/tutorials-images/mysqlRemote2.jpg" title="" class="shutterset_singlepic98" >
	<img class="ngg-singlepic ngg-center" src="http://camilord.kagayan.com/wp-content/gallery/cache/98__287x226_mysqlRemote2.jpg" alt="mysqlRemote2.jpg" title="mysqlRemote2.jpg" />
</a>
</p>
<p>That&#8217;s it&#8230; You can create as many applications you want with this method. Like Ticketing System, connecting 10 terminals to the servers simultaneously and etc. And of course, connection varies also to your MySQL server setup. <img src='http://camilord.kagayan.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><strong>Download:</strong></p>
<p>» <a class="downloadlink" href="http://camilord.kagayan.com/download/mysqlremote_public.zip" title="Versionv1.0.5 downloaded 91 times" >VCS Remote Connect to MySQL Server (91)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://camilord.kagayan.com/2009/04/13/visual-c-connecting-to-mysql-remotely/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[Software Integration] MS Visual C# + Nokia PC Connectivity API 3.2</title>
		<link>http://camilord.kagayan.com/2009/04/02/ms-visual-c-sharp-nokia-pc-connectivity-api-32-software-integration/</link>
		<comments>http://camilord.kagayan.com/2009/04/02/ms-visual-c-sharp-nokia-pc-connectivity-api-32-software-integration/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 09:23:41 +0000</pubDate>
		<dc:creator>Camilo III</dc:creator>
				<category><![CDATA[Info.Tech]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Visual C#]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[.Net Studio]]></category>
		<category><![CDATA[Application]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Integration]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[SMS]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[visual C#]]></category>

		<guid isPermaLink="false">http://camilord.kagayan.com/?p=146</guid>
		<description><![CDATA[I&#8217;m having curiosity about retrieving SMS from Phone to my PC and including sending SMS from PC via Mobile Phone as GSM modem. So I decide to research about it. And I found the Nokia PC Connectivity API. Somehow using the API needs an extensive knowledge of Programming in .Net studio. So if your beginner]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m having curiosity about retrieving SMS from Phone to my PC and including sending SMS from PC via Mobile Phone as GSM modem. So I decide to research about it. And I found the Nokia PC Connectivity API. Somehow using the API needs an extensive knowledge of Programming in .Net studio. So if your beginner to Visual C#, try to study more before taking this step. <img src='http://camilord.kagayan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Download <a class="downloadlink" href="http://camilord.kagayan.com/download/Nokia_PC_Connectivity_API_3.2.zip" title="Version3.2 downloaded 117 times" >Nokia PC Connectivity API 3.2 (117)</a></p>
<p><strong>What’s in the Nokia PC Connectivity API tool package?</strong></p>
<p>The Nokia PC Connectivity API tool package contains the PC Connectivity API headers, API documentation, and sample applications. The latest version of the tool includes updates to the Device Management, File System, and Content Access APIs, as well as support for Microsoft Visual Studio 2008.</p>
<p><a href="http://www.forum.nokia.com/Resources_and_Information/Tools/Plug-ins/Enablers/PC_Connectivity_API/Features.xhtml">For more information, visit the Nokia PC Connectivity API features page »</a></p>
<p>All I can say about this new area since I&#8217;m a web developer, its like HELL! hahahahaa&#8230;</p>
<p style="text-align: center;">[[Show as slideshow]]</p>
<p style="text-align: left;">By the way, Nokia Connectivity API documentation is limited and no enough sample resources. There are very few samples or let me say no enough sample in the internet so far. That&#8217;s why its like hell. <img src='http://camilord.kagayan.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://camilord.kagayan.com/2009/04/02/ms-visual-c-sharp-nokia-pc-connectivity-api-32-software-integration/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
