<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Talk Unafraid</title>
    <link>http://www.talkunafraid.co.uk/</link>
    <language>en-gb</language>
    <ttl>40</ttl>
    <description>The TalkUnafraid blog feed.</description>
    
    
        <item>
          <title>Quick hack to enable attributes</title>
          <description>&lt;p&gt;I came across the need to have a user list with checkboxes for &amp;#8216;admin&amp;#8217; and &amp;#8216;fleet_commander&amp;#8217; to allow them to be set. Which works great- until you realise that your user model is protected from forms setting those fields!&lt;/p&gt;


	&lt;p&gt;This was using the &amp;#8216;Toggle Attributes with Ajax&amp;#8217; recipe from &amp;#8216;Advanced Rails Recipes&amp;#8217;- an excellent book, and one I&amp;#8217;d recommend.&lt;/p&gt;


	&lt;p&gt;Essentially, I had a remote update function using &lt;span class=&quot;caps&quot;&gt;AJAX&lt;/span&gt;, which sent a user params hash with the appropriate value set. However, to let the form update the model, I had to use some class_eval magic:&lt;/p&gt;


&lt;pre&gt;
  def update
    if current_user.admin?
      User.class_eval('attr_accessible (usual stuff), :admin, :fleet_commander')
    end
    # continue onwards with updating using update_attributes
  end
