<?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</title>
	<atom:link href="http://www.mymegabyte.com/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>DROID X micro SD card speed test</title>
		<link>http://www.mymegabyte.com/2011/07/droid-x-micro-sd-card-speed-test/</link>
		<comments>http://www.mymegabyte.com/2011/07/droid-x-micro-sd-card-speed-test/#comments</comments>
		<pubDate>Sat, 09 Jul 2011 15:50:44 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://www.mymegabyte.com/?p=193</guid>
		<description><![CDATA[Okay, so I know there must be 1k sites out there with this info already but I felt like finding out for myself. Out of curiosity I wanted to know how fast manufacturer provided the micro SD card in my DROID X phone is. Today I did a test to figure that out. Procedure: Copy [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, so I know there must be 1k sites out there with this info already but I felt like finding out for myself.</p>
<p>Out of curiosity I wanted to know how fast manufacturer provided the micro SD card in my DROID X phone is. Today I did a test to figure that out.</p>
<p>Procedure:</p>
<ol>
<li>Copy contents of sd card to computer</li>
<li>Reformat SD card using phone. For Droid X, go into settings -&gt; SD card &#8230; -&gt; Unmount -&gt; Format</li>
<li>Connect phone to PC in USB Mass Storage mode</li>
<li>Download ATTO disk benchmark tool: <a href="http://www.attotech.com/products/product.php?sku=Disk_Benchmark">http://www.attotech.com/products/product.php?sku=Disk_Benchmark</a></li>
<li>Select the correct drive and test.</li>
<li>Copy data back to phone (from step 1)</li>
</ol>
<p>Results:</p>
<p>You can see that the write speed peaked at about 7.5MB/s and read peaked at just over 13MB/s. These speeds <strong>qualify </strong>this card as a <a href="http://en.wikipedia.org/wiki/Secure_Digital#Speeds">class 6</a> card. Not bad considering the card is labeled as class 2. I expected far worse. <span style="text-decoration: line-through;">So, if you are planning to replace this card and want one with at least the same performance buy class 6 or higher.</span> Numerous forum users are reporting that cards higher than class 4 cause problems on the Droid X. I tried a class 10 and had to return it. Now I am using a class 4 with no problems.</p>
<p><a href="http://www.mymegabyte.com/wp-content/uploads/2011/07/sdbench.png"><img class="aligncenter size-full wp-image-216" title="Droid X micro SD benchmark results" src="http://www.mymegabyte.com/wp-content/uploads/2011/07/sdbench.png" alt="" width="501" height="626" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mymegabyte.com/2011/07/droid-x-micro-sd-card-speed-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
	</channel>
</rss>

