<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Tarn Aeluin</title>
	<atom:link href="http://tarnaeluin.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tarnaeluin.wordpress.com</link>
	<description>Technology, soapbox, and crap...</description>
	<lastBuildDate>Thu, 26 Jan 2012 03:57:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='tarnaeluin.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Tarn Aeluin</title>
		<link>http://tarnaeluin.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://tarnaeluin.wordpress.com/osd.xml" title="Tarn Aeluin" />
	<atom:link rel='hub' href='http://tarnaeluin.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Comments Closing&#8230;</title>
		<link>http://tarnaeluin.wordpress.com/2012/01/08/comments-closing/</link>
		<comments>http://tarnaeluin.wordpress.com/2012/01/08/comments-closing/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 02:58:47 +0000</pubDate>
		<dc:creator>Beren</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tarnaeluin.wordpress.com/?p=1107</guid>
		<description><![CDATA[It has been a good 4 year run here on wordpress.com, but the time has come &#8211; we&#8217;re moving to http://tarnaeluin.houseofbeor.net. I&#8217;ll be comments are closed here. All the posts are migrated over to the new site and I&#8217;m starting &#8230; <a href="http://tarnaeluin.wordpress.com/2012/01/08/comments-closing/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1107&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It has been a good 4 year run here on wordpress.com, but the time has come &#8211; we&#8217;re moving to <a href="http://tarnaeluin.houseofbeor.net">http://tarnaeluin.houseofbeor.net</a>.</p>
<p>I&#8217;ll be comments are closed here. All the posts are migrated over to the new site and I&#8217;m starting to remove old articles from here and leaving a url to the new site.</p>
<p>beren</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tarnaeluin.wordpress.com/1107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tarnaeluin.wordpress.com/1107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tarnaeluin.wordpress.com/1107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tarnaeluin.wordpress.com/1107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tarnaeluin.wordpress.com/1107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tarnaeluin.wordpress.com/1107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tarnaeluin.wordpress.com/1107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tarnaeluin.wordpress.com/1107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tarnaeluin.wordpress.com/1107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tarnaeluin.wordpress.com/1107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tarnaeluin.wordpress.com/1107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tarnaeluin.wordpress.com/1107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tarnaeluin.wordpress.com/1107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tarnaeluin.wordpress.com/1107/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1107&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tarnaeluin.wordpress.com/2012/01/08/comments-closing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d4214106d5e1f1f71999690998628886?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">beren</media:title>
		</media:content>
	</item>
		<item>
		<title>From Shadow to Real</title>
		<link>http://tarnaeluin.wordpress.com/2012/01/04/from-shadow-to-real/</link>
		<comments>http://tarnaeluin.wordpress.com/2012/01/04/from-shadow-to-real/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 02:36:19 +0000</pubDate>
		<dc:creator>Beren</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tarnaeluin.wordpress.com/?p=1176</guid>
		<description><![CDATA[So far so good over at tarnaeluin.houseofbeor.net, but so far performance seems ok. I&#8217;ll have to look into the comments features and how to enable openid and wordpress accounts not on my server to work for comments and stuff. If &#8230; <a href="http://tarnaeluin.wordpress.com/2012/01/04/from-shadow-to-real/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1176&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So far so good over at <a href="http://tarnaeluin.houseofbeor.net">tarnaeluin.houseofbeor.net</a>, but so far performance seems ok. I&#8217;ll have to look into the comments features and how to enable openid and wordpress accounts not on my server to work for comments and stuff.</p>
<p>If I get that working I&#8217;m going to close comments here and open things up over there.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tarnaeluin.wordpress.com/1176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tarnaeluin.wordpress.com/1176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tarnaeluin.wordpress.com/1176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tarnaeluin.wordpress.com/1176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tarnaeluin.wordpress.com/1176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tarnaeluin.wordpress.com/1176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tarnaeluin.wordpress.com/1176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tarnaeluin.wordpress.com/1176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tarnaeluin.wordpress.com/1176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tarnaeluin.wordpress.com/1176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tarnaeluin.wordpress.com/1176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tarnaeluin.wordpress.com/1176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tarnaeluin.wordpress.com/1176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tarnaeluin.wordpress.com/1176/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1176&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tarnaeluin.wordpress.com/2012/01/04/from-shadow-to-real/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d4214106d5e1f1f71999690998628886?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">beren</media:title>
		</media:content>
	</item>
		<item>
		<title>Shadow Blog</title>
		<link>http://tarnaeluin.wordpress.com/2012/01/02/shadow-blog/</link>
		<comments>http://tarnaeluin.wordpress.com/2012/01/02/shadow-blog/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 22:35:18 +0000</pubDate>
		<dc:creator>Beren</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tarnaeluin.wordpress.com/?p=1172</guid>
		<description><![CDATA[I&#8217;ve created a shadow blog over at my hosting provider to test out the concept of moving my blog over to my own domain. Here&#8217;s the url: http://tarnaeluin.houseofbeor.net/ What do ya think? Its a wee bit rough so far. The &#8230; <a href="http://tarnaeluin.wordpress.com/2012/01/02/shadow-blog/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1172&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve created a shadow blog over at my hosting provider to test out the concept of moving my blog over to my own domain. Here&#8217;s the url:</p>
<p>http://tarnaeluin.houseofbeor.net/</p>
<p>What do ya think? Its a wee bit rough so far. The export and import process does not really work too well. All my images moved over but they did not get re-attached properly so when you click on an image it is actually linking back to the wordpress blog. I&#8217;ve got a couple of other issues as well &#8211; the Aksimet spam crap is not working &#8211; even though the stats stuff does seem to be working ok.</p>
<p>What I do like is now I have control of themes and styles so I can make my blog a lot fancier. What are my concerns?</p>
<ol>
<li>I need a spam killer and so far my hosting company is not being too helpful.</li>
<li>Performance &#8211; seems a bit spotty so far &#8211; I&#8217;ll have to keep an eye on this one.</li>
</ol>
<p>I&#8217;ll keep working on the new site as I get a chance.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tarnaeluin.wordpress.com/1172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tarnaeluin.wordpress.com/1172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tarnaeluin.wordpress.com/1172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tarnaeluin.wordpress.com/1172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tarnaeluin.wordpress.com/1172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tarnaeluin.wordpress.com/1172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tarnaeluin.wordpress.com/1172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tarnaeluin.wordpress.com/1172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tarnaeluin.wordpress.com/1172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tarnaeluin.wordpress.com/1172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tarnaeluin.wordpress.com/1172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tarnaeluin.wordpress.com/1172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tarnaeluin.wordpress.com/1172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tarnaeluin.wordpress.com/1172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1172&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tarnaeluin.wordpress.com/2012/01/02/shadow-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d4214106d5e1f1f71999690998628886?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">beren</media:title>
		</media:content>
	</item>
		<item>
		<title>Android Pt.3 Snags in the Emulator and Bluetooth Explorations</title>
		<link>http://tarnaeluin.wordpress.com/2012/01/01/android-pt-3-snags-in-the-emulator-and-bluetooth-explorations/</link>
		<comments>http://tarnaeluin.wordpress.com/2012/01/01/android-pt-3-snags-in-the-emulator-and-bluetooth-explorations/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 21:22:24 +0000</pubDate>
		<dc:creator>Beren</dc:creator>
				<category><![CDATA[mobile development]]></category>

		<guid isPermaLink="false">http://tarnaeluin.wordpress.com/?p=1103</guid>
		<description><![CDATA[Continuing my work with Android &#8211; I seem to have hit a snag. When I start emulators the process hangs and the emulator never loads properly. I can see adb.exe and the emulator-arm.exe running in the process list, but nothing &#8230; <a href="http://tarnaeluin.wordpress.com/2012/01/01/android-pt-3-snags-in-the-emulator-and-bluetooth-explorations/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1103&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Continuing my work with Android &#8211; I seem to have hit a snag. When I start emulators the process hangs and the emulator never loads properly. I can see adb.exe and the emulator-arm.exe running in the process list, but nothing ever appears on screen. Attempting to kill it from the task list does not work either. The only solution is to reboot my laptop. Not sure what the problem is.<span id="more-1103"></span></p>
<p><strong>Emulators &#8211; What are they?</strong><br />
An emulator is a shell for running an android OS. If you look in your android SDK&#8217;s tools folder you can see the binary for the shell. The OS images are configured and stored (by default) under your user&#8217;s profile, on windows C:\Users\beren\.android\avd. The shell program requires an AVD (Android Virtual Device) file to startup. &#8211; or all the options<a href="http://developer.android.com/guide/developing/tools/emulator.html"> look here</a>. When you run from within Eclipse there are probably ant scripts or something like that to automate the launching of the binaries. I mention all this in case you get the  same problem I am currently having &#8211; the Run As function in Eclipse all of a sudden stopped working and I can&#8217;t launch the emulator  &#8211; no clue why.</p>
<p>After a bit of poking around I determined that somehow the saved data parts of my e,ulator configuration had become corrupted. I compared my directory structure to the directory structure of a new emulator runtime I created in eclipse. I just deleted all the &#8220;extra&#8221; files in my original one and tried again and everythign was back to normal.</p>
<p><strong>Bluetooth</strong><br />
There&#8217;s a pretty decent set of materials o-line that talk to how to create bluetooth clients and servers for Java. Here&#8217;s a fairly comprehensive overview:</p>
<ul>
<li>http://developers.sun.com/mobility/apis/articles/bluetoothintro/index.html</li>
</ul>
<p>You&#8217;ll notice something straight off &#8211; the article seems to mix J2SE and J2ME and not really clearly state what bluetooth support is in which platforms, how do you get working code, and how would you run these things. The answer is that these articles are generally talking about J2ME techniques and not J2SE. As far as I can tell there still is no true bluetooth support in J2SE java. You need a 3rd party library &#8211; I&#8217;ve used <a href="http://bluecove.org/">bluecove</a> for this, howver since I am running on Win64 and this library only runs on a 32-bit JVM I will need to use -d32 option i the VM arguments for the program to run in 32bit mode.</p>
<p>Bluecove has some decent example code that works, for example here is an example to find a device:</p>
<pre>import java.io.IOException;
import java.util.Vector;
import javax.bluetooth.*;

/**
 * Minimal Device Discovery example.
 */
public class RemoteDeviceDiscovery {
    public static final Vector/**/ devicesDiscovered = new Vector();
    public static void main(String[] args) throws IOException, InterruptedException {
        final Object inquiryCompletedEvent = new Object();
        devicesDiscovered.clear();
        DiscoveryListener listener = new DiscoveryListener() {
            public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) {
                System.out.println("Device " + btDevice.getBluetoothAddress() + " found");
                devicesDiscovered.addElement(btDevice);
                try {
                    System.out.println("     name " + btDevice.getFriendlyName(false));
                } catch (IOException cantGetDeviceName) {
                }
            }
            public void inquiryCompleted(int discType) {
                System.out.println("Device Inquiry completed!");
                synchronized(inquiryCompletedEvent){
                    inquiryCompletedEvent.notifyAll();
                }
            }
            public void serviceSearchCompleted(int transID, int respCode) {
            }
            public void servicesDiscovered(int transID, ServiceRecord[] servRecord) {
            }
        };
        synchronized(inquiryCompletedEvent) {
            boolean started = LocalDevice.getLocalDevice().getDiscoveryAgent().startInquiry(DiscoveryAgent.GIAC, listener);
            if (started) {
                System.out.println("wait for device inquiry to complete...");
                inquiryCompletedEvent.wait();
                System.out.println(devicesDiscovered.size() +  " device(s) found");
            }
        }
    }
}</pre>
<p>Let&#8217;s take a look at something similar in Android&#8217;s bluetooth APIs:</p>
<pre>package com.example.android.BluetoothChat;

import java.util.Set;

import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.AdapterView.OnItemClickListener;

/**
 * This Activity appears as a dialog. It lists any paired devices and
 * devices detected in the area after discovery. When a device is chosen
 * by the user, the MAC address of the device is sent back to the parent
 * Activity in the result Intent.
 */
public class DeviceListActivity extends Activity {
    // Debugging
    private static final String TAG = "DeviceListActivity";
    private static final boolean D = true;

    // Return Intent extra
    public static String EXTRA_DEVICE_ADDRESS = "device_address";

    // Member fields
    private BluetoothAdapter mBtAdapter;
    private ArrayAdapter mPairedDevicesArrayAdapter;
    private ArrayAdapter mNewDevicesArrayAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        // Setup the window
        requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
        setContentView(R.layout.device_list);

        // Set result CANCELED incase the user backs out
        setResult(Activity.RESULT_CANCELED);

        // Initialize the button to perform device discovery
        Button scanButton = (Button) findViewById(R.id.button_scan);
        scanButton.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                doDiscovery();
                v.setVisibility(View.GONE);
            }
        });

        // Initialize array adapters. One for already paired devices and
        // one for newly discovered devices
        mPairedDevicesArrayAdapter = new ArrayAdapter(this, R.layout.device_name);
        mNewDevicesArrayAdapter = new ArrayAdapter(this, R.layout.device_name);

        // Find and set up the ListView for paired devices
        ListView pairedListView = (ListView) findViewById(R.id.paired_devices);
        pairedListView.setAdapter(mPairedDevicesArrayAdapter);
        pairedListView.setOnItemClickListener(mDeviceClickListener);

        // Find and set up the ListView for newly discovered devices
        ListView newDevicesListView = (ListView) findViewById(R.id.new_devices);
        newDevicesListView.setAdapter(mNewDevicesArrayAdapter);
        newDevicesListView.setOnItemClickListener(mDeviceClickListener);

        // Register for broadcasts when a device is discovered
        IntentFilter filter = new IntentFilter(BluetoothDevice.ACTION_FOUND);
        this.registerReceiver(mReceiver, filter);

        // Register for broadcasts when discovery has finished
        filter = new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);
        this.registerReceiver(mReceiver, filter);

        // Get the local Bluetooth adapter
        mBtAdapter = BluetoothAdapter.getDefaultAdapter();

        // Get a set of currently paired devices
        Set pairedDevices = mBtAdapter.getBondedDevices();

        // If there are paired devices, add each one to the ArrayAdapter
        if (pairedDevices.size() &gt; 0) {
            findViewById(R.id.title_paired_devices).setVisibility(View.VISIBLE);
            for (BluetoothDevice device : pairedDevices) {
                mPairedDevicesArrayAdapter.add(device.getName() + "\n" + device.getAddress());
            }
        } else {
            String noDevices = getResources().getText(R.string.none_paired).toString();
            mPairedDevicesArrayAdapter.add(noDevices);
        }
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();

        // Make sure we're not doing discovery anymore
        if (mBtAdapter != null) {
            mBtAdapter.cancelDiscovery();
        }

        // Unregister broadcast listeners
        this.unregisterReceiver(mReceiver);
    }

    /**
     * Start device discover with the BluetoothAdapter
     */
    private void doDiscovery() {
        if (D) Log.d(TAG, "doDiscovery()");

        // Indicate scanning in the title
        setProgressBarIndeterminateVisibility(true);
        setTitle(R.string.scanning);

        // Turn on sub-title for new devices
        findViewById(R.id.title_new_devices).setVisibility(View.VISIBLE);

        // If we're already discovering, stop it
        if (mBtAdapter.isDiscovering()) {
            mBtAdapter.cancelDiscovery();
        }

        // Request discover from BluetoothAdapter
        mBtAdapter.startDiscovery();
    }

    // The on-click listener for all devices in the ListViews
    private OnItemClickListener mDeviceClickListener = new OnItemClickListener() {
        public void onItemClick(AdapterView av, View v, int arg2, long arg3) {
            // Cancel discovery because it's costly and we're about to connect
            mBtAdapter.cancelDiscovery();

            // Get the device MAC address, which is the last 17 chars in the View
            String info = ((TextView) v).getText().toString();
            String address = info.substring(info.length() - 17);

            // Create the result Intent and include the MAC address
            Intent intent = new Intent();
            intent.putExtra(EXTRA_DEVICE_ADDRESS, address);

            // Set result and finish this Activity
            setResult(Activity.RESULT_OK, intent);
            finish();
        }
    };

    // The BroadcastReceiver that listens for discovered devices and
    // changes the title when discovery is finished
    private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            String action = intent.getAction();

            // When discovery finds a device
            if (BluetoothDevice.ACTION_FOUND.equals(action)) {
                // Get the BluetoothDevice object from the Intent
                BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
                // If it's already paired, skip it, because it's been listed already
                if (device.getBondState() != BluetoothDevice.BOND_BONDED) {
                    mNewDevicesArrayAdapter.add(device.getName() + "\n" + device.getAddress());
                }
            // When discovery is finished, change the Activity title
            } else if (BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(action)) {
                setProgressBarIndeterminateVisibility(false);
                setTitle(R.string.select_device);
                if (mNewDevicesArrayAdapter.getCount() == 0) {
                    String noDevices = getResources().getText(R.string.none_found).toString();
                    mNewDevicesArrayAdapter.add(noDevices);
                }
            }
        }
    };
}</pre>
<p>Well &#8211; the first thing you&#8217;ll notice is that the code samples are pretty darn different and the first reaction might be &#8220;oh come on Google why couldn&#8217;t you use the J2ME and J2SE APIs. Well once you get beyond that first reaction the main difference I can see is that the Andorid APIs are a higher level APi that hides alot of the underlying grunt code necessary for J2ME and J2SE bluetooth connections. The Android above is from the Chat sample &#8211; a comprehensive example of bluetooth coding.</p>
<p>I&#8217;m going to try a couple of things next:</p>
<ul>
<li>Get the chat sample working between two Android devices</li>
<li>Try to get some connectivity and things working between a J2SE client and an Android client. I&#8217;ll switch to a Fedora linux client for that one I think.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tarnaeluin.wordpress.com/1103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tarnaeluin.wordpress.com/1103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tarnaeluin.wordpress.com/1103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tarnaeluin.wordpress.com/1103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tarnaeluin.wordpress.com/1103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tarnaeluin.wordpress.com/1103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tarnaeluin.wordpress.com/1103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tarnaeluin.wordpress.com/1103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tarnaeluin.wordpress.com/1103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tarnaeluin.wordpress.com/1103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tarnaeluin.wordpress.com/1103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tarnaeluin.wordpress.com/1103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tarnaeluin.wordpress.com/1103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tarnaeluin.wordpress.com/1103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1103&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tarnaeluin.wordpress.com/2012/01/01/android-pt-3-snags-in-the-emulator-and-bluetooth-explorations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d4214106d5e1f1f71999690998628886?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">beren</media:title>
		</media:content>
	</item>
		<item>
		<title>2011Tarn Aeluin in Review</title>
		<link>http://tarnaeluin.wordpress.com/2012/01/01/2011tarnaeluin-in-review/</link>
		<comments>http://tarnaeluin.wordpress.com/2012/01/01/2011tarnaeluin-in-review/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 01:27:47 +0000</pubDate>
		<dc:creator>Beren</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://tarnaeluin.wordpress.com/?p=1150</guid>
		<description><![CDATA[The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog. Ok the wordpress generated report is goofy &#8211; working on some decent stats. This year was a tough one for me &#8211; I had a lot of &#8230; <a href="http://tarnaeluin.wordpress.com/2012/01/01/2011tarnaeluin-in-review/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1150&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.</p>
<div style="background:url('/wp-content/mu-plugins/annual-reports/img/emailteaser.jpg') no-repeat center center;height:300px;"></div>
<p>Ok the wordpress generated report is goofy &#8211; working on some decent stats. This year was a tough one for me &#8211; I had a lot of responsibilities at work that took away from blogging and my karate practice with my son also takes time away from general messing around&#8230;although to me that&#8217;s a good reason not to blog!<span id="more-1150"></span></p>
<p>Total all time reads: 173K &#8211; wow!</p>
<p>Top Posts in 2011 (excluding my home page with 7K reads):</p>
<ul>
<li>Drupal 7 &#8211; Rich Text Editing and Uploading Images 14,596 reads</li>
<li>Google&#8217;s Window Builder Pro for Eclipse 3.6 5,506 reads</li>
<li>Images &amp; Galleries in Drupal 6 4,837 reads</li>
<li>Using Views in Drupal 6 3,877 reads</li>
<li>Installing GateIn 3.1 on My JBoss 5.1 Instance 2,017 reads</li>
<li>Revisiting Galleries with Drupal 6.15 1,064 reads</li>
<li>See ya JBoss Portal &#8211; Hello GateIn 3.1 &#8211; Part 1 855 reads</li>
<li>Practical Tips for Working with Oracle 11g 842 reads</li>
<li>Building Modules with Drupal 6 798 reads</li>
<li>J2ME Development: NetBeans 6.7M2 vs. Eclipse MTJ 0.91 758 reads</li>
</ul>
<p>My Drupal 7 Rich Text Editing article is by far the most commented on with 25 comments.I&#8217;m really surprised at the number of reads on my Window Builder post &#8211; I guess Java app development is not dead after all.</p>
<p>Top referrers are a bit harder to figure out. Putting aside all search engines thesea are the top referring sites:</p>
<ol>
<li>Drupal.org</li>
<li>facebook.com</li>
<li>disboards.com</li>
<li>sabbsunited.com</li>
<li>community.jboss.org</li>
<li>linkedin.com</li>
<li>cmsopensource.it</li>
</ol>
<p>I get google refs are a bizillion google&#8217;s for every country. Russia leads the pack.</p>
<p>Top Clicks out:</p>
<ol>
<li>drupal.org/project/imce    939</li>
<li>tarnaeluin.files.wordpress.com/2011/01/d7-rte-5.png    716</li>
<li>drupalmodules.com    711</li>
<li>tarnaeluin.files.wordpress.com/2011/01/d7-rte-4.png    567</li>
<li>tarnaeluin.files.wordpress.com/2011/01/d7-rte-2.png    498</li>
<li>tarnaeluin.files.wordpress.com/2011/01/d7-rte-6.png    427</li>
<li>drupal.org/project/ckeditor    400</li>
<li>code.google.com/javadevtools/wbpro/installation/updatesite_3.6.html    351</li>
<li>drupal.org/project/wysiwyg    335</li>
<li>ckeditor.com    291</li>
<li>tarnaeluin.files.wordpress.com/2010/10/ij9-1.png    245</li>
<li>tarnaeluin.files.wordpress.com/2008/05/images_shot1.jpg    192</li>
<li>tarnaeluin.files.wordpress.com/2010/10/wbp-2.png    188</li>
<li>tarnaeluin.files.wordpress.com/2008/05/views2.png    186</li>
<li>drupal.org/project/slideshow_creator    161</li>
</ol>
<p>That does it for stats! Happy New Year!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tarnaeluin.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tarnaeluin.wordpress.com/1150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tarnaeluin.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tarnaeluin.wordpress.com/1150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tarnaeluin.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tarnaeluin.wordpress.com/1150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tarnaeluin.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tarnaeluin.wordpress.com/1150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tarnaeluin.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tarnaeluin.wordpress.com/1150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tarnaeluin.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tarnaeluin.wordpress.com/1150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tarnaeluin.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tarnaeluin.wordpress.com/1150/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1150&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tarnaeluin.wordpress.com/2012/01/01/2011tarnaeluin-in-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d4214106d5e1f1f71999690998628886?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">beren</media:title>
		</media:content>
	</item>
		<item>
		<title>New Year &#8211; New Look</title>
		<link>http://tarnaeluin.wordpress.com/2011/12/31/new-year-new-look/</link>
		<comments>http://tarnaeluin.wordpress.com/2011/12/31/new-year-new-look/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 15:15:38 +0000</pubDate>
		<dc:creator>Beren</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[free themes]]></category>

		<guid isPermaLink="false">http://tarnaeluin.wordpress.com/?p=1136</guid>
		<description><![CDATA[I&#8217;ve used the same theme (Tarski) on my blog for about 4 years so I thought maybe it was time for a change. I&#8217;m using the freebie service from wordpress still primarily because it works and it would be a &#8230; <a href="http://tarnaeluin.wordpress.com/2011/12/31/new-year-new-look/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1136&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve used the same theme (Tarski) on my blog for about 4 years so I thought maybe it was time for a change. I&#8217;m using the freebie service from wordpress still primarily because it works and it would be a pain to move my blog site over to my hosting provider. The new theme looks pretty ok for me &#8211; what do you think? My primary complaint is the fixed width of the article column. It seems that most of the &#8220;free&#8221; themes are fixed widths with silly proportions &#8211; probably to get you to upgrade for the $30/year to tweak the CSS to reasonable proportions.</p>
<p>I&#8217;ll continue to mess around with the themes and play with options &#8211; the current theme as I write this ( 12/31/2011) is based on Pilcrow. I&#8217;ll put screen shots of each below in case you had something better to do while I was messing around <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  The second shot is using Twenty Eleven &#8211; I think I prefer this one mostly because the article width is more than Pilcrow.</p>
<p><a href="http://tarnaeluin.files.wordpress.com/2011/12/pilcrow.jpg"><img class="alignleft size-thumbnail wp-image-1141" title="pilcrow" src="http://tarnaeluin.files.wordpress.com/2011/12/pilcrow.jpg?w=150&#038;h=123" alt="" width="150" height="123" /></a><a href="http://tarnaeluin.files.wordpress.com/2011/12/tarn_aeluin_2011.jpg"><img class="alignleft size-thumbnail wp-image-1145" title="tarn_aeluin_2011" src="http://tarnaeluin.files.wordpress.com/2011/12/tarn_aeluin_2011.jpg?w=150&#038;h=125" alt="" width="150" height="125" /></a>I think I pretty happy with the Twenty Eleven &#8211; it is clean and simple and a bit wider than the others (still cannot adjust this in the options). The header graphic is a bit large, but its ok. <a href="www.tednasmith.com">Ted Nasmith</a> is the artist &#8211; quite a famous guy with LOTR fans. He&#8217;s done a bunch of pics that I really like. The other favorite of mine is a painting of Gondolin &#8211; the hidden city of Turgon. He has a number of pics of Beren and Luthien. I&#8217;ll have to make a bunch to round robin in the banner area.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tarnaeluin.wordpress.com/1136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tarnaeluin.wordpress.com/1136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tarnaeluin.wordpress.com/1136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tarnaeluin.wordpress.com/1136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tarnaeluin.wordpress.com/1136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tarnaeluin.wordpress.com/1136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tarnaeluin.wordpress.com/1136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tarnaeluin.wordpress.com/1136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tarnaeluin.wordpress.com/1136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tarnaeluin.wordpress.com/1136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tarnaeluin.wordpress.com/1136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tarnaeluin.wordpress.com/1136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tarnaeluin.wordpress.com/1136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tarnaeluin.wordpress.com/1136/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1136&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tarnaeluin.wordpress.com/2011/12/31/new-year-new-look/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d4214106d5e1f1f71999690998628886?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">beren</media:title>
		</media:content>

		<media:content url="http://tarnaeluin.files.wordpress.com/2011/12/pilcrow.jpg?w=150" medium="image">
			<media:title type="html">pilcrow</media:title>
		</media:content>

		<media:content url="http://tarnaeluin.files.wordpress.com/2011/12/tarn_aeluin_2011.jpg?w=150" medium="image">
			<media:title type="html">tarn_aeluin_2011</media:title>
		</media:content>
	</item>
		<item>
		<title>iTunes Music File Stops After a Few Seconds</title>
		<link>http://tarnaeluin.wordpress.com/2011/12/29/itunes-music-file-stops-after-a-few-seconds/</link>
		<comments>http://tarnaeluin.wordpress.com/2011/12/29/itunes-music-file-stops-after-a-few-seconds/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 20:28:58 +0000</pubDate>
		<dc:creator>Beren</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Stuff]]></category>
		<category><![CDATA[iTunes corrupted music file]]></category>

		<guid isPermaLink="false">http://tarnaeluin.wordpress.com/?p=1105</guid>
		<description><![CDATA[My wife gave me an iTunes card for Chirstmas so I went today to use it&#8230;little did I know what was going to happen. I poked around to find something to buy and picked out Journey&#8217;s Greatest Hits Vol 1 &#8230; <a href="http://tarnaeluin.wordpress.com/2011/12/29/itunes-music-file-stops-after-a-few-seconds/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1105&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My wife gave me an iTunes card for Chirstmas so I went today to use it&#8230;little did I know what was going to happen. I poked around to find something to buy and picked out Journey&#8217;s Greatest Hits Vol 1 &amp; 2 &#8211; I lost my Escape CD years ago. I had an existing credit in the store of about 13 bucks &#8211; not enough for the album. I banged in my code for the gift card &#8211; it appeared&#8230;but my $13 disappeared!</p>
<p><strong>Calm Down &#8211; its Apple</strong><br />
Ok &#8211; no biggie I&#8217;ll just call customer service. Uhh&#8230;I guess I will not call customer service&#8230;there is no number. WTF? They <img class="alignright size-medium wp-image-1131" title="itunes" src="http://tarnaeluin.files.wordpress.com/2011/12/itunes.jpg?w=213&#038;h=300" alt="" width="213" height="300" />have my money and I have to send an email and wait at least 48 hours for a response. Ok&#8230;its Apple &#8211; they love customers &#8211; I&#8217;ll wait since I still have $25 I can get my music still.</p>
<p><strong>Corruption&#8230;.d&#8217;oh</strong><br />
I downloaded the album and thought all was well. I ran about doing some stuff with the music playing &#8211; I wasn&#8217;t paying attention too much. Came back and sat down for the last song to hear it cut out after about 10-15 seconds. I checked all the songs and 5 of the 30 songs were messed up and wouldn&#8217;t play.</p>
<p>Still maintaining a sense of calm, I figure &#8211; ok just download them again. Uh &#8211; you can&#8217;t! WTF? I google around on &#8220;corrupted iTunes songs&#8221; or &#8220;iTunes song stops after a few seconds&#8221;. There&#8217;s one article copied and pasted onto a bizillion sites that says to delete the stuff in your downloads/TMP folder. Uh&#8230;don&#8217;t got one of those. All those posts don&#8217;t seem to pertain to Windows 7.</p>
<p>Breathing deep&#8230;ugh&#8230;my dealer called in the middle of all this to tell me they got the wrong seal for the rear differential on my car so it wil be another day without my car&#8230;.ok that does it!</p>
<p><strong>How to Fix Things?</strong><br />
The next best advice I could find on the internet, the Apple site, or the forums was to contact Apple customer service (yes another 48 hour deal with email). Screw that! Here&#8217;s what you do:</p>
<ol>
<li>Take a deep breath, be careful, and backup everything&#8230;especially your music files.</li>
<li>Update iTunes to the very latest &#8211; start it up and then close it down.</li>
<li>Go into My Music and iTunes and backup anything &#8220;library&#8221; in the name and also the &#8220;bk&#8221; directory. I copied these to somewhere else on the machine.</li>
<li>Go into your iTunes Music directory find the messed up songs and move them somewhere else &#8211; do not leave a copy here. Confirm that the songs are messed up in another media player &#8211; I used Nero&#8217;s player.</li>
<li>Startup iTunes and under &#8220;Store&#8221; click &#8220;Purchased&#8221;.</li>
<li>Go to the songs in iTunes try to play them &#8211; they will get an error and an icon</li>
<li>Delete the songs from iTunes</li>
<li>Click &#8220;Download Previous Purchases&#8221;</li>
<li>Click on &#8220;Not in My Library&#8221;</li>
<li>iTunes will list the songs you just deleted</li>
<li>Highlight each song and a download link should appear.</li>
<li>Song will download and you should be good to go.</li>
</ol>
<p>I performed this on Win7 64 Home Premium with iTunes 10.5.2 &#8211; no clue if this will work on other versions or OS&#8217;s. I do not have the iCloud crap working either.</p>
<p>Yo Apple &#8211; how about a big page or FAQ on this? Now where&#8217;s my $13???</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tarnaeluin.wordpress.com/1105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tarnaeluin.wordpress.com/1105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tarnaeluin.wordpress.com/1105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tarnaeluin.wordpress.com/1105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tarnaeluin.wordpress.com/1105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tarnaeluin.wordpress.com/1105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tarnaeluin.wordpress.com/1105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tarnaeluin.wordpress.com/1105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tarnaeluin.wordpress.com/1105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tarnaeluin.wordpress.com/1105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tarnaeluin.wordpress.com/1105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tarnaeluin.wordpress.com/1105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tarnaeluin.wordpress.com/1105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tarnaeluin.wordpress.com/1105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1105&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tarnaeluin.wordpress.com/2011/12/29/itunes-music-file-stops-after-a-few-seconds/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d4214106d5e1f1f71999690998628886?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">beren</media:title>
		</media:content>

		<media:content url="http://tarnaeluin.files.wordpress.com/2011/12/itunes.jpg?w=213" medium="image">
			<media:title type="html">itunes</media:title>
		</media:content>
	</item>
		<item>
		<title>Digging Deeper Into ADK</title>
		<link>http://tarnaeluin.wordpress.com/2011/12/27/digging-deeper-into-adk/</link>
		<comments>http://tarnaeluin.wordpress.com/2011/12/27/digging-deeper-into-adk/#comments</comments>
		<pubDate>Tue, 27 Dec 2011 22:43:36 +0000</pubDate>
		<dc:creator>Beren</dc:creator>
				<category><![CDATA[mobile development]]></category>

		<guid isPermaLink="false">http://tarnaeluin.wordpress.com/?p=1087</guid>
		<description><![CDATA[I&#8217;ve been using and coding with bluetooth for quite some time using Java, C++, and J2ME. Java&#8217;s support for bluetooth is fairly decent although for the JDK you need to use an SDK from a 3rd party &#8211; I&#8217;ve used &#8230; <a href="http://tarnaeluin.wordpress.com/2011/12/27/digging-deeper-into-adk/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1087&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using and coding with bluetooth for quite some time using Java, C++, and J2ME. Java&#8217;s support for bluetooth is fairly decent although for the JDK you need to use an SDK from a 3rd party &#8211; I&#8217;ve used bluecove.org for this. In the past I&#8217;ve used bluetooth for connecting serial devices to exchange data payloads in an XML or ASCII text bump. Today I&#8217;m going to see if I can get my droid tablet to pair with my laptop and send something &#8211; maybe a picture.</p>
<p><strong>Eclipse ADK</strong><br />
I&#8217;m going to be using the Eclipse ADK plugin for development (see my<a href="http://tarnaeluin.wordpress.com/2011/09/10/trying-out-adk-and-the-droid/"> other post</a> for info. on that). A smart place to start is the great set of sample <a href="http://tarnaeluin.files.wordpress.com/2011/12/samples.jpg"><img class="alignright size-medium wp-image-1088" title="samples" src="http://tarnaeluin.files.wordpress.com/2011/12/samples.jpg?w=163&#038;h=300" alt="" width="163" height="300" /></a>applications that come with the ADK. In Eclipse go to new project, other, and android. Under there you should see a Android Sample folder with a lot of templates to get going quickly. I picked off the &#8220;widget preview&#8221; project as a good place to get started. In this example you can get a good view of UI and event handling and also lots of samples for controllers and other OS level stuff. I see there are also samples for some bluetooth stuff&#8230;cool&#8230;maybe this will be easy <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>The next step is to make sure that you have the latest and greatest installed. Using the ADK Manager from either inside Eclipse or from the start menu I&#8217;ve added all the latest updates to my current SDKs and also added the new 4.0.3 SDK for tablets. You should be able to right-click the project and click Run As and pick off Android Application.<span id="more-1087"></span></p>
<p><a href="http://tarnaeluin.files.wordpress.com/2011/12/sdkmanager.jpg"><img class="alignleft size-thumbnail wp-image-1089" title="sdkmanager" src="http://tarnaeluin.files.wordpress.com/2011/12/sdkmanager.jpg?w=150&#038;h=107" alt="" width="150" height="107" /></a>If that choice is missing then you need to add a run configuration from the same menu &#8211; I described this in my earlier post so I won&#8217;t again here&#8230;.onto the code! You should run your program just to make sure that all the stuff is working properly &#8211; it does take quite some time to startup the tablet OS emulator. It could be that this program just takes a while to load.I found that I had to change my run configuration launch to &#8220;manual&#8221; in order to select between launching the app as a tablet vs. a phone.</p>
<p>This project is one class file that loads up related sets of widgets. If you look at the code there are a couple of click handlers that pass variables to control what sets of widgets are on screen. The widgets don&#8217;t really do anything, but you get to see the basic set for your apps. Moving on the Contact Manager example is a good example to look at because it interacts with the base OS data structures for accounts and contacts. The <a href="http://tarnaeluin.files.wordpress.com/2011/12/contactmanaager.jpg"><img class="alignright size-medium wp-image-1091" title="contactManaager" src="http://tarnaeluin.files.wordpress.com/2011/12/contactmanaager.jpg?w=204&#038;h=300" alt="" width="204" height="300" /></a>contact manager&#8217;s main class extends Activity, implements the OnAccountsUpdateListener interface., and initializes the app and gui in the onCreate function. The program contains several utility classes for data handling and synch with the base OS contact/account management machinery. To see the GUI layout look in the res\layout folder and double-click one of the xml files. The Pixel Perfect interface should open up automatically. If it does not switch manually to the perspective &#8211; or right click the XML file and use open with to open the editor you want. Pixel Perfect is the GUI layout tool for the ADK. Compared to other GUI layout tools it is a bit odd to work with. Why? There is no visible set of &#8220;properties&#8221; to manipulate.</p>
<p>If you have used WindowBuilder Pro (another Google tool that is now part of Eclipse for designing desktop Java apps), Pixel Perfect&#8217;s layout tools and buttons look and work similar. To access properties of a specific widget dropped onto a canvas you need to right click it &#8211; or go to the XML and edit it by hand. It takes a  bit of fiddling around and the terminology is a bit odd &#8211; there are better places to read about this than here:</p>
<ul>
<li>http://www.google.com/events/io/2009/sessions/PixelPerfectCodeInteractionDesignAndroid.html</li>
<li>http://developer.android.com/guide/developing/debugging/debugging-ui.html#pixelperfect</li>
</ul>
<p>Pixel Perfect combines with a few other tools later in the development cycle to help optimize your GUI. These are available through the HierarchyViewer tool &#8211; a pretty cool tool that helps you inspect and tune all your screens during run time testing.</p>
<p><strong>This was about Bluetooth right?</strong><br />
Ah yeah &#8211; that&#8217;s right &#8211; well let&#8217;s take a peek at some bluetooth and compare it a bit to J2ME and J2SE in my next post. I want to spend a bit more time messing with the Perfect Pixel stuff.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tarnaeluin.wordpress.com/1087/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tarnaeluin.wordpress.com/1087/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tarnaeluin.wordpress.com/1087/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tarnaeluin.wordpress.com/1087/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tarnaeluin.wordpress.com/1087/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tarnaeluin.wordpress.com/1087/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tarnaeluin.wordpress.com/1087/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tarnaeluin.wordpress.com/1087/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tarnaeluin.wordpress.com/1087/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tarnaeluin.wordpress.com/1087/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tarnaeluin.wordpress.com/1087/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tarnaeluin.wordpress.com/1087/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tarnaeluin.wordpress.com/1087/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tarnaeluin.wordpress.com/1087/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1087&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tarnaeluin.wordpress.com/2011/12/27/digging-deeper-into-adk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d4214106d5e1f1f71999690998628886?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">beren</media:title>
		</media:content>

		<media:content url="http://tarnaeluin.files.wordpress.com/2011/12/samples.jpg?w=163" medium="image">
			<media:title type="html">samples</media:title>
		</media:content>

		<media:content url="http://tarnaeluin.files.wordpress.com/2011/12/sdkmanager.jpg?w=150" medium="image">
			<media:title type="html">sdkmanager</media:title>
		</media:content>

		<media:content url="http://tarnaeluin.files.wordpress.com/2011/12/contactmanaager.jpg?w=204" medium="image">
			<media:title type="html">contactManaager</media:title>
		</media:content>
	</item>
		<item>
		<title>Fedora 16 &#8211; Impressive &#8211;&gt; Finally Linux Comes of Age</title>
		<link>http://tarnaeluin.wordpress.com/2011/12/18/fedora-16-impressive-finally-linux-comes-of-age/</link>
		<comments>http://tarnaeluin.wordpress.com/2011/12/18/fedora-16-impressive-finally-linux-comes-of-age/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 15:20:28 +0000</pubDate>
		<dc:creator>Beren</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://tarnaeluin.wordpress.com/?p=1071</guid>
		<description><![CDATA[I&#8217;ve messed around with Linux distros for years wondering when I would finally get something that was truly a consumer oriented and simple OS to install and use. I think it finally happened! I was messing with some translation files &#8230; <a href="http://tarnaeluin.wordpress.com/2011/12/18/fedora-16-impressive-finally-linux-comes-of-age/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1071&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve messed around with Linux distros for years wondering when I would finally get something that was truly a consumer oriented and simple OS to install and use. I think it finally happened! I was messing with some translation files for work &#8211; GNU gettext crap. If you&#8217;ve ever done that you&#8217;ll know that its not exactly super fun stimulating stuff so why not break up the boredome and install an OS on a spare machine. So I did &#8211; Fedora 16 and it is really a nice experience &#8211; and easily as good as Windows 7 and OS-X.<span id="more-1071"></span></p>
<p><strong>Installation Experience</strong><br />
Couldn&#8217;t really be easier &#8211; download an ISO and burn it to a CD (yes the OS does not need a full DVD). Boot up your machine and make sure you like what you see, and then you can choose to install the OS or forget it. I of course chose the installation (otherwise I woudln&#8217;t be writing this) and since I had Fedora 13 installed I just had it blow the entire machine away. The install was complete in about 5-10 minutes. I spent more time and effort applying the OS-X 10.7 update to my Mac!</p>
<p><strong>Eye Candy!</strong><br />
A quick boot up and wow &#8211; nice look and feel! Let&#8217;s face it, Linux is a kind of a geek tool and the UI has always looked that way, but the new look on first boot up is pretty nice. The look is very clean &#8211; not even a trash can, for a gear head like me it is a<a href="http://tarnaeluin.files.wordpress.com/2011/12/screenshot-at-2011-12-18-082629.png"><img class="alignright size-medium wp-image-1074" title="Clean Desktop" src="http://tarnaeluin.files.wordpress.com/2011/12/screenshot-at-2011-12-18-082629.png?w=300&#038;h=187" alt="" width="300" height="187" /></a> little disconcerting.  Everything on the machine is accessed thru the top menu bar &#8211; from left to right:</p>
<ul>
<li>Activities &#8211; here&#8217;s where the &#8220;dock&#8221; is and access to all open programs and applciations.</li>
<li>Program Icon &#8211; the active program will get a spot next to that.</li>
<li>Calendar &#8211; quick access right there to the time, date, anda  calendar planner.</li>
<li>On the right is all your configuration options for the machine. Super easy bluethooth, WiFi, handicapped stuff, different color schemes, and a nice tie in for integration with Google.</li>
<li>If you click on your name you find access to things like system settings (phew &#8211; there they are).</li>
</ul>
<p>The set of screens below show a bunch of screen shots of these things:</p>
<table width="100%" border="1">
<tbody>
<tr>
<td> <a href="http://tarnaeluin.files.wordpress.com/2011/12/screenshot-at-2011-12-18-081435.png"><img class="alignnone size-thumbnail wp-image-1076" title="Dock and Virtual Desktops" src="http://tarnaeluin.files.wordpress.com/2011/12/screenshot-at-2011-12-18-081435.png?w=150&#038;h=93" alt="" width="150" height="93" /></a></td>
<td><a href="http://tarnaeluin.files.wordpress.com/2011/12/screenshot-at-2011-12-18-081453.png"><img class="alignnone size-thumbnail wp-image-1077" title="Screenshot at 2011-12-18 08:14:53" src="http://tarnaeluin.files.wordpress.com/2011/12/screenshot-at-2011-12-18-081453.png?w=150&#038;h=93" alt="" width="150" height="93" /></a></td>
<td><a href="http://tarnaeluin.files.wordpress.com/2011/12/screenshot-at-2011-12-18-081538.png"><img class="alignnone size-thumbnail wp-image-1078" title="Settings Quick Access" src="http://tarnaeluin.files.wordpress.com/2011/12/screenshot-at-2011-12-18-081538.png?w=150&#038;h=93" alt="" width="150" height="93" /></a></td>
<td> <a href="http://tarnaeluin.files.wordpress.com/2011/12/settings.png"><img class="alignnone size-thumbnail wp-image-1079" title="Settings" src="http://tarnaeluin.files.wordpress.com/2011/12/settings.png?w=150&#038;h=93" alt="" width="150" height="93" /></a></td>
</tr>
</tbody>
</table>
<p>That&#8217;s all great &#8211; but I still want control! No worries &#8211; after a couple of seconds wondering if Fedora has gone the Windows and OS-X route of obfuscating access to the computer and its settings (where the heck did the hard drive go on OS-X 10.7!!!), I realized that complete access is available thru the settings and yes the terminal is right there in Activities &#8211; Applications. I immediately dragged and dropped the terminal out onto my doc. All is right again with the Penguin <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Check out all that software in the applications folder. Wow &#8211; everything you need &#8211; video, music, internet stuff, Firefox, etc.</p>
<p><strong>Running Software</strong><br />
Straight off I grabbed Java 1.7U2 and installed this and then grabbed JBoss 7.1 Beta 1. Java installed. While I was doing that I kicked off a system update. That ran while I wrote this post and completed in the background at some point.  A quick extract of jboss and fire up that tool and things are working just fine. While that was happening I checked out the Rhythmbox music player &#8211; can thing thing recognize my ipod and do something? Ahhh&#8230;yes and no. D&#8217;oh. Gotta get Eclipse now&#8230;</p>
<p>F16 has cool desktop views to help get your app back into the foreground. Just click on Activities and you&#8217;ll get a view like this:</p>
<p><a href="http://tarnaeluin.files.wordpress.com/2011/12/apps.png"><img class="aligncenter size-medium wp-image-1083" title="apps" src="http://tarnaeluin.files.wordpress.com/2011/12/apps.png?w=300&#038;h=187" alt="" width="300" height="187" /></a></p>
<p>Then you can pick your app from the thumbnails or pick from a set of desktops you have setup &#8211; not new stuff for Linux, but accessing this and using it seems much more intuitive than in the past.</p>
<p><strong>Fedora Plus &#8211; whoo-hooo!!!</strong><br />
F16 did recognize my iPod, but I&#8217;m missing codecs and R-box failed to locate them. A qiuck google and I found a set of great tutorials on the<a href="http://www.fedoraforum.org/?view=fedora_setup"> FedoraForum</a> site. If you want to make life easy go t othe first link about AutoPlus and install that program. It is essentially a short list of common goodies that you can install. I grabbed it and installed MP3 codecs plus all the other <a href="http://tarnaeluin.files.wordpress.com/2011/12/music.png"><img class="alignright size-medium wp-image-1081" title="iPod on Linux - No iTunes" src="http://tarnaeluin.files.wordpress.com/2011/12/music.png?w=300&#038;h=187" alt="" width="300" height="187" /></a>codecs for videos and DVDs. I disconnected and reconnected my iPod and hey it works! Try that on Win-bloze or a Mac! No iTunes means no daily 90MB downloads!</p>
<p><strong>About My Machine <em>- Long Live the Penguin!</em></strong><br />
I&#8217;m running this on a 4 year old T60p &#8220;pre-Lenovo&#8221; ThinkPad with an ATI card for graphics and 2 GB of RAM. Performance is pretty snappy &#8211; while writing this I was downloading and applying updates, playing music, running JBoss app server and I accidentally started up Orca so I was running the screen reader and braille support. Point being &#8211; I can run all this on a machine that Windows 7 or OS-X 10.7 would totally choke on and I&#8217;m doing it easily &#8211; it took a long time, but finally I think we have a Linux distro that really is ready for the average human to deal with.<br />
<em>PS: One peeve &#8211; what&#8217;s up with no window minnimize button?? Right click on the title bar to minimize a window&#8230;</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tarnaeluin.wordpress.com/1071/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tarnaeluin.wordpress.com/1071/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tarnaeluin.wordpress.com/1071/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tarnaeluin.wordpress.com/1071/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tarnaeluin.wordpress.com/1071/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tarnaeluin.wordpress.com/1071/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tarnaeluin.wordpress.com/1071/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tarnaeluin.wordpress.com/1071/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tarnaeluin.wordpress.com/1071/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tarnaeluin.wordpress.com/1071/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tarnaeluin.wordpress.com/1071/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tarnaeluin.wordpress.com/1071/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tarnaeluin.wordpress.com/1071/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tarnaeluin.wordpress.com/1071/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1071&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tarnaeluin.wordpress.com/2011/12/18/fedora-16-impressive-finally-linux-comes-of-age/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d4214106d5e1f1f71999690998628886?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">beren</media:title>
		</media:content>

		<media:content url="http://tarnaeluin.files.wordpress.com/2011/12/screenshot-at-2011-12-18-082629.png?w=300" medium="image">
			<media:title type="html">Clean Desktop</media:title>
		</media:content>

		<media:content url="http://tarnaeluin.files.wordpress.com/2011/12/screenshot-at-2011-12-18-081435.png?w=150" medium="image">
			<media:title type="html">Dock and Virtual Desktops</media:title>
		</media:content>

		<media:content url="http://tarnaeluin.files.wordpress.com/2011/12/screenshot-at-2011-12-18-081453.png?w=150" medium="image">
			<media:title type="html">Screenshot at 2011-12-18 08:14:53</media:title>
		</media:content>

		<media:content url="http://tarnaeluin.files.wordpress.com/2011/12/screenshot-at-2011-12-18-081538.png?w=150" medium="image">
			<media:title type="html">Settings Quick Access</media:title>
		</media:content>

		<media:content url="http://tarnaeluin.files.wordpress.com/2011/12/settings.png?w=150" medium="image">
			<media:title type="html">Settings</media:title>
		</media:content>

		<media:content url="http://tarnaeluin.files.wordpress.com/2011/12/apps.png?w=300" medium="image">
			<media:title type="html">apps</media:title>
		</media:content>

		<media:content url="http://tarnaeluin.files.wordpress.com/2011/12/music.png?w=300" medium="image">
			<media:title type="html">iPod on Linux - No iTunes</media:title>
		</media:content>
	</item>
		<item>
		<title>Playing with Wickets</title>
		<link>http://tarnaeluin.wordpress.com/2011/12/04/playing-with-wickets/</link>
		<comments>http://tarnaeluin.wordpress.com/2011/12/04/playing-with-wickets/#comments</comments>
		<pubDate>Sun, 04 Dec 2011 23:16:20 +0000</pubDate>
		<dc:creator>Beren</dc:creator>
				<category><![CDATA[J2EE/Java]]></category>

		<guid isPermaLink="false">http://tarnaeluin.wordpress.com/?p=1057</guid>
		<description><![CDATA[I got four days off for Turkey, PS3 games, goofing off with the family, and of course a chance to fiddle around with another framework. I saw a post on Wicket on InfoQ a few weeks back and it looked &#8230; <a href="http://tarnaeluin.wordpress.com/2011/12/04/playing-with-wickets/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1057&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I got four days off for Turkey, PS3 games, goofing off with the family, and of course a chance to fiddle around with another framework. I saw a post on <a href="http://wicket.apache.org">Wicket</a> on <a href="http://www.infoq.com">InfoQ</a> a few weeks back and it looked kinds of interesting as a possible replacement for some things I was doing with Spring on my labs site. My main problem with Spring is the resources required to do anything&#8230;.and my lack of resources given my cheapo low budget hosting deal. Why write a blog page? Well inevitably these frameworks are written by super gurus who always seem to leave the little guy (part time hack-arounders like me) behind with the docs. A quick look at Wicket will leave a lot of people scratching their heads and asking &#8211; whaaa? How&#8217;d they do that?</p>
<p><strong>What&#8217;s Required for Wicket?</strong><br />
Well any modern framework will require a bunch of stuff &#8211; you&#8217;ll need Eclipse (I&#8217;m using 3.7), Java 1.6.xxx, Maven, Subclipse, and the M2E plugin installed from the Eclipse site (not sonatype). Before doing anything I recommend getting the latest updates for all that stuff. Make sure you can run &#8220;mvn&#8221; from a command line while you are at it. It definitely helps to understand what Maven is and generally how it works. That&#8217;s pretty much it.</p>
<p><strong>A First Test</strong><br />
The <a href="http://wicket.apache.org/start/quickstart.html">Quickstart</a> on the Wicket site is a good first test, run thru this and see if all is well. Once you get the project downloaded with mvn and then added into Eclipse you should be able to start the internal server from the java class src/test<a href="http://tarnaeluin.files.wordpress.com/2011/11/wicket1.jpg"><img class="alignright size-medium wp-image-1059" title="wicket1" src="http://tarnaeluin.files.wordpress.com/2011/11/wicket1.jpg?w=300&#038;h=265" alt="" width="300" height="265" /></a>/java/com.houseofbeor.Start.java file. Don&#8217;t forget to first stop anything running on 8080 or you&#8217;ll get a port conflict.</p>
<p>That seemed to work ok for me, but of course my next question would be how do I deploy that to a real server. More on that later since there is no mention on the Wicket site for how to do that. In the meantime there are a bunch of examples to play around with. You can see them on the Wicket site, but that&#8217;s not too much fun.</p>
<p>If you grab the source bundle then you can run them all locally. Extract the zip somewhere on your PC, then copy src\wicket-examples to a folder on your machine where you can mess with it using maven. Go to the root (wicket-examples) and execute a mvn build and then a mvn install. After that do a mvn eclipse:eclipse and you can add the entire thing to Eclipse as a project like with the Quickstart. You&#8217;ll notice after running the install that a .war file is dropped out for you. If you have a local app server you can deploy this to your apps directory and see everything local. Browsing thru the war packaging at least gives me some assurance that at the end of the day what you are deploying is a true war <a href="http://tarnaeluin.files.wordpress.com/2011/11/wicket2.jpg"><img class="alignleft size-medium wp-image-1061" title="wicket2" src="http://tarnaeluin.files.wordpress.com/2011/11/wicket2.jpg?w=230&#038;h=300" alt="" width="230" height="300" /></a>file&#8230;it also is a scary confirmation that maven is a useful tool that I know very little about since it has transformed the baffling development setup into a nicely organized war that deployed with no issues on my tomcat 7 server.</p>
<p>What&#8217;s even more impressive is that with the server up and running and clicking thru a bunch of the examples, tomcat is hovering, with a default config, in the 100 MB range &#8211; try that with a reasonable Spring or Seam configuration.</p>
<p><strong>Deploying the App</strong><br />
The easiest way I found to deploy your app is to go back to the command line and do a maven install. This generates a complete war file that you can then drop into your app server. Works great.</p>
<p><strong>Digging into the Examples and Rolling my Own</strong><br />
Starting at the top with the HelloWorld you can add these to your quickstart base. Here&#8217;s how I&#8217;ve done this:</p>
<p>To make it easy to browse the example code create a new Eclipse project from the code base you created above&#8230;.ruh ro&#8230;no workie&#8230;I get build failures citing build path issues. Um &#8211; well there must be some problem with pom.xml, but I can see the build path is right &#8211; not sure what is wrong. Well &#8211; I can still browse around the code. I&#8217;ll fix this later&#8230;.hmmm I smell something&#8230;pumpkin pie, turkey, sweet potatoes&#8230;time to go. I&#8217;ll post a Pt 2 with more interesting stuff on creating custom apps.</p>
<p>A bit on my system:</p>
<ol>
<li> 1. Latest JDK 1.6</li>
<li>2. Eclipse Indigo</li>
<li>3. Tomcat 7 &#8211; latest</li>
<li>4. Windows 7 -64 Bit</li>
</ol>
<p>More to come&#8230;in Part 2.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tarnaeluin.wordpress.com/1057/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tarnaeluin.wordpress.com/1057/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tarnaeluin.wordpress.com/1057/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tarnaeluin.wordpress.com/1057/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tarnaeluin.wordpress.com/1057/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tarnaeluin.wordpress.com/1057/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tarnaeluin.wordpress.com/1057/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tarnaeluin.wordpress.com/1057/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tarnaeluin.wordpress.com/1057/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tarnaeluin.wordpress.com/1057/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tarnaeluin.wordpress.com/1057/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tarnaeluin.wordpress.com/1057/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tarnaeluin.wordpress.com/1057/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tarnaeluin.wordpress.com/1057/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tarnaeluin.wordpress.com&amp;blog=1961658&amp;post=1057&amp;subd=tarnaeluin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tarnaeluin.wordpress.com/2011/12/04/playing-with-wickets/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d4214106d5e1f1f71999690998628886?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">beren</media:title>
		</media:content>

		<media:content url="http://tarnaeluin.files.wordpress.com/2011/11/wicket1.jpg?w=300" medium="image">
			<media:title type="html">wicket1</media:title>
		</media:content>

		<media:content url="http://tarnaeluin.files.wordpress.com/2011/11/wicket2.jpg?w=230" medium="image">
			<media:title type="html">wicket2</media:title>
		</media:content>
	</item>
	</channel>
</rss>
