<?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>Projects @ morgan.hk</title>
	<atom:link href="http://projects.morgan.hk/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://projects.morgan.hk/blog</link>
	<description></description>
	<lastBuildDate>Wed, 28 Oct 2009 04:17:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Projects pages are back up</title>
		<link>http://projects.morgan.hk/blog/20091028/projects-pages-are-back-up/</link>
		<comments>http://projects.morgan.hk/blog/20091028/projects-pages-are-back-up/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 04:17:01 +0000</pubDate>
		<dc:creator>Morgan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://projects.morgan.hk/blog/20091028/projects-pages-are-back-up/</guid>
		<description><![CDATA[The pages seemed to be down recently due to the fact that my host, Dreamhost, might have moved me to a new server. All my other domains seemed to be fine, so overall it was a smooth switch from kitkat to islander. 
All services are back. Enjoy~
]]></description>
			<content:encoded><![CDATA[<p>The pages seemed to be down recently due to the fact that my host, Dreamhost, might have moved me to a new server. All my other domains seemed to be fine, so overall it was a smooth switch from kitkat to islander. <img src='http://projects.morgan.hk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
All services are back. Enjoy~</p>
]]></content:encoded>
			<wfw:commentRss>http://projects.morgan.hk/blog/20091028/projects-pages-are-back-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blü server cluster</title>
		<link>http://projects.morgan.hk/blog/20090811/blu-server-cluster/</link>
		<comments>http://projects.morgan.hk/blog/20090811/blu-server-cluster/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 02:35:16 +0000</pubDate>
		<dc:creator>Morgan</dc:creator>
				<category><![CDATA[Bluetooth Media Sharing]]></category>
		<category><![CDATA[blü]]></category>

		<guid isPermaLink="false">http://projects.morgan.hk/blog/?p=115</guid>
		<description><![CDATA[No so long ago, we received a couple of computers from the SCM.IT team (thanks to Prof. Liu, Antony and Simon), 20 computers (with their keyboard/mouse/LCD friends) to be precise. While 3 of them have dead power supplies, the other ones are happy and running along.
This post will outline some of the things I have [...]]]></description>
			<content:encoded><![CDATA[<p>No so long ago, we received a couple of computers from the SCM.IT team (thanks to Prof. Liu, Antony and Simon), 20 computers (with their keyboard/mouse/LCD friends) to be precise. While 3 of them have dead power supplies, the other ones are happy and running along.</p>
<p>This post will outline some of the things I have done so far.</p>
<ol>
<li>Setting up the computers</li>
</ol>
<p>Since the computers will all be connected together in a cluster, I needed to setup the computers and connect them together. This was definitvely not an easy task but, with a little time, i got them all up together. Physically at least.</p>
<p>[insert photo of cluster]</p>
<p>The process each computer underwent was the following (several computers were done in parallel):</p>
<ul>
<li>Check power supply</li>
<li>Modify BIOS settings:
<ul>
<li>Allow PXE</li>
<li>Allow Wake on Lan</li>
<li>Restart on power loss</li>
<li>Wake up at 6.00 am</li>
<li>boot from USB, then SATA</li>
<li>Num. Lock</li>
<li>Enable Hyperthreading</li>
</ul>
</li>
<li>Partition HDD and install Ubuntu Linux 9.04<br />
I considered originally installing Linux using PXE but then thought it would be faster just to boot all the computers with Ubuntu Jaunty on my USB key. (it was faster)</li>
<li>Install openssh-server on all the computers
<pre>sudo apt-get update &amp;&amp; sudo apt-get -y install openssh-server &amp;&amp; sudo reboot</pre>
</li>
<li>Connect to the blü network</li>
</ul>
<ol start="2">
<li>Setting up the network</li>
</ol>
<p>Since we need to keep the costs down (the computers were lended to us for free), we also went the cheap route for the network. If we keep the &#8220;google&#8221; approach to the cluster, we should stick to cheap components that can easily be replaced in case of failure. Thus, the following networking tools were purchased:</p>
<ul>
<li>D-Link DIR-300 router (on which i installed DD-WRT) @ $HK199</li>
<li>D-Link 16port 10/100 switch @ $HK230</li>
<li>300m of CAT5 cable</li>
<li>50 RJ45 plugs</li>
<li>crimping tool</li>
</ul>
<p>The longest part of this process was, of course, making the cables.</p>
<ol start="3">
<li>Remote access</li>
</ol>
<p>I had a look at which solution would be the best in order to control all the computers graphically without having to buy expensive KVM switches. My final decision went for running Xsessions over ssh. This would ensure minimal modifications to the system and security.</p>
<p>Other choices were X forwarding and VNC. I did not go for VNC because of security reasons and also because i had touble forcing it to launch before the gdm prompt. Similarly I did not go for X forarding because I had concerns about security.</p>
<p>To run Xsessions under windows one needs to install Xming and Xming-fonts. Then create a xml file with the following extension: .xlaunch and content:</p>
<pre>&lt;?xml version="1.0"?&gt;
&lt;XLaunch xmlns="http://www.straightrunning.com/XmingNotes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.straightrunning.com/XmingNotes XLaunch.xsd" WindowMode="Windowed" ClientMode="StartProgram" Program="gnome-session" ClientStart="PuTTY" Compress="true" RemoteHost="192.168.0.1" RemoteUser="blu" Display="15" Clipboard="false"/&gt;
</pre>
<p>replacing of course 192.168.0.1 by the client IP and gnome-session by the program you would like to launch</p>
]]></content:encoded>
			<wfw:commentRss>http://projects.morgan.hk/blog/20090811/blu-server-cluster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Final report</title>
		<link>http://projects.morgan.hk/blog/20090526/final-report/</link>
		<comments>http://projects.morgan.hk/blog/20090526/final-report/#comments</comments>
		<pubDate>Tue, 26 May 2009 09:28:50 +0000</pubDate>
		<dc:creator>Morgan</dc:creator>
				<category><![CDATA[SM2258 - Creative Electronics Workshop]]></category>

		<guid isPermaLink="false">http://projects.morgan.hk/blog/?p=111</guid>
		<description><![CDATA[final report2.pdf
]]></description>
			<content:encoded><![CDATA[<p><a href="http://projects.morgan.hk/blog/wp-content/uploads/2009/05/final-report2.pdf">final report2.pdf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://projects.morgan.hk/blog/20090526/final-report/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wiiflash issues with the Wiiolin</title>
		<link>http://projects.morgan.hk/blog/20090426/wiiflash-issues-with-the-wiiolin/</link>
		<comments>http://projects.morgan.hk/blog/20090426/wiiflash-issues-with-the-wiiolin/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 11:07:19 +0000</pubDate>
		<dc:creator>Morgan</dc:creator>
				<category><![CDATA[SM2258 - Creative Electronics Workshop]]></category>

		<guid isPermaLink="false">http://projects.morgan.hk/blog/?p=107</guid>
		<description><![CDATA[So the Wiiolin is due on tueday and I still have to iron out many bugs. The main problem is the fact that the wiiflash server does not want to work anymore on my Windows7 machine that I plan to use for the presentation.
I have used different Bluetooth Dongles: Integrated HP, external no-name USB dongle
I [...]]]></description>
			<content:encoded><![CDATA[<p>So the Wiiolin is due on tueday and I still have to iron out many bugs. The main problem is the fact that the wiiflash server does not want to work anymore on my Windows7 machine that I plan to use for the presentation.</p>
<p>I have used different Bluetooth Dongles: Integrated HP, external no-name USB dongle<br />
I hqve tried different Bluetooth Stacks: the MS7 default bluetooth stack, the Bluesoleil 6 stack and the Toshiba Stack and none of them seem to play nicely with Wiiflash.</p>
<p>After trying on my linux box that the wiimote was still functional using wmgui, I tried with my mac and it would simply not send any commands to the wiimote while it would still get the information from the wiimote, thus giving me only one-way comminication.</p>
<p>I have it finally working using a very early version. The current version of wiiflash is 4.5 and I will be using a un-numbered version (probably the first one) in console mode. It works very nicely.<br />
my communication protocol has been implemented on the arduino side and I am trying now to get it to work properly on the Flex application I am building as a front-end.</p>
<p>more on tuesday after presentation&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://projects.morgan.hk/blog/20090426/wiiflash-issues-with-the-wiiolin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>So&#8230; what&#8217;s wrong?</title>
		<link>http://projects.morgan.hk/blog/20090422/so-whats-wrong/</link>
		<comments>http://projects.morgan.hk/blog/20090422/so-whats-wrong/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 06:03:53 +0000</pubDate>
		<dc:creator>Morgan</dc:creator>
				<category><![CDATA[SM2258 - Creative Electronics Workshop]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://projects.morgan.hk/blog/?p=103</guid>
		<description><![CDATA[A well due update on the project.
Since I am too busy with FYP recently i have not had much time to concentrate on my final assignment.
So far done:

Violin with embedded wiimote, LEDs, amplifier and microphone.
Arduino with connection to LED and wiimote

So far failed:

Communication between wiimote and arduino
software

how to fix the failures:

communication:

I changed my method of [...]]]></description>
			<content:encoded><![CDATA[<p>A well due update on the project.<br />
Since I am too busy with FYP recently i have not had much time to concentrate on my final assignment.<br />
So far done:</p>
<ul>
<li>Violin with embedded wiimote, LEDs, amplifier and microphone.</li>
<li>Arduino with connection to LED and wiimote</li>
</ul>
<p>So far failed:</p>
<ul>
<li>Communication between wiimote and arduino</li>
<li>software</li>
</ul>
<p>how to fix the failures:</p>
<ul>
<li>communication:</li>
</ul>
<p>I changed my method of connection and decided to use a more &#8220;analog&#8221; aproach. Instead of using the twi provided by the IC2 protocol of the wiimote, I will simply use commands to turn the LEDs of the wiimote on and off. This way i will send code to the arduino using a home-made protocol that goes as follow.</p>
<p>It will be a cyclic protocol based on 300ms delays between data transfers, a &#8220;begin&#8221; tag for syncronisation and a &#8220;data&#8221; tag on each 3bit packets defining if we are in the middle of a sequence or not.</p>
<p>Since i have 8 leds to turn on and off I will define the data as follows:</p>
<p>111  -  begin<br />
011  -  turn on LED 1 and 2<br />
011  -  turn on LED 3 and 4<br />
011  -  turn on LED 5 and 6<br />
011  -  turn on LED 7 and 8</p>
<p>the first bit set to high will be only for the begin packet<br />
the first bit set to low will be for all other packets<br />
the second and third bits will be used for data. high turning on&#8230; low turning off.<br />
trying this afternoon.</p>
<ul>
<li>software</li>
</ul>
<p>well&#8230; gotta get started some day&#8230; i guess&#8230;<br />
will be done by the presentation date.</p>
]]></content:encoded>
			<wfw:commentRss>http://projects.morgan.hk/blog/20090422/so-whats-wrong/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working on the software/wiimote-arduino interaction</title>
		<link>http://projects.morgan.hk/blog/20090411/working-on-the-softwarewiimote-arduino-interaction/</link>
		<comments>http://projects.morgan.hk/blog/20090411/working-on-the-softwarewiimote-arduino-interaction/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 14:18:31 +0000</pubDate>
		<dc:creator>Morgan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://projects.morgan.hk/blog/?p=96</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://projects.morgan.hk/blog/wp-content/uploads/2009/04/20090331204214761_page_11.jpg"><img class="alignnone size-full wp-image-98" title="20090331204214761_page_11" src="http://projects.morgan.hk/blog/wp-content/uploads/2009/04/20090331204214761_page_11.jpg" alt="20090331204214761_page_11" width="800" height="600" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://projects.morgan.hk/blog/20090411/working-on-the-softwarewiimote-arduino-interaction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More info for the wiimote/arduino interfacing</title>
		<link>http://projects.morgan.hk/blog/20090405/more-info-for-the-wiimotearduino-interfacing/</link>
		<comments>http://projects.morgan.hk/blog/20090405/more-info-for-the-wiimotearduino-interfacing/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 14:08:35 +0000</pubDate>
		<dc:creator>Morgan</dc:creator>
				<category><![CDATA[SM2258 - Creative Electronics Workshop]]></category>

		<guid isPermaLink="false">http://projects.morgan.hk/blog/?p=94</guid>
		<description><![CDATA[http://www.windmeadow.com/node/45
]]></description>
			<content:encoded><![CDATA[<p>http://www.windmeadow.com/node/45</p>
]]></content:encoded>
			<wfw:commentRss>http://projects.morgan.hk/blog/20090405/more-info-for-the-wiimotearduino-interfacing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>new cheesy name + progress</title>
		<link>http://projects.morgan.hk/blog/20090401/new-cheesy-name-progress/</link>
		<comments>http://projects.morgan.hk/blog/20090401/new-cheesy-name-progress/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 08:08:13 +0000</pubDate>
		<dc:creator>Morgan</dc:creator>
				<category><![CDATA[SM2258 - Creative Electronics Workshop]]></category>

		<guid isPermaLink="false">http://projects.morgan.hk/blog/?p=91</guid>
		<description><![CDATA[new name: Wiiolin.
Pretty un-imaginative, i know.
current progress:
more or less on schedule. Hardware is done, software to be done.
Integrated amplifier included in the violin, to power the XLR output + speaker.
The violinwas also stringed up and glued back together.
]]></description>
			<content:encoded><![CDATA[<p>new name: Wiiolin.<br />
Pretty un-imaginative, i know.</p>
<p>current progress:<br />
more or less on schedule. Hardware is done, software to be done.</p>
<p>Integrated amplifier included in the violin, to power the XLR output + speaker.</p>
<p>The violinwas also stringed up and glued back together.</p>
]]></content:encoded>
			<wfw:commentRss>http://projects.morgan.hk/blog/20090401/new-cheesy-name-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chopping up the violin and carving groves for cables</title>
		<link>http://projects.morgan.hk/blog/20090315/chopping-up-the-violin-and-carving-groves-for-cables/</link>
		<comments>http://projects.morgan.hk/blog/20090315/chopping-up-the-violin-and-carving-groves-for-cables/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 14:01:10 +0000</pubDate>
		<dc:creator>Morgan</dc:creator>
				<category><![CDATA[SM2258 - Creative Electronics Workshop]]></category>

		<guid isPermaLink="false">http://projects.morgan.hk/blog/?p=85</guid>
		<description><![CDATA[Chopping up the violin and carving groves for cables
]]></description>
			<content:encoded><![CDATA[<p>Chopping up the violin and carving groves for cables</p>

<a href='http://projects.morgan.hk/blog/20090315/chopping-up-the-violin-and-carving-groves-for-cables/dscn2652/' title='dscn2652'><img width="300" height="300" src="http://projects.morgan.hk/blog/wp-content/uploads/2009/03/dscn2652-300x300.jpg" class="attachment-thumbnail" alt="" title="dscn2652" /></a>
<a href='http://projects.morgan.hk/blog/20090315/chopping-up-the-violin-and-carving-groves-for-cables/dscn2655/' title='dscn2655'><img width="300" height="300" src="http://projects.morgan.hk/blog/wp-content/uploads/2009/03/dscn2655-300x300.jpg" class="attachment-thumbnail" alt="" title="dscn2655" /></a>
<a href='http://projects.morgan.hk/blog/20090315/chopping-up-the-violin-and-carving-groves-for-cables/dscn2656/' title='dscn2656'><img width="300" height="300" src="http://projects.morgan.hk/blog/wp-content/uploads/2009/03/dscn2656-300x300.jpg" class="attachment-thumbnail" alt="" title="dscn2656" /></a>
<a href='http://projects.morgan.hk/blog/20090315/chopping-up-the-violin-and-carving-groves-for-cables/dscn2657/' title='dscn2657'><img width="300" height="300" src="http://projects.morgan.hk/blog/wp-content/uploads/2009/03/dscn2657-300x300.jpg" class="attachment-thumbnail" alt="" title="dscn2657" /></a>

]]></content:encoded>
			<wfw:commentRss>http://projects.morgan.hk/blog/20090315/chopping-up-the-violin-and-carving-groves-for-cables/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A couple of links</title>
		<link>http://projects.morgan.hk/blog/20090306/a-couple-of-links/</link>
		<comments>http://projects.morgan.hk/blog/20090306/a-couple-of-links/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 06:26:44 +0000</pubDate>
		<dc:creator>Morgan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://projects.morgan.hk/blog/?p=82</guid>
		<description><![CDATA[Hacking VGA lines with Arduino
Lady Ada make stuff

What Katie does
Christoph Niemann
Another page of Christoph Niemann&#8217;s page
Web 2.0 Colour Palette
]]></description>
			<content:encoded><![CDATA[<p><a href="http://little-scale.blogspot.com/2008/02/hacking-vga-lines-with-arduino.html">Hacking VGA lines with Arduino</a></p>
<p><a href="http://www.ladyada.net/make/index.html">Lady Ada make stuff<br />
</a></p>
<p><a href="http://www.whatkatiedoes.net/">What Katie does</a></p>
<p><a href="http://www.christophniemann.com/man/bpages/gallery6.html">Christoph Niemann</a></p>
<p><a href="http://www.christophniemann.com/man/bpages/books/book1.html">Another page of Christoph Niemann&#8217;s page</a></p>
<p><a href="http://modernl.com/article/web-2.0-colour-palette">Web 2.0 Colour Palette</a></p>
]]></content:encoded>
			<wfw:commentRss>http://projects.morgan.hk/blog/20090306/a-couple-of-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
