<?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>KYRIAKOS ANASTASAKIS - ΚΥΡΙΑΚΟΣ ΑΝΑΣΤΑΣΑΚΗΣ &#187; software development</title>
	<atom:link href="http://kyriakos.anastasakis.net/tag/software-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://kyriakos.anastasakis.net</link>
	<description></description>
	<lastBuildDate>Wed, 28 Dec 2011 08:42:23 +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>Selecting the value of an HTML combobox programmatically using a WebBrowser Control</title>
		<link>http://kyriakos.anastasakis.net/2011/10/30/selecting-the-value-of-an-html-combobox-programmatically-using-a-webbrowser-control/</link>
		<comments>http://kyriakos.anastasakis.net/2011/10/30/selecting-the-value-of-an-html-combobox-programmatically-using-a-webbrowser-control/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 11:43:25 +0000</pubDate>
		<dc:creator>Kyriakos Anastasakis</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[My Programs]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[import_linkedin]]></category>
		<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://kyriakos.anastasakis.net/?p=296</guid>
		<description><![CDATA[Recently I&#8217;ve been playing around with a webbrowser control to automate my interaction with a website for testing purposes. I am using C# and DOT NET. I found it a bit difficult to change the value of an HTML combobox (i.e. dropdown), but as it turns out it&#8217;s rather easy.I used the following code to [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve been playing around with a webbrowser control to automate my interaction with a website for testing purposes. I am using C# and DOT NET.</p>
<p>I found it a bit difficult to change the value of an HTML combobox (i.e. dropdown), but as it turns out it&#8217;s rather easy.I used the following code to change the value of a combobox named: &#8220;test&#8221; to the value 12.</p>
<pre class="qoate-code">
foreach (HtmlElement el in webBrowser1.Document.GetElementsByTagName("select"))
{
if (el.Name == "test")
{
foreach (HtmlElement comboItem in el.Children)
{
Console.WriteLine(comboItem.InnerText + " " + comboItem.GetAttribute("Selected"));

if (comboItem.InnerText == "12")
{
comboItem.SetAttribute("Selected", "True");
}
}
}

}
</pre>
<p>This code was used for the following HTML:<br />
&lt;select name=&#8221;test&#8221;&gt;&lt;option value=&#8221;10&#8243; SELECTED&gt;10&lt;/option&gt;&lt;option value=&#8221;11&#8243;&gt;11&lt;/option&gt;&lt;option value=&#8221;12&#8243;&gt;12&lt;/option&gt;&lt;option value=&#8221;13&#8243;&gt;13&lt;/option&gt;&lt;option value=&#8221;14&#8243;&gt;14&lt;/option&gt;&lt;/select&gt;</p>
<p><code>
<pre class="qoate-code">
foreach (HtmlElement el in webBrowser1.Document.GetElementsByTagName("input"))
{
if (el.Name.ToLower() == "submit")
{
el.InvokeMember("click");
}
}
</pre>
<p> </code></p>
]]></content:encoded>
			<wfw:commentRss>http://kyriakos.anastasakis.net/2011/10/30/selecting-the-value-of-an-html-combobox-programmatically-using-a-webbrowser-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top Programming Quotes</title>
		<link>http://kyriakos.anastasakis.net/2011/01/16/top-programming-quotes/</link>
		<comments>http://kyriakos.anastasakis.net/2011/01/16/top-programming-quotes/#comments</comments>
		<pubDate>Sun, 16 Jan 2011 18:17:25 +0000</pubDate>
		<dc:creator>Kyriakos Anastasakis</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[import_facebook]]></category>
		<category><![CDATA[import_linkedin]]></category>
		<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://kyriakos.anastasakis.net/?p=268</guid>
		<description><![CDATA[I have received an Email with the top 50 programming quotes. Here are my favourites: &#8220;Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning.&#8221; &#8211; Rick Cook &#8220;Walking on water and developing [...]]]></description>
			<content:encoded><![CDATA[<p>I have received an Email with the top 50 programming quotes. Here are my favourites:</p>
<ul>
<li>&#8220;Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning.&#8221; &#8211; Rick Cook</li>
<li>&#8220;Walking on water and developing software from a specification are easy if both are frozen.&#8221; &#8211; Edward V. Berard</li>
<li>&#8220;They don&#8217;t make bugs like Bunny anymore.&#8221; &#8211; Olav Mjelde</li>
<li>&#8220;A C program is like a fast dance on a newly waxed dance floor by people carrying razors.&#8221; &#8211; Waldi Ravens</li>
<li>I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone.&#8221; &#8211; Bjarne Stroustrup</li>
<li>&#8220;In the one and only true way, the object-oriented version of &#8216;Spaghetti code&#8217; is, of course, &#8216;Lasagna code&#8217; (too many layers).&#8221; &#8211; Roberto Waltman</li>
<li>&#8220;For a long time it puzzled me how something so expensive, so leading edge, could be so useless. And then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match.&#8221; &#8211; Bill Bryson</li>
<li>&#8220;Good design adds value faster than it adds cost.&#8221; &#8211; Thomas C. Gale</li>
<li>&#8220;Perfection [in design] is achieved, not when there is nothing more to add, but when there is nothing left to take away.&#8221; &#8211; Antoine de Saint-Exupry</li>
<li>&#8220;The best programmers are not marginally better than merely good ones. They are an order-of-magnitude better, measured by whatever standard: conceptual creativity, speed, ingenuity of design, or problem-solving ability.&#8221; &#8211; Randall E. Stross</li>
<li>&#8220;To iterate is human, to recurse divine.&#8221; &#8211; L. Peter Deutsch</li>
<li>&#8220;The trouble with programmers is that you can never tell what a programmer is doing until it&#8217;s too late.&#8221; &#8211; Seymour Cray</li>
<li>&#8220;Most good programmers do programming not because they expect to get  paid or get adulation by the public, but because it is fun to program.&#8221;  -Linus Torvalds</li>
</ul>
<p>And my favourites:</p>
<ul>
<li>&#8220;You can&#8217;t have great software without a great team, and most software teams behave like dysfunctional families.&#8221; &#8211; Jim McCarthy</li>
<li>&#8220;Beware of bugs in the above code; I have only proved it correct, not tried it.&#8221; &#8211; Donald E. Knuth</li>
<li>&#8220;Sometimes it pays to stay in bed on Monday, rather than spending the rest of the week debugging Monday&#8217;s code.&#8221; &#8211; Christopher Thompson</li>
<li>&#8220;First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack.&#8221; &#8211; George Carrette</li>
<li>&#8220;Most software today is very much like an Egyptian pyramid with millions of bricks piled on top of each other, with no structural integrity, but just done by brute force and thousands of slaves.&#8221; &#8211; Alan Kay</li>
<li>&#8220;Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.&#8221; &#8211; Martin Golding</li>
<li>&#8220;There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies.&#8221; &#8211; C.A.R. Hoare</li>
</ul>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">
<pre>"Programming today is a race between software engineers striving to
<span class="moz-txt-citetags">&gt; </span>build bigger and better idiot-proof programs, and the universe trying to
<span class="moz-txt-citetags">&gt; </span>build bigger and better idiots.
<span class="moz-txt-citetags">&gt; </span>So far, the universe is winning." - Rick Cook</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://kyriakos.anastasakis.net/2011/01/16/top-programming-quotes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Visual Editor on Eclipse Helios</title>
		<link>http://kyriakos.anastasakis.net/2010/11/13/installing-visual-editor-on-eclipse-helios/</link>
		<comments>http://kyriakos.anastasakis.net/2010/11/13/installing-visual-editor-on-eclipse-helios/#comments</comments>
		<pubDate>Sat, 13 Nov 2010 13:59:43 +0000</pubDate>
		<dc:creator>Kyriakos Anastasakis</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://kyriakos.anastasakis.net/?p=260</guid>
		<description><![CDATA[I recently wanted to install Visual Editor on Eclipse Helios. Apparently there is an nice way, which works like a charm for me. For more details you can have a look here: http://sourceforge.jp/projects/tmdmaker/wiki/VisualEditor1.4.0ForHelios]]></description>
			<content:encoded><![CDATA[<p>I recently wanted to install Visual Editor on Eclipse Helios. Apparently there is an nice way, which works like a charm for me. For more details you can have a look here: <a href="http://sourceforge.jp/projects/tmdmaker/wiki/VisualEditor1.4.0ForHelios">http://sourceforge.jp/projects/tmdmaker/wiki/VisualEditor1.4.0ForHelios</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kyriakos.anastasakis.net/2010/11/13/installing-visual-editor-on-eclipse-helios/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting the CPU Usage in C#</title>
		<link>http://kyriakos.anastasakis.net/2010/10/07/getting-the-cpu-usage-in-c-sharp/</link>
		<comments>http://kyriakos.anastasakis.net/2010/10/07/getting-the-cpu-usage-in-c-sharp/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 23:38:20 +0000</pubDate>
		<dc:creator>Kyriakos Anastasakis</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://kyriakos.anastasakis.net/?p=239</guid>
		<description><![CDATA[I recently wanted to get the usage of my CPU in C#. After searching the internet I found a way of doing it using the PerfomanceCounter class. I made a couple of changes and I created the following class, which seems to work. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; { public [...]]]></description>
			<content:encoded><![CDATA[<p>I recently wanted to get the usage of my CPU in C#. After searching the internet <a href="http://stackoverflow.com/questions/278071/how-to-get-the-cpu-usage-in-c" target="_blank">I found a way of doing it</a> using the <em>PerfomanceCounter</em> class. I made a couple of changes and I created the following class, which seems to work.</p>
<p><code><br />
using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Text;<br />
using System.Diagnostics;</code></p>
<p>{<br />
   public class SystemUtils<br />
   {<br />
      public static long getCpuUsage()<br />
      {<br />
        PerformanceCounter cpuCounter;<br />
        cpuCounter = new PerformanceCounter();</p>
<p>        cpuCounter.CategoryName = &#8220;Processor&#8221;;<br />
        cpuCounter.CounterName = &#8220;% Processor Time&#8221;;<br />
        cpuCounter.InstanceName = &#8220;_Total&#8221;;</p>
<p>        cpuCounter.NextValue();<br />
        System.Threading.Thread.Sleep(1000);<br />
        return (int) cpuCounter.NextValue();<br />
      }<br />
    }<br />
}</p>
<p>Using the statement: <em>SystemUtils.getCpuUsage()</em> you should be able to get an integer number showing the CPU usage.</p>
]]></content:encoded>
			<wfw:commentRss>http://kyriakos.anastasakis.net/2010/10/07/getting-the-cpu-usage-in-c-sharp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Must have Eclipse plugins</title>
		<link>http://kyriakos.anastasakis.net/2009/10/14/must-have-eclipse-plugins/</link>
		<comments>http://kyriakos.anastasakis.net/2009/10/14/must-have-eclipse-plugins/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 19:51:07 +0000</pubDate>
		<dc:creator>Kyriakos Anastasakis</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://kyriakos.anastasakis.net/?p=204</guid>
		<description><![CDATA[From time to time I develop something on Eclipse. Apart from the usual Eclipse operations (build and test) that I do with the Eclipse Ant and JUnit plugins (they ship with Eclipse for Java), I also wanted to carry out some dependency analysis on existing code. Of course JDepend is the obvious option, but I [...]]]></description>
			<content:encoded><![CDATA[<p>From time to time I develop something on Eclipse. Apart from the usual Eclipse operations (build and test) that I do with the Eclipse Ant and JUnit plugins (they ship with Eclipse for Java), I also wanted to carry out some dependency analysis on existing code. Of course JDepend is the obvious option, but I found a nice article from IBM that suggests some additional plugins that help the coder carry out day to day tasks such as Complexity monitoring and Coding standard analysis.</p>
<p>The following is a summary of the plugins proposed by the article. Of course all of them are opensource/free.</p>
<table border="1">
<tbody>
<tr>
<td><strong>Tool</strong></td>
<td><strong>Purpose</strong></td>
<td><strong>URL for Eclipse plugin</strong></td>
</tr>
<tr>
<td>CheckStyle</td>
<td>Coding standard analysis</td>
<td>http://eclipse-cs.sourceforge.net/update/</td>
</tr>
<tr>
<td>Coverlipse</td>
<td>Test code coverage</td>
<td>http://coverlipse.sf.net/update</td>
</tr>
<tr>
<td>CPD</td>
<td>Copy/Paste detection</td>
<td>http://pmd.sourceforge.net/eclipse/</td>
</tr>
<tr>
<td>JDepend</td>
<td>Package dependency analysis</td>
<td>http://andrei.gmxhome.de/eclipse/</td>
</tr>
<tr>
<td>Metrics</td>
<td>Complexity monitoring</td>
<td>http://metrics.sourceforge.net/update</td>
</tr>
</tbody>
</table>
<p>The full IBM article can be found here: <a href="http://www.ibm.com/developerworks/java/library/j-ap01117/" target="_blank">http://www.ibm.com/developerworks/java/library/j-ap01117/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kyriakos.anastasakis.net/2009/10/14/must-have-eclipse-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exception using XMLConfiguration</title>
		<link>http://kyriakos.anastasakis.net/2009/02/23/exception-using-xmlconfiguration/</link>
		<comments>http://kyriakos.anastasakis.net/2009/02/23/exception-using-xmlconfiguration/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 14:01:36 +0000</pubDate>
		<dc:creator>Kyriakos Anastasakis</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[UML2Alloy]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[import_linkedin]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://kyriakos.anastasakis.net/?p=157</guid>
		<description><![CDATA[I tried using the Apache XMLConfiguration to save the settings of an application I am developing to XML format. When I used it with Java 1.5 it all worked perfectly; however if I tried using it with Java 1.6 I was getting the following exception. Exception in thread "main" java.lang.AbstractMethodError: org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(Unknown Source) at [...]]]></description>
			<content:encoded><![CDATA[<p>I tried using the <a href="http://commons.apache.org/configuration/" target="_blank">Apache XMLConfiguration</a> to save the settings of an application I am developing to XML format. When I used it with Java 1.5 it all worked perfectly; however if I tried using it with Java 1.6 I was getting the following exception.</p>
<p><span style="font-family: Courier; font-size: small;"><code><br />
Exception in thread "main" java.lang.AbstractMethodError: org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z<br />
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(Unknown Source)<br />
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)<br />
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)<br />
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(Unknown Source)<br />
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)<br />
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)<br />
at org.apache.commons.configuration.XMLConfiguration.save(XMLConfiguration.java:880)<br />
at org.apache.commons.configuration.AbstractHierarchicalFileConfiguration$FileConfigurationDelegate.save(AbstractHierarchicalFileConfiguration.java:454)<br />
at org.apache.commons.configuration.AbstractFileConfiguration.save(AbstractFileConfiguration.java:546)<br />
at org.apache.commons.configuration.AbstractFileConfiguration.save(AbstractFileConfiguration.java:513)<br />
at org.apache.commons.configuration.AbstractFileConfiguration.save(AbstractFileConfiguration.java:491)<br />
at org.apache.commons.configuration.AbstractFileConfiguration.save(AbstractFileConfiguration.java:403)<br />
at org.apache.commons.configuration.AbstractHierarchicalFileConfiguration.save(AbstractHierarchicalFileConfiguration.java:199)<br />
</code></span></p>
<p>After doing some search on google I found that this can be a problem with the xerces XML library (xercesImpl.jar). Checking the 3rd party libraries I am using in my project, I found a library that was using and distributing an earlier version of xercesImpl.jar.</p>
<p>I downloaded the latest version (2.91) of xercesImpl.jar from the Apache xerces project (<a href="http://xerces.apache.org/mirrors.cgi#binary" target="_blank">http://xerces.apache.org/mirrors.cgi#binary</a>) and replaced in the 3rd party library I was using the xercesImpl.jar file with the one I downloaded. Now everything seems to work fine, even in Java 1.6.  <img src='http://kyriakos.anastasakis.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://kyriakos.anastasakis.net/2009/02/23/exception-using-xmlconfiguration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

