<?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>Tsukasa's ramblings &#187; Uncategorized</title>
	<atom:link href="http://blag.tsukasa.net.au/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://blag.tsukasa.net.au</link>
	<description>Tech ramblings of Greg Darke, a University of Sydney student</description>
	<lastBuildDate>Fri, 28 May 2010 12:40:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Always discoverable on Android</title>
		<link>http://blag.tsukasa.net.au/2009/08/25/always-discoverable-on-android/</link>
		<comments>http://blag.tsukasa.net.au/2009/08/25/always-discoverable-on-android/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 13:42:31 +0000</pubDate>
		<dc:creator>Tsukasa</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blag.tsukasa.net.au/?p=126</guid>
		<description><![CDATA[Something that is starting to annoy me about some of the newer smart phone operating system (I am looking at you iPhoneOS and Android) is that when you tick the box to make your phone discoverable by Bluetooth, it does not stay discoverable. Other operating systems give you an option to switch between hidden, temporally [...]]]></description>
			<content:encoded><![CDATA[<p>Something that is starting to annoy me about some of the newer smart phone operating system (I am looking at you iPhoneOS and Android) is that when you tick the box to make your phone discoverable by Bluetooth, it does not stay discoverable. Other operating systems give you an option to switch between hidden, temporally visible or always visible.</p>
<p>After a bit of hacking around on the my phone (a HTC Dream), I have discovered a way to make the Bluetooth stay discoverable. These instructions require adb (the Android Developer Bridge), an a (slightly) nonstandard rom. The reasoning behind requiring the non-standard rom, is that chown under android does weird things.</p>
<p><!-- more --!></p>
<p>Remember that this is done at your <em>own risk</em>.</p>
<pre class="brush: bash;">
adb remount
adb pull /system/etc/bluez/hcid.conf ./hcid.conf
sed -i'' -e 's/iscan disable/iscan enable/;s/pscan enable;/&amp;\n\n\t\#Make the device stay discoverable for ever\n\tdiscovto 0;/' hcid.conf
adb push hcid.conf /system/etc/bluez/hcid.conf
adb shell chmod 440 /system/etc/bluez/hcid.conf
adb shell busybox chown 1002.1002 /system/etc/bluez/hcid.conf
adb remount
rm -f hcid.conf

HCID_CONFIG=&quot;$(adb shell ls /data/misc/hcid/*/config | sed -e 's/\r//g')&quot;
adb pull &quot;$HCID_CONFIG&quot; hcid_config
sed -i'' -e 's/^discovto.*$/discovto 0/' hcid_config
adb push hcid_config &quot;$HCID_CONFIG&quot;
adb shell chmod 644 &quot;$HCID_CONFIG&quot;
adb shell busybox chown 1002.1002 &quot;$HCID_CONFIG&quot;
rm -f hcid_config
</pre>
<p>After all this is done&#8230; Don&#8217;t forget to power cycle the Bluetooth system (untick, then tick the box for Bluetooth).</p>
]]></content:encoded>
			<wfw:commentRss>http://blag.tsukasa.net.au/2009/08/25/always-discoverable-on-android/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Setting up my old iBook G4</title>
		<link>http://blag.tsukasa.net.au/2009/07/16/setting-up-my-old-ibook-g4/</link>
		<comments>http://blag.tsukasa.net.au/2009/07/16/setting-up-my-old-ibook-g4/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 03:05:12 +0000</pubDate>
		<dc:creator>Tsukasa</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[fink]]></category>
		<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://blag.tsukasa.net.au/?p=85</guid>
		<description><![CDATA[Now that I have moved, I have decided to reclaim my old iBook (which I was using as my router). With this decision, I thought it would be a good idea to keep track of what I had to do to get this machine to a state where I was happy with it (and thus [...]]]></description>
			<content:encoded><![CDATA[<p>Now that I have moved, I have decided to reclaim my old iBook (which I was using as my router). With this decision, I thought it would be a good idea to keep track of what I had to do to get this machine to a state where I was happy with it (and thus a mac in general).</p>
<p>So, here it is, for those who are interested. You might even find a few things that you had not though of performing on your mac.<br />
<span id="more-85"></span><br />
Software installed:</p>
<ul>
<li><a href="http://iterm.sourceforge.net/download.shtml">iTerm</a> (latest svn build)</li>
<li><a href="http://www.finkproject.org/download/">fink</a> &#8211; with customizations</li>
<li><a href="http://xquartz.macosforge.org/trac/wiki/X112.3.3.2">XQuartz updates</a></li>
<li><a href="http://www.blacktree.com/">Quicksilver</a> &#8211; a very useful application launcher</li>
<li><a href="http://www.manytricks.com/witch/">Witch</a> &#8211; window switching on steroids</li>
<li><a href="http://andbit.net/psi_snapshots/mac/">Psi (Nightly snapshot)</a> &#8211; an excellent jabber client</a></li>
<li><a href="http://www.getfirefox.com/">Firefox</a></li>
</ul>
<h2>Fink customizations</h2>
<p>I have quite a few packages that I use that are not (yet) in the standard fink repos. This means I must remember to add my own custom ones to the mix.</p>
<p>The first step is to install mercurial:<br />
[sh]<br />
fink install mercurial-py26<br />
[/sh]</p>
<p>After this, you may clone the two custom repos that I use:<br />
[sh]<br />
cd /sw/fink<br />
hg clone http://tsukasa.net.au/~hg/fink_infos gregdarke<br />
hg clone http://delx.net.au/hg/finkinfos jamesbunton<br />
cd dists<br />
ln -s ../gregdarke<br />
ln -s ../jamesbunton<br />
[/sh]</p>
<p>After you have cloned these repos, you will need to update your <a href="http://www.finkproject.org/doc/users-guide/conf.php">fink.conf</a> file:<br />
[sh]<br />
sudo vim /sw/etc/fink.conf<br />
[/sh]<br />
Add &#8220;jamesbunton/main gregdarke/main&#8221; to end of the list for &#8216;Trees:&#8217;.<br />
Now you will need to update the packages list:<br />
[sh]<br />
fink index<br />
fink selfupdate<br />
fink update-all<br />
[/sh]</p>
<h2>Fink packages</h2>
<p>[sh]<br />
fink install mutt mplayer vim-nox screen git debfoster<br />
[/sh]</p>
<h2>Custom Compiles</h2>
<p>Since I like the new version of offlineimap (containing the patches for idle), I generally compile it from source. For this, you need to have a fink version of python installed (as the system python has a memory leak in ssl) and you must also have installed git.</p>
<p>I also like to have a fresh copy of iTerm, and thus grab that from source as well. This is a fairly easy install though:<br />
[sh]<br />
mkdir -p ~/Projects/software ~/Applications<br />
cd ~/Projects/software<br />
svn co https://iterm.svn.sourceforge.net/svnroot/iterm/trunk iterm<br />
cd iterm<br />
make Development<br />
mv build/Development/iTerm.app ~/Applications/<br />
[/sh]</p>
<h2>Enabling dual screen support</h2>
<p><em>Information taken from <a href="http://everything2.com/title/Monitor%2520spanning%2520with%2520an%2520iBook">the everything website</a>.</em></p>
<p>To enable support for dual monitors (ie, not mirroring), jump into open firmware:<br />
Hold command+option+o+f, then at the prompt, type:<br />
<code>" /" select-dev<br />
00000000 " graphic-options" get-my-property 2drop !<br />
mac-boot</code><br />
To make the above permanent, before typing mac-boot, press ctrl-c, then type the following:<br />
<code>nvstore<br />
setenv use-nvramrc? true<br />
reset-all</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blag.tsukasa.net.au/2009/07/16/setting-up-my-old-ibook-g4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reversing Latitude</title>
		<link>http://blag.tsukasa.net.au/2009/06/17/reversing-latitude/</link>
		<comments>http://blag.tsukasa.net.au/2009/06/17/reversing-latitude/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 01:10:11 +0000</pubDate>
		<dc:creator>Tsukasa</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blag.tsukasa.net.au/?p=93</guid>
		<description><![CDATA[I have recently been playing around with the (relatively) new Google service named Latitude. This service may be either used from your mobile phone (including the Nokia S60 range) to allow you to see where your friends are located.
Something I have wanted to do with this service for a while is to use it to [...]]]></description>
			<content:encoded><![CDATA[<p>I have recently been playing around with the (relatively) new Google service named <a href="http://google.com/latitude/">Latitude</a>. This service may be either used from your mobile phone (including the Nokia S60 range) to allow you to see where your friends are located.</p>
<p>Something I have wanted to do with this service for a while is to use it to keep track of where I have been. Recently Google released an <a href="http://googlegeodevelopers.blogspot.com/2009/05/build-on-top-of-your-public-latitude.html">API</a> to do this. The only problem with this is that your are required to change your privacy settings, effectively allowing everybody to know where you are.</p>
<p>This lead me on the quest to reverse engineer the data that the latitude iGoogle gadget uses to update itself. So far, I can parse the data into a set of lists once given a url to where the data is.</p>
<p>To obtain this url, you will need to use firebug to watch all of the requests made by the iGoogle page (with the latitude gadget loaded into that page) and look for the one that contains makeRequest. Copy this url, with all of it&#8217;s parameters to get access to the data.</p>
<p>I have written a small parsing library (in python) that will grab the data, and parse it out into the specified data structure. This library is available from my mercurial repository under the <a href="http://tsukasa.net.au/~hg/latitude">latitude project</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blag.tsukasa.net.au/2009/06/17/reversing-latitude/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fixing audio on Ubuntu 8.10 for an iMac</title>
		<link>http://blag.tsukasa.net.au/2009/03/31/fixing-audio-on-ubuntu-810-for-an-imac/</link>
		<comments>http://blag.tsukasa.net.au/2009/03/31/fixing-audio-on-ubuntu-810-for-an-imac/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 01:52:08 +0000</pubDate>
		<dc:creator>Tsukasa</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[imac]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[sound]]></category>

		<guid isPermaLink="false">http://blag.tsukasa.net.au/2009/03/31/fixing-audio-on-ubuntu-810-for-an-imac/</guid>
		<description><![CDATA[I was having problems where the sound was crackly and quiet. So the fix seems to be reload the snd_hda_intel driver (kinda annoying&#8230; but at least it works)

sudo rmmod snd_hda_intel
sudo modprobe snd_hda_intel

]]></description>
			<content:encoded><![CDATA[<p>I was having problems where the sound was crackly and quiet. So the fix seems to be reload the snd_hda_intel driver (kinda annoying&#8230; but at least it works)</p>
<pre class="brush: bash;">
sudo rmmod snd_hda_intel
sudo modprobe snd_hda_intel
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blag.tsukasa.net.au/2009/03/31/fixing-audio-on-ubuntu-810-for-an-imac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stop Google.com Redirecting to Your Local Google « Techstatic.net</title>
		<link>http://blag.tsukasa.net.au/2009/03/09/stop-googlecom-redirecting-to-your-local-google-%c2%ab-techstaticnet/</link>
		<comments>http://blag.tsukasa.net.au/2009/03/09/stop-googlecom-redirecting-to-your-local-google-%c2%ab-techstaticnet/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 02:57:31 +0000</pubDate>
		<dc:creator>Tsukasa</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blag.tsukasa.net.au/?p=68</guid>
		<description><![CDATA[I just discovered this little gem: Stop Google.com Redirecting to Your Local Google. Now, I am sure you would be asking why I would want to stop the redirection.
My answer is quite simple&#8230; Google has a bad habit of letting the &#8216;local&#8217; google page lag behind the US version, meaning things like latitude don&#8217;t work [...]]]></description>
			<content:encoded><![CDATA[<p>I just discovered this little gem: <a href='http://techstatic.wordpress.com/2009/03/01/stop-googlecom-redirecting-to-your-local-google-2/'>Stop Google.com Redirecting to Your Local Google</a>. Now, I am sure you would be asking why I would want to stop the redirection.</p>
<p>My answer is quite simple&#8230; Google has a bad habit of letting the &#8216;local&#8217; google page lag behind the US version, meaning things like latitude don&#8217;t work on google.com.au.</p>
]]></content:encoded>
			<wfw:commentRss>http://blag.tsukasa.net.au/2009/03/09/stop-googlecom-redirecting-to-your-local-google-%c2%ab-techstaticnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handy wordpress plugin</title>
		<link>http://blag.tsukasa.net.au/2009/02/09/handy-wordpress-plugin/</link>
		<comments>http://blag.tsukasa.net.au/2009/02/09/handy-wordpress-plugin/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 00:44:25 +0000</pubDate>
		<dc:creator>Tsukasa</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blag.tsukasa.net.au/?p=59</guid>
		<description><![CDATA[This is just a really quick post to mention that I have found (well, actually Mat found it) a nice plugin for wordpress to support dumping source code into entires. This pluging is called syntaxhilighter-plus. It allows you to easily drop source code into a page.
It also adds a few nice buttons. Here is an [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a really quick post to mention that I have found (well, actually Mat found it) a nice plugin for wordpress to support dumping source code into entires. This pluging is called <a href="http://wordpress.org/extend/plugins/syntaxhighlighter-plus/">syntaxhilighter-plus</a>. It allows you to easily drop source code into a page.</p>
<p>It also adds a few nice buttons. Here is an example:</p>
<pre class="brush: python;">
def main():
  print &quot;This is python^^&quot;

if __name__ == &quot;__main__&quot;:
  main()
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blag.tsukasa.net.au/2009/02/09/handy-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving away from Mail.app</title>
		<link>http://blag.tsukasa.net.au/2008/11/12/moving-away-from-mailapp/</link>
		<comments>http://blag.tsukasa.net.au/2008/11/12/moving-away-from-mailapp/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 04:16:40 +0000</pubDate>
		<dc:creator>Tsukasa</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blag.tsukasa.net.au/?p=48</guid>
		<description><![CDATA[As most people know, I have moved away from using Apple&#8217;s Mail.app as my email client. I now use mutt to perform all of my mail duties&#8230; or, so I thought.
The other day I decided to use iCal to send an event invitation to a friend. When I clicked on the send button, I was [...]]]></description>
			<content:encoded><![CDATA[<p>As most people know, I have moved away from using Apple&#8217;s Mail.app as my email client. I now use <a href="http://www.mutt.org/">mutt</a> to perform all of my mail duties&#8230; or, so I thought.</p>
<p>The other day I decided to use iCal to send an event invitation to a friend. When I clicked on the send button, I was greeted with a copy of Mail.app, not exactly I wanted. At this point I changed the default Mail application to mutt (via iTerm).</p>
<p>Now you would expect iCal to listen to this setting, but alas, the mail was still (automatically) sent with Mail.app.</p>
<p>After a lot of investigating, I discovered there is a apple script within the iCal app bundle. The script of interest is <code>/Applications/iCal.app/Contents/Resources/Mail.applescript</code>. After spending a few hours learning applescript, I came up with a solution. You will need to replace the file <code >/Applications/iCal.app/Contents/Resources/Mail.applescript</code> with the one available from <a href="http://tsukasa.net.au/~hg/greg_stuff/file/tip/osx/Mail.applescript">my repositories</a>.</p>
<p>Once you have replaced this file, you must then recompile the script: <code>osacompile -o /Applications/iCal.app/Contents/Resources/Scripts/Mail.scpt /Applications/iCal.app/Contents/Resources/Mail.applescript</code></p>
<p>Note: You will need to have at the mail script and modify it so that it points to the correct version of mutt on your system.</p>
]]></content:encoded>
			<wfw:commentRss>http://blag.tsukasa.net.au/2008/11/12/moving-away-from-mailapp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python DNS server</title>
		<link>http://blag.tsukasa.net.au/2008/09/21/python-dns-server/</link>
		<comments>http://blag.tsukasa.net.au/2008/09/21/python-dns-server/#comments</comments>
		<pubDate>Sun, 21 Sep 2008 11:53:34 +0000</pubDate>
		<dc:creator>Tsukasa</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blag.tsukasa.net.au/?p=12</guid>
		<description><![CDATA[Can anybody figure out why these links are related?

http://pydns.sourceforge.net/index.html
http://www.doxpara.com

]]></description>
			<content:encoded><![CDATA[<p>Can anybody figure out why these links are related?</p>
<ul>
<li>http://pydns.sourceforge.net/index.html</li>
<li>http://www.doxpara.com</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blag.tsukasa.net.au/2008/09/21/python-dns-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
