<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Squarespace Site Server v5.11.81 (http://www.squarespace.com/) on Wed, 30 May 2012 03:35:43 GMT--><feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><title>Thoughts</title><subtitle>Thoughts</subtitle><id>http://www.theflightlessgeek.co.nz/thoughts/</id><link rel="alternate" type="application/xhtml+xml" href="http://www.theflightlessgeek.co.nz/thoughts/"/><link rel="self" type="application/atom+xml" href="http://www.theflightlessgeek.co.nz/thoughts/atom.xml"/><updated>2012-01-23T01:46:16Z</updated><generator uri="http://www.squarespace.com/" version="Squarespace Site Server v5.11.81 (http://www.squarespace.com/)">Squarespace</generator><entry><title>Connecting an iOS device to a mixed 802.11b/n WiFi network</title><category term="802.11"/><category term="Computers"/><category term="Tech"/><category term="WiFi"/><category term="iOS"/><category term="iPad"/><category term="iPhone"/><category term="iPod Touch"/><id>http://www.theflightlessgeek.co.nz/thoughts/2012/1/20/connecting-an-ios-device-to-a-mixed-80211bn-wifi-network.html</id><link rel="alternate" type="text/html" href="http://www.theflightlessgeek.co.nz/thoughts/2012/1/20/connecting-an-ios-device-to-a-mixed-80211bn-wifi-network.html"/><author><name>James</name></author><published>2012-01-20T04:05:54Z</published><updated>2012-01-20T04:05:54Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><img class="iphone-image" src="http://www.theflightlessgeek.co.nz/resource/iphone-20120120170554-1.jpg?fileId=16136253"/></p><p>In a recent visit to home I was presented with an old problem that had become a real annoyance. The iOS devices owned by the family (minus the iPad) including my iPhone would not connect to the house WiFi network. They would happily detect them but the moment they tried to connect they would time out.</p><p>It took a bit of pecking around and trial and error but I found a single change that then allowed all the devices to connect. </p><p>It boils down to only allowing 802.11b to operate on the 2.4GHz band instead of the default dual b/n. It see,ms the iPhone and iPod Touch devices do not play nicely with dual use of that band by the b and n standards. </p>]]></content></entry><entry><title>Event Handlers only firing once in Microsoft Office AddIns</title><category term=".NET"/><category term="C#"/><category term="Computers"/><category term="Microsoft"/><category term="Office"/><category term="Programming"/><category term="VSTO"/><id>http://www.theflightlessgeek.co.nz/thoughts/2011/1/17/event-handlers-only-firing-once-in-microsoft-office-addins.html</id><link rel="alternate" type="text/html" href="http://www.theflightlessgeek.co.nz/thoughts/2011/1/17/event-handlers-only-firing-once-in-microsoft-office-addins.html"/><author><name>James</name></author><published>2011-01-17T10:21:30Z</published><updated>2011-01-17T10:21:30Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p>I've  just been working on a project where we were to create some AddIns for  several versions of Microsoft Office. Now I knew there was a lot of bad  blood around Office AddIns but thought they were being overblown as I  finished off the 2010 AddIn without so much as a hiccup. The 2007 and  2003 AddIns however showed why Office has the reputation it has.<br /> <br />The problem I ran into was that I had to have several event handlers  to catch two events. The opening of a new inspector and a simple button  click. So I did what you'd expect to do and registered them in the  startup methods.<br /> <br />Initial testing went fine as I started up Outlook and triggered one  event, made some changes, restarted it and then tested the other event.  It took a while until I tried to test both events following one another  at which point I found only one would trigger and then both would even  handler hooks would be forgotten and wouldn't rehook in until a restart  of the application.<br /> <br />public partial class ThisAddIn<br />{<br />&nbsp;&nbsp;&nbsp; private void ThisAddIn_Startup(object sender, System.EventArgs e)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Outlook.Explorer explorer = this.Application.ActiveExplorer();<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Outlook.Application app = (Outlook.Application)explorer.Application;<br /> <br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; app.NewInspector += new InspectorsEvents_NewInspectorEventHandler(Inspectors_NewInspector);<br />&nbsp;&nbsp;&nbsp; }<br />}<br /><br />After  much searching I began to come across implications that the garbage  collector was removing the references after the first event. I was at a  loss at what to do until I came across another discussion where someone  was having a similar problem and the response was to save the object in a  class level variable to avoid the garbage collector from removing it.<br /> <br />A quick edit and some testing showed this to work reliably. So, if  Office is only triggering an event once make sure there object  references are stored somewhere the garbage collector won't go. And make  sure to assign the object before you register the handler or the  garbage collector will still find it.<br /> <br /><br />public partial class ThisAddIn<br />{<br />&nbsp;&nbsp;&nbsp; public Inspectors _appInspectors;<br /><br />&nbsp;&nbsp;&nbsp; private void ThisAddIn_Startup(object sender, System.EventArgs e)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Outlook.Explorer explorer = this.Application.ActiveExplorer();<br /> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Outlook.Application app = (Outlook.Application)explorer.Application;<br /><br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; _appInspectors = app.Inspectors;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; _appInspectors.NewInspector += new InspectorsEvents_NewInspectorEventHandler(Inspectors_NewInspector);<br /> &nbsp;&nbsp;&nbsp; }<br />}<br /><br /></p>]]></content></entry><entry><title>Starcraft II Patch Download Problem</title><category term="BitTorrent"/><category term="Blizzard"/><category term="Computers"/><category term="Downloader"/><category term="Games"/><category term="Starcraft II"/><id>http://www.theflightlessgeek.co.nz/thoughts/2010/8/11/starcraft-ii-patch-download-problem.html</id><link rel="alternate" type="text/html" href="http://www.theflightlessgeek.co.nz/thoughts/2010/8/11/starcraft-ii-patch-download-problem.html"/><author><name>James</name></author><published>2010-08-11T10:14:51Z</published><updated>2010-08-11T10:14:51Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p>Since getting Starcraft II I have bashed my head against the uselessness of the Blizzard Downloader. As is common knowledge that Blizzard uses the bittorrent protocol to transfer its patches and you might thin that it's pretty damn penny pinching of them to do it instead of just doing direct downloads. Unfortunately their bittorrent sucks from my repeated experience.<br /><br />On both the 1.0.1 and 1.0.2 patches the downloader stopped part way through the download reporting the error "There were multiple problems saving data." As you can tell it offered up no useful help. A quick Google also turned up very little other than the basic and generic Blizzard Downloader FAQ page. After trying all of the suggestions I had got nowhere except swearing at Blizzard for not putting out a direct download patch.<br /><br />To keep this short a few days later I tried downloading the patch files into the Updates folder using utorrent instead of the Blizzard downloader and five minutes later all the files had been downloaded. The Updates folder is located in the Starcraft II install folder and is only there when there's a patch needing to be downloaded. Starting up Starcraft II again it detected all the files were present and happily patched itself up.<br /><br />So if you're having trouble downloading the Starcraft II patches wait a couple of days and try using a different bittorrent client to download the files. You'll find the bittorrent files near the Updates folder in the Starcraft II install folder.﻿</p>]]></content></entry><entry><title>Playing with Regex on OSX</title><category term="Computers"/><category term="Mac"/><category term="OSX"/><category term="Programming"/><category term="Ruby on Rails"/><category term="Tech"/><category term="pcre"/><category term="rad software"/><category term="regex"/><category term="regex designer"/><category term="regexhibit"/><category term="regular expression"/><id>http://www.theflightlessgeek.co.nz/thoughts/2010/6/23/playing-with-regex-on-osx.html</id><link rel="alternate" type="text/html" href="http://www.theflightlessgeek.co.nz/thoughts/2010/6/23/playing-with-regex-on-osx.html"/><author><name>James</name></author><published>2010-06-23T08:44:13Z</published><updated>2010-06-23T08:44:13Z</updated><content type="html" xml:lang="en-US"><![CDATA[<h1>RegExhibit</h1>

<p>If you've ever been stuck with the problem of trying to build anything but a simple regular expression you know how painful it can be getting it to match just what you want. </p>

<p>When developing for .NET on Windows I was introduced to a brilliant free tool called <a href="http://homepage.mac.com/roger_jolly/software/#regexhibit">Rad Software Regex Designer</a> that gave you the ability to provide an example of the text you wanted to match and an area to slowly build up your regular expression while getting instant feedback on what it was doing. It even has dialogs to add specific regular expression commands in case your proficiency with regular expressions isn't high or you just forgot how to create a non matching group. After moving to <span class="caps">OSX </span>for work I went looking for a similar tool for the Mac. And after a while I found it.</p>

<p><a href="http://www.radsoftware.com.au/regexdesigner/">RegExhibit</a> is a <span class="caps">GUI </span>tool of <span class="caps">OSX </span>that uses the Perl regular expression library to help you build regular expressions. This should be fine for any other languages that use a <span class="caps">PCRE </span>library but make sure you check before deploying. The core part of the program are two text areas. you place an example of the text you want to match into the lower area and build up your regular expression in the top are. There are even tabs for doing matches and splits but you'll likely find yourself in the match tab for most of time. However it doesn't offer the same built in dialogs like the Rad Software Regex Designer so make sure you've got a regular expression reference handy.</p>

<p>This is a great tool that has saved my sanity several times already and I do recommend to anyone that has to play with regular expressions and is developing on the Mac.</p>
]]></content></entry><entry><title>Should we remember all of those that have fought for our freedoms?</title><category term="ANZAC"/><category term="Opinion"/><id>http://www.theflightlessgeek.co.nz/thoughts/2010/4/25/should-we-remember-all-of-those-that-have-fought-for-our-fre.html</id><link rel="alternate" type="text/html" href="http://www.theflightlessgeek.co.nz/thoughts/2010/4/25/should-we-remember-all-of-those-that-have-fought-for-our-fre.html"/><author><name>James</name></author><published>2010-04-25T11:44:42Z</published><updated>2010-04-25T11:44:42Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p>Well today was ANZAC day in New Zealand and Australia and if you don't know it's our remembrance/veterans day.</p>
<p>One of the things that's always brought up as a reason for paying respects to the servicemen and women is for their actions in giving us our current freedoms. Now I've always had a small issue with this as this does not recognize everyone who has put effort in to gain and maintain the freedoms and rights we have and to improve our country.  Things like universal suffrage, healthcare, the welfare state, representative democracy, police and government oversight, the freedom to disagree with those in power without fearing retribution. All of these things are just as important to improving our country as well as the military is in showing other powers in the world that we can and will put our money where our mouth is.</p>
<p>I'm not trying to trivialize the efforts of the men and women in uniform. I'm just trying to expand on the belief we pay our respects to those who have given their blood, sweat, tears, and lives to improve our lives.</p>
<p>So, do you think we should start to make efforts to recognize these other groups who have fought just as hard to improve the countries we live in at the same time we recognize and pay our respects to those who have fought with bullets and bombs?</p>]]></content></entry><entry><title>You Can Die in the Tutorial</title><category term="Computers"/><category term="Eve"/><category term="Eve"/><category term="Games"/><category term="Noob"/><category term="Opinion"/><category term="Tutorial"/><id>http://www.theflightlessgeek.co.nz/thoughts/2010/3/9/you-can-die-in-the-tutorial.html</id><link rel="alternate" type="text/html" href="http://www.theflightlessgeek.co.nz/thoughts/2010/3/9/you-can-die-in-the-tutorial.html"/><author><name>James</name></author><published>2010-03-09T06:08:29Z</published><updated>2010-03-09T06:08:29Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p>Well I've now finished the Military career mission arc. Pretty solid introduction to PvE'ing touching on resists, aiming, firing, moving, etc. It finishes up with a mission that you will be destroyed in unless you were paying attention. It's nice to know some of the true nature of EVE makes it into the tutorial stuff. Also got a new frigate gifted as part of one of the missions. I am now flying a Tristan. Depending on what happens in the near future I may ditch it and get myself a Catalyst.</p><p>Now I'm off to a Sisters of Eve agent for what I believe is the start of the beginner epic arc. Never done an Epic arc so this should be quite interesting.</p>]]></content></entry><entry><title>EVE Has a Tutorial?</title><category term="Eve"/><category term="Eve"/><category term="Games"/><category term="Noob"/><category term="Opinion"/><id>http://www.theflightlessgeek.co.nz/thoughts/2010/3/3/eve-has-a-tutorial.html</id><link rel="alternate" type="text/html" href="http://www.theflightlessgeek.co.nz/thoughts/2010/3/3/eve-has-a-tutorial.html"/><author><name>James</name></author><published>2010-03-03T08:18:04Z</published><updated>2010-03-03T08:18:04Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p>Well here I am in the tutorial every new player gets dropped into.<br /><br />This is already a vast improvement over the tutorial I got when I started. You get dropped into what I understand is a deadspace complex with a few asteroids and a single rat which orbits around. This is good because it gets people right into the game without being shocked by the menus and everything else you get when docked in a station. This part of the tutorial takes you through the core movement and combat skills. After that's done it gets you to dock up at the only station in system. This is interesting as they get you to use the dock order which warps you to zero automatically instead of getting you to warp to zero first and then dock. I can understand using just the dock as it leaves the explicit warp-to instruction till later. As a 0.0 veteran I'm more used to warping to zero before doing any action so the straight up dock seems a bit odd.<br /><br />Another interesting addition to the tutorial is this big white box that floats around when the tutorial wants you to do something with the UI. I think this is awesome as it gives new players this big "LOOK HERE" thing to speed up their initial learning instead of the hunting for the 10px x 10px that might have been flashing back when I started. Another really nice feature of this is that if you have a window over the button or item then the overlapping window will become transparent so you can see the button or item the big white box is pointing to.<br /><br />The way the tutorial only spawns items as you need them for a specific step in the tutorial is nice. Instead of flooding the new user with a million items you start off with nothing but a Civilian Damage Control and the first ship you destroy has the classic 1 piece of Trit waiting for you as loot.<br /><br />The tutorial also links to EVElopedia pages on subjects that the space and time of the tut doesn't really allow. <br /><br />The explicit tutorial steps for joining a player corp are great compared to when I started. Mainly because the tutorial now covers them. <br /><br />The career missions are an interesting addition. I went and bought a combat frig before finding out that the next mission gave you one as a reward. So I'm going to follow the mission arc until finished so I don't jump ahead and waste any more ISK. Especially as I'm not going to help myself to my main's stash.<br /><br />Well that was an interesting evening. Will continue to work at this and see what happens.﻿</p>]]></content></entry><entry><title>The Experienced EVE Noob</title><category term="Eve"/><category term="Eve"/><category term="Games"/><category term="MMORPG"/><category term="Noob"/><category term="Opinion"/><category term="Start"/><category term="game"/><id>http://www.theflightlessgeek.co.nz/thoughts/2010/3/3/the-experienced-eve-noob.html</id><link rel="alternate" type="text/html" href="http://www.theflightlessgeek.co.nz/thoughts/2010/3/3/the-experienced-eve-noob.html"/><author><name>James</name></author><published>2010-03-03T05:28:23Z</published><updated>2010-03-03T05:28:23Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p>It's been awhile since I last played EVE so I've been looking back and trying to figure out why. Was it burnout or just boredom or something else? The conclusion I came to was a combination of burnout of trying to keep up with all the 0.0 and corpie happenings and just getting a bit bored of the ISK grind but I still love the idea and most of the execution of the game.</p>
<p>So the other day an idea popped into my head. Start from scratch.</p>
<p>Now like almost all long time EVE players I have one alt to go along with my main. But that alt was pretty much speed trained right into a role that I wanted at the time. She never had to mission, grind or anything because of her sugar daddy main. But it has been so long since I was that noob we all were sitting in that Moa fitted with missiles and small hybrids that I though it would be interesting to do it all over again but with the advantage of knowing what I'm doing.</p>
<p>Of course I'm making it harder for myself to keep it interesting. I'll be moving into deep lowsec and try to live there. The stomping grounds of loners and pirates. It should be interesting. I plan to post the occaisional update on what it's like to be an EVE noob through the eyes of an experienced player.</p>]]></content></entry><entry><title>First iPhone Post</title><category term="Opinion"/><category term="fun"/><category term="test"/><id>http://www.theflightlessgeek.co.nz/thoughts/2010/2/24/first-iphone-post.html</id><link rel="alternate" type="text/html" href="http://www.theflightlessgeek.co.nz/thoughts/2010/2/24/first-iphone-post.html"/><author><name>James</name></author><published>2010-02-24T05:45:28Z</published><updated>2010-02-24T05:45:28Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><img class='iphone-image' src='http://www.theflightlessgeek.co.nz/resource/iphone-20100224184528-1.jpg?fileId=5888032'/></p><p>Just trying out my new toy. :)</p>]]></content></entry><entry><title>Adding Attachments with ActionMailer</title><category term="ActionMailer"/><category term="Attachment"/><category term="Development"/><category term="Email"/><category term="Multipart"/><category term="Programming"/><category term="Programming"/><category term="Ruby"/><category term="Ruby on Rails"/><category term="Ruby on Rails"/><category term="Tech"/><id>http://www.theflightlessgeek.co.nz/thoughts/2010/2/22/adding-attachments-with-actionmailer.html</id><link rel="alternate" type="text/html" href="http://www.theflightlessgeek.co.nz/thoughts/2010/2/22/adding-attachments-with-actionmailer.html"/><author><name>James</name></author><published>2010-02-22T09:46:32Z</published><updated>2010-02-22T09:46:32Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p>Well recently I had the fun task of using Ruby on Rails' ActionMailer to create some automated emails to send out to users. At some point it was decided to attach the original email we received from the user to the notification email we were sending out to the user.</p>
<p>Now you would think that using the attachments method provided by ActionMailer would make it a easy as just giving it the file you wanted to add. Turns out it's like that for Ruby on Rails 3, not for 2.</p>
<p>The most infuriating thing was that if you use the attachments method then the method you called attachments from will not render the default view template it would normally. This means you have to explicitly call the render method.</p>
<p>Instead of putting it out all nicely I'll just link to a blog post from ELCtech.com that explains it well. <a class="offsite-link-inline" href="http://www.elctech.com/articles/-actionmailer-multipart-emails-with-attachments">http://www.elctech.com/ -- [ActionMailer] Multipart emails with attachments</a></p>]]></content></entry></feed>