&lt;/pre&gt;

	&lt;p&gt;This temporarily adds the :admin and :fleet_commander attributes to the list of accessible attributes by calling attr_accessible in the context of the User class. Hope this helps someone in the same scenario!&lt;/p&gt;</description>
          <pubDate>Mon, 11 Aug 2008 23:22:00 GMT</pubDate>
          <guid>http://www.talkunafraid.co.uk/articles/2008/08/11/quick-hack-to-enable-attributes/</guid>
          <link>http://www.talkunafraid.co.uk/articles/2008/08/11/quick-hack-to-enable-attributes/</link>
        </item>
    
        <item>
          <title>Where'd that month go?</title>
          <description>&lt;p&gt;OK, so it&amp;#8217;s been a while since I posted a blog update. I&amp;#8217;ve been busy- Band of Brothers declared war against the Northern Coalition so I&amp;#8217;ve gotten swept up in the fighting and commanding. &lt;span class=&quot;caps&quot;&gt;EVE&lt;/span&gt; Metrics has progressed well with constant work, and my holiday in Scotland was a success on all counts. And now it&amp;#8217;s August. Blimey.&lt;/p&gt;


	&lt;p&gt;Anyway, back to Rails I go. I&amp;#8217;ve been pondering the usual problems. &lt;span class=&quot;caps&quot;&gt;REST&lt;/span&gt; is great for doing stuff on publicly accessible models- news posts and the like, for example. And scaffolds/make_resourceful can do that really, really well. But what about when you want to cater for private resources?&lt;/p&gt;</description>
          <pubDate>Sun, 03 Aug 2008 02:18:00 GMT</pubDate>
          <guid>http://www.talkunafraid.co.uk/articles/2008/08/03/whered-that-month-go/</guid>
          <link>http://www.talkunafraid.co.uk/articles/2008/08/03/whered-that-month-go/</link>
        </item>
    
        <item>
          <title>Processing market data - ActiveMQ, ActiveMessaging and Stomp</title>
          <description>&lt;p&gt;For &lt;span class=&quot;caps&quot;&gt;EVE&lt;/span&gt; Metrics we ran into some scalability and other issues right away with the market. Uploading market history data was causing some major problems, so we had to break out the big guns in terms of distributed workers right away.&lt;/p&gt;


	&lt;p&gt;Basically, whenever our upload client throws a chunk of data (Say, 100 different orders for a type and the price history for the last month), we&amp;#8217;re running at a minimum 128 &lt;span class=&quot;caps&quot;&gt;SQL&lt;/span&gt; insert queries- this all adds up, even with bulk inserts. Then you have to factor in delta calculations for histories, which adds another two &lt;span class=&quot;caps&quot;&gt;SQL&lt;/span&gt; queries for each history value- again, more queries, more time. As the complexity increased, we ended up with around 3 seconds to run all the queries for larger logfiles, which is no good in reality- the uploader can sometimes be trying to push 3 to 5 files at a time up to the cluster, and this hangs half the app servers immediately for 3 seconds or so.&lt;/p&gt;


	&lt;p&gt;So, we now avoid MySQL entirely, and use some enterprise-grade messaging to handle our distributed processing of logs, entirely asynchronously from the upload controllers and Mongrel. Details after the break.&lt;/p&gt;</description>
          <pubDate>Fri, 04 Jul 2008 12:31:00 GMT</pubDate>
          <guid>http://www.talkunafraid.co.uk/articles/2008/07/04/processing-market-data---activemq-activemessaging-and-stomp/</guid>
          <link>http://www.talkunafraid.co.uk/articles/2008/07/04/processing-market-data---activemq-activemessaging-and-stomp/</link>
        </item>
    
        <item>
          <title>Call for testers</title>
          <description>&lt;p&gt;This is a quick post (I&amp;#8217;m going to be busy today and tomorrow) to throw out a request for testers for the &lt;span class=&quot;caps&quot;&gt;EVE&lt;/span&gt; Metrics desktop application.&lt;/p&gt;


	&lt;p&gt;We&amp;#8217;re looking for industrialists and people out in 0.0/lowsec PvPing to use the beta client to collect price data for the development of the &lt;span class=&quot;caps&quot;&gt;EVE&lt;/span&gt; Metrics market system.&lt;/p&gt;


	&lt;p&gt;If you&amp;#8217;re interested, please send me an email- the details are on the &lt;a href=&quot;/about&quot;&gt;about page&lt;/a&gt; &amp;#8211; and I&amp;#8217;ll send you a link to get the beta copy of the software from.&lt;/p&gt;


	&lt;p&gt;Please note that the current program is Windows-only, although we hope to provide Linux and Mac OS applications in the near future. This updater uses both logfile and cache reading methods, so simply browsing the market is all you need to do (Although pressing &amp;#8216;export log&amp;#8217; in the market a few times wouldn&amp;#8217;t hurt), with the program running in the background. This is to test the scalability of the &lt;span class=&quot;caps&quot;&gt;EVE&lt;/span&gt; Metrics website&amp;#8217;s upload &lt;span class=&quot;caps&quot;&gt;API&lt;/span&gt; and to confirm that we can handle the amounts of data we&amp;#8217;re looking at. More on that in another post I&amp;#8217;m about to write&amp;#8230;&lt;/p&gt;</description>
          <pubDate>Fri, 04 Jul 2008 12:26:00 GMT</pubDate>
          <guid>http://www.talkunafraid.co.uk/articles/2008/07/04/call-for-testers/</guid>
          <link>http://www.talkunafraid.co.uk/articles/2008/07/04/call-for-testers/</link>
        </item>
    
        <item>
          <title>EVE Metrics - An update</title>
          <description>&lt;p&gt;I&amp;#8217;ll be honest- I&amp;#8217;ve not done much on &lt;span class=&quot;caps&quot;&gt;EVE&lt;/span&gt; Metrics in the past few weeks. I&amp;#8217;ve been fairly busy out in the real world (Hence the lack of blog posts), but I&amp;#8217;ve also been dragged onto other projects in my spare time.&lt;/p&gt;


	&lt;p&gt;However, I&amp;#8217;ve put them all aside, and intend to have the first part of &lt;span class=&quot;caps&quot;&gt;EVE&lt;/span&gt; Metrics released by the end of the month. That section will be the market section and hopefully the basic industry features, though I&amp;#8217;m still working out the details on those.&lt;/p&gt;


	&lt;p&gt;This isn&amp;#8217;t a full-fledged huge post, but just a response to those who keep sending me EVEmails, &lt;span class=&quot;caps&quot;&gt;IRC&lt;/span&gt; queries and emails to inquire. The site&amp;#8217;s currently offline because of a bug in one of the &lt;span class=&quot;caps&quot;&gt;API&lt;/span&gt; handlers which caused the application server to lock up and eat memory- I&amp;#8217;ve got it fixed on my development server but don&amp;#8217;t plan to deploy for another few weeks.&lt;/p&gt;


	&lt;p&gt;However, this post does serve one other purpose: If you&amp;#8217;d like to see a feature as trader or industrialist, if you&amp;#8217;d like to see a tool, or a particular feature, or maybe just a particular view of things, then send me an EVEmail or an email, or just grab me on &lt;span class=&quot;caps&quot;&gt;IRC&lt;/span&gt;. It&amp;#8217;s getting towards crunch time for feature decisions, so it&amp;#8217;s now or never!&lt;/p&gt;</description>
          <pubDate>Sun, 15 Jun 2008 09:35:00 GMT</pubDate>
          <guid>http://www.talkunafraid.co.uk/articles/2008/06/15/eve-metrics---an-update/</guid>
          <link>http://www.talkunafraid.co.uk/articles/2008/06/15/eve-metrics---an-update/</link>
        </item>
    
        <item>
          <title>glTrail on Win32</title>
          <description>&lt;p&gt;I&amp;#8217;ve always liked visualisations of data. It&amp;#8217;s awesome to get your data in new and interesting formats- in this case, server logs.&lt;/p&gt;


	&lt;p&gt;For some time I&amp;#8217;ve used glTail, a blob-based visualiser. It&amp;#8217;s fairly boring after a little while, and not very useful, but kinda nifty, plus it was Ruby-based, and thus easy for me to take and hack around. So I ended up with my keyboard LEDs indicating server load, for example.&lt;/p&gt;


	&lt;p&gt;Anyway, this same guy released glTrail, another visualiser. An awesome visualiser. But this was a C++, Qt-based app written for Linux, and my main box is WinXP. Read on for how to get it working.&lt;/p&gt;</description>
          <pubDate>Fri, 30 May 2008 04:39:00 GMT</pubDate>
          <guid>http://www.talkunafraid.co.uk/articles/2008/05/30/gltrail-on-win32/</guid>
          <link>http://www.talkunafraid.co.uk/articles/2008/05/30/gltrail-on-win32/</link>
        </item>
    
        <item>
          <title>Where things are and where they're going</title>
          <description>&lt;p&gt;OK, stuff in general has been fairly mad recently. In the past day I&amp;#8217;ve managed to come down with a horrible remix of a cold and the flu, so most of my day is occupied with drinking hot mugs of Earl Gray and lemsip between odd bouts of programming, design, whiteboarding and &lt;span class=&quot;caps&quot;&gt;EVE&lt;/span&gt;.&lt;/p&gt;


	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;IRON&lt;/span&gt; is busy taking over Deklein right now so I&amp;#8217;m doing plenty of scouting up and down for logistics and all that, which is a nice break from the usual combat in the evenings..&lt;/p&gt;


	&lt;p&gt;Anyway, here&amp;#8217;s a quick summary of where all the projects are at.&lt;/p&gt;</description>
          <pubDate>Tue, 27 May 2008 02:11:00 GMT</pubDate>
          <guid>http://www.talkunafraid.co.uk/articles/2008/05/27/where-things-are-and-where-theyre-going/</guid>
          <link>http://www.talkunafraid.co.uk/articles/2008/05/27/where-things-are-and-where-theyre-going/</link>
        </item>
    
        <item>
          <title>Multitouch - Shopping List and Software</title>
          <description>&lt;p&gt;While I wait for components to arrive, I&amp;#8217;m doing a quick post on my shopping list and a more detailed post on my software setup for multitouch.&lt;/p&gt;


	&lt;p&gt;At first, I intend to go for a direct-to-multitouch-software interface- basically, writing apps which directly interface to my setup, rather than adapting existing apps or OSes to use my multitouch. In future, though, I hope to drive a virtual mouse using the software. But here&amp;#8217;s an overview of what I&amp;#8217;m doing.&lt;/p&gt;</description>
          <pubDate>Thu, 15 May 2008 19:03:00 GMT</pubDate>
          <guid>http://www.talkunafraid.co.uk/articles/2008/05/15/multitouch---shopping-list-and-software/</guid>
          <link>http://www.talkunafraid.co.uk/articles/2008/05/15/multitouch---shopping-list-and-software/</link>
        </item>
    
        <item>
          <title>Multitouch for under £100</title>
          <description>&lt;p&gt;I have embarked on a side-line project to prove that a fully functional multitouch display surface is possible for under £100. Mainly because that&amp;#8217;s how much cash I have spare right now. Honestly, I suspect this is impossible, but I suspect the mainstay of the expense will be in tooling up to manufacture this, even with access to a fairly extensive workshop (albeit not much in the way of electrical engineering).&lt;/p&gt;


	&lt;p&gt;Anyway, I&amp;#8217;m going for a &lt;acronym title=&quot;Frustrated total internal reflection&quot;&gt;FTIR&lt;/acronym&gt; approach to my finger tracking, and a projector for the display. But I&amp;#8217;ve decided that budgetary requirements or not, I&amp;#8217;m doing this &lt;em&gt;properly&lt;/em&gt;. Inside is my draft specifications and a summary of what I&amp;#8217;ve done so far.&lt;/p&gt;</description>
          <pubDate>Wed, 14 May 2008 18:52:00 GMT</pubDate>
          <guid>http://www.talkunafraid.co.uk/articles/2008/05/14/multitouch-for-under-100/</guid>
          <link>http://www.talkunafraid.co.uk/articles/2008/05/14/multitouch-for-under-100/</link>
        </item>
    
        <item>
          <title>Gatecamper - What is it, and why bother?</title>
          <description>&lt;p&gt;I thought I could do with a proper Gatecamper post. I don&amp;#8217;t really have a &amp;#8216;WTF is it&amp;#8217; post for it yet.&lt;/p&gt;


	&lt;p&gt;Basically, it&amp;#8217;s a granular security proxy for &lt;span class=&quot;caps&quot;&gt;EVE&lt;/span&gt;-Online &lt;span class=&quot;caps&quot;&gt;API&lt;/span&gt; applications. Instead of using a direct connection to the &lt;span class=&quot;caps&quot;&gt;EVE API&lt;/span&gt; servers, you use (as a developer) a version of the &lt;span class=&quot;caps&quot;&gt;EVE API&lt;/span&gt; hosted by Gatecamper. It&amp;#8217;s got a great deal of benefits over the &lt;span class=&quot;caps&quot;&gt;EVE&lt;/span&gt;-O version, including support for &lt;span class=&quot;caps&quot;&gt;HTTPS&lt;/span&gt; (thus securing against Man in the Middle attacks) and, most importantly, improved security features in userland.&lt;/p&gt;</description>
          <pubDate>Thu, 08 May 2008 20:40:00 GMT</pubDate>
          <guid>http://www.talkunafraid.co.uk/articles/2008/05/08/gatecamper---what-is-it-and-why-bother/</guid>
          <link>http://www.talkunafraid.co.uk/articles/2008/05/08/gatecamper---what-is-it-and-why-bother/</link>
        </item>
    
    
  </channel>
</rss>

