<?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>huanix</title>
	<atom:link href="http://www.huanix.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.huanix.com</link>
	<description>chown -R huanix /</description>
	<lastBuildDate>Sun, 01 Apr 2012 15:58:44 +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>How To Download Cyanogenmod torrents on Ubuntu using Transmission and Flexget</title>
		<link>http://www.huanix.com/2012/03/27/how-to-download-cyanogenmod-torrents-on-ubuntu-using-transmission-and-flexget/</link>
		<comments>http://www.huanix.com/2012/03/27/how-to-download-cyanogenmod-torrents-on-ubuntu-using-transmission-and-flexget/#comments</comments>
		<pubDate>Tue, 27 Mar 2012 21:25:23 +0000</pubDate>
		<dc:creator>huanix</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.huanix.com/?p=534</guid>
		<description><![CDATA[I was VERY glad to see that CyanogenMod is now being distributed as a torrent file from http://get.cm. It turns out there&#8217;s also an rss feed for http://get.cm at http://get.cm/rss &#8211; This is a step-by step tutorial intended for someone with very little experience with Flexget. The goal is to set up a cron job [...]]]></description>
			<content:encoded><![CDATA[<p>I was VERY glad to see that CyanogenMod is now being distributed as a torrent file from http://get.cm. It turns out there&#8217;s also an rss feed for http://get.cm at http://get.cm/rss &#8211; This is a step-by step tutorial intended for someone with very little experience with Flexget. The goal is to set up a cron job to scan get.cm each hour for torrent files for a specific device, and automatically download them with transmission.</p>
<p>For the purposes of this tutorial, I am using the following:<br />
* Ubuntu Precise Pangolin (12.04 pre-release)<br />
* transmission-daemon 2.50<br />
* flexget 1.0r2807<br />
(You will not need these specific version numbers, but it may help trace any problems)</p>
<p>My introduction to FlexGet and Transmission came from here: </p>
<p>http://flexget.com/wiki/Cookbook/Series/SeriesPresetMultipleRSStoTransmission</p>
<p>I have simplified and modified those instructions to work specifically for downloading Cyanogenmod torrents.</p>
<ol>
<li>I am basing this tutorial on a brand new installation of Precise Pangolin &#8211; your mileage may vary.</li>
<li>Update Ubuntu:<br />
<code>sudo apt-get update &#038;&#038; sudo apt-get dist-upgrade -y</code></li>
<li>Install some dependencies (all one line):<br />
<code>sudo apt-get -y install transmission transmission-daemon python-pip</code></li>
<li>Add some python tools:<br />
<code>sudo pip install flexget<br />
sudo pip install transmissionrpc</code></li>
<li>Check some fields in the transmission settings file to make sure you set up FlexGet correctly:<br />
<code>sudo grep rpc /etc/transmission-daemon/settings.json</code></li>
<li>You will be looking at a few specific lines from settings.json, they are:<br />
<code>"rpc-username": "user",<br />
    "rpc-password": "transmission", !!! You will see an encrypted string! - if it starts with "{a" and ends with "JD" you should be fine!<br />
      "rpc-port": 9091,</code><br />
Assuming everything works smoothly, you won&#8217;t have to mess with this file anymore.</li>
<li>Create a FlexGet configuration file. These files are VERY picky. Tabs must not be used; indention is based on two spaces and correct indentation is required. I decided to give a link to mine and help you get it to the right place. You WILL want to edit one line on this to change it to your model, but get everything working first. I&#8217;ll explain at the end.<br />
<code><br />
mkdir ~/.flexget<br />
wget -P ~/.flexget http://www.huanix.com/files/config.yml<br />
</code><br />
It DOES NOT MATTER what username and password you use, but the username and password must match between ~/.flexget/config.yml and /etc/transmission-daemon/settings.json</li>
<li>Restart the transmission daemon (this will encrypt your password in settings.json)<br />
<code>sudo /etc/init.d/transmission-daemon restart</code></li>
<li>Test flexget<br />
<code>flexget --test</code><br />
If everything works, you&#8217;ll see about 8 lines of output all of which are &#8220;INFO&#8221; or &#8220;VERBOSE&#8221;. If something didn&#8217;t work it looks like you might need to visit google.</li>
<li>Add it to your crontab file:<br />
<code>crontab -e</code><br />
add this line:<br />
<code>@hourly /usr/local/bin/flexget --cron</code></li>
<li>At this point it is time to play. Open a web browser to http://127.0.0.1:9091 &#8211; log in with transmission/transmission (There won&#8217;t be any torrents yet)</li>
<li>Go back to the terminal, and kick off an actual download with<br />
<code>flexget --cron</code><br />
You shouldn&#8217;t see much on the screen, but your active torrents should show up in your web browser pretty quickly.</li>
<li>By default, your completed downloads are stored in /var/lib/transmission-daemon/downloads/ You can change this by modifying settings on the web interface.</li>
<li><b>VERY IMPORTANT</b>I didn&#8217;t want to confuse you while you were creating the notoriously picky flexget/config.yml file, but line 6 of that file tells flexget to ONLY look for galaxys2att roms. You can easily modify that using a python regular expression (just change i777 to your CM device model).<br />
<h4>Incoming search terms:</h4><ul><li>instagram android dm</li><li>cyanogenmod torrent</li><li>flexget firefox</li><li>flexget 12 04</li><li>android dm for instagram</li><li>instagram dm android</li><li>instagram dm for androud</li><li>instagram ubuntu download</li><li>instagram won\t show up cyanogenmod</li><li>install cyanogenmod from ubuntu</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.huanix.com/2012/03/27/how-to-download-cyanogenmod-torrents-on-ubuntu-using-transmission-and-flexget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable screen rotation on google maps navigation for Android</title>
		<link>http://www.huanix.com/2011/12/02/enable-screen-rotation-on-google-maps-navigation-for-android/</link>
		<comments>http://www.huanix.com/2011/12/02/enable-screen-rotation-on-google-maps-navigation-for-android/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 03:13:24 +0000</pubDate>
		<dc:creator>huanix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.huanix.com/?p=528</guid>
		<description><![CDATA[This sounds silly &#8211; I enjoy google navigation on my Android device when the screen rotates so that the maps are always correctly oriented. I usually only think about navigation while I&#8217;m driving, so it took me awhile to figure out how to lock and unlock the map orientation. It&#8217;s really simple &#8211; click the [...]]]></description>
			<content:encoded><![CDATA[<p>This sounds silly &#8211; I enjoy google navigation on my Android device when the screen rotates so that the maps are always correctly oriented. I usually only think about navigation while I&#8217;m driving, so it took me awhile to figure out how to lock and unlock the map orientation. It&#8217;s really simple &#8211; click the compass symbol. It has two positions &#8211; locked, and unlocked.</p>

<a href='http://www.huanix.com/2011/12/02/enable-screen-rotation-on-google-maps-navigation-for-android/screenshot-1322828494394/' title='screenshot-1322828494394'><img width="150" height="150" src="http://www.huanix.com/wp-content/uploads/2011/12/screenshot-1322828494394-150x150.png" class="attachment-thumbnail" alt="screenshot-1322828494394" title="screenshot-1322828494394" /></a>
<a href='http://www.huanix.com/2011/12/02/enable-screen-rotation-on-google-maps-navigation-for-android/screenshot-1322828459533/' title='screenshot-1322828459533'><img width="150" height="150" src="http://www.huanix.com/wp-content/uploads/2011/12/screenshot-1322828459533-150x150.png" class="attachment-thumbnail" alt="screenshot-1322828459533" title="screenshot-1322828459533" /></a>

<h4>Incoming search terms:</h4><ul><li>Google navigation screen orientation</li><li>google navigation screen rotation</li><li>android navigation rotate</li><li>google navigation map rotation</li><li>google maps navigation orientation</li><li>google navigation rotate</li><li>google navigation screenshot</li><li>android google navigation orientation</li><li>Google navigation rotation</li><li>google maps navigation rotate</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.huanix.com/2011/12/02/enable-screen-rotation-on-google-maps-navigation-for-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>at&amp;t Samsung Galaxy S 2 Download Mode SGS2</title>
		<link>http://www.huanix.com/2011/10/04/att-samsung-galaxy-s-2-download-mode-sgs2/</link>
		<comments>http://www.huanix.com/2011/10/04/att-samsung-galaxy-s-2-download-mode-sgs2/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 23:28:03 +0000</pubDate>
		<dc:creator>huanix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.huanix.com/?p=498</guid>
		<description><![CDATA[The internet seems to be very confused about accessing download mode in the Samsung Galaxy S II released by AT&#038;T. It is actually simple to enter download mode: 1. Power the phone off. 2. Plug the usb cable into the computer (not the phone) 3. Hold both sides of the volume rocker down (vol up [...]]]></description>
			<content:encoded><![CDATA[<p>The internet seems to be very confused about accessing download mode in the Samsung Galaxy S II released by AT&#038;T. </p>
<p>It is actually simple to enter download mode:</p>
<p>1. Power the phone off.<br />
2. Plug the usb cable into the computer (not the phone)<br />
3. Hold both sides of the volume rocker down (vol up + vol down)<br />
4. While holding those buttons down, insert the usb cable.</p>
<p>There is no need to touch the power button on the phone to enter download-mode on this device.</p>
<p>For those of you who are quick learners:<br />
Insert the USB cable while holding the volume rocker down with the phone off.</p>
<p>This works on the Samsung Galaxy S II released by AT&#038;T on October 2, 2011, model SGH-I777</p>
<h4>Incoming search terms:</h4><ul><li>sgs2 download mode</li><li>AT&amp;T Galaxy S2 Download Mode</li><li>galaxy s2 download mode</li><li>download mode sgs2</li><li>samsung galaxy s2 download mode</li><li>at&amp;t samsung galaxy s2 download mode</li><li>att galaxy s2 download mode</li><li>AT&amp;T Galaxy S II download mode</li><li>galaxy S II download mode</li><li>opebsuse sync with android sgs2</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.huanix.com/2011/10/04/att-samsung-galaxy-s-2-download-mode-sgs2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using Instagram in Android and a Web Browser (firefox)</title>
		<link>http://www.huanix.com/2011/03/18/accessing-instagram-in-android-and-a-web-browser-firefox/</link>
		<comments>http://www.huanix.com/2011/03/18/accessing-instagram-in-android-and-a-web-browser-firefox/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 14:09:44 +0000</pubDate>
		<dc:creator>huanix</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[instagram]]></category>
		<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://www.huanix.com/?p=483</guid>
		<description><![CDATA[Instagram is a popular iPhone app with a strong community of followers. As a dedicated Android user, I&#8217;m frustrated that it&#8217;s difficult for me to see the photos my wife has posted. Here are some ways to keep up with instagr.am without using an iPhone: Instagram on Android Instaroid is a basic Android app that [...]]]></description>
			<content:encoded><![CDATA[<p>Instagram is a popular iPhone app with a strong community of followers. As a dedicated Android user, I&#8217;m frustrated that it&#8217;s difficult for me to see the photos my wife has posted.</p>
<p> Here are some ways to keep up with instagr.am without using an iPhone:</p>
<p><strong><span style="text-decoration: underline;">Instagram on Android</span></strong></p>
<p><a href="https://market.android.com/details?id=net.muik.instaroid">Instaroid</a> is a basic Android app that allows you to view the popular page from Instagram. My favorite use of Instaroid is the &#8220;Near&#8221; function that allows you to use the Android GPS to view instagram photos taken near your current location. This application is still very basic &#8211;  as in, I can&#8217;t find functionality to follow users, but it is a good start.</p>
<p><strong><span style="text-decoration: underline;">Instagram on Firefox or other web browsers</span></strong></p>
<p><strong><span style="text-decoration: underline;">Sites that do not require an instagram login</span></strong></p>
<ul>
<li><a href="http://web.stagram.com">Web.stagram.com</a> is login-required web service for instagram that is tailored for commenting on instagram pics.</li>
<li> <a href=" http://listagr.am/">listagr.am</a> does not allow you to log into your instagram account, but it offers a good search feature and a better visual layout and gallery view. Listagram is most useful for those without an iPhone or instagram account that just want to explore the instagram world.</li>
</ul>
<p><strong><span style="text-decoration: underline;">Sites that require an instagram login</span></strong></p>
<ul>
<li><a href="http://inkstagram.com/">inkstagram.com</a> Inkstagram requires a login to access the site &#8211; so it is obviously intended for those with an actual iPhone and instagr.am account. This is currently the most feature rich instagr.am webapp I&#8217;m aware of &#8211; it allows liking and commenting directly through the web interface. It also provides a http link to images, a tag cloud, and mapping utility.</li>
<li><a href="http://myinstadeck.com/">myinstadeck.com</a> Instagram has a great gallery view and is very well suited to managing an existing instagram account through a web browser. With the Instagram interface, you can easily manage your likes and comments, though interaction is somewhat limited.</li>
</ul>
<p><strong><span style="text-decoration: underline;">Miscellaneous</span></strong></p>
<ul>
<li><a href="http://instagrid.me/">Instagrid</a> allows you to create an instagram album to distribute to others via a web browser. Login Required. </li>
<li><a href="http://bajanbot.com/top/">bajanbot.com</a> lists the top 20 current hashtags from instagram, and it&#8217;s automatically updated every two hours. This could be a great tool to &#8220;ride the wave&#8221;.</li>
<li><a href="http://www.gramjunction.com/">Gramjunction</a> is intended to allow you to view the instagram photo gallery from a selected user in your browser, but the functionality appears to be broken &#8211; it does show  a selection of popular instagram pics in an attractive format. I&#8217;m not clear on the purpose of this tool &#8211; it LOOKS like it&#8217;s pulling from flickr, but it claims association with instagram. </li>
<li><a href="http://instawar.org/">Instawar</a> allows you to view two instagram pictures and choose which one you think is better. This is neat and all, but I don&#8217;t see anything being done with the votes. A neat idea that will probably be developed into a useful site.</li>
<li><a href="http://printstagr.am/">Printstagr.am</a> &#8211; A pay service to print instagram photos on posters, stickers, etc.</li>
</ul>
<p><strong><span style="text-decoration: underline;">Developing with the Instagram API</span></strong></p>
<p>There are currently two ways to access the Instagram API &#8211; the approved method requires login to use instagram resources, while the hacked method allows anyone to view instagram images. I&#8217;m not sure how correct that understanding is!</p>
<p>These API instructions were developed in December 2010. <a href="http://mislav.uniqpath.com/2010/12/instagram-web/">http://mislav.uniqpath.com/2010/12/instagram-web/</a>. They are not sanctioned by instagram, and I have seen several references to sites being taken down for using this API. It may have the benefit of allowing login-free viewing (?)</p>
<p>On February 25, 2011, Instagram released their official <a href="http://instagram.com/developer/">Instagram API</a>. This will certainly lead to a lot of new web development and likely a fully featured Android App.</p>
<h4>Incoming search terms:</h4><ul><li>instagram android</li><li>instagram without iphone</li><li>Instagram for android</li><li>create instagram account without iphone</li><li>instagram account without iphone</li><li>create instagram account</li><li>instagram for android 2011</li><li>instagram create account</li><li>instagr am android</li><li>instagram for computer</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.huanix.com/2011/03/18/accessing-instagram-in-android-and-a-web-browser-firefox/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Dividing scanned images with Gimp with the Batch Divide Scanned Images Tool</title>
		<link>http://www.huanix.com/2011/02/07/dividing-scanned-images-with-gimp-with-the-batch-divide-scanned-images-tool/</link>
		<comments>http://www.huanix.com/2011/02/07/dividing-scanned-images-with-gimp-with-the-batch-divide-scanned-images-tool/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 23:58:10 +0000</pubDate>
		<dc:creator>huanix</dc:creator>
				<category><![CDATA[Gimp]]></category>
		<category><![CDATA[Image Scanning]]></category>

		<guid isPermaLink="false">http://www.huanix.com/?p=462</guid>
		<description><![CDATA[Let me begin by saying that I am not talented with Gimp. I learned to do this by trial and error, and I want to share it with you. Getting Set Up It actually took me awhile to get set up because it took me so long to evaluate the different tools and once I [...]]]></description>
			<content:encoded><![CDATA[<p>Let me begin by saying that I am not talented with Gimp. I learned to do this by trial and error, and I want to share it with you.</p>
<p><strong>Getting Set Up</strong><br />
It actually took me awhile to get set up because it took me so long to evaluate the different tools and once I settled on the Batch Divide Scanned Images Plugin for Gimp, it took me another couple of hours to piece it together.</p>
<p>The main discussion of the Batch Divide Scanned Images tool is on the <a href="http://www.gimptalk.com/forum/viewtopic.php?f=9&#038;t=36438">GimpTalk forum</a> with the actual project hosting at the <a href="http://registry.gimp.org/node/22177">Gimp Plugin Registry</a>. </p>
<p>I am a 64-bit Ubuntu linux user, so my installation instructions and files are intended primarily for that setup:</p>
<ul>
<li>Make sure gimp is installed.</li>
<li>Put the <a href="http://ffaat.pointclark.net/incoming/scripts/DivideScannedImages.scm">DivideScannedImages.scm</a> file in the /usr/share/gimp/2.0/scripts/ folder. (The link is for version 1.9. <a href="http://www.huanix.com/files/gimp/DivideScannedImages.scm">Huanix Mirror</a>)<br />
<code>wget http://ffaat.pointclark.net/incoming/scripts/DivideScannedImages.scm /usr/share/gimp/2.0/scripts</code></li>
<li>Get deskew. This project is hard to get for some reason. The relevant discussion is <a href="http://registry.gimp.org/node/2958">here</a>. I ended up compiling my own. It is not difficult to compile, but I did have to install libgimp2.0-dev (i think) which took me forever to figure out. This binary <a href="http://www.huanix.com/files/gimp/deskew">deskew gimp plugin is built for 64 bit ubuntu</a>. Copy the file to /usr/lib/gimp/2.0/plug-ins/ (make sure it&#8217;s executable).<br />
<code>wget http://www.huanix.com/files/gimp/deskew /usr/lib/gimp/2.0/plug-ins/</code> (ONLY 64bit linux!)</li>
<li>Restart Gimp. At this point you should have a working slicer and deskewer, but you&#8217;ll want test it for awhile. I had to tinker with deskew by trial and error. </li>
<li>When you open Gimp, you should have a new menu item under Filters > Batch Tools</li>
</ul>
<div id="attachment_469" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.huanix.com/wp-content/uploads/2011/02/batch-divide-menu.png"><img src="http://www.huanix.com/wp-content/uploads/2011/02/batch-divide-menu-300x180.png" alt="batch-divide-menu" title="batch-divide-menu" width="300" height="180" class="size-medium wp-image-469" /></a><p class="wp-caption-text">batch-divide-menu</p></div>
<p><strong>Using the Batch Divide Tool</strong><br />
Using the batch image cutting tool in Gimp (Batch Tools > Divide Scanned Images). This Gimp plugin separates multiple images from one scan and can straighten as well deskew them (that is, make them not crooked). Even though it is supposed to be intuitive, it took me a long time to understand all of the setttings. </p>
<ul>
<li><strong>Selection Threshold:</strong> This slider operates the magic wand tool in Gimp. You can open a test image with gimp and test the tool to accurately select your images without selecting too much &#8220;junk&#8221;. I routinely use 25 without problems.</li>
<li><strong>Size Threshold:</strong> What is the smallest an image can be, while still being considered an image? You can use the selection tool on a sample image to find your own threshold; I use 200 without any trouble.</li>
<li><strong>Abort Limit:</strong> Took me forever to figure out. Abort limit means, &#8220;Stop looking for images in a scan after x images.&#8221; Or, with an abort limit of 3, the Divide Scanned Images tool will not look for a 4th or 5th image in the scan, they will simply be ignored. I think this is a sanity check to make sure the tool doesn&#8217;t try to process images that don&#8217;t exist. Set this value to the number of images per scan. (I use 2 because my scan bed is small, you might use 4)</li>
<li><strong>Background Sample Corner:</strong> This is used to find a clean blank point from which the Divide Scanned Images tool will use the magic wand. Top Left corner is fine. (See the image below for more detail)</li>
<li><strong>Background Sample X Offset:</strong> The tool needs to find a good place to take the magic wand sample from. I use 60 for both of these values and make sure I don&#8217;t put a picture in the upper left corner.</li>
<li><strong>Background Sample Y Offset</strong>: I use 60 here as well. Same as the X offset.
</ul>
<div id="attachment_465" class="wp-caption aligncenter" style="width: 219px"><a href="http://www.huanix.com/wp-content/uploads/2011/02/Script-Fu-Batch-Divide-Scanned-Images.png"><img src="http://www.huanix.com/wp-content/uploads/2011/02/Script-Fu-Batch-Divide-Scanned-Images-209x300.png" alt="Script-Fu: Batch Divide Scanned Images" title="Script-Fu: Batch Divide Scanned Images" width="209" height="300" class="size-medium wp-image-465" /></a><p class="wp-caption-text">Script-Fu: Batch Divide Scanned Images</p></div>
<p>The Background Sample Corner must be free of pictures so that the magic wand tool can get a clean sample. I suggest using the top left corner, and setting the x and y offset high enough that it gets &#8220;inside&#8221; the image. I like to use an offset of 60, and then leave a square inch in the corner free of pictures. The red box in this image shows the region where I wouldn&#8217;t put any picture.</p>
<div id="attachment_473" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.huanix.com/2011/02/07/dividing-scanned-images-with-gimp-with-the-batch-divide-scanned-images-tool/background-sample-corner/" rel="attachment wp-att-473"><img src="http://www.huanix.com/wp-content/uploads/2011/02/background-sample-corner-300x225.jpg" alt="background sample corner" title="background sample corner" width="300" height="225" class="size-medium wp-image-473" /></a><p class="wp-caption-text">background sample corner</p></div>
<h4>Incoming search terms:</h4><ul><li>Divide Scanned Images</li><li>divide scanned photos</li><li>gimp divide scanned images</li><li>divide scanned images gimp</li><li>Dividescannedimages scm</li><li>DivideScannedImages</li><li>gimp batch scan</li><li>divide scanned images plugin gimp</li><li>how do you divide your pictures on instagram</li><li>opensuse gimp batch process images plugin</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.huanix.com/2011/02/07/dividing-scanned-images-with-gimp-with-the-batch-divide-scanned-images-tool/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>MindFlex + Arduino + Android = Sleep Quality Monitor &amp; Sleep Analysis tool</title>
		<link>http://www.huanix.com/2011/01/29/mind-flex-arduino-android-sleep-quality-monitor-sleep-analysis-tool/</link>
		<comments>http://www.huanix.com/2011/01/29/mind-flex-arduino-android-sleep-quality-monitor-sleep-analysis-tool/#comments</comments>
		<pubDate>Sat, 29 Jan 2011 15:56:05 +0000</pubDate>
		<dc:creator>huanix</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Mind Flex]]></category>
		<category><![CDATA[Sleep]]></category>
		<category><![CDATA[MindFlex]]></category>

		<guid isPermaLink="false">http://www.huanix.com/?p=448</guid>
		<description><![CDATA[Using Android, Mind Flex, and Android to conceptualize a Sleep Quality Monitor &#038; Sleep Analysis tool]]></description>
			<content:encoded><![CDATA[<p>This is a &#8220;concept post&#8221; intended to document an idea and solicit feedback from others who may be interested. It may or may not be developed in the future.</p>
<p>I was recently reading an article where Mattel&#8217;s MindFlex was <a href="http://frontiernerds.com/brain-hack">hacked with arduino to output brainwave activity</a>. I have also been tinkering with an android application called &#8220;sleep as an droid&#8221; that uses the mobile device accelerometer to track movement during sleep that is related to quality of sleep. </p>
<p>The workflow for an integrated sleep monitoring device is becoming evident:</p>
<ol>
<li> The user enables sleep software (i.e. &#8220;sleep as an droid&#8221;) and puts on (unobtrusive?) Mind Flex apparatus.</li>
<li> Mind Flex sends sleep data to the modified arduino, which is adapted for bluetooth output (I&#8217;ve never used bluetooth on arduino </li>
<li> The sleep monitor program running on Android incorporates accelerometer data with brainwave data to build a very accurate sleep profile.</li>
<li> The sleep profile would focus on interpretation of the data, with an internal rating system for sleep. 0-100 (?). Users can share their sleep data? Compete for the perfect night of sleep? </li>
<li> Easily interpretable graphs show the different sleep cycles.
<p>Here&#8217;s what I know: I can do arduino, Android, and the Mind Flex hack &#8211; at least, those are well within my grasp. I am data oriented, but I don&#8217;t think I am able to write the quality of software I would want to use.</p>
<p>Mind Flex could receive sleep-related brain wave activity</p>
<h4>Incoming search terms:</h4><ul><li>android sleep monitor</li><li>mindflex arduino</li><li>sleep monitor android</li><li>bluetooth sleep monitor</li><li>arduino sleep monitor</li><li>mindflex bluetooth</li><li>arduino android</li><li>arduino android programming</li><li>arduino mindflex</li><li>mindflex hack arduino</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.huanix.com/2011/01/29/mind-flex-arduino-android-sleep-quality-monitor-sleep-analysis-tool/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to use rsync backup for Android to make incremental backups of your Android phone</title>
		<link>http://www.huanix.com/2010/12/10/how-to-use-rsync-backup-for-android-to-make-incremental-backups-of-your-android-phone/</link>
		<comments>http://www.huanix.com/2010/12/10/how-to-use-rsync-backup-for-android-to-make-incremental-backups-of-your-android-phone/#comments</comments>
		<pubDate>Sat, 11 Dec 2010 05:18:07 +0000</pubDate>
		<dc:creator>huanix</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://www.huanix.com/?p=412</guid>
		<description><![CDATA[Automatically backing up the contents of your Android phone is important for several reasons: You can automatically save ROM images to a safe location in case your phone disappears. You can save pictures, videos, and sound recordings to your desktop without intervention. You can have near-instant access to resources from your phone on your desktop. [...]]]></description>
			<content:encoded><![CDATA[<p>Automatically backing up the contents of your Android phone is important for several reasons:</p>
<ul>
<li>You can automatically save ROM images to a safe location in case your phone disappears.</li>
<li>You can save pictures, videos, and sound recordings to your desktop without intervention.</li>
<li>You can have near-instant access to resources from your phone on your desktop.</li>
</ul>
<p>It took me about an hour to get this set up the first time. It is pretty easy, but I think it&#8217;s also worth documenting visually for others.</p>
<p>My configuration:
</ul>
<li>Ubuntu Linux (any version of linux will work)</li>
<li>An android phone &#8211; i am using a Nexus One, but this should apply to the droid and other phones as well. I have to use a rooted image to create screen shots for this tutorial, but this should work on an unrooted device as well.</li>
</ul>
<div id="attachment_442" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.huanix.com/wp-content/uploads/2010/12/rsync_fo_android.png"><img src="http://www.huanix.com/wp-content/uploads/2010/12/rsync_fo_android.png" alt="rsync for android by Michał Kowalczuk" title="rsync for android by Michał Kowalczuk" width="150" height="150" class="size-full wp-image-442" /></a><p class="wp-caption-text">rsync for android by Michał Kowalczuk</p></div>
<p>1. Install <a href="http://www.appbrain.com/app/rsync-backup-for-android/eu.kowalczuk.rsync4android"><strong>rsync backup for Android</strong> by Michal Kowalczuk from the Android Market</a><br />
<div id="attachment_417" class="wp-caption aligncenter" style="width: 250px"><a href="http://www.huanix.com/wp-content/uploads/2010/12/1_install.png"><img src="http://www.huanix.com/wp-content/uploads/2010/12/1_install.png" alt="rsync backup for Android" title="rsync backup for Android" width="240" height="400" class="size-full wp-image-417" /></a><p class="wp-caption-text">rsync backup for Android</p></div></p>
<p>2. Open the application, download the binaries when prompted.<br />
<div id="attachment_419" class="wp-caption aligncenter" style="width: 250px"><a href="http://www.huanix.com/wp-content/uploads/2010/12/2_binaries.png"><img src="http://www.huanix.com/wp-content/uploads/2010/12/2_binaries.png" alt="download binaries for rsync" title="download binaries for rsync" width="240" height="400" class="size-full wp-image-419" /></a><p class="wp-caption-text">download binaries for rsync</p></div></p>
<p>3. Press the menu button on the phone, and choose &#8220;Generate Keys&#8221;.<br />
<div id="attachment_420" class="wp-caption aligncenter" style="width: 250px"><a href="http://www.huanix.com/wp-content/uploads/2010/12/3_generate_keys.png"><img src="http://www.huanix.com/wp-content/uploads/2010/12/3_generate_keys.png" alt="Generate public and private rsa keys for android" title="Generate public and private rsa keys for android" width="240" height="400" class="size-full wp-image-420" /></a><p class="wp-caption-text">Generate public and private rsa keys for android</p></div></p>
<p>4. Private key will be stored in /sdcard/dss_key, public as /sdcard/dss_key.pub. After generation you will be asked how to send your public key. (Press &#8220;OK&#8221;)<br />
<div id="attachment_421" class="wp-caption aligncenter" style="width: 250px"><a href="http://www.huanix.com/wp-content/uploads/2010/12/4_key_storage.png"><img src="http://www.huanix.com/wp-content/uploads/2010/12/4_key_storage.png" alt="Storing Keys" title="Storing Keys" width="240" height="400" class="size-full wp-image-421" /></a><p class="wp-caption-text">Storing Keys</p></div></p>
<p>5. It will take several seconds to generate the keys, then you will be asked, &#8220;How do you want to send you your generated public key?&#8221;<br />
<div id="attachment_422" class="wp-caption aligncenter" style="width: 250px"><a href="http://www.huanix.com/wp-content/uploads/2010/12/5_send_public_key.png"><img src="http://www.huanix.com/wp-content/uploads/2010/12/5_send_public_key.png" alt="How do you want to send you your generated public key?" title="How do you want to send you your generated public key?" width="240" height="400" class="size-full wp-image-422" /></a><p class="wp-caption-text">How do you want to send you your generated public key?</p></div></p>
<p>6. I&#8217;ll choose to send it to myself with gmail.<br />
<div id="attachment_423" class="wp-caption aligncenter" style="width: 250px"><a href="http://www.huanix.com/wp-content/uploads/2010/12/6._public_key.png"><img src="http://www.huanix.com/wp-content/uploads/2010/12/6._public_key.png" alt="Sending the Android Public RSA key over gmail" title="Sending the Android Public RSA key over gmail" width="240" height="400" class="size-full wp-image-423" /></a><p class="wp-caption-text">Sending the Android Public RSA key over gmail</p></div></p>
<p>7. We&#8217;re going to set the Android phone down for awhile now and work at the Ubuntu Linux Desktop (Any distro will work). You should have <strong>openssh-server</strong> installed. It&#8217;s okay to attempt to re-install it if you&#8217;re not sure:<br />
 <code>sudo apt-get install openssh-server</code></p>
<p>8. After you install ssh, you should be able to navigate into a hidden directory in your home path <strong>(If this path doesn&#8217;t exist, you&#8217;ll need to create it)</strong>:<br />
<code>cd ~/.ssh/</code></p>
<p>9. Now we add the public key that we sent to ourselves to a new line in the <strong>authorized_keys</strong> file, which may or may not already exist.<br />
<code>gedit authorized_keys</code></p>
<p>10. If the file already has text, skip to the beginning of the next line and paste all of the text from the email you sent yourself. Save and close the editor. (There are a hundred ways to add the key, I was just trying to make it easy.)</p>
<p>11. The public key is now installed on your desktop, and <strong>rsync backup for Android</strong> is ready to establish a connection. Go back to the Android phone and press the menu button in rsync backup for Android. Choose &#8220;Add Profile&#8221;:<br />
<a href="http://www.huanix.com/wp-content/uploads/2010/12/7_add_profile.png"><img src="http://www.huanix.com/wp-content/uploads/2010/12/7_add_profile.png" alt="" title="7_add_profile" width="240" height="400" class="aligncenter size-full wp-image-426" /></a></p>
<p>12. Enter data into the setup fields. There are advanced configuration options a the bottom of the screen that are not shown here &#8211; you can leave them all blank for now. I did not have to create the ~/android_sync/ directory on my desktop &#8211; rsync created it for me when I began the backup. YMMV. (Be sure you add a trailing slash to your destination directory! -thanks Bill!)<br />
<div id="attachment_427" class="wp-caption aligncenter" style="width: 250px"><a href="http://www.huanix.com/wp-content/uploads/2010/12/9_configuration.png"><img src="http://www.huanix.com/wp-content/uploads/2010/12/9_configuration.png" alt="The rsync configuration shot" title="The rsync configuration shot" width="240" height="400" class="size-full wp-image-427" /></a><p class="wp-caption-text">The rsync configuration shot</p></div></p>
<p>13. Choose the key from /mnt/sdcard/dss_key (This screenshot is the result of pressing the &#8220;Browse&#8230;&#8221; button in step 12. It may seem a little out of place.<br />
<strong>NOTE: if you do not have a file explorer installed, the rsync backup for android will prompt you to install one. Just go with it..</strong><br />
<div id="attachment_428" class="wp-caption aligncenter" style="width: 250px"><a href="http://www.huanix.com/wp-content/uploads/2010/12/file_navigator.png"><img src="http://www.huanix.com/wp-content/uploads/2010/12/file_navigator.png" alt="Navigate to /mnt/sdcard/dss_key" title="Navigate to /mnt/sdcard/dss_key" width="240" height="400" class="size-full wp-image-428" /></a><p class="wp-caption-text">Navigate to /mnt/sdcard/dss_key</p></div></p>
<p>14. When you have completed the configuration, save the profile.</p>
<p>15. On the main screen, you can now choose the profile:<br />
<div id="attachment_432" class="wp-caption aligncenter" style="width: 250px"><a href="http://www.huanix.com/wp-content/uploads/2010/12/10_select-the-profile-you-created.png"><img src="http://www.huanix.com/wp-content/uploads/2010/12/10_select-the-profile-you-created.png" alt="Choose the profile you created" title="Choose the profile you created" width="240" height="400" class="size-full wp-image-432" /></a><p class="wp-caption-text">Choose the profile you created</p></div></p>
<p>16. Here is sample output from a successful sync. The .android_secure directory is off-limits to rsync and will show an error.<br />
<a href="http://www.huanix.com/wp-content/uploads/2010/12/sync-works.png"><img src="http://www.huanix.com/wp-content/uploads/2010/12/sync-works.png" alt="" title="sync works" width="240" height="400" class="aligncenter size-full wp-image-429" /></a></p>
<p>17. How about making a paypal contribution to the developer, michal@kowalczuk.eu ?</p>
<p><b>UPDATE:</b> If you receive the error: &#8220;Value too large for defined data type (75)&#8221;, press menu and select &#8220;Get Binaries&#8221; &#8211; this will redownload the binaries and it corrects this issue. </p>
<h4>Incoming search terms:</h4><ul><li>rsync android</li><li>android rsync</li><li>rsync for android</li><li>android rsync backup</li><li>rsync backup for android</li><li>rsync backup android</li><li>android backup linux</li><li>rsync android tutorial</li><li>android rsync server</li><li>android incremental backup</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.huanix.com/2010/12/10/how-to-use-rsync-backup-for-android-to-make-incremental-backups-of-your-android-phone/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://www.huanix.com/2010/12/04/409/</link>
		<comments>http://www.huanix.com/2010/12/04/409/#comments</comments>
		<pubDate>Sat, 04 Dec 2010 17:06:36 +0000</pubDate>
		<dc:creator>huanix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.huanix.com/?p=409</guid>
		<description><![CDATA[I have said it before, but today I am officially claiming the huanix law: The appearance of a bricked device is only a step on the road of hardware hacking.]]></description>
			<content:encoded><![CDATA[<p>I have said it before, but today I am officially claiming the huanix law: The appearance of a bricked device is only a step on the road of hardware hacking.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.huanix.com/2010/12/04/409/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android App Inventor Error: INSTALL_FAILED_MEDIA_UNAVAILABLE</title>
		<link>http://www.huanix.com/2010/11/08/android-app-inventor-error-install_failed_media_unavailable/</link>
		<comments>http://www.huanix.com/2010/11/08/android-app-inventor-error-install_failed_media_unavailable/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 02:15:29 +0000</pubDate>
		<dc:creator>huanix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.huanix.com/?p=405</guid>
		<description><![CDATA[When you try to start App Inventor on an Android phone and get the following error: App Inventor is having trouble communicating with the phone. If you believe you have a connected phone or emulator, please see the troubleshooting link at http://appinventor.googlelabs.com/learn/. Detailed error: pkg: /data/local/tmp/AppInventorPhoneApp.apk Failure [INSTALL_FAILED_MEDIA_UNAVAILABLE] This error was caused by an App2SD [...]]]></description>
			<content:encoded><![CDATA[<p>When you try to start App Inventor on an Android phone and get the following error:</p>
<p>App Inventor is having trouble communicating with the phone.<br />
If you believe you have a connected phone or emulator,<br />
please see the troubleshooting link at http://appinventor.googlelabs.com/learn/.</p>
<p>Detailed error: pkg: /data/local/tmp/AppInventorPhoneApp.apk<br />
Failure [INSTALL_FAILED_MEDIA_UNAVAILABLE]</p>
<p>This error was caused by an App2SD problem &#8211; in my case, it was a setting in Cyanogenmod that caused Apps to be installed to External Storage by default, which caused  a faulty path for AppInventor.</p>
<p>The solution was to go to Settings > CyanogenMod Settings > Application settings > Install location > (choose) Automatic</p>
<h4>Incoming search terms:</h4><ul><li>INSTALL_FAILED_MEDIA_UNAVAILABLE</li><li>Installation error: INSTALL_FAILED_MEDIA_UNAVAILABLE</li><li>Failure [INSTALL_FAILED_MEDIA_UNAVAILABLE]</li><li>install failed media unavailable</li><li>Installation error: INSTALL FAILED MEDIA UNAVAILABLE</li><li>android Installation error: INSTALL_FAILED_MEDIA_UNAVAILABLE</li><li>android INSTALL_FAILED_MEDIA_UNAVAILABLE</li><li>android install failed media unavailable</li><li>INSTALL_FAILED_MEDIA_ UNAVAILABLE</li><li>adb install failed media unavailable</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.huanix.com/2010/11/08/android-app-inventor-error-install_failed_media_unavailable/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Export wii fit data to a csv for import into excel or database</title>
		<link>http://www.huanix.com/2010/04/03/export-wii-fit-data-to-a-csv-for-import-into-excel-or-database/</link>
		<comments>http://www.huanix.com/2010/04/03/export-wii-fit-data-to-a-csv-for-import-into-excel-or-database/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 12:37:17 +0000</pubDate>
		<dc:creator>huanix</dc:creator>
				<category><![CDATA[wii]]></category>
		<category><![CDATA[wii fit]]></category>
		<category><![CDATA[data.bin]]></category>
		<category><![CDATA[wii save file]]></category>

		<guid isPermaLink="false">http://www.huanix.com/?p=387</guid>
		<description><![CDATA[This procedure has been converted to an online tool at http://www.getmyfitdata.com These steps allow you to take data from your wii fit or wii fit plus and export it into a form that is text readable. This is useful for lots of reasons &#8211; for people tracking their weight, for physical therapists taking care of [...]]]></description>
			<content:encoded><![CDATA[<p><strong>This procedure has been converted to an online tool at <a href="http://www.getmyfitdata.com">http://www.getmyfitdata.com</a></strong></p>
<p>These steps allow you to take data from your wii fit or wii fit plus and export it into a form that is text readable. This is useful for lots of reasons &#8211; for people tracking their weight, for physical therapists taking care of patients, or for people who just like to play with data. When you understand the process, a full data extraction takes less than 5 minutes from Wii to excel.</p>
<p>1. Save the game data to an SD card, transfer the resulting data.bin file to a linux computer.</p>
<p>2. Use the tachtig tool for the first round of data extraction. The tachtig tool is part of Segher&#8217;s suite and needs to be compiled from <a href="http://git.infradead.org/?p=users/segher/wii.git;a=blob;f=tachtig.c">his git repository</a>. After you compile the tool it will look for some wii keys in ~/.wii/   ; yes, the keys go in a folder in your home directory, not the bin path. You do NOT need to extract keys from your Wii. The pubicly available keys on the internet are fine. (note: look at jansenprice&#8217;s instructions for compiling tachtig in the resources below)</p>
<p>4. This will leave you with several files in a numerically named folder. The file that contains wii fit weight and balance information is RPWiifit.dat or FitPlus0.dat</p>
<p>3. Use the wiifitparser.py tool from the git repository on <a href="http://code.google.com/p/wiifit/source/checkout">this google code site</a> to extract the data. </p>
<p>The parser extracts a lot of data, but it needs to be tweaked. <strong>This is a modified wiifitparser that correctly parses weight (in pounds) and BMI. Here is my current <a href="http://www.huanix.com/files/wiifit/wiifitparser.py">wiifitparser.py</a> as of April 3, 2010</strong></p>
<p>4. The resulting data is xml, which is easily understood and simple to convert to csv.</p>
<div id="attachment_399" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.huanix.com/wp-content/uploads/2010/04/wii_fit_parse1.png"><img src="http://www.huanix.com/wp-content/uploads/2010/04/wii_fit_parse1-300x161.png" alt="Wii Fit data.bin parse" title="Wii Fit Plus data.bin parse" width="300" height="161" class="size-medium wp-image-399" /></a><p class="wp-caption-text">Wii Fit data.bin parse</p></div>
<p>(The workflow in the screenshot is real, but i trimmed the contents of the output file so you could see the actual weight output.)</p>
<p>I have written this too as an online parser where people can upload data.bin files from their wii fit save and have that data file converted into a csv that can be downloaded. You can spend 10 hours following the directions above, or pay $5 by google checkout to have the data parsed for you at <a href="http://www.getmyfitdata.com"><b>getmyfitdata.com</b></a></p>
<p>The best overall start guide:</p>
<p><a href="http://jansenprice.com/blog?id=9-Extracting-Data-from-Wii-Fit-Plus-Savegame-Files">http://jansenprice.com/blog?id=9-Extracting-Data-from-Wii-Fit-Plus-Savegame-Files</a></p>
<p>Google code page with an excellent introduction:<br />
<a href="http://code.google.com/p/wiifit/source/checkout">http://code.google.com/p/wiifit/source/checkout</a></p>
<p>Segher’s tachtig tool is the initial data.bin parser:</p>
<p><a href="http://git.infradead.org/?p=users/segher/wii.git;a=blob;f=tachtig.c">http://git.infradead.org/?p=users/segher/wii.git;a=blob;f=tachtig.c</a></p>
<p>StackOverflow thread on parsing wii fit data.bin:</p>
<p><a href="http://stackoverflow.com/questions/616249/wii-fit-data-format">http://stackoverflow.com/questions/616249/wii-fit-data-format</a></p>
<p>Oudtated but useful:</p>
<p><a href="http://wiibrew.org/wiki/Wii_Savegame_Parser">http://wiibrew.org/wiki/Wii_Savegame_Parser</a></p>
<h4>Incoming search terms:</h4><ul><li>export wii fit data</li><li>wii fit export data</li><li>Wii Fit Data</li><li>Wii Fit Android</li><li>wii fit export</li><li>wii fit data transfer</li><li>wii fit excel</li><li>export wii fit</li><li>wii fit plus data transfer pc</li><li>transfer wii fit data to csv</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.huanix.com/2010/04/03/export-wii-fit-data-to-a-csv-for-import-into-excel-or-database/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

