<?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>redemption in a blog &#187; Programming</title>
	<atom:link href="http://blog.codefront.net/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.codefront.net</link>
	<description>Rails, Firefox, Anime, Mac</description>
	<lastBuildDate>Tue, 24 Jan 2012 01:47:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Getting .NET Button ListBar control to work</title>
		<link>http://blog.codefront.net/2004/03/09/getting-net-button-listbar-control-to-work/</link>
		<comments>http://blog.codefront.net/2004/03/09/getting-net-button-listbar-control-to-work/#comments</comments>
		<pubDate>Tue, 09 Mar 2004 07:57:41 +0000</pubDate>
		<dc:creator>Chu Yeow</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.codefront.net/archives/2004/03/09/getting-net-button-listbar-control-to-work/</guid>
		<description><![CDATA[Dave (DarkAngel) has responded to my call for help regarding the .NET Button ListBar Control and has kindly allowed me to post the solution here. Dave is the man really &#8211; he went through the trouble of grabbing the control, loading up VS.NET and working through it step by step with me in his email. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dovitz.com/blog">Dave (DarkAngel)</a> has responded to my <a href="http://blog.codefront.net/archives/2004/03/08/help_needed_with_net_and_java.php">call for help</a> regarding the <a href="http://www.vbaccelerator.com/home/NET/Code/Controls/ListBar/Button_List_Bar/article.asp">.NET Button ListBar Control</a> and has kindly allowed me to post the solution here. <a href="http://www.dovitz.com/blog">Dave</a> is the man really &#8211; he went through the trouble of grabbing the control, loading up VS.NET and working through it step by step with me in his email. All that for a stranger. I love you Dave!</p>
<p>The problem I had was trying to import the <a href="http://www.vbaccelerator.com/home/NET/Code/Controls/ListBar/Button_List_Bar/article.asp">.NET Button ListBar Control</a> into my VS.NET Toolbox. The instructions said to import the ButtonListBar.vb file into the project and it should work, but it doesn&#8217;t in Visual Studio.NET 2003. I think that is the reason it didn&#8217;t work (that it is VS.NET 2003 instead of just VS.NET).</p>
<p>Opening the ButtonListBar.vb file in the Designer threw out an error (see the <a href="http://blog.codefront.net/archives/2004/03/08/help_needed_with_net_and_java.php">call for help</a> entry). Dave fixed that with this solution (also via email):</p>
<blockquote><p>&#8230; move the region event argument classes to the end of the ButtonListBar.</p></blockquote>
<p>He went on to help me compile the source files into a DLL, which I&#8217;m familiar with using for importing controls. Below are his instructions (slightly paraphrased). <strong>The credit goes solely to <a href="http://www.dovitz.com/blog">Dave (DarkAngel)</a></strong> &#8211; I&#8217;m merely reproducing it for the benefit of anyone who next comes across this problem.</p>
<ol>
<li>Open up Visual Studio .NET (Visual Studio .NET 2003 to be exact)</li>
<li>Create a new project by clicking File -> New Project (I&#8217;m using Visual Basic, so I chose Visual Basic Project).</li>
<li>Choose &#8220;Windows Control Library&#8221;.</li>
<li>What we&#8217;ve done so far is just create a control library project which is ideal for putting new controls in. This will build to a DLL.</li>
<li>Remove UserControl1.vb (the default file VS.NET creates) from the Solution Explorer (it&#8217;s unnecessary).</li>
<li>Right click the project in the solution explorer and select Add -> Add existing item</li>
<li>Add the ButtonListBar.vb file in the control source files downloaded.</li>
<li>Build the project (choose to build for &#8220;Release&#8221;).</li>
<li>The compiled DLL will then be in the bin/ directory of the project folder. You now have the ButtonListBar control in DLL form. All the remains is to add this control into the Toolbar of the project in which you want to use it.</li>
</ol>
<p>Using the control:</p>
<ol>
<li>In the project you want to add the toolbar to, right-click your Toolbox and select &#8220;Add/Remove items&#8221;.</li>
<li>Click &#8220;Browse&#8221; under the .net framework components tab.</li>
<li>Browse to the location of the DLL we just created and double click it.</li>
<li>Click OK to dismiss the Add/Remove items dialog.</li>
<li>The ButtonListBar control should now be the bottom entry on your list. (You can right-click and sort alphabetically if you like).</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.codefront.net/2004/03/09/getting-net-button-listbar-control-to-work/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VB.NET boolean operators and short-circuit evaluation</title>
		<link>http://blog.codefront.net/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/</link>
		<comments>http://blog.codefront.net/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/#comments</comments>
		<pubDate>Sat, 24 Jan 2004 17:51:29 +0000</pubDate>
		<dc:creator>Chu Yeow</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.codefront.net/archives/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/</guid>
		<description><![CDATA[&#8230; short-circuit evaluation is how the logical human brain works when confronted with chained boolean conditionals in real life Having to pick up VB.NET for a Human Computer Interaction course this semester, I&#8217;ve been spending some time getting acquainted with the language through a couple of books. Every now and then I get somewhat bemused [...]]]></description>
			<content:encoded><![CDATA[<div class="pullquote">&#8230; short-circuit evaluation is how the logical human brain works when confronted with chained boolean conditionals in real life</div>
<p>Having to pick up VB.NET for a Human Computer Interaction course this semester, I&#8217;ve been spending some time getting acquainted with the language through a couple of books. Every now and then I get somewhat bemused by how &#8220;different&#8221; VB syntax is &#8211; not that it&#8217;s a bad thing, pray. Syntax, as almost everyone agrees, is secondary to semantics.</p>
<p>Anyway, here&#8217;s a particularly bemusing bit of trivia you can use to taunt/jibe/provoke your VB.NET/VB programmer friends.</p>
<p>Did you know that VB.NET&#8217;s default boolean operators <span class="monospaced">And</span> and <span class="monospaced">Or</span> do not take advantage of short-circuit evaluation? Take for example this snippet of conditional code below:</p>
<div class="code">
Dim x as Integer 1<br />
If (x < 5) Or (x > 10) Then
</div>
<p>Now, you&#8217;d expect your run-of-the-mill compiler/interpreter to optimize by short-circuiting the 2nd boolean expression, since the 1st expression is already true (and so whether the 2nd boolean expression is true or false doesn&#8217;t really matter). For some reason, probably one steeped in history, VB.NET, or rather the JIT compiler, <em>doesn&#8217;t</em> short-circuit. It happily goes ahead and evaluates the 2nd boolean expression.</p>
<p>This is logically ludicrous &#8211; short-circuit evaluation is how the logical human brain works when confronted with chained boolean conditionals in real life. If the university says I can only get a First Class Honours degree if my <acronym title="Cumulative Average Point">CAP</acronym> is greater than 4.5 AND get a minimum of A- for my thesis, I won&#8217;t really fret about not getting an A- for my thesis (and subsequently missing out on a yummy First Class Honours) when my <acronym title="Cumulative Average Point">CAP</acronym> can never hit 4.5.</p>
<p>Now to be fair, there is an alternative <span class="monospaced">OrElse</span> operator which <em>does</em> perform short-circuit evaluation. It is not fair though to expect such an unorthodox operator to be something your common on-the-street (read: non-VB) programmer will expect to exist (unless he reads a VB.NET book <em>and</em> bothers to flip to the introductory chapters).</p>
<p>Come to think of it, it could be an intended design issue. Evaluating the 2nd boolean expression could be always warranted when it produces a side effect. That must be the reason why Microsoft introduced the <span class="monospaced">OrElse</span> and <span class="monospaced">AndAlso</span> operators and leaving the standard <span class="monospaced">And</span> and <span class="monospaced">Or</span> operators as non-short-circuiting to prevent confusing converting VB programmers.</p>
<p>So this then is actually an issue with VB. Hence, we can conclude that they deserve to be taunted/jibed/provoked. Spare the VB.NET programmers. For now.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codefront.net/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Genetic Algorithms links 2</title>
		<link>http://blog.codefront.net/2003/08/21/genetic-algorithms-links-2/</link>
		<comments>http://blog.codefront.net/2003/08/21/genetic-algorithms-links-2/#comments</comments>
		<pubDate>Thu, 21 Aug 2003 04:00:18 +0000</pubDate>
		<dc:creator>Chu Yeow</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.codefront.net/archives/2003/08/21/genetic-algorithms-links-2/</guid>
		<description><![CDATA[More GA links. For archival purposes. ai-junkie is a great website with a GA tutorial written &#8220;in plain English&#8221;. Evolutionary Computation lecture notes by Thorsten Schnier. More Evolutionary Computation lecture notes by Riccardo Poli, including a section on Classifier Systems. Genetic and Evolutionary Algorithms: Principles, Methods and Algorithms is an introduction to Evolutionary and Genetic [...]]]></description>
			<content:encoded><![CDATA[<p>More <acronym title="Genetic Algorithm">GA</acronym> links. For archival purposes.</p>
<ul>
<li><a href="http://www.ai-junkie.com/">ai-junkie</a> is a great website with a <acronym title="Genetic Algorithm">GA</acronym> tutorial written &#8220;in plain English&#8221;.</li>
<li><a href="http://www.cs.bham.ac.uk/~txs/teaching/2002/evo-computation/">Evolutionary Computation lecture notes</a> by Thorsten Schnier.</li>
<li><a href="">More Evolutionary Computation lecture notes</a> by Riccardo Poli, including a <a href="http://www.cs.bham.ac.uk/~rmp/slide_book/node8.html">section on Classifier Systems</a>.</li>
<li><a href="http://www.geatbx.com/docu/algindex.html">Genetic and Evolutionary Algorithms: Principles, Methods and Algorithms</a> is an introduction to Evolutionary and Genetic Algorithms.</li>
<li>A <a href="http://cs.felk.cvut.cz/~xobitko/ga/">GA tutorial</a> with example applets.</li>
<li><a href="http://atrey.karlin.mff.cuni.cz/~doug/magdon/docs/html/docs.html">The MAGDON Documentation</a> has a brief introduction to GA, including descriptions of the Pittsburg approach and the Michigan approach.</li>
<li><a href="http://www.optiwater.com/GAsearch/">GA-Search</a> &#8211; the Genetic Algorithms search engine, is a search engine dedicated to only GA-related sites.</li>
<li>The <a href="http://aaai.org/">American Association for Artificial Intelligence</a> &#8220;is a nonprofit scientific society devoted to advancing the scientific understanding of the mechanisms underlying thought and intelligent behavior and their embodiment in machines.&#8221;</li>
<li>The <a href="http://www.cs.washington.edu/research/jair/home.html">Journal of Artificial Intelligence Research</a> is an electronic journal on AI.</li>
<li><a href="http://evonet.dcs.napier.ac.uk/">EvoWeb</a>, the website of Evonet (European Network of Excellence in Evolutionary Computing), is a portal site for Evolutionary Computing.</li>
<li>The <a href="http://www.alife.org/">International Society of Artificial Life</a> publishes the <a href="http://mitpress.mit.edu/catalog/item/default.asp?ttype=4&#038;tid=41">Artificial Life journal</a>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.codefront.net/2003/08/21/genetic-algorithms-links-2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Genetic Algorithms links</title>
		<link>http://blog.codefront.net/2003/08/12/genetic-algorithms-links/</link>
		<comments>http://blog.codefront.net/2003/08/12/genetic-algorithms-links/#comments</comments>
		<pubDate>Mon, 11 Aug 2003 23:40:52 +0000</pubDate>
		<dc:creator>Chu Yeow</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.codefront.net/archives/2003/08/12/genetic-algorithms-links/</guid>
		<description><![CDATA[This is a collection of links on Genetic Algorithms. For archival purposes. Genetic Algorithms Warehouse is an excellent resource with collections of links to tutorials, papers, recommended books, software libraries, and essays. Part of AI Depot. The Genetic Programming Notebook is a huge collection of links related to GA(Genetic Algorithms) and GP(Genetic Programming). There is [...]]]></description>
			<content:encoded><![CDATA[<p>This is a collection of links on Genetic Algorithms. For archival purposes.</p>
<ul>
<li><a href="http://geneticalgorithms.ai-depot.com/">Genetic Algorithms Warehouse</a> is an excellent resource with collections of links to <a href="http://geneticalgorithms.ai-depot.com/Tutorials.html">tutorials</a>, <a href="http://geneticalgorithms.ai-depot.com/Papers.html">papers</a>, recommended <a href="http://geneticalgorithms.ai-depot.com/Books.html">books</a>, software libraries, and essays. Part of <a href="http://ai-depot.com/">AI Depot</a>.</li>
<li><a href="http://www.geneticprogramming.com/">The Genetic Programming Notebook</a> is a huge collection of links related to GA(Genetic Algorithms) and GP(Genetic Programming). There is also a <a href="http://www.geneticprogramming.com/Tutorial/index.html">GP tutorial</a>. *</li>
<li><a href="http://cgm.cs.mcgill.ca/~soss/cs644/projects/marko/">Genetic Algorithm Classifiers</a> is a final year project by Gabriel Kevorkian and Marko Milek</li>
<p> that is &#8220;study of genetic algorithms and, in particular, of their application in event classification and feature selection&#8221;. Their classification algorithm is implemented as a Java applet.</li>
<li>Darrell Whitley had written a <a href="http://citeseer.nj.nec.com/29471.html">GA tutorial</a> circa 1993. *</li>
<li>Alexander Schatten also has a <a href="http://www.schatten.info/info/ga/genetic.html">GA tutorial</a>.</li>
<li>PMSI has <a href="http://www.pmsi.fr/gainita.htm">short GA tutorial</a>. *</li>
<li>Frederic Dreier has a <a href="http://dreier.cc/extdata/documents/gatutorial.pdf">tutorial about Genetic Algorithms</a> on his <a href="http://dreier.cc/index.php?topic=readings&#038;sub=papers">website</a>.</li>
<li>Wendy Williams has some <a href="http://www.magma.ca/~wendy/GATutorial.ppt">GA tutorial slides</a>. *</li>
<li>Michael Skinner has a <a href="http://geneticalgorithms.ai-depot.com/Tutorial/Overview.html">Genetic Algorithms Overview</a>. *</li>
<li>Eric Martel has an article on <a href="http://ai-depot.com/Articles/51/TSP.html">Solving Travelling Salesman Problems Using Genetic Algorithms</a>. *</li>
<li>Alex Champandard writes on <a href="http://geneticalgorithms.ai-depot.com/Tutorial/GAclass-Motivation.html">Genetic Algorithm Class Design</a>. *</li>
<li><a href="http://www.aridolan.com/ga/gaa/gaa.html">The GA Playground</a> is a general GA toolkit implemented in Java.</li>
<li><a href="http://www.it.uom.gr/pdp/DigitalLib/EC/ec_lect.htm">Collection of Evolutionary Computation links</a>.</li>
<li><a href="http://lancet.mit.edu/~mbwall/presentations/IntroToGAs/">Introduction to Genetic Algorithms</a> slides</a>.</li>
<li><a href="http://www.genetic-programming.org/">genetic-programming.org</a> is a &#8220;source of information about the field of genetic programming&#8221;.</li>
</ul>
<p>Note to self: * indicates printed in hard copy</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codefront.net/2003/08/12/genetic-algorithms-links/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>XUL article at SitePoint (Part 2)</title>
		<link>http://blog.codefront.net/2003/05/29/xul-article-at-sitepoint-part-2/</link>
		<comments>http://blog.codefront.net/2003/05/29/xul-article-at-sitepoint-part-2/#comments</comments>
		<pubDate>Thu, 29 May 2003 06:57:03 +0000</pubDate>
		<dc:creator>Chu Yeow</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.codefront.net/archives/2003/05/29/xul-article-at-sitepoint-part-2/</guid>
		<description><![CDATA[Just in case anyone wants to follow up on the last XUL article by Harry Fuecks, SitePoint has published the 2nd of 3 parts in his introductory XUL tutorial, entitled Introducing XUL &#8211; The &#8216;Net&#8217;s Biggest Secret: Part 2. Seems like SitePoint split up the entire article series a little too much, because this one [...]]]></description>
			<content:encoded><![CDATA[<p>Just in case anyone wants to follow up on the last XUL article by Harry Fuecks, SitePoint has published the 2nd of 3 parts in his introductory XUL tutorial, entitled <a href="http://www.sitepoint.com/article/1143">Introducing XUL &#8211; The &#8216;Net&#8217;s Biggest Secret: Part 2</a>. Seems like SitePoint split up the entire article series a little too much, because this one seems a little too short. The final installment promises to discuss XBL and RDF data sources, so that&#8217;s looking good.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codefront.net/2003/05/29/xul-article-at-sitepoint-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interesting threads and XUL article at SitePoint</title>
		<link>http://blog.codefront.net/2003/05/24/interesting-threads-and-xul-article-at-sitepoint/</link>
		<comments>http://blog.codefront.net/2003/05/24/interesting-threads-and-xul-article-at-sitepoint/#comments</comments>
		<pubDate>Sat, 24 May 2003 06:54:01 +0000</pubDate>
		<dc:creator>Chu Yeow</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.codefront.net/archives/2003/05/24/interesting-threads-and-xul-article-at-sitepoint/</guid>
		<description><![CDATA[There&#8217;re some interesting threads over at SitePoint Forums: Java or .NET &#8212; What to Learn?? Head-to-Head: PHP vs. ASP.NET Also, Harry Fuecks from phpPatterns() has recently written an article on XUL entitled Introducing XUL &#8211; The ‘Net’s Biggest Secret: Part 1 for SitePoint. Nice introductory article, but he does seem to make it (XUL programming) [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;re some interesting threads over at <a href="http://www.sitepointforums.com">SitePoint Forums</a>:</p>
<p><a href="http://www.sitepointforums.com/showthread.php?threadid=109531">Java or .NET &#8212; What to Learn??</a><br />
<a href="http://www.sitepointforums.com/showthread.php?threadid=108727">Head-to-Head: PHP vs. ASP.NET</a></p>
<p>Also, Harry Fuecks from <a href="http://www.phppatterns.com/">phpPatterns()</a> has recently written an article on XUL entitled <a href="http://www.sitepoint.com/article/1140">Introducing XUL &#8211; The ‘Net’s Biggest Secret: Part 1</a> for <a href="http://www.sitepoint.com">SitePoint</a>. Nice introductory article, but he does seem to make it (XUL programming) more difficult than it actually is by involving the PHP bit.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codefront.net/2003/05/24/interesting-threads-and-xul-article-at-sitepoint/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

