<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<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/"
	>

<channel>
	<title>oldmatebrendo.com</title>
	<link>http://oldmatebrendo.com/blog</link>
	<description>the incoherent ramblings of brendo</description>
	<pubDate>Tue, 09 Sep 2008 09:02:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>Moving Gmail calendar to Google Apps For your Domain Calendar</title>
		<link>http://oldmatebrendo.com/blog/2008/09/moving-gmail-calendar-to-google-apps-for-your-domain-calendar/</link>
		<comments>http://oldmatebrendo.com/blog/2008/09/moving-gmail-calendar-to-google-apps-for-your-domain-calendar/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 09:02:48 +0000</pubDate>
		<dc:creator>brendo</dc:creator>
		
		<category><![CDATA[All Posts]]></category>

		<category><![CDATA[]]></category>

		<category><![CDATA[calendar]]></category>

		<category><![CDATA[gafyd]]></category>

		<category><![CDATA[gmail]]></category>

		<category><![CDATA[gmail calendar]]></category>

		<category><![CDATA[google apps for your domain]]></category>

		<category><![CDATA[google apps for your domain calendar]]></category>

		<category><![CDATA[google calendar]]></category>

		<guid isPermaLink="false">http://oldmatebrendo.com/blog/2008/09/moving-gmail-calendar-to-google-apps-for-your-domain-calendar/</guid>
		<description><![CDATA[So I finally got around to moving my domain to use google apps for your domain. So far I like it, but migrating from 2 years of Gmail use has been tough. I haven&#8217;t moved much email yet, though I&#8217;m pretty sure that a temporary upgrade to a pro account can take care of that [...]]]></description>
			<content:encoded><![CDATA[<p>So I finally got around to moving my domain to use google apps for your domain. So far I like it, but migrating from 2 years of Gmail use has been tough. I haven&#8217;t moved much email yet, though I&#8217;m pretty sure that a temporary upgrade to a pro account can take care of that - steps will come in another post once they are completed.</p>
<p>So now it&#8217;s time to move my calendars. I run out of 3 calendars, one for timetables (hours worked, uni classes etc), one for due dates (projects, assignments) and one for everything that doesn&#8217;t come under either of thsoe 2 categories like personal dates.</p>
<p>I expected it to be an annoying and arduous task, but low and behold, it is extremely simple!</p>
<p>First you need to log into your Gmail account, click settings up the top rightm, choose the calendars tab and export all your calendars.</p>
<p><img src="http://oldmatebrendo.com/blog/wp-content/uploads/2008/09/1.PNG" alt="Step 1" /></p>
<p>Unzip the file and keep the .ics files somewhere handy.</p>
<p>Next, log into your Google apps calendar and create the neccesary calendars.</p>
<p>Then click the little arrow next to Add and choose import calendar</p>
<p><img src="http://oldmatebrendo.com/blog/wp-content/uploads/2008/09/2.PNG" alt="next step" height="539" width="323" /></p>
<p>From here you select the file you want to import, the calendar you want to import to and voila! Calendar moved from Gmail to Google Apps for your Domain.</p>
<p><img src="http://oldmatebrendo.com/blog/wp-content/uploads/2008/09/3.PNG" alt="last step" height="420" width="758" /></p>
]]></content:encoded>
			<wfw:commentRss>http://oldmatebrendo.com/blog/2008/09/moving-gmail-calendar-to-google-apps-for-your-domain-calendar/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wanted&#8230; more</title>
		<link>http://oldmatebrendo.com/blog/2008/08/wanted-more/</link>
		<comments>http://oldmatebrendo.com/blog/2008/08/wanted-more/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 11:56:55 +0000</pubDate>
		<dc:creator>brendo</dc:creator>
		
		<category><![CDATA[rant]]></category>

		<category><![CDATA[angelina jolie]]></category>

		<category><![CDATA[ass]]></category>

		<category><![CDATA[jolie]]></category>

		<category><![CDATA[lips]]></category>

		<category><![CDATA[movie]]></category>

		<category><![CDATA[review]]></category>

		<category><![CDATA[wanted]]></category>

		<guid isPermaLink="false">http://oldmatebrendo.com/blog/2008/08/wanted-more/</guid>
		<description><![CDATA[So I just got back from watching Wanted&#8230; I&#8217;m not going to say I didn&#8217;t like it, because I did. It just left me feeling a little awkward. I think this quote describes how I felt walking out of there, &#8220;It was like a reach around, then I turned around and it was from a [...]]]></description>
			<content:encoded><![CDATA[<p>So I just got back from watching Wanted&#8230; I&#8217;m not going to say I didn&#8217;t like it, because I did. It just left me feeling a little awkward. I think this quote describes how I felt walking out of there, &#8220;It was like a reach around, then I turned around and it was from a guy&#8230; now everyone feels a bit awkward&#8221; (Please note that I was on a 4way man date, but noone reached for anything).</p>
<p>If I had to sum up the movie for someone going to see it it&#8217;d be like this:</p>
<p>&#8220;Dude&#8230; y&#8217;know what&#8217;d be cool&#8230; if people could shoot bullets and bend them&#8230;&#8221;<br />
&#8220;Yeah, that&#8217;d be awesome, let&#8217;s make a movie about it!&#8221;<br />
&#8220;Yeah sweet. We better make sure Angelina Jolie is in it.&#8221;</p>
<p>I&#8217;m not going to spoil the ending or story line twists or anything, but I will list my favourite and least favourite parts.</p>
<p>FavBits:</p>
<ul>
<li> Angelina Jolie getting out of the bath</li>
<li>Angelina Jolie pashing the guy in slow motion for about 45 seconds</li>
<li>The main guy smashing the keyboard across his mates face.</li>
</ul>
<p>Least fav:</p>
<ul>
<li>When they flip the cop cars (cool) and land on the bus (still cool) then they magically do a mono/wheelie off the bus and land smoothly on their rear wheels (stupid - made me question my sexuality).</li>
<li>The bit where the train snapped off and they were in the carriage that crashed ~50m down into a cliff, and survived easily</li>
<li>The last line of the movie &#8220;What have YOU done today?&#8221;&#8230; Well I sat next to a really fat guy on the train home, and I ate schnitzel, then I went to watch a movie that was almost great, but in the end, just ok&#8230;</li>
</ul>
<p>Overall I didn&#8217;t mind it, but it wasn&#8217;t nearly as cool as I thought it would be.</p>
]]></content:encoded>
			<wfw:commentRss>http://oldmatebrendo.com/blog/2008/08/wanted-more/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Liar liar, pants on fire</title>
		<link>http://oldmatebrendo.com/blog/2008/05/liar-liar-pants-on-fire/</link>
		<comments>http://oldmatebrendo.com/blog/2008/05/liar-liar-pants-on-fire/#comments</comments>
		<pubDate>Sat, 24 May 2008 12:29:40 +0000</pubDate>
		<dc:creator>brendo</dc:creator>
		
		<category><![CDATA[rant]]></category>

		<category><![CDATA[cheat]]></category>

		<category><![CDATA[cheat umpire]]></category>

		<category><![CDATA[cricket]]></category>

		<category><![CDATA[fat umpire]]></category>

		<category><![CDATA[indoor cricket]]></category>

		<category><![CDATA[north gong]]></category>

		<category><![CDATA[sharks]]></category>

		<category><![CDATA[umpire]]></category>

		<guid isPermaLink="false">http://oldmatebrendo.com/blog/2008/05/liar-liar-pants-on-fire/</guid>
		<description><![CDATA[Tonight was one of the most frustrating games of indoor cricket I&#8217;ve played in a long time. It was the first time we have played at North Wollongong in our 4 seasons in the comp, and I never want to play there again. Every week we hear teams complain about it - the courts are [...]]]></description>
			<content:encoded><![CDATA[<p>Tonight was one of the most frustrating games of indoor cricket I&#8217;ve played in a long time. It was the first time we have played at North Wollongong in our 4 seasons in the comp, and I never want to play there again. Every week we hear teams complain about it - the courts are poorly maintained and too small, the umpiring is terrible and the players are a pack of wankers. The 3rd one (barring a couple of exceptions) we knew, but we suspected the rest was just bitter teams.</p>
<p>I hate when an umpire 1. doesn&#8217;t know they rules of the game they are umpiring, and 2. deliberatly makes decisions in favour of the team they support (cheats).</p>
<p>There has only been one other centre we have played at that has had an umpire that cheats until now, and she did it both times we played there, blatantly. This frustrated us, but we know to expect it now.</p>
<p>After tonight, I would prefer to play there every week than ever play at North Gong with that umpire tonight. He gave 2 calls of &#8216;not out&#8217; for the home team where the batsman was at least 1m out. AT LEAST. These were not close calls that went in their favour, these were blatant disregard for the spirit and rules of the game. It made our team angry. We are happy to accept that umpires make mistakes, and not every call goes your way - but when he is clearly basing his decisions on which team is batting, it is wrong. I suggested to a team mate that it is no wonder they make the semi&#8217;s every year playing half their games in front of this joker&#8230; A guy from the sideline said &#8220;yeah, but we&#8217;re ahead of you on the table&#8221;. I turned and told him &#8220;you were ahead of us last year&#8230; until we beat youÂ  twice by 100 runs in the semi finals andwe finished second..&#8221;</p>
<p>Getting sledged by people from other teams pisses me off. It happened again later on, after bowling a great over, a guy from the sideline sledged the shit out of me. Normally I would flash him a smile and get on with it - but he was a guy that had attacked me before. I walked over to where he was sitting and asked &#8220;when do you bat? oh&#8230; that&#8217;s right, you&#8217;re not good enough to play top grade&#8230; oh well.. it&#8217;s probably more satisfying being the best player in 3rd grade.&#8221; He stuttered and had no comeback.</p>
<p>There were a few funny moments - a wanker from their team faced up to the first ball of the over, then missed it, turned to the umpire and asked how many left. I walked over and said &#8220;8 minus 1 and you can&#8217;t work it out yourself, that does explain a few things&#8221;.. He then tried to hit the ball at me and got out. Score 1 to us.</p>
<p>At the end of the game the umpire began to have words with our team (after the 4 nationally accredited umpires questioned the rule he made up). I got the shits, gave him a spray and left.</p>
<p>I am pissed off with cheaters, we lost the game, the umpiring was shit, I have a massive bruise on my leg, yet still - I can&#8217;t wait for next week&#8230; Am I a sucker for punishment? Yes&#8230; but fuck I love my cricket <img src='http://oldmatebrendo.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://oldmatebrendo.com/blog/2008/05/liar-liar-pants-on-fire/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Lyrical twitter bot</title>
		<link>http://oldmatebrendo.com/blog/2008/03/lyrical-twitter-bot/</link>
		<comments>http://oldmatebrendo.com/blog/2008/03/lyrical-twitter-bot/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 21:57:38 +0000</pubDate>
		<dc:creator>brendo</dc:creator>
		
		<category><![CDATA[All Posts]]></category>

		<category><![CDATA[programming]]></category>

		<category><![CDATA[lyricbot]]></category>

		<category><![CDATA[python]]></category>

		<category><![CDATA[twitter]]></category>

		<category><![CDATA[twitter api]]></category>

		<category><![CDATA[twitter bot]]></category>

		<category><![CDATA[twitterpython]]></category>

		<guid isPermaLink="false">http://oldmatebrendo.com/blog/2008/03/lyrical-twitter-bot/</guid>
		<description><![CDATA[After making the sickipedia twitter bot, I decided to make another that made use of a little bit more of the Twitter API this time. I call him lyricbot. Basically, you send a reply to lyricbot (after you have followed) with a line from a song and it will have a red hot go at [...]]]></description>
			<content:encoded><![CDATA[<p>After making the <a href="http://twitter.com/sickipedia">sickipedia twitter bot</a>, I decided to make another that made use of a little bit more of the Twitter API this time. I call him <a href="http://twitter.com/lyricbot">lyricbot</a>. Basically, you send a reply to lyricbot (after you have followed) with a line from a song and it will have a red hot go at telling you what the song is&#8230;</p>
<p>I decided to post some of the code for anyone interested in how I did it.</p>
<p>The bot is written in Python, and uses the <a href="http://code.google.com/p/python-twitter/">python-twitter library</a> for the Twitter API calls. I will apologize upfront, the code is probably disgusting, but this is only the second thing I&#8217;ve ever written in python, so I&#8217;m still an L plater.</p>
<p>The first thing we want to do is import the 3 libraries we need; re,  twitter and urllib2.</p>
<p><code>import twitter<br />
import re<br />
import urllib2</code></p>
<p>Next we need to authenticate with the twitter API, then we&#8217;ll get the replies in the form of a Status object.<br />
<code><br />
api = twitter.Api(username='lyricbot', password='nottelling:)')<br />
status = api.GetReplies()</code></p>
<p>Now that we have all the replies sent to that user, we can iterate through them to decipher what people have said:</p>
<p><code>for stat in status: <font color="#99cc00">#iterate through replies</font><br />
lyric = stat.GetText()[10:] <font color="#99cc00">#strip the &#8216;@lyricbot &#8216; from the front and grab the text</font><br />
userN = str(stat.GetUser().GetScreenName()) <font color="#99cc00">#grab the name of the user that replied</font><br />
idno = stat.GetId() <font color="#99cc00">#the unique id no of the message. This is for ensuring people don&#8217;t get multiple replies for one request</font></code></p>
<p>Next I parse the string for use in the URL and get the html:<br />
<code></code></p>
<p><code>lyric = urllib2.quote(lyric)<br />
f = urllib2.urlopen(url) <font color="#99cc00">#open the URL into the stream</font><br />
html = f.read() <font color="#99cc00">#read the url into a string</font><br />
</code></p>
<p>Once I have the html of the search results, I need to use regular expressions to find the song names from that site.<br />
<code><br />
<font color="#99cc00">#compile the regex that finds the first 3 song names returned</font><br />
re_lyr = re.compile(&#8217;<strong>[123].</strong><strong>([A-Za-z0-9].{10,80}).Lyrics</strong>&#8216;, re.DOTALL)<br />
<font color="#99cc00"> #find the matches for the expression in the html</font><br />
newRes = re_lyr.findall(html,1)<br />
songs = &#8221;<br />
</code></p>
<p>Once I have the (1, 2 or 3) song results stored in the newRes tuple, I need to check how many (if any) it found, or deal with none being found.<br />
<code><br />
reslen = len(newRes)<br />
if reslen &gt; 0 :<br />
songs = songs+newRes[0]  <font color="#99cc00">#append to the string that gets sent</font><br />
if tuplen &gt; 1 :<br />
songs = songs+&#8217; &#8216;+newRes[1]<br />
if tuplen &gt; 2 :<br />
songs = songs+&#8217; &#8216;+newRes[2]<br />
else : <font color="#99cc00">#if there were no songs found</font><br />
songs = &#8216;Sorry <img src='http://oldmatebrendo.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> I couldn\&#8217;t find that one!<br />
</code></p>
<p>Now that we have a string to post (either the song names or the fail message), itâ€™s time to send:<br />
<code><br />
api.PostDirectMessage(userN, songs)<br />
</code><br />
Thatâ€™s about it really.<br />
There will be another post after I launch it properly, probably with some updates.</p>
]]></content:encoded>
			<wfw:commentRss>http://oldmatebrendo.com/blog/2008/03/lyrical-twitter-bot/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Moving your active uTorrent torrents between computers</title>
		<link>http://oldmatebrendo.com/blog/2008/03/moving-your-active-utorrent-torrents-between-computers/</link>
		<comments>http://oldmatebrendo.com/blog/2008/03/moving-your-active-utorrent-torrents-between-computers/#comments</comments>
		<pubDate>Fri, 14 Mar 2008 02:38:53 +0000</pubDate>
		<dc:creator>brendo</dc:creator>
		
		<category><![CDATA[All Posts]]></category>

		<category><![CDATA[Guegh]]></category>

		<category><![CDATA[active torrents]]></category>

		<category><![CDATA[moving]]></category>

		<category><![CDATA[reformat]]></category>

		<category><![CDATA[tip]]></category>

		<category><![CDATA[torrents]]></category>

		<category><![CDATA[utorrent]]></category>

		<category><![CDATA[vista]]></category>

		<guid isPermaLink="false">http://oldmatebrendo.com/blog/2008/03/moving-your-active-utorrent-torrents-between-computers/</guid>
		<description><![CDATA[I am about to reformat my computer, but have torrents in the middle of downloading and can&#8217;t wait until they are finished, so this little trick is a godsend.
Navigate to
C:\Users\Brendo\AppData\Roaming\uTorrent
and back up the entire directory. (In Vista, not sure of the exact directory in XP)
Then navigate to your downloads folder
C:\Users\Brendo\Downloads
in my case, and back that [...]]]></description>
			<content:encoded><![CDATA[<p>I am about to reformat my computer, but have torrents in the middle of downloading and can&#8217;t wait until they are finished, so this little trick is a godsend.</p>
<p>Navigate to<br />
C:\Users\Brendo\AppData\Roaming\uTorrent<br />
and back up the entire directory. (In Vista, not sure of the exact directory in XP)</p>
<p>Then navigate to your downloads folder<br />
C:\Users\Brendo\Downloads<br />
in my case, and back that up too.</p>
<p>Once you have reformatted/moved and installed uTorrent, simply drag those two directories over the top of what is already there and voila! your torrents are back how they were.</p>
<p>Now to finish setting up this computer to puuuurrrr&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://oldmatebrendo.com/blog/2008/03/moving-your-active-utorrent-torrents-between-computers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Doin&#8217; Lines&#8230;</title>
		<link>http://oldmatebrendo.com/blog/2008/03/doin-lines/</link>
		<comments>http://oldmatebrendo.com/blog/2008/03/doin-lines/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 08:09:03 +0000</pubDate>
		<dc:creator>brendo</dc:creator>
		
		<category><![CDATA[All Posts]]></category>

		<category><![CDATA[music]]></category>

		<category><![CDATA[concert]]></category>

		<category><![CDATA[Features.]]></category>

		<category><![CDATA[incubus]]></category>

		<category><![CDATA[korn]]></category>

		<category><![CDATA[lines]]></category>

		<category><![CDATA[offspring]]></category>

		<category><![CDATA[rage against the machine]]></category>

		<category><![CDATA[ratm]]></category>

		<guid isPermaLink="false">http://oldmatebrendo.com/blog/2008/03/doin-lines/</guid>
		<description><![CDATA[Normally when I go to a concert, I write a bit of a review about my experiences there, and with this summer being packed full of musical goodness, there will be a few posts about this. This summer that (once it has finished) will have crossed Rage Against the Machine, Incubus, Offspring, and Korn off [...]]]></description>
			<content:encoded><![CDATA[<p>Normally when I go to a concert, I write a bit of a review about my experiences there, and with this summer being packed full of musical goodness, there will be a few posts about this. This summer that (once it has finished) will have crossed Rage Against the Machine, Incubus, Offspring, and Korn off my â€œto seeâ€? list.</p>
<p class="MsoNormal">It starts with Rage Against the Machine, which actually started waaay back in 2007 <a href="http://oldmatebrendo.com/blog/2008/03/doin-lines/#more-28" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://oldmatebrendo.com/blog/2008/03/doin-lines/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Big Facebook Fail</title>
		<link>http://oldmatebrendo.com/blog/2008/03/the-big-facebook-fail/</link>
		<comments>http://oldmatebrendo.com/blog/2008/03/the-big-facebook-fail/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 10:35:00 +0000</pubDate>
		<dc:creator>brendo</dc:creator>
		
		<category><![CDATA[All Posts]]></category>

		<category><![CDATA[rant]]></category>

		<category><![CDATA[applications]]></category>

		<category><![CDATA[facebook]]></category>

		<category><![CDATA[fail]]></category>

		<category><![CDATA[FBML]]></category>

		<category><![CDATA[Features.]]></category>

		<category><![CDATA[myspace]]></category>

		<category><![CDATA[social network]]></category>

		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://oldmatebrendo.com/blog/2008/03/the-big-facebook-fail/</guid>
		<description><![CDATA[When the Facebook developer Platform was first announced, thoughts of brilliant applications using Facebook&#8217;s amazing viral marketing ability was all I could think about. It was touted as an online revolution. Colleges ran classes on developing Facebook applications and every Tom, Dick and Harry had a play around with FBML (Facebook Markup Language) - myself [...]]]></description>
			<content:encoded><![CDATA[<p>When the Facebook developer Platform was first announced, thoughts of brilliant applications using Facebook&#8217;s amazing viral marketing ability was all I could think about. It was touted as an online revolution. Colleges ran classes on developing Facebook applications and every Tom, Dick and Harry had a play around with FBML (Facebook Markup Language) - myself included. <a href="http://oldmatebrendo.com/blog/2008/03/the-big-facebook-fail/#more-16" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://oldmatebrendo.com/blog/2008/03/the-big-facebook-fail/feed/</wfw:commentRss>
		</item>
		<item>
		<title>keytool java.security.cert.CertificateParsingException: signed overrun, bytes = 139</title>
		<link>http://oldmatebrendo.com/blog/2008/03/keytool-javasecuritycertcertificateparsingexception-signed-overrun-bytes-139/</link>
		<comments>http://oldmatebrendo.com/blog/2008/03/keytool-javasecuritycertcertificateparsingexception-signed-overrun-bytes-139/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 10:33:18 +0000</pubDate>
		<dc:creator>brendo</dc:creator>
		
		<category><![CDATA[programming]]></category>

		<category><![CDATA[certificate]]></category>

		<category><![CDATA[exception]]></category>

		<category><![CDATA[gmail]]></category>

		<category><![CDATA[java]]></category>

		<category><![CDATA[outlook]]></category>

		<category><![CDATA[security.cert.certificateparsingexception]]></category>

		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://oldmatebrendo.com/blog/2008/03/keytool-javasecuritycertcertificateparsingexception-signed-overrun-bytes-139/</guid>
		<description><![CDATA[When playing with SSL certificates and Java I came across a very weird error that I could not find a solution to anywhere.
I had submitted my CSR and got the certificate back in an email, so I copied it and pasted it into a .cer file ready to SSL my applet, but when trying to [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">When playing with SSL certificates and Java I came across a very weird error that I could not find a solution to anywhere.</p>
<p class="MsoNormal">I had submitted my CSR and got the certificate back in an email, so I copied it and pasted it into a .cer file ready to SSL my applet, but when trying to import the certificate, I got the following error:</p>
<p class="MsoNormal">keytool java.security.cert.CertificateParsingException: signed overrun, bytes = 139</p>
<p class="MsoNormal">After much searching of forums and Google, I could not find any reference to this specific error message other than something about copy and pasting from the wrong format. I thought that maybe it was something to do with Outlook, so logged into Gmail and copy and pasted from there, voila!</p>
<p class="MsoNormal">I decided to make sure Outlook was my problem before slaying it all over the intarwebz and sure enough, copy and pasting from Outlook again threw the error, but doing it from Gmail did not. I no longer copy and paste anything important out of Outlook.</p>
]]></content:encoded>
			<wfw:commentRss>http://oldmatebrendo.com/blog/2008/03/keytool-javasecuritycertcertificateparsingexception-signed-overrun-bytes-139/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Java RMI Client Authentication</title>
		<link>http://oldmatebrendo.com/blog/2008/03/java-rmi-client-authentication/</link>
		<comments>http://oldmatebrendo.com/blog/2008/03/java-rmi-client-authentication/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 10:30:59 +0000</pubDate>
		<dc:creator>brendo</dc:creator>
		
		<category><![CDATA[All Posts]]></category>

		<category><![CDATA[programming]]></category>

		<category><![CDATA[certificate]]></category>

		<category><![CDATA[certificate authority]]></category>

		<category><![CDATA[client authentication]]></category>

		<category><![CDATA[jar]]></category>

		<category><![CDATA[java]]></category>

		<category><![CDATA[remote method invocation]]></category>

		<category><![CDATA[rmi]]></category>

		<category><![CDATA[ssl]]></category>

		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://oldmatebrendo.com/blog/2008/03/java-rmi-client-authentication/</guid>
		<description><![CDATA[Security is painful. My attempts to make our applet that is using RMI use SSL as well have absolutely done my head in.
First there was the fact that a self signed certificate wouldnâ€™t do. This wasnâ€™t a big surprise, but it wouldnâ€™t even allow me to test my app to ensure it was working before [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">Security is painful. My attempts to make our applet that is using RMI use SSL as well have absolutely done my head in.</p>
<p class="MsoNormal">First there was the fact that a self signed certificate wouldnâ€™t do. This wasnâ€™t a big surprise, but it wouldnâ€™t even allow me to test my app to ensure it was working before I forked out the big bucks for the proper SSL certificate.</p>
<p class="MsoNormal">I had an idea, I have a code signing certificate from Thawte that is worth a pretty penny, surely it will at least allow me to test my app, if not be my solution. Strike 2. A Code-Signing certificate can only be used to sign code (JARs in my case), not for authentication â€“ again, no real surprise.</p>
<p class="MsoNormal">So an SSL certificate was purchased from a company we have a good relationship with, so we got it for wholesale price and away we went&#8230; almost. Javaâ€™s Virtual Machine looks in a certain spot for trusted certificates, but unlike the major browsers, only has about 15 in there. Of course the certificate we bought was not one of them. Strike 3 - back to the drawing board. For anyone reading this because they are experiencing similar problems, use:</p>
<p class="MsoNormal">keystore â€“list â€“v â€“keystore %JAVA_HOME%/lib/security/cacerts</p>
<p class="MsoNormal">Password: changeit</p>
<p class="MsoNormal">to view the certificates that are in that cacerts file. This is the default file java will look in if you do not specify a trustStore property when calling your applet/application.</p>
<p class="MsoNormal">We found a certificate in here, were able to obtain a refund on the previous and now it was time to invoke methods remotely over secured sockets and love life&#8230; nearly.</p>
<p class="MsoNormal">The first test of this saw love. The problem was that test didnâ€™t bring browsers into play. I ran the RMI Registry and the Server Implementation, downloaded the jar and ran it from the command line on my PC. Voila!</p>
<p class="MsoNormal">Hello World!</p>
<p class="MsoNormal">I was ecstatic. Until I ran the applet from the same jar and got an error telling me â€œbad certificateâ€?. This didnâ€™t make sense as the root CA of the certificate we were using was certainly in the browser (both Firefox and IE7). A bit of looking around the forums provided very few answers so I decided to post myself (I very rarely post on java forums as the answers to my questions are there if I look hard enough).</p>
<p class="MsoNormal">It turns out that the Root CA certificates in the browsers have a property that specifies what actions a certificate using that Root CA can perform. The certificate we were using was marked for Code Signing, Server Authentication, Email Authentication. Notice Client Authentication missing. *sigh*.</p>
<p class="MsoNormal">This was getting thoroughly annoying as I have now spent 3 weeks trying to test code that only took me a couple of days to fully merge with the older code.</p>
<p class="MsoNormal">I tried checking the Client Authentication box in the browser for out certificate provider, but this didnâ€™t fool the browser for a second, and I was still denied. After a long chat with an RMI expert, it was concluded that it is not currently possible to enable client authentication in RMI using SSL in an applet. If the application is not running from a browser however, this works as it should. The reason is that when you use the browser, it looks for the certificate there rather than in the parameters specified by the applet.</p>
<p class="MsoNormal">The work around is buy one of the (I think) 2 certificates that support client authentication, though this is untested as we added security other ways and as such, didnâ€™t purchase one of these certificates.</p>
<p class="MsoNormal">The applet is now running with SSL enabled using Remote Method Invocation. Hurrah!</p>
]]></content:encoded>
			<wfw:commentRss>http://oldmatebrendo.com/blog/2008/03/java-rmi-client-authentication/feed/</wfw:commentRss>
		</item>
		<item>
		<title>An Octopus Never Forgets; Highlights of Mor0nbah.</title>
		<link>http://oldmatebrendo.com/blog/2008/03/an-octopus-never-forgets-highlights-of-mor0nbah/</link>
		<comments>http://oldmatebrendo.com/blog/2008/03/an-octopus-never-forgets-highlights-of-mor0nbah/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 10:26:39 +0000</pubDate>
		<dc:creator>brendo</dc:creator>
		
		<category><![CDATA[work]]></category>

		<category><![CDATA[boring]]></category>

		<category><![CDATA[dumb]]></category>

		<category><![CDATA[moranbah]]></category>

		<category><![CDATA[octopus]]></category>

		<category><![CDATA[red rooster]]></category>

		<guid isPermaLink="false">http://oldmatebrendo.com/blog/2008/03/an-octopus-never-forgets-highlights-of-mor0nbah/</guid>
		<description><![CDATA[Just found this old previously unpublished post of an old work trip to Moranbah.Â  Itâ€™s in Queenslandâ€™s north west. The trip started with me picking up my hire car, unlike the last trip where I was appropriately provided with a nice new Ford Falcon, this time they blessed me with a Hyundai Getz. Ok, it [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><span lang="EN-US">Just found this old previously unpublished post of an old work trip to Moranbah.<span>Â  </span>Itâ€™s in Queenslandâ€™s north west. The trip started with me picking up my hire car, unlike the last trip where I was appropriately provided with a nice new Ford Falcon, this time they blessed me with a Hyundai Getz. Ok, it was better on petrol, but come on â€“ even the girliest girls have V8s in this town. </span></p>
<p class="MsoNormal"><span lang="EN-US">The trip started well, after booking my first consultation at 4pm, my 2 hour drive from Mackay airport after the plane landing at 3pm was always going to be a struggle. I got into my new pretty red little car and punched the details into my GPS. 2 hours, 5 minsâ€¦ Looked like mostly straight roads, maybe with a bit of ah&#8230; tactical acceleration I could make it in an hour and a half and not be too late.</span></p>
<p class="MsoNormal"><span lang="EN-US">I got about 20 minutes into the trip and looked at my phone, realising I needed to call ahead and let them know I was going to be late, no reception. Weird, didnâ€™t think I was THAT far out of town, but ok, Iâ€™ll call when I get to my stop. You donâ€™t get traffic when you are in a hurry in this sort of place, but you do get animal crossings; Cows, twice. Not just 5 or 10 cows either, Iâ€™m talking what seemed like one hundred or so.</span></p>
<p class="MsoNormal"><span lang="EN-US">Eventually I got to town and tried to call again, but still no reception. Oh well, better hurry; checked in, got changed and headed off 5 mins down the road to the appointment. They had been trying to ring me, as had the sales rep, and my boss â€“ I was advised then that there is no reception unless you are with Telstra, and everywhere was closed after 3pm. I guessed that my second appointment was still going to be on and turned up anyway â€“ it was. After that, I decided to take the fast food route for dinner â€“ only Red Rooter was openâ€¦ Oh well, drive through will be nice and quick. Not.</span></p>
<p class="MsoNormal"><span lang="EN-US">25 minutes I sat with the buzzbox off waiting to move. There was only 1 car in front of me. Eventually I ordered, gave the girl $20.45 for my $10.45 meal and got $9 change. I counted it, looked at her and she just looked very vacant. I wasnâ€™t in the mood to give a primary school maths lesson, so I just leftâ€¦ the $1 was a tip for the uhâ€¦ service.</span></p>
<p class="MsoNormal"><span lang="EN-US">The rest of the trip wasnâ€™t nearly as interesting as the first night â€“ which was ##exampled by one family saying â€œso what do you do during the day in boringbah?â€? Besides a bit of a workout at the gym, I did bugger all during the days.</span></p>
<p class="MsoNormal"><span lang="EN-US">The most memorable parts of the trip were as follows (in random order);</span></p>
<ul>
<li><!--[if !supportLists]--><span style="font-family: Symbol" lang="EN-US"><span></span></span><span lang="EN-US">One boy asked his mum a question, that she answered â€œIâ€™m not an octopus, how do you expect me to remember that?â€? </span></li>
</ul>
<ul>
<li><!--[if !supportLists]--><span style="font-family: Symbol" lang="EN-US"><span><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal"></span></span></span><!--[endif]--><span lang="EN-US">Ordered a pizza one night, after telling the girl my name was Brendan, she put down Bruno. I waited 40 minutes for the pizza, yet there was no one coming or going from the shop, and when they gave it to me it was supreme â€“ I ordered meat lovers. They re-made it and called my name â€œBrunoâ€? I took the pizza and told the girl she could call me Brendan and gave her a wink.</span></li>
</ul>
<ul>
<li><!--[if !supportLists]--><span style="font-family: Symbol" lang="EN-US"><span></span></span><span lang="EN-US">Was craving fish and chips one night, so went to the restaurant attached to the hotel, a Chinese Restaurant that had a whole separate â€œAussie Menuâ€?. The heading was â€œAussie Menu â€“ all meals served with chipsâ€?. Brilliant, so I ordered one fish and chips to be told â€œsorry, we donâ€™t have chips anymoreâ€?.</span></li>
</ul>
<ul>
<li><!--[if !supportLists]--><span style="font-family: Symbol" lang="EN-US"><span></span></span><span lang="EN-US">At an appointment with a mum and daughter (in yr 9) and asked â€œwhat is 6 times 6?â€? Before the girl had a chance to think, the mother yells â€œ12!â€? so the girl agrees. I asked â€œAre you sureâ€¦ 6 <em>TIMES </em>6â€¦â€? only to be told by the mother â€œyeah, itâ€™s bloody 12, stop trying to trick herâ€?. The girl looked on the wall at her timetable poster and told me it was 36, to which mum chimed in â€œOh, I thought you mean 6 with a little 2 up above itâ€?. </span></li>
</ul>
<ul>
<li><!--[if !supportLists]--><span style="font-family: Symbol" lang="EN-US"><span></span></span><span lang="EN-US">The final point to remember was in subway, a guy came in with his ear pierced, one of the big holes, about the size of a 10c coin, only to have the loudmouth busy body woman behind him snarl â€œis that the thing these days?&#8230; big bloody holes in your bodyâ€¦ looks bloody stupid to me.. I donâ€™t understand you kidsâ€¦ did it hurt?â€? He ignored her, and a wise decision I think.</span></li>
</ul>
<p class="MsoListBulletCxSpLast" style="margin-left: 0cm; text-indent: 0cm"><span lang="EN-US">The trip ended much more uneventfully than it had started and I was home before I knew it, back to the real world. I love the trips away, as much because its eye opening as anything else.</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Franklin Gothic Demi','sans-serif'; color: navy" lang="EN-US"> <o:p></o:p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://oldmatebrendo.com/blog/2008/03/an-octopus-never-forgets-highlights-of-mor0nbah/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
