<?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>It&#039;s not a bug ... It&#039;s a convenience issue &#187; Software</title>
	<atom:link href="http://www.mymegabyte.com/category/tech/software/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mymegabyte.com</link>
	<description>Random tech things that I come across.</description>
	<lastBuildDate>Sat, 23 Jul 2011 13:50:30 +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>Cross Compile libmysql</title>
		<link>http://www.mymegabyte.com/2011/03/cross-compile-libmysql/</link>
		<comments>http://www.mymegabyte.com/2011/03/cross-compile-libmysql/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 19:26:34 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.mymegabyte.com/?p=199</guid>
		<description><![CDATA[The key to cross-compiling libmysql is to google &#8220;cmake cross compile&#8221; instead of &#8220;libmysql cross compile&#8221;.  Took me a bit to think of this but it makes sense because cmake is the build system for libmysql. My How-To My how-to assumes you have a Linux system with standard development tools and compilers installed as well [...]]]></description>
			<content:encoded><![CDATA[<p>The key to cross-compiling libmysql is to google &#8220;cmake cross compile&#8221; instead of &#8220;libmysql cross compile&#8221;.  Took me a bit to think of this but it makes sense because cmake is the build system for libmysql.</p>
<h2>My How-To</h2>
<p>My how-to assumes you have a Linux system with standard development tools and compilers installed as well as GNU cross-compilers for the target platform.</p>
<ol>
<li><a href="http://www.mysql.com/downloads/connector/c" target="_blank">Download libmysql</a> source: In the drop down box change to source. Otherwise you will be presented with pre-compiled binaries.</li>
<li>Extract libmysql: tar -xzf mysql-connector-c-x.y.z.tar.gz</li>
<li>run: cd mysql-connector-c-x.y.z</li>
<li>Create a toolchain.cmake file (See section below)</li>
<li>run: cmake -G &#8220;Unix Makefiles&#8221; -DCMAKE_INSTALL_PREFIX=`pwd`/install -DCMAKE_TOOLCHAIN_FILE=toolchain-arm-linux.cmake</li>
<li>run: make</li>
<li>run: make install</li>
<li>Your libs are in `pwd`/install/lib</li>
</ol>
<h3>Toolchain file</h3>
<p>The toolchain file sets a few parameters for the cmake system to override the default behavior of searching for the system compilers. I modified a <a href="http://www.vtk.org/Wiki/CMake_Cross_Compiling" target="_blank">sample</a> from <a href="http://www.vtk.org/Wiki/CMake" target="_blank">vtk.org CMake wiki</a>. Here is my modified sample that cross-compiles for an ARM processor running Linux.</p>
<pre># this one is important
SET(CMAKE_SYSTEM_NAME Linux)
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)
# specify the cross compiler
SET(CMAKE_C_COMPILER   /usr/local/bin/arm-linux-gcc)
SET(CMAKE_CXX_COMPILER /usr/local/bin/arm-linux-g++)
# where is the target environment
#SET(CMAKE_FIND_ROOT_PATH  /opt/eldk-2007-01-19/ppc_74xx /home/alex/eldk-ppc74xx-inst)
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.mymegabyte.com/2011/03/cross-compile-libmysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable OpenGL hardware acceleration for Java 2D</title>
		<link>http://www.mymegabyte.com/2011/03/enable-opengl-hardware-acceleration-for-java-2d/</link>
		<comments>http://www.mymegabyte.com/2011/03/enable-opengl-hardware-acceleration-for-java-2d/#comments</comments>
		<pubDate>Sun, 13 Mar 2011 00:56:36 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.mymegabyte.com/?p=192</guid>
		<description><![CDATA[For a couple years now I have been disappointed that one of my 2D Java programs had HORRIBLE performance on my laptop. I noticed the problem got horrible when I upgraded to Vista and didn&#8217;t get fixed with my upgrade to Windows 7. The program is a 2D graphing application that draws multiple data streams [...]]]></description>
			<content:encoded><![CDATA[<p>For a couple years now I have been disappointed that one of my 2D Java programs had HORRIBLE performance on my laptop. I noticed the problem got horrible when I upgraded to Vista and didn&#8217;t get fixed with my upgrade to Windows 7. The program is a 2D graphing application that draws multiple data streams as scrolling waveforms on the screen in real-time. It is written using Java Swing libraries and the Graphics2D API. On my laptop I was getting less than 1 update per second. On my work computer I was exceeding 200!</p>
<p>Over the last couple years I tried everything to no avail. Finally today I stumbled across <a href="http://download.oracle.com/javase/6/docs/technotes/guides/2d/flags.html">this article</a> that describes several unsupported Java system properties that affect the 2D graphics system.</p>
<p>I tried adding the following line to my program and voila! Awesome performance. Problem solved.</p>
<pre>System.setProperty("sun.java2d.opengl","True");</pre>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.mymegabyte.com/2011/03/enable-opengl-hardware-acceleration-for-java-2d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thinkpad T42p graphics driver in Windows 7</title>
		<link>http://www.mymegabyte.com/2010/12/thinkpad-t42p-graphics-driver-in-windows-7/</link>
		<comments>http://www.mymegabyte.com/2010/12/thinkpad-t42p-graphics-driver-in-windows-7/#comments</comments>
		<pubDate>Tue, 28 Dec 2010 23:18:33 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mymegabyte.com/?p=186</guid>
		<description><![CDATA[A long time ago I raved about how awesome Windows 7 was compared to past operating systems. It turned out that my installation did have one fatal flaw that I dealt with for a little over a year. The graphics driver that I had managed to get to install caused crashes and blue screens when [...]]]></description>
			<content:encoded><![CDATA[<p>A long time ago I raved about how awesome Windows 7 was compared to past operating systems. It turned out that my installation did have one fatal flaw that I dealt with for a little over a year. The graphics driver that I had managed to get to install caused crashes and blue screens when I switch from docked to undocked while in hibernate or sleep state.</p>
<p>Last month I messed up my installation so bad that I had to reinstall Windows. This time I took a bit more delicate approach to installing the graphics driver and it worked. So here is a guide for others still squeaking every last breath out of their previous T42p. This process worked for my ATI Fire GL T2/T2e</p>
<ol>
<li>Download the Catalyst &#8220;Legacy&#8221; Display Driver off <a href="http://ati.amd.com/" target="_blank">http://ati.amd.com/</a> Select: &#8220;Desktop Graphics&#8221;, &#8220;9xxx Series&#8221;, &#8220;9700 Series&#8221;, &#8220;Windows 7 &#8211; X Bit&#8221;.</li>
<li><a href="http://www.mymegabyte.com/wp-content/uploads/2010/12/driverselection.png"><img class="alignright size-full wp-image-187" title="ATI Driver Selection" src="http://www.mymegabyte.com/wp-content/uploads/2010/12/driverselection.png" alt="" width="340" height="211" /></a>Download Mobility Modder <a href="http://www.hardwareheaven.com/modtool.php" target="_blank">http://www.hardwareheaven.com/modtool.php</a> and then follow the instructions.</li>
</ol>
<p>The hardest part was trying to figure out what options to enter on AMD/ATI&#8217;s website to make them give me the right catalyst suite. Once that was done the rest is easy. Now my laptop docks and undocks with no glitches.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mymegabyte.com/2010/12/thinkpad-t42p-graphics-driver-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

