<?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>btaz</title>
	<atom:link href="http://www.btaz.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.btaz.com</link>
	<description>Promoting the art of coding</description>
	<lastBuildDate>Thu, 04 Mar 2010 19:43:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DbVisualizer auto commit problem</title>
		<link>http://www.btaz.com/java/jdbc/dbvisualizer-auto-commit-problem/</link>
		<comments>http://www.btaz.com/java/jdbc/dbvisualizer-auto-commit-problem/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 16:47:30 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[JDBC]]></category>
		<category><![CDATA[auto commit]]></category>
		<category><![CDATA[DbVisualizer]]></category>

		<guid isPermaLink="false">http://www.btaz.com/?p=157</guid>
		<description><![CDATA[I had some issues with DbVisualizer and auto commit. I wanted to be able to turn it off from the SQL commander. The official documentation states that you can do this using:
The Auto Commit setting is enabled by default and can be adjusted in the Connection Properties. You may also adjust the  auto commit state [...]


Related posts:<ol><li><a href='http://www.btaz.com/databases/oracle/sqlloader-522-lfiopn-failed-for-file-loader-log/' rel='bookmark' title='Permanent Link: SQL*Loader-522: lfiopn failed for file (loader.log)'>SQL*Loader-522: lfiopn failed for file (loader.log)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I had some issues with DbVisualizer and auto commit. I wanted to be able to turn it off from the SQL commander. The official documentation states that you can do this using:</p>
<p><span style="color: #0000ff;">The Auto Commit setting is enabled by default and can be adjusted in the Connection Properties. You may also adjust the  auto commit state for the SQL editor you are using in the SQL Commander with the following command:</span></p>
<p>@set autocommit true/false</p>
<p>Unfortunately this didn&#8217;t work for  me in either 6.5.12 or 7.04 (I&#8217;m using OS X and Java 6) against an Oracle 10g database. I get an error alert stating &#8220;/application/set autocommit false (No such file or directory)&#8221;<br />
I was finally able to figure out that you can get it to work using:</p>
<p><span style="color: #0000ff;">@set autocommit off/on</span></p>
<p>I&#8217;m not sure if this is a problem that only occur on OS X.</p>


<p>Related posts:<ol><li><a href='http://www.btaz.com/databases/oracle/sqlloader-522-lfiopn-failed-for-file-loader-log/' rel='bookmark' title='Permanent Link: SQL*Loader-522: lfiopn failed for file (loader.log)'>SQL*Loader-522: lfiopn failed for file (loader.log)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.btaz.com/java/jdbc/dbvisualizer-auto-commit-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GIT Fatal You Have not Concluded Your Merge MERGE_HEAD Exists</title>
		<link>http://www.btaz.com/scm/git/git-fatal-you-have-not-concluded-your-merge-merge_head-exists/</link>
		<comments>http://www.btaz.com/scm/git/git-fatal-you-have-not-concluded-your-merge-merge_head-exists/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 06:23:15 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[GIT]]></category>
		<category><![CDATA[fatal]]></category>
		<category><![CDATA[MERGE_HEAD exists]]></category>

		<guid isPermaLink="false">http://www.btaz.com/?p=152</guid>
		<description><![CDATA[fatal: You have not concluded your merge. (MERGE_HEAD exists)
I got this message because when I performed a &#8220;git pull&#8221;. I searched for a solution for this problem on the Internet and it wasn&#8217;t until I found this post that I was able to resolve this issue. The problem was that I:

Performed a &#8220;git pull&#8221; and [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>fatal: You have not concluded your merge. (MERGE_HEAD exists)</p>
<p>I got this message because when I performed a &#8220;git pull&#8221;. I searched for a solution for this problem on the Internet and it wasn&#8217;t until I found this <a title="git merge issue patch" href="http://lists.zerezo.com/git/msg692855.html">post</a> that I was able to resolve this issue. The problem was that I:</p>
<ol>
<li>Performed a &#8220;git pull&#8221; and the automatic merge failed and I ended up with merge conflicts</li>
<li>I resolved the merge conflicts and added the resolved files back using &#8220;git add&#8221;</li>
<li>Performed a new &#8220;git pull&#8221; and got the &#8220;Fatal You Have not Concluded Your Merge MERGE_HEAD Exists&#8221; error</li>
</ol>
<p>Apparently step 3 overrides MERGE_HEAD, starting a new merge with a dirty index. According to the post this is a common mistake made by programmers that are used to version control systems where the user follows an &#8220;update&#8221; and &#8220;commit&#8221; work flow.</p>
<p>So how do we resolve this issue? What worked for me was to follow the instructions for how to &#8220;Undo a merge or pull inside a dirty work tree&#8221; found <a title="Undo a merge or pull inside a dirty work tree" href="http://www.kernel.org/pub/software/scm/git/docs/git-reset.html">here</a>.</p>
<ol>
<li>I used &#8220;git reset &#8211;merge ORIG_HEAD&#8221;</li>
<li>I resolved the merge conflicts again and added the resolved files back using &#8220;git add&#8221;</li>
<li>I was then finally able to &#8220;push&#8221; my changes!</li>
</ol>
<p>According to the documentation if you run a &#8220;git reset &#8211;hard ORIG_HEAD&#8221; it will let you go back to where you were before you were trying to commit your changes, however you will lose local changes. Most likely not what you want to do. Using &#8220;git reset &#8211;merge&#8221; will let you keep your local changes. You will however have to re-resolve your conflicting merge files.</p>
<p>Some additional information on this topic can be found <a title="refuse to merge during a merge" href="http://n2.nabble.com/PATCH-refuse-to-merge-during-a-merge-td2983703.html">here</a>.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.btaz.com/scm/git/git-fatal-you-have-not-concluded-your-merge-merge_head-exists/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>SQL*Loader-522: lfiopn failed for file (loader.log)</title>
		<link>http://www.btaz.com/databases/oracle/sqlloader-522-lfiopn-failed-for-file-loader-log/</link>
		<comments>http://www.btaz.com/databases/oracle/sqlloader-522-lfiopn-failed-for-file-loader-log/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 20:39:36 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[522]]></category>
		<category><![CDATA[lfiopn]]></category>
		<category><![CDATA[SQL Loader]]></category>

		<guid isPermaLink="false">http://www.btaz.com/?p=150</guid>
		<description><![CDATA[I used the Oracle SQL Loader to push some data into a table and got the following error: SQL*Loader-522: lfiopn failed for file (loader.log)
This somewhat cryptic error message turned out to be that Oracle SQL Loader didn&#8217;t have write permissions in the work directory i.e. in the directory where I executed the sqlldr command. Once [...]


Related posts:<ol><li><a href='http://www.btaz.com/java/jdbc/dbvisualizer-auto-commit-problem/' rel='bookmark' title='Permanent Link: DbVisualizer auto commit problem'>DbVisualizer auto commit problem</a></li>
<li><a href='http://www.btaz.com/scm/svn-inconsistent-line-ending-style-when-trying-to-commit-a-binary-file/' rel='bookmark' title='Permanent Link: svn: Inconsistent line ending style when trying to commit a binary file'>svn: Inconsistent line ending style when trying to commit a binary file</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I used the Oracle SQL Loader to push some data into a table and got the following error: SQL*Loader-522: lfiopn failed for file (loader.log)<br />
This somewhat cryptic error message turned out to be that Oracle SQL Loader didn&#8217;t have write permissions in the work directory i.e. in the directory where I executed the sqlldr command. Once I fixed the directory permission everything worked just fine.</p>


<p>Related posts:<ol><li><a href='http://www.btaz.com/java/jdbc/dbvisualizer-auto-commit-problem/' rel='bookmark' title='Permanent Link: DbVisualizer auto commit problem'>DbVisualizer auto commit problem</a></li>
<li><a href='http://www.btaz.com/scm/svn-inconsistent-line-ending-style-when-trying-to-commit-a-binary-file/' rel='bookmark' title='Permanent Link: svn: Inconsistent line ending style when trying to commit a binary file'>svn: Inconsistent line ending style when trying to commit a binary file</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.btaz.com/databases/oracle/sqlloader-522-lfiopn-failed-for-file-loader-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java primitive data type sizes for byte, short, int, long, float, double and char</title>
		<link>http://www.btaz.com/java/java-primitive-data-type-sizes-for-byte-short-int-long-float-double-and-char/</link>
		<comments>http://www.btaz.com/java/java-primitive-data-type-sizes-for-byte-short-int-long-float-double-and-char/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 21:32:37 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[byte]]></category>
		<category><![CDATA[char]]></category>
		<category><![CDATA[data type]]></category>
		<category><![CDATA[default value]]></category>
		<category><![CDATA[digits]]></category>
		<category><![CDATA[double]]></category>
		<category><![CDATA[float]]></category>
		<category><![CDATA[int]]></category>
		<category><![CDATA[long]]></category>
		<category><![CDATA[max]]></category>
		<category><![CDATA[min]]></category>
		<category><![CDATA[primitive data types]]></category>
		<category><![CDATA[short]]></category>
		<category><![CDATA[size]]></category>

		<guid isPermaLink="false">http://www.btaz.com/?p=113</guid>
		<description><![CDATA[
table {
width:100%;
border:1px solid #e5eff8;
margin:1em auto;
border-collapse:collapse;
}
th {
color:#678197;
border: 1px solid #e5eff8;
padding: 2px;
text-align:center;
font-weight: bold;
text-align: left;
}
td {
color:#678197;
border:1px solid #e5eff8;
padding: 2px;
text-align:left;
}

A handy list for Java data types and sizes
Integer Data Types



Data Type
Size
Digits
Min
Max


byte
8-bit signed
3
-128
127


short
16-bit signed
5
-32,768
32,767


int
32-bit signed
10
-2,147,483,648
2,147,483,647


long
64-bit signed
19
-9,223,372,036,854,775,808
9,223,372,036,854,775,807




Floating Point Data Types



Data Type
Size


float
single-precision 32-bit IEEE 754 floating point


double
double-precision 64-bit IEEE 754 floating point




Boolean Data Types



Data Type
Values


boolean
true or false




Character Data Types



Data Type
Min
Max


char
\u0000 or 0
\uffff [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<style type="text/css">
<p>table {
width:100%;
border:1px solid #e5eff8;
margin:1em auto;
border-collapse:collapse;
}
th {
color:#678197;
border: 1px solid #e5eff8;
padding: 2px;
text-align:center;
font-weight: bold;
text-align: left;
}
td {
color:#678197;
border:1px solid #e5eff8;
padding: 2px;
text-align:left;
}</p>
</style>
<p>A handy list for Java data types and sizes</p>
<h3>Integer Data Types</h3>
<table border="0">
<tbody>
<tr>
<th>Data Type</th>
<th>Size</th>
<th>Digits</th>
<th>Min</th>
<th>Max</th>
</tr>
<tr>
<td>byte</td>
<td>8-bit signed</td>
<td>3</td>
<td>-128</td>
<td>127</td>
</tr>
<tr>
<td>short</td>
<td>16-bit signed</td>
<td>5</td>
<td>-32,768</td>
<td>32,767</td>
</tr>
<tr>
<td>int</td>
<td>32-bit signed</td>
<td>10</td>
<td>-2,147,483,648</td>
<td>2,147,483,647</td>
</tr>
<tr>
<td>long</td>
<td>64-bit signed</td>
<td>19</td>
<td>-9,223,372,036,854,775,808</td>
<td>9,223,372,036,854,775,807</td>
</tr>
</tbody>
</table>
<p></p>
<h3>Floating Point Data Types</h3>
<table border="0">
<tbody>
<tr>
<th>Data Type</th>
<th>Size</th>
</tr>
<tr>
<td>float</td>
<td>single-precision 32-bit IEEE 754 floating point</td>
</tr>
<tr>
<td>double</td>
<td>double-precision 64-bit IEEE 754 floating point</td>
</tr>
</tbody>
</table>
<p></p>
<h3>Boolean Data Types</h3>
<table border="0">
<tbody>
<tr>
<th>Data Type</th>
<th>Values</th>
</tr>
<tr>
<td>boolean</td>
<td>true or false</td>
</tr>
</tbody>
</table>
<p></p>
<h3>Character Data Types</h3>
<table border="0">
<tbody>
<tr>
<th>Data Type</th>
<th>Min</th>
<th>Max</th>
</tr>
<tr>
<td>char</td>
<td>\u0000 or 0</td>
<td>\uffff or 65,535</td>
</tr>
</tbody>
</table>
<p></p>
<h3>Default Values</h3>
<table border="0">
<tbody>
<tr>
<th>Data Type</th>
<th>Default Value</th>
</tr>
<tr>
<td>byte</td>
<td>0</td>
</tr>
<tr>
<td>short</td>
<td>0</td>
</tr>
<tr>
<td>int</td>
<td>0</td>
</tr>
<tr>
<td>long</td>
<td>0L</td>
</tr>
<tr>
<td>float</td>
<td>0.0f</td>
</tr>
<tr>
<td>double</td>
<td>0.0d</td>
</tr>
<tr>
<td>char</td>
<td>&#8216;\u0000&#8242;</td>
</tr>
<tr>
<td>boolean</td>
<td>false</td>
</tr>
<tr>
<td>Any Object(s)</td>
<td>null</td>
</tr>
</tbody>
</table>
<p>
References:<br />
<a href="http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html">http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.btaz.com/java/java-primitive-data-type-sizes-for-byte-short-int-long-float-double-and-char/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find project dependencies in a Maven project</title>
		<link>http://www.btaz.com/java/how-to-find-project-dependencies-in-a-maven-project/</link>
		<comments>http://www.btaz.com/java/how-to-find-project-dependencies-in-a-maven-project/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 09:45:09 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[class path]]></category>
		<category><![CDATA[dependency]]></category>
		<category><![CDATA[pom.xml]]></category>
		<category><![CDATA[see a list of dependencies]]></category>

		<guid isPermaLink="false">http://www.btaz.com/?p=109</guid>
		<description><![CDATA[
It&#8217;s very useful to be able to see what is included in your class path especially when you&#8217;re trying to track down a troublesome dependency. Recently I had an issue with a JDOM dependency; however I had not defined a JDOM dependency in my pom.xml file and I couldn&#8217;t quite figure out why this dependency [...]


Related posts:<ol><li><a href='http://www.btaz.com/java/want-to-use-spring-3-0-milestone-release-from-maven/' rel='bookmark' title='Permanent Link: Want to use Spring 3.0 milestone release from Maven?'>Want to use Spring 3.0 milestone release from Maven?</a></li>
<li><a href='http://www.btaz.com/java/maven-log4j-and-javax-jms/' rel='bookmark' title='Permanent Link: Maven, Log4j and javax.jms'>Maven, Log4j and javax.jms</a></li>
<li><a href='http://www.btaz.com/java/maven/18/' rel='bookmark' title='Permanent Link: Maven pom.xml structure'>Maven pom.xml structure</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-110" title="cog-wheels" src="http://www.btaz.com/wp-content/uploads/2009/10/cog-wheels.jpg" alt="cog-wheels" width="296" height="199" /><br />
It&#8217;s very useful to be able to see what is included in your class path especially when you&#8217;re trying to track down a troublesome dependency. Recently I had an issue with a JDOM dependency; however I had not defined a JDOM dependency in my pom.xml file and I couldn&#8217;t quite figure out why this dependency existed. This is where Maven&#8217;s excellent dependency plugin comes to the rescue.</p>
<p>In a project you may have dependencies on libraries like Log4J or Freemarker. These libraries in their turn may have dependencies on other libraries, this is also known as transitive dependencies.</p>
<p>Using the following Maven command we&#8217;ll be able to see a list of these dependencies:</p>
<pre>mvn dependency:resolve</pre>
<p>For a nice tree view of the same information use:</p>
<pre>mvn dependency:tree</pre>
<p>If you want to see a full dependency trail that also show you artifacts that were rejected due to conflicts or other reasons then run maven with the debug flag enabled:</p>
<pre>mvn install -X</pre>
<p>For more information about the Maven dependency plugin go here: <a title="Maven dependency plugin" href="http://maven.apache.org/plugins/maven-dependency-plugin/">http://maven.apache.org/plugins/maven-dependency-plugin/</a></p>


<p>Related posts:<ol><li><a href='http://www.btaz.com/java/want-to-use-spring-3-0-milestone-release-from-maven/' rel='bookmark' title='Permanent Link: Want to use Spring 3.0 milestone release from Maven?'>Want to use Spring 3.0 milestone release from Maven?</a></li>
<li><a href='http://www.btaz.com/java/maven-log4j-and-javax-jms/' rel='bookmark' title='Permanent Link: Maven, Log4j and javax.jms'>Maven, Log4j and javax.jms</a></li>
<li><a href='http://www.btaz.com/java/maven/18/' rel='bookmark' title='Permanent Link: Maven pom.xml structure'>Maven pom.xml structure</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.btaz.com/java/how-to-find-project-dependencies-in-a-maven-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to control or throttle SCP file transfer speed</title>
		<link>http://www.btaz.com/unixlinux/how-to-control-or-throttle-scp-file-transfer-speed/</link>
		<comments>http://www.btaz.com/unixlinux/how-to-control-or-throttle-scp-file-transfer-speed/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 18:43:13 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[exceed]]></category>
		<category><![CDATA[file transer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MBit/s]]></category>
		<category><![CDATA[SCP]]></category>
		<category><![CDATA[throttle]]></category>

		<guid isPermaLink="false">http://www.btaz.com/?p=94</guid>
		<description><![CDATA[I wanted to control how fast SCP copy data between two Linux servers. On a Linux system this can easily be achieved using the &#8220;SCP -l&#8221; switch. In my case I had to make sure to not exceed 0.5 Mbit/s
Since the &#8220;-l&#8221; parameter uses Kbit/s the correct value in my case is 500
scp -l 500 [...]


Related posts:<ol><li><a href='http://www.btaz.com/unixlinux/how-to-automatically-provide-an-answer-to-unix-commands/' rel='bookmark' title='Permanent Link: How to automatically provide an answer to Unix commands'>How to automatically provide an answer to Unix commands</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I wanted to control how fast SCP copy data between two Linux servers. On a Linux system this can easily be achieved using the &#8220;SCP -l&#8221; switch. In my case I had to make sure to not exceed 0.5 Mbit/s</p>
<p>Since the &#8220;-l&#8221; parameter uses Kbit/s the correct value in my case is 500</p>
<pre>scp -l 500 big-file.tar someuser@someserver.com:backups/.</pre>


<p>Related posts:<ol><li><a href='http://www.btaz.com/unixlinux/how-to-automatically-provide-an-answer-to-unix-commands/' rel='bookmark' title='Permanent Link: How to automatically provide an answer to Unix commands'>How to automatically provide an answer to Unix commands</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.btaz.com/unixlinux/how-to-control-or-throttle-scp-file-transfer-speed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How I fixed the problem and got my Logitech mouse working OS X 10.6 Snow Leopard</title>
		<link>http://www.btaz.com/os-x-apple-os/how-i-fixed-the-problem-and-got-my-logitech-mouse-working-os-x-10-6-snow-leopard/</link>
		<comments>http://www.btaz.com/os-x-apple-os/how-i-fixed-the-problem-and-got-my-logitech-mouse-working-os-x-10-6-snow-leopard/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 14:50:15 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[OS X / Apple OS]]></category>
		<category><![CDATA[drivers]]></category>
		<category><![CDATA[installer]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[logitech]]></category>
		<category><![CDATA[logitech control center]]></category>
		<category><![CDATA[mice]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[os x 10.6]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[snow leopard]]></category>

		<guid isPermaLink="false">http://www.btaz.com/?p=88</guid>
		<description><![CDATA[Logitech has yet to release updated keyboard and mice drivers for OS X 10.6 / Snow Leopard. I&#8217;m quite fond of my Logitech MX 510 mouse and wanted this problem fixed as soon as possible.
I used the instruction from the link below which tells you to download the &#8220;Logitech Control Center&#8221;, locate the &#8220;Logitech Control [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Logitech has yet to release updated keyboard and mice drivers for OS X 10.6 / Snow Leopard. I&#8217;m quite fond of my Logitech MX 510 mouse and wanted this problem fixed as soon as possible.</p>
<p>I used the instruction from the link below which tells you to download the &#8220;Logitech Control Center&#8221;, locate the &#8220;Logitech Control Center.mkpg&#8221; file inside the &#8220;Logitech Control Center Installer.app&#8221; and execute it. This will by-pass the OS X version check inside the Logitech installer.</p>
<p>I however wanted to use the installer for my mouse MX 510 which uses the &#8220;LCC Installer 2.app&#8221;. I followed the same instructions, located the &#8220;Logitech Control Center.mkpg&#8221; and executed it which successfully got the driver installed.</p>
<p>I found the solution to this problem here:<br />
<a title="Logitech and Snow Leopard get your logitech mouse and keyboard working again" href="http://www.tuaw.com/2009/09/01/snow-leopard-get-your-logitech-mouse-and-keyboard-working-again/">http://www.tuaw.com/2009/09/01/snow-leopard-get-your-logitech-mouse-and-keyboard-working-again/</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.btaz.com/os-x-apple-os/how-i-fixed-the-problem-and-got-my-logitech-mouse-working-os-x-10-6-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Want to use Spring 3.0 milestone release from Maven?</title>
		<link>http://www.btaz.com/java/want-to-use-spring-3-0-milestone-release-from-maven/</link>
		<comments>http://www.btaz.com/java/want-to-use-spring-3-0-milestone-release-from-maven/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 06:12:25 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[artifact]]></category>
		<category><![CDATA[dependency]]></category>
		<category><![CDATA[early access]]></category>
		<category><![CDATA[maven repository]]></category>
		<category><![CDATA[pom.xml]]></category>
		<category><![CDATA[snapshot releases]]></category>
		<category><![CDATA[spring milestone release]]></category>

		<guid isPermaLink="false">http://www.btaz.com/?p=81</guid>
		<description><![CDATA[I wanted to add the Spring 3.0 M4 milestone early access release to a Maven project to test out some of the new features. However Spring  milestone releases are not readily available in the standard public Maven repositories, so what do you do?
For the full explanation check out the link to &#8220;Spring/Maven Repositories&#8221; link in [...]


Related posts:<ol><li><a href='http://www.btaz.com/java/maven-log4j-and-javax-jms/' rel='bookmark' title='Permanent Link: Maven, Log4j and javax.jms'>Maven, Log4j and javax.jms</a></li>
<li><a href='http://www.btaz.com/java/how-to-find-project-dependencies-in-a-maven-project/' rel='bookmark' title='Permanent Link: How to find project dependencies in a Maven project'>How to find project dependencies in a Maven project</a></li>
<li><a href='http://www.btaz.com/java/maven/18/' rel='bookmark' title='Permanent Link: Maven pom.xml structure'>Maven pom.xml structure</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I wanted to add the Spring 3.0 M4 milestone early access release to a Maven project to test out some of the new features. However Spring  milestone releases are not readily available in the standard public Maven repositories, so what do you do?</p>
<p>For the full explanation check out the link to &#8220;Spring/Maven Repositories&#8221; link in the bottom. For a quick 1-2-3 step solution add this to the &lt;repositories&gt; section in your Maven pom.xml file so that Maven can find Spring&#8217;s early access milestone releases:</p>
<div>
<pre><span style="color: #0000ff;">&lt;repository&gt;
  &lt;id&gt;spring-milestone&lt;/id&gt;
  &lt;name&gt;Spring Portfolio Milestone Repository&lt;/name&gt;
  &lt;url&gt;http://s3.amazonaws.com/maven.springframework.org/milestone&lt;/url&gt;
&lt;/repository&gt;</span></pre>
<div>You can then add Spring 3.0 M4 as a dependency in your pom.xml file:</div>
<pre><span style="color: #0000ff;">&lt;dependency&gt;
  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
  &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  &lt;version&gt;3.0.0.M4&lt;/version&gt;
&lt;/dependency&gt;</span></pre>
<div>If you&#8217;re looking for other Spring artifacts you can browse them using this <a title="Spring Maven artifact URL" href="http://s3browse.com/explore/maven.springframework.org/milestone">Spring Maven artifact URL</a></div>
<div>
<p>This Spring article has additional details on this topic e.g  how to access snapshot releases:</p>
<p><a title="Spring / Maven Repositories" href="http://blog.springsource.com/2007/09/18/maven-artifacts-2/">Spring/Maven Repositories</a></div>
</div>


<p>Related posts:<ol><li><a href='http://www.btaz.com/java/maven-log4j-and-javax-jms/' rel='bookmark' title='Permanent Link: Maven, Log4j and javax.jms'>Maven, Log4j and javax.jms</a></li>
<li><a href='http://www.btaz.com/java/how-to-find-project-dependencies-in-a-maven-project/' rel='bookmark' title='Permanent Link: How to find project dependencies in a Maven project'>How to find project dependencies in a Maven project</a></li>
<li><a href='http://www.btaz.com/java/maven/18/' rel='bookmark' title='Permanent Link: Maven pom.xml structure'>Maven pom.xml structure</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.btaz.com/java/want-to-use-spring-3-0-milestone-release-from-maven/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to automatically provide an answer to Unix commands</title>
		<link>http://www.btaz.com/unixlinux/how-to-automatically-provide-an-answer-to-unix-commands/</link>
		<comments>http://www.btaz.com/unixlinux/how-to-automatically-provide-an-answer-to-unix-commands/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 23:29:40 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[automatically]]></category>
		<category><![CDATA[confirm]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[cp]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[yes]]></category>

		<guid isPermaLink="false">http://www.btaz.com/?p=73</guid>
		<description><![CDATA[How do you automatically provide an answer to a Unix command for example
cp: overwrite `destination/./b.txt'?
Many Unix/Linux commands that operate on files may stop and ask for confirmation for each file before completing an action. Of course for many Unix/Linux commands there are parameters that allows you to specify the desired behavior, but there are other [...]


Related posts:<ol><li><a href='http://www.btaz.com/unixlinux/how-to-control-or-throttle-scp-file-transfer-speed/' rel='bookmark' title='Permanent Link: How to control or throttle SCP file transfer speed'>How to control or throttle SCP file transfer speed</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>How do you automatically provide an answer to a Unix command for example</p>
<pre>cp: overwrite `destination/./b.txt'?</pre>
<p>Many Unix/Linux commands that operate on files may stop and ask for confirmation for each file before completing an action. Of course for many Unix/Linux commands there are parameters that allows you to specify the desired behavior, but there are other commands that doesn&#8217;t have that capability. Advanced Unix users just look up the &#8220;yes&#8221; command on how to solve this. Here&#8217;s a contrived example where a directory called &#8220;destination&#8221; contains two files &#8220;a.txt&#8221; and &#8220;b.txt&#8221;. We will now copy two files &#8220;b.txt&#8221; and &#8220;c.txt&#8221; from a directory called &#8220;source&#8221;</p>
<pre>|-- destination
|   |-- a.txt
|   `-- b.txt
`-- source
 |-- b.txt
 `-- c.txt</pre>
<p>We&#8217;ll copy the files using the &#8220;cp&#8221; command</p>
<pre>cp source/*.txt destination/.</pre>
<p>When we do this we&#8217;ll get the following response on the command line where the OS is asking us what it want us to do since one file being copied already exist in the destination directory i.e. &#8220;b.txt&#8221;</p>
<pre>cp: overwrite `destination/./b.txt'?</pre>
<p>Unfortunately on Linux the cp command doesn&#8217;t have an option to automatically answer this question with a &#8216;y&#8217; or &#8216;n&#8217; answer. There&#8217;s more than one solution to this problem depending on what you want to do, and one solution is to use the Unix &#8220;yes&#8221; command. This command will output a string repeatedly until killed. If we want to avoid overwriting any of the files in the destination directory we could use the &#8220;yes&#8221; command to answer all questions with a no &#8220;n&#8221;. Below you can see how the &#8220;yes&#8221; command is used to automatically provide the answer &#8220;n&#8221; to the &#8220;cp&#8221; command. Use &#8220;man yes&#8221; for more information about the &#8220;yes&#8221; command.</p>
<pre>yes n | cp source/*.txt destination/.</pre>
<p>This successfully copies all files with the exception of the &#8220;b.txt&#8221; file which is what we wanted. The &#8220;yes&#8221; command automatically provided the answer &#8220;n&#8221; to the &#8220;cp&#8221; command question whether or not we wanted to overwrite the destination file.</p>
<p>In the case that you mess up when you use the &#8220;yes&#8221; command for example by typing this:</p>
<pre>yes bingo</pre>
<p>The &#8220;yes&#8221; command will output the word &#8220;bingo&#8221; repeatedly to the screen. You can stop it by typing Control-C or in a different shell type &#8220;pgrep yes&#8221; which will display the &#8220;yes&#8221; commands PID (process ID) which you can use to kill the &#8220;yes&#8221; command by typing &#8220;kill &lt;PID&gt;&#8221;</p>
<pre>pgrep yes</pre>
<p>In my case it returned 24940 so I killed it with:</p>
<pre>kill 24940</pre>


<p>Related posts:<ol><li><a href='http://www.btaz.com/unixlinux/how-to-control-or-throttle-scp-file-transfer-speed/' rel='bookmark' title='Permanent Link: How to control or throttle SCP file transfer speed'>How to control or throttle SCP file transfer speed</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.btaz.com/unixlinux/how-to-automatically-provide-an-answer-to-unix-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JUnit 4 error: reference to assertEquals is ambiguous</title>
		<link>http://www.btaz.com/java/junit-4-error-reference-to-assertequals-is-ambiguous/</link>
		<comments>http://www.btaz.com/java/junit-4-error-reference-to-assertequals-is-ambiguous/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 19:56:21 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[JUnit]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[ambiguous]]></category>
		<category><![CDATA[assertEqual]]></category>

		<guid isPermaLink="false">http://www.btaz.com/?p=67</guid>
		<description><![CDATA[This is a somewhat confusing compilation failure that sometimes happen when you write unit tests using JUnit 4. This is an example code snippet that produces this error (result.getValue() returns an Integer object):
assertEquals(12345, result.getValue());
And when you try to compile your project it produces a compilation error like this:
/projects/myapp/src/test/java/org/myapp/MyTest.java:[88,8] reference to assertEquals is ambiguous, both method [...]


Related posts:<ol><li><a href='http://www.btaz.com/java/java-primitive-data-type-sizes-for-byte-short-int-long-float-double-and-char/' rel='bookmark' title='Permanent Link: Java primitive data type sizes for byte, short, int, long, float, double and char'>Java primitive data type sizes for byte, short, int, long, float, double and char</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This is a somewhat confusing compilation failure that sometimes happen when you write unit tests using JUnit 4. This is an example code snippet that produces this error (result.getValue() returns an Integer object):</p>
<pre>assertEquals(12345, result.getValue());</pre>
<p>And when you try to compile your project it produces a compilation error like this:</p>
<p><span style="color: #0000ff;">/projects/myapp/src/test/java/org/myapp/MyTest.java:[88,8] reference to assertEquals is ambiguous, both method assertEquals(double,double) in org.junit.Assert and method assertEquals(java.lang.Object,java.lang.Object) in org.junit.Assert match</span></p>
<p>Since JUnit offer several methods that are very similar the compiler can not always determine which one to use. In our case we have the number 12345 which is an int and result.getValue() which is an Integer. You&#8217;d think that the compiler could figure out to convert the number 12345 to an Integer object which would give us a match on &#8220;assertEquals(java.lang.Object, java.lang.Object) method, but instead it throws the above error.</p>
<p>The reason for this is that Java uses best match to try to determine the method that will require the least conversion of the parameters. In this case one method requires boxing, and the other method would require un-boxing. Both of these methods have equal priority and that&#8217;s why there is ambiguity since none of the methods are more specific than the other.</p>
<p>The solution is to help the compiler determine what it need to do. We can do that using this:</p>
<pre>assertEquals(12345, (int) result.getValue());</pre>
<p>or this:</p>
<pre>
<pre>assertEquals((Integer)12345, result.getValue());</pre>
</pre>
<p>to resolve this problem. The second solution that converts 12345 to an Integer object is most likely the better once since Java will auto-box a null value to the number 0 which may not be the correct behavior for the class you&#8217;re testing.</p>


<p>Related posts:<ol><li><a href='http://www.btaz.com/java/java-primitive-data-type-sizes-for-byte-short-int-long-float-double-and-char/' rel='bookmark' title='Permanent Link: Java primitive data type sizes for byte, short, int, long, float, double and char'>Java primitive data type sizes for byte, short, int, long, float, double and char</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.btaz.com/java/junit-4-error-reference-to-assertequals-is-ambiguous/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
