<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
    <channel>
        <title>Cordinc Blog</title>
        <link>http://www.cordinc.com/blog/</link>
        <description></description>
        <language>en-US</language>
        <copyright>Copyright 2010</copyright>
        <lastBuildDate>Sat, 06 Mar 2010 20:39:35 +0000</lastBuildDate>
        <generator>http://www.sixapart.com/movabletype/</generator>
        <docs>http://www.rssboard.org/rss-specification</docs>
        
        <item>
            <title>Is there free money crossing Betfair and Betdaq?</title>
            <description><![CDATA[<p> It was recently suggested to me that there could be risk-free money to be made crossing <a href="http://www.betfair.com">Betfair</a> and <a href="http://www.betdaq.com">Betdaq</a>. Betfair and Betdaq are betting exchanges - they allow their users to bet on various events, from the traditional horse races to more unusual fare like netball or the UK general election. Unlike a normal bookmaker, the exchanges don't provide the odds and take the opposing side of the bet. Instead the odds are determined by other users and the other side is another user. So while there may be someone offering 1.15 odds that Labour will win (a <a href="http://help.betfair.com/contents/itemId/i65767719/index.en.html">back bet</a>) the next UK election, someone else may offer 1.2 that they will lose (a <a href="http://help.betfair.com/contents/itemId/i65767719/index.en.html">lay bet</a>). When the back and lay odds match then a bet is made. Note, all the odds quoted in this article are <a href="http://en.wikipedia.org/wiki/Fixed-odds_betting#Decimal_odds">decimal odds</a> as this is the type of odds used on the exchanges.</p>]]></description>
            <link>http://www.cordinc.com/blog/2010/03/is-there-free-money-crossing-b.html</link>
            <guid>http://www.cordinc.com/blog/2010/03/is-there-free-money-crossing-b.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">Gambling</category>
            
            <pubDate>Sat, 06 Mar 2010 20:39:35 +0000</pubDate>
        </item>
        
        <item>
            <title>Societies in Transition</title>
            <description><![CDATA[<p> Available on <a href="http://deimos3.apple.com/WebObjects/Core.woa/Browse/ox-ac-uk-public.2006979775.02006979777">iTunesU</a>. I could not find a course website.</p>

<p>This is a series of 8 anthropology lectures on the topic Socities in Transition recorded at <a href="http://www.linacre.ox.ac.uk/Linacre">Linacre College, Oxford University</a> during early 2009. Each podcast is just under an hour and audio only (occasional mention is made of slides). Each lecture is given by a different presenter. All are fairly academic in nature (a couple are quite dry and I found it hard to maintain concentration), but are still accessible to the non-expert. These lectures are not straight history, there is little discussion of historical events. Instead each podcast presents current research on the process of social transition during a notable period of history. They often provide an interesting snapshot (or at least intriguing tidbits) of life around the time of the transition. </p>

<p>The lectures are in chronological order, spanning the entirity of human history - and beyond. The first lecture is on the <a href="http://en.wikipedia.org/wiki/Neanderthal">Neanderthals</a> - their slow extinction and modern discovery. The next lecture deals with the spread of farming in South East Asia. Then follows an interesting lecture on the spread of <a href="http://en.wikipedia.org/wiki/Metallurgy">metallurgy</a> in the <a href="http://en.wikipedia.org/wiki/Bronze_Age">Bronze Age</a> and what the metals meant to society at different times and places. Another interesting lecture details attempts to date and size the <a href="http://en.wikipedia.org/wiki/Minoan_eruption">volcanic explosion at Thera</a> (now <a href="http://en.wikipedia.org/wiki/Santorini">Santorini</a>). From this research the presenter trys to match up the likely effects with events and history in the region (mainly the <a href="http://en.wikipedia.org/wiki/Minoan_civilization">Minoan</a> society on Crete). The next two lectures are respectively on the beginning and end of <a href="http://en.wikipedia.org/wiki/Roman_Britain">Roman rule in Britain</a>. Apparently the collapse of the British economy after the Romans left was particularly swift - previously common pottery and coins disappeared almost overnight and buildings quickly fell into disrepair. The last two lectures are on more modern topics - the industrial and the current information revolutions.</p>

<p>Worth a listen for background information on the timeperiods discussed.</p>]]></description>
            <link>http://www.cordinc.com/blog/2010/02/societies-in-transition.html</link>
            <guid>http://www.cordinc.com/blog/2010/02/societies-in-transition.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">History</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">Podcasts</category>
            
            <pubDate>Sun, 28 Feb 2010 16:39:33 +0000</pubDate>
        </item>
        
        <item>
            <title>Tunisia Photos</title>
            <description><![CDATA[<p>A while ago I put up some <a href="http://www.cordinc.com/blog/2008/12/dougga-photos.html">photos from Dougga</a>. Here are the best photos from the rest of that holiday in Tunisia. The <a href="http://www.flickr.com/photos/33547649@N07/sets/72157623353630109/show/">set on Flickr is here</a>.</p>

<p><a href="http://www.flickr.com/photos/33547649@N07/sets/72157623353630109/show/"><img src="http://farm5.static.flickr.com/4004/4375575858_ab49609d68.jpg" alt="" /></a></p>]]></description>
            <link>http://www.cordinc.com/blog/2010/02/tunisia-photos.html</link>
            <guid>http://www.cordinc.com/blog/2010/02/tunisia-photos.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">Travel</category>
            
            <pubDate>Sun, 21 Feb 2010 11:43:02 +0000</pubDate>
        </item>
        
        <item>
            <title>JMX JConsole-like Connection Dialog</title>
            <description><![CDATA[<p>This is a quick post about a coding problem that took longer than expected to solve. I have put an example solution here as a reference for myself or others, hopefully speeding up the task. I needed to create a dialog to connect to a local or remote <a href="http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/"><span class="caps">JMX</span></a>  process. Essentially this would be very similar to the <a href="http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html">JConsole</a> "New Connection" dialog. Initially I thought this would just be a standard component, but instead it took some trial and error (as well as digging through Sun documentation) to get the required functionality working.</p>]]></description>
            <link>http://www.cordinc.com/blog/2010/02/jmx-jconsolelike-connection-di.html</link>
            <guid>http://www.cordinc.com/blog/2010/02/jmx-jconsolelike-connection-di.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">Java</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">Technical</category>
            
            <pubDate>Sun, 14 Feb 2010 12:46:53 +0000</pubDate>
        </item>
        
        <item>
            <title>Hannibal (Stanford Continuing Studies Program) </title>
            <description><![CDATA[<p> Available on <a href="http://deimos3.apple.com/WebObjects/Core.woa/Browse/itunes.stanford.edu.1374259372.01374259374">iTunesU</a>. I could not find a course website.</p>

<p>These podcasts detail the life of the <a href="http://en.wikipedia.org/wiki/Carthage">Carthaginian</a> general <a href="http://en.wikipedia.org/wiki/Hannibal">Hannibal</a>, often considered one of the greatest commanders of the ancient world. During the <a href="http://en.wikipedia.org/wiki/Second_Punic_War">Second Punic War</a> against the <a href="http://en.wikipedia.org/wiki/Roman_Republic">Roman Republic</a> in the 3rd century <span class="caps">BC,</span> Hannibal led his army over the Alps into Italy. He then used superior strategy and tactics to defeat the Roman army at a number of engagements, resulting in the battle of <a href="http://en.wikipedia.org/wiki/Battle_of_Cannae">Cannae</a> - a devastating loss for Rome. After this, the Romans adopted many of Hannibal's techniques. At the <a href="http://en.wikipedia.org/wiki/Battle_of_Zama">Battle of Zama</a>, Hannibal was defeated and Carthage lost the war.</p>

<p>The lectures were given by <a href="http://en.wikipedia.org/wiki/Patrick_Hunt">Patrick Hunt</a> as part of the <a href="http://www.continuingstudies.stanford.edu/">Stanford Continuing Studies Program</a> sometime during 2007. I couldn't find a course website, but there are a <a href="http://traumwerk.stanford.edu/archaeolog/2006/11/alpine_archaeology_hannibal_ex.html">few</a> <a href="http://traumwerk.stanford.edu/archaeolog/2006/04/hannibal_in_the_alps_stanford_1.html">articles</a> relating to the course. There are 8 lectures (strangely numbered 1 through 10), all of which are audio only and nearly two hours long (around 30MB in size). The first podcast is an interesting discussion on Carthaginian culture, in particular whether they really practiced <a href="http://en.wikipedia.org/wiki/Religion_in_Carthage#Child_sacrifice">child sacrifice</a>. The second lecture introduces the <a href="http://en.wikipedia.org/wiki/First_Punic_War">First Punic War</a> and Hannibal's father, <a href="http://en.wikipedia.org/wiki/Hamilcar_Barca">Hamilcar Barca</a>. The Second Punic War is covered over three lectures (along with an epilogue). The remaining three podcasts are dedicated to Hannibal's crossing of the Alps.</p>

<p>It seems Patrick Hunt organises regular expeditions to cross the Alps, trying to find archeological proof of where Hannibal crossed. Great attention is paid to how closely various mountain passes fit the ancient descriptions. Dr Hunt personally favours the <a href="http://en.wikipedia.org/wiki/Col_de_Clapier">Col de Clapier</a>. If this historical event is of interest,  then you will be well served. There is not one, not two, but three different first-person accounts of modern crossings of the Alps in attempts to follow Hannibal's footsteps: Hunt's; Ed Boenig, a student of Dr Hunt's; and John Hoyte's, who crossed the Col de Clapier in 1959 with an elephant (called <a href="http://www.archaeology.org/image.php?page=0701%2Fabstracts%2Fjpegs%2Fhannibal2.jpg">Jumbo</a>). </p>

<p>Apart from close concentration on a narrow historical time period, the series has many intriguing digressions. For instance, there is occasional mention of the meaning of Hannibal's name, "grace of Ba'al". <a href="http://en.wikipedia.org/wiki/Baal">Ba'al</a> was the main Carthaginian deity, who supposedly lived on a mountain. Thus Dr Hunt suggests Hannibal would have had no fear of mountains. A bit of a stretch, but still interesting. If you have a particular interest in finding out about Hannibal's crossing of the Alps, then this is the podcast for you. However, there is still much to learn even if that is not your focus (and the second two alpine lectures can be safely skipped). On the downside, the first lecture (on the origins of Carthage) seems to be missing. Also, there is no sign of the lecture slides. Being able to see the maps and slides would have been particularly useful during discussions of which Alpine pass most closely matched ancient descriptions. Nevertheless, don't be put off by the long podcast length, this series is well worth a listen.</p>]]></description>
            <link>http://www.cordinc.com/blog/2010/02/hannibal-stanford-continuing-s.html</link>
            <guid>http://www.cordinc.com/blog/2010/02/hannibal-stanford-continuing-s.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">History</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">Podcasts</category>
            
            <pubDate>Sun, 07 Feb 2010 19:17:50 +0000</pubDate>
        </item>
        
        <item>
            <title>JButtons in a JTable</title>
            <description><![CDATA[<p>Recently I wanted to have a clickable button in a table. Searching on Google for <a href="http://www.google.co.uk/search?q=JButton+in+JTable">JButton in JTable</a> I found a couple of suggestions, most notably this <a href="http://www.devx.com/getHelpOn/10MinuteSolution/20425">DevX article</a> and this <a href="http://www.esus.com/docs/GetQuestionPage.jsp?uid=1285">Esus article</a>. There was also a <a href="http://stackoverflow.com/questions/764417/is-it-possible-to-include-jbutton-in-a-jtable/">StackOverflow question</a> that just referenced other solutions. None really satisfied me. So borrowing their ideas I created my own solution.</p>]]></description>
            <link>http://www.cordinc.com/blog/2010/01/jbuttons-in-a-jtable.html</link>
            <guid>http://www.cordinc.com/blog/2010/01/jbuttons-in-a-jtable.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">Java</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">Technical</category>
            
            <pubDate>Sat, 30 Jan 2010 15:12:32 +0000</pubDate>
        </item>
        
        <item>
            <title>Italy Photos</title>
            <description><![CDATA[<p>A while ago I put up some <a href="http://www.cordinc.com/blog/2009/06/pompeii-photos.html">photos from Pompeii</a>, and it is about time I put up the best photos from the rest of that holiday in Italy. The <a href="http://www.flickr.com/photos/33547649@N07/sets/72157623143607329/show/">set on Flickr is here</a>.</p>

<p><a href="http://www.flickr.com/photos/33547649@N07/sets/72157623143607329/show/"><img src="http://farm3.static.flickr.com/2693/4298200246_7a8889c2ca.jpg" alt="" /></a></p>]]></description>
            <link>http://www.cordinc.com/blog/2010/01/italy-photos.html</link>
            <guid>http://www.cordinc.com/blog/2010/01/italy-photos.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">Travel</category>
            
            <pubDate>Sat, 23 Jan 2010 17:58:53 +0000</pubDate>
        </item>
        
        <item>
            <title>History 110: Roman Republic</title>
            <description><![CDATA[<p> Available on <a href="http://deimos.apple.com/WebObjects/Core.woa/Browse/scu.edu.1713297656.01713297664">iTunesU</a>. I could not find a course website.</p>

<p>Professor Isabelle Pafford from <a href="http://www.cordinc.com/blog/2009/12/history-4a-the-ancient-mediter.html">The Ancient Mediterranean World</a> podcasts returns for another series of Ancient History podcasts. This time a course on the Roman Republic given during Fall 2008 at <a href="http://www.scu.edu/">Santa Clara University</a>. There are 19 podcasts - 1 is a slide show video, but the others are audio only. Each podcast is around 50 minutes in length and around 50MB. In the audio podcasts there are often references to slides that are not available online. </p>

<p>The course starts with the stories of <a href="http://en.wikipedia.org/wiki/Founding_of_Rome">Rome's foundation</a> along with details of the surrounding area and people, which presumably influenced early Rome. The <a href="http://en.wikipedia.org/wiki/Roman_Kingdom">Roman Kingdom</a> is quickly passed over (perhaps due to a lack of information on the era) for the <a href="http://en.wikipedia.org/wiki/Roman_Republic">Roman Republic</a>. Most attention is focussed on the Late Republic, with over half the lectures on the period from the <a href="http://en.wikipedia.org/wiki/Gracchi">Gracchi</a> to <a href="http://en.wikipedia.org/wiki/Julius_Caesar">Caesar</a> - around 133BC to 49BC. </p>

<p>These lectures are full of engrossing details. There is a bit of historical timeline talk (on this date this happened and on that date that happened), but the series is more about the life and times of ancient Rome. For instance, there is often discussion of the <a href="http://en.wikipedia.org/wiki/Cursus_honorum">Cursus Honorum</a> (a series of military and administrative positions that provided a semi-formal structure to a political career) and how it affected the way people sought or achieved power. There was also a strong <a href="http://www.roman-empire.net/society/society.html#clients">patron-client</a> system, where a person's power could, in part, be measured by the number of clients/followers they had. Thus, manumission was common as freed slaves were typically clients of their previous owner. There is also some interesting consideration of which events are definitely known to have occurred, the fixed-points of history, and those parts of the <a href="http://en.wikipedia.org/wiki/Primary_source">primary sources</a> that may be apocryphal. </p>

<p>Professor Pafford can be an engaging speaker, and it is clear this is an area she knows well. Indeed the extra colour provided as cracks began to appear in the republic had me hooked. It was a classic fight between two political parties, the <a href="http://en.wikipedia.org/wiki/Optimates">Optimates</a> and <a href="http://en.wikipedia.org/wiki/Populares">Populares</a> - modern analogies are too easy to make. Although the ability to raise private armies and the tendency of losers to be executed adds an epic scale to proceedings. The final result may be well-known, with Caesar the unlikely Populares triumphing - but I still raced through the last half-dozen lectures.</p>

<p>It was a good thing I did know what happened in the end, as the end of the lecture series is missing (hint Caesar is assassinated and his nephew eventually dissolved the republic, becoming the first emperor, <a href="http://en.wikipedia.org/wiki/Augustus">Augustus</a>). I would guess that around a half-dozen of the lectures are unavailable, mainly around the mid-republic. At one point Professor Pafford apologises for losing some lectures in a hard-drive crash. So I suppose their absence is forgiveable. However, like the earlier Ancient Mediterranean podcasts, there are numerous other production issues. The audio quality is usually good, apart from a few notable exceptions. The video lecture is almost impossible to hear, and the slides are small relative to the screen. Another lecture on the <a href="http://en.wikipedia.org/wiki/First_Triumvirate">First Triumvirate</a> is split across two lectures because it sounds like the microphone failed (and the second part is very quiet). There is also quite a bit of course administrative talk (assignments, books, etc) - in one 40 minute lecture, 8 minutes are spent on such course administration topics. At least the class seem interested and ask some good questions. The lectures are also presented out of order on iTunes. It helps to know a bit of history to reorganise them from the titles.</p>

<p>Interesting history podcasts, again let down a little by production.</p>]]></description>
            <link>http://www.cordinc.com/blog/2010/01/history-110-roman-republic.html</link>
            <guid>http://www.cordinc.com/blog/2010/01/history-110-roman-republic.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">History</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">Podcasts</category>
            
            <pubDate>Sun, 17 Jan 2010 15:03:39 +0000</pubDate>
        </item>
        
        <item>
            <title>New goals, again</title>
            <description><![CDATA[<p>I don't like new year resolutions detailing plans to make yourself better - I'm already great! However, I do like the idea of setting a few goals. This year's goals are fairly similar to last years, but a little less ambitious:</p>


<ul>
<li>Blog at an average rate of at least 4 times a month. Fairly sure I can do this with the <a href="http://www.cordinc.com/cgi-sys/cgiwrap/cordinc/managed-mt/mt-search.cgi?tag=Blender&amp;blog_id=1">Blender</a> and <a href="http://www.cordinc.com/cgi-sys/cgiwrap/cordinc/managed-mt/mt-search.cgi?tag=History&amp;blog_id=1">History Podcast</a> posts I'm planning.</li>
<li>Only have 2 programming projects going at the same time. Reassess projects every 3 months. The first two are: learning how to load and animate blender models in a 3D graphics engine; and a secret project. </li>
<li>Complete 3 Blender models and write tutorials on them - the models are a robot (to learn animation), a <a href="http://en.wikipedia.org/wiki/Thermopolium">Thermopolium</a>, and a <a href="http://en.wikipedia.org/wiki/Broch">Broch</a>.</li>
<li>Maintain Queuesaurus and general ruby skills. Try to use Scala.</li>
<li>Run 5km in 25 minutes. This is a bit ambitious.</li>
<li>Decrease net ownership of physical goods</li>
</ul>

]]></description>
            <link>http://www.cordinc.com/blog/2010/01/new-goals-again.html</link>
            <guid>http://www.cordinc.com/blog/2010/01/new-goals-again.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">General</category>
            
            <pubDate>Sun, 10 Jan 2010 10:32:51 +0000</pubDate>
        </item>
        
        <item>
            <title>Recap</title>
            <description><![CDATA[<p> Almost a year ago I wrote <a href="/blog/2009/02/new-goals.html">some goals for the new year</a>. Now it is time for an assessment.</p>


<ul>
<li><strong>Goal: Improve Ruby skills. Result: Partial success.</strong> I'm not at what I would consider a professional standard, but not far off it. I gemify'ed my <span class="caps">BBC </span>weather library, but have since abandoned it as keeping up with the <span class="caps">BBC'</span>s constant <span class="caps">API </span>changes was frustrating. I use <a href="http://www.queuesaurus.com">Queusaurus</a> even if no one else does. I started another project, but it didn't get far enough to publicise.</li>
<li><strong>Goal: Learn Scala. Result: Have done some, but not much.</strong> </li>
<li><strong>Goal: Learn Blender. Result: Near Success.</strong> I feel confident enough about this one. I haven't completed an ancient scene, but I'm sure I could.</li>
<li><strong>Goal: Decrease net ownership of physical goods. Result: Success.</strong> Doing this slowly but surely - I own fewer things now than when I wrote that goal, but not by much.</li>
<li><strong>Goal: 48 blog posts in a year. Result: 44 posts.</strong> I'm fairly happy with that. Holidays and looking for a new work contract slowed me down a bit.</li>
<li><strong>Goal: Run 5km in 25 minutes. Result: Not even close.</strong> The less said the better.</li>
<li>On the stretch goals, all are still a long distance away. </li>
</ul>




<p>I think the main problem with achieving those goals was my tendency to try doing too much. At one point (and continuing for a couple of months) I had 6 programming projects on the go at once. Nothing progressed at any pace over the last half of the year and that is what caused the most slippage. Something to be aware of for the coming year.</p>]]></description>
            <link>http://www.cordinc.com/blog/2010/01/recap.html</link>
            <guid>http://www.cordinc.com/blog/2010/01/recap.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">General</category>
            
            <pubDate>Sat, 09 Jan 2010 12:07:31 +0000</pubDate>
        </item>
        
        <item>
            <title>Starting a UK Company</title>
            <description><![CDATA[<p> Having just completed the process of forming a new <a href="http://en.wikipedia.org/wiki/Limited_company">limited company under UK law</a>, I found myself frustrated by the number of steps required. In case I ever need to do it again, or a reader does, I thought it might be useful to set out the steps I took - hopefully I haven't missed any! If it seems overwhelming, various accountancy or specialist firms can do most of it for a fee. Note, I am not an expert in this area, just someone who has done it once and recorded the steps - there is no guarantee this is completely correct.</p>


<ul>
<li>First get the company formed. This will require a unique company name, a business address, and directors' details. Forming the company can be done through <a href="http://www.companieshouse.gov.uk/">Companies House</a>, but I used <a href="http://www.companiesmadesimple.com">Companies Made Simple</a> to get things moving quickly. I recommend getting a Printed Certificate of Incorporation - it is needed in later steps.  </li>
<li>In my business, clients require invoices to have a <span class="caps">VAT </span>number so registering for <span class="caps">VAT </span>was my next step. If you don't need a <span class="caps">VAT </span>number straight away, you may wish to get a bank account first. Also, if the firm's turnover is less than £68,000, registration is not required. There are a few other exemptions too, see more at the <a href="http://www.businesslink.gov.uk/bdotg/action/layer?r.s=m&amp;r.l4=1073863071&amp;r.l1=1073858808&amp;r.lc=en&amp;r.l3=1083126677&amp;r.l2=1083126673&amp;topicId=1083126677&amp;r.i=1077722988&amp;r.t=BLTTOOL">Business Link <span class="caps">VAT </span>guide</a>. I applied for registration online through the <a href="https://online.hmrc.gov.uk/"><span class="caps">HMRC</span> Online website</a> (click register) - the details required should be the same as for company formation. <span class="caps">HMRC </span>also runs a <a href="http://www.hmrc.gov.uk/vat/start/schemes/flat-rate.htm">Flat Rate <span class="caps">VAT </span>scheme</a> that is worth investigating. If it turns out to be useful then applying to join the scheme can be done at the same time as registering for <span class="caps">VAT.</span></li>
<li>Get a bank account. This is quite important as many of the other steps need either bank details or a good reason why there are none (eg <span class="caps">VAT </span>registration). Most banks will require a Printed Certificate of Incorporation. I can't recommend any good banks, and you should be aware that it can take longer than you think to open a business account.</li>
<li>Sign up to file company documents online at <a href="http://www.companieshouse.gov.uk/">Companies House</a> (click on File documents online). Even if the information given during formation never change, the company will still need to submit at least two forms a year to Companies House to stay registered (annual return and annual accounts). This is easy to do online. At the same time you can sign up for the <a href="http://www.companieshouse.gov.uk/infoAndGuide/coIdFraud.shtml"><span class="caps">PROOF</span></a> system to make it harder for fraudsters to take control of the company by filing paper forms. However, be aware that once you have applied for online access, Companies House will (physically) mail some activation forms before you can file online.</li>
<li>If the company will be paying anyone a salary or expenses (directors' expenses count) then you will need to sign up to <span class="caps">PAYE.</span> This can be done up to a month before payment. Again this can be done through the <a href="https://online.hmrc.gov.uk/"><span class="caps">HMRC </span>website</a> (click register). From the employer's perspective, I find <span class="caps">PAYE </span>a bit complicated. You should learn about it yourself - <a href="http://www.hmrc.gov.uk/paye/intro/index.htm"><span class="caps">HMRC</span></a> and <a href="http://www.businesslink.gov.uk/bdotg/action/layer?r.s=m&amp;r.l1=1073858808&amp;r.lc=en&amp;topicId=1073858787">Business Link</a> are good places to start.</li>
<li>In the weeks after forming the company, <span class="caps">HMRC </span>should send you some forms to register for Corporate Tax. These need to be filled in and returned within 3 months of business activity starting. Filling in the forms will require the firm's <span class="caps">PAYE, VAT </span>details, and the Memorandum of Incorporation (this should have been included as part of the formation process).</li>
<li>Insurance may be required and is probably a good idea anyway. My business area requires Professional Indemnity Insurance, so I organised this before beginning trading. There are many other forms of insurance which may be useful - my firm also has Employers' Insurance and Public Liability Insurance. <a href="http://www.businesslink.gov.uk/bdotg/action/layer?r.s=sl&amp;r.lc=en&amp;topicId=1075196424">Business Link have a guide</a> to help determine which forms of insurance may be required. I used an industry specialist insurer, which wouldn't be useful to most readers, but I have learnt to shop around as different firms can quote vastly different rates (often the most expensive is multiples of the cheapest).</li>
<li>I recommend signing up to submit <span class="caps">VAT, PAYE </span>and Corporate Tax forms through the <a href="http://www.hmrc.gov.uk/"><span class="caps">HMRC </span>website</a>. It is quite good and normally guides you through the process of completing a form; facing a long paper form fills me with fear. Also, if <span class="caps">VAT </span>is paid by direct debit (which can be set up online) <span class="caps">HMRC </span>will give you an extra week to pay (this can be done for <span class="caps">PAYE </span>too). After initially applying online <span class="caps">HMRC </span>will send activation codes through the mail to complete the process.</li>
<li>Profit!</li>
</ul>



<p>After that I advise you quickly sort out your accounts and construct a calendar of regulatory/tax events. Remember, every 3 months a <span class="caps">VAT </span>form will need to be submitted. Depending on payroll size, <span class="caps">PAYE </span>will need to be paid monthly or once a year in addition to an annual <span class="caps">PAYE </span>form (P35) and expenses form (P11D). Corporate Tax forms need to be submitted annually, as do Companies House returns and accounts. Staying organised and being able to quickly determine the financial position of the firm is very useful. Since my business is fairly simple and having completed a course on accounting at uni, I created a double entry book-keeping system in Excel. If you don't feel you have the knowledge to do this (or the firm's accounts are too complicated) there are various software packages and accountants that can help - I can't recommend any. </p>

<p>In general, the <a href="http://www.hmrc.gov.uk/"><span class="caps">HMRC</span></a>  and <a href="http://www.businesslink.gov.uk">Business Link</a> websites are very useful and well worth a look.</p>

<p>Good luck!</p>]]></description>
            <link>http://www.cordinc.com/blog/2010/01/starting-a-uk-company.html</link>
            <guid>http://www.cordinc.com/blog/2010/01/starting-a-uk-company.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">Entrepreneurship</category>
            
            <pubDate>Sat, 02 Jan 2010 18:19:25 +0000</pubDate>
        </item>
        
        <item>
            <title>Singularly Lazy</title>
            <description><![CDATA[<p>Ah, the <a href="http://en.wikipedia.org/wiki/Singleton_pattern">Singleton</a> pattern. It is used to create a single, globally accessible instance of a class, preventing any further instantiations (so only one object of the class can ever exist). When I first learnt about Singletons soon after leaving university, I thought they were wonderful and used them often. Now I think that they are often a very bad idea. Not because of security concerns, as one person once suggested to me, but because I don't want static methods/classes hanging round (increasing global state) or I later realise more than one is needed!</p>

<p>Once when creating a consumer website for a bank I needed access to various pieces of bank information at numerous points in the code. "There is only one bank", I reasoned and made the class containing this information a singleton. Then the bank acquired another two banks so my design was broken and refactoring had to take place right before launch. However, despite learning repeatedly from experience, I still find myself creating more. I think this is due to laziness on my part. If I'm short of time or feel that it is not particularly important, I fall back on habit. Later, while refactoring I realise a better result could have been achieved with some thought. For instance, if the global access of singletons is a problem, perhaps using an <a href="http://en.wikipedia.org/wiki/Inversion_of_control">IoC</a> container (like <a href="http://www.springsource.org/about">Spring</a>) to wire everything up could help.</p>

<p>I hereby resolve not to use Singletons without thinking very hard first about whether there is a better way. </p>]]></description>
            <link>http://www.cordinc.com/blog/2009/12/singularly-lazy.html</link>
            <guid>http://www.cordinc.com/blog/2009/12/singularly-lazy.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">Technical</category>
            
            <pubDate>Sun, 20 Dec 2009 19:40:29 +0000</pubDate>
        </item>
        
        <item>
            <title>History 4A: The Ancient Mediterranean World</title>
            <description><![CDATA[<p> Available on <a href="http://deimos3.apple.com/WebObjects/Core.woa/Browse/berkeley.edu.1625336377">iTunesU</a> or at its <a href="http://webcast.berkeley.edu/course_details.php?seriesid=1906978476">website</a>.</p>

<p>This is a recording of a <a href="http://berkeley.edu/">University of California at Berkeley</a> history course on the ancient Mediterranean given by Professor Isabelle Pafford during Fall 2007. There are 25 podcasts (each around one hour, and 15 MB) starting with a couple on <a href="http://en.wikipedia.org/wiki/Ancient_Egypt">Ancient Egypt</a> and then passing through <a href="http://en.wikipedia.org/wiki/Ancient_Greece">Ancient Greece</a>, the <a href="http://en.wikipedia.org/wiki/Hellenistic_period">Hellenistic Period</a>, the <a href="http://en.wikipedia.org/wiki/Roman_Republic">Roman Republic</a> before ending with the <a href="http://en.wikipedia.org/wiki/Roman_Empire">Roman Empire's</a> collapse in the west around the 5th century <span class="caps">AD.</span> Most attention is paid to Greek and Roman history. A following course on <a href="http://en.wikipedia.org/wiki/Byzantine">Byzantine</a> history is mentioned, but I couldn't find it online.</p>

<p>As should be expected for a series covering so much, the lectures often quickly pass over topics. Some parts of lectures were lists of important events. Despite this, there were more than enough digressions onto engaging side-topics to maintain interest (for instance, there was a passage on the nude in Greek sculpture and another on the formal <a href="http://en.wikipedia.org/wiki/Cursus_honorum">political structure/progression in the Roman Republic</a>). Thus the podcasts serve as a good introduction to the breadth of ancient Mediterranean civilisations and highlights areas you may want to explore further (after this I was looking forward to learning more on the mid and late Roman republic). I can't find much fault with the content of the course considering its scope.</p>

<p>I can find fault with the production standards, which overall are frustratingly poor. The sound quality is often annoyingly bad. For one lecture I had the volume turned up to max and pushed the earplugs deeper into my ears and I still could barely hear the lecturer, who sounded like she was mumbling next to a static noise generator. Course administration comments are sometimes made during a lecture - including asking unintentionally rhetorical questions to what seem to be largely apathetic students. Considering these are lecture recordings I can understand this, but usually the first few minutes of each lecture are taken up with course administration too (these could have easily been cut). Also, Professor Pafford regularly refers to visual aides that are no longer available online (the bspace website mentioned in the podcasts has been shutdown). Also the first two lectures are missing.</p>

<p>A good introduction to classical history, made slightly less pleasurable by poor production.</p>]]></description>
            <link>http://www.cordinc.com/blog/2009/12/history-4a-the-ancient-mediter.html</link>
            <guid>http://www.cordinc.com/blog/2009/12/history-4a-the-ancient-mediter.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">History</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">Podcasts</category>
            
            <pubDate>Mon, 14 Dec 2009 09:40:36 +0000</pubDate>
        </item>
        
        <item>
            <title>Testing generated code</title>
            <description><![CDATA[<p> What is the accepted way to test generated source code? A recent work project required me to generate some Java source code from small definition files as part of a larger framework. The plan was for other project teams to take the framework and use the generator to create source which would become part of their project. I wanted to write unit tests for the source code. The problem was how to write a test for code that didn't exist at the time the test was written because it hadn't been generated yet! I came up with a few options:  </p>


<ul>
<li>Do a text comparison between generated code and the previously created known text output of the generation process. If they are exactly the same, the test passes. This tests the generation process if correct but doesn't test the logic of the generated code. If the generated code has syntactic errors, compilers or <span class="caps">IDE</span>s will pick this up quite fast and the developers in the other project will complain quickly, but subtle logic could go unchecked for ages.</li>
<li>Write a test that generates a class file from known inputs then compiles it programmactically with the <a href="http://java.sun.com/javase/6/docs/api/javax/tools/JavaCompiler.html">Java Compiler <span class="caps">API</span></a> then loads the class into the <span class="caps">JVM </span>and runs tests against it. This would be better than the previous idea, as it tests the functionality of the result. This was my first choice solution. However, getting the Java Compiler <span class="caps">API </span>to work can be a bit hard. There was a paucity of documentation on this and in the end I couldn't get it to work within time constraints.</li>
<li>Generate the test at the same time as the generated code and pass them both to the other project. The other project would then test the generated code as if it was their code. This felt wrong to me. No other generations systems do this - it is like passing the buck. If there is an error in the generated code then the generator needs to be fixed not the generated class!</li>
<li>A 2-step process - test the functionality and generation process separately. First, create a class that should be the same as a generated class given known inputs (probably by generating it!) and write tests that work against that class. Thus the problem of testing not yet existing code is solved by using some code generated earlier. This tests the generated code's functionality as long as the generating process doesn't change. So the second part is to test the generation process hasn't changed using the first test in this list. Add another test to generate the code and check that it is exactly the same text as the class the rest of the test is written against. If the generation output changes then you have to modify the pre-generated class, and thus change the functionality test if required. Easy.</li>
</ul>

]]></description>
            <link>http://www.cordinc.com/blog/2009/12/testing-generated-code.html</link>
            <guid>http://www.cordinc.com/blog/2009/12/testing-generated-code.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">Java</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">Technical</category>
            
            <pubDate>Mon, 07 Dec 2009 19:50:46 +0000</pubDate>
        </item>
        
        <item>
            <title>CLCV 205: Introduction to Ancient Greek History</title>
            <description><![CDATA[<p>Available on <a href="http://deimos3.apple.com/WebObjects/Core.woa/Browse/yale.edu.1899726321.01899726329">iTunesU</a> with a <a href="http://oyc.yale.edu/classics/introduction-to-ancient-greek-history/">course website</a>.</p>

<p>This complete university course (from Fall 2007) on Ancient Greek History from <a href="http://www.yale.edu/">Yale</a> is the best history podcast I have found so far. It consists of 24 lectures of about an hour's length each, all given by Professor <a href="http://en.wikipedia.org/wiki/Donald_Kagan">Donald Kagan</a>. It starts with an introduction to <a href="http://en.wikipedia.org/wiki/Mycenaean_Greece">Mycenaean Greece</a> before moving onto the <a href="http://en.wikipedia.org/wiki/Greek_Dark_Ages">Greek Dark Ages</a> and Homeric stories. The series ends with Philip of Macedon's victory at the <a href="http://en.wikipedia.org/wiki/Battle_of_Chaeronea_%28338_BC%29">Battle of Chaeronea</a> and the Greek Polis' permanent loss of independence. Along the way it details all the major events including: the rise and strangeness of Sparta; the rise of Athens and democracy;  Persian wars; and the slow decrease of power in the struggle for hegemony after the Peloponnesian War. Only the 27 years of the <a href="http://en.wikipedia.org/wiki/Peloponnesian_War">Peloponnesian War</a> seem to be under represented in coverage (from my previous knowledge of history). Despite 4 lectures being dedicated to it in the syllabus, most of these are taken by finishing prior topics and the buildup to the war. For the war itself, Professor Kagan suggests looking to other sources as it it too much to cover properly, and instead talks in detail about two related topics - <a href="http://en.wikipedia.org/wiki/Pericles">Pericles'</a> strategy and <a href="http://en.wikipedia.org/wiki/Thucydides">Thucydides'</a> history.</p>

<p>One thing I can't fault is the production. The podcasts are professional from start to finish. The only blemish is Professor Kagan's occasional coughing, but this is a minor issue. The podcasts are available in a number of formats on the course website: audio-only (the same mp3s that are on iTunes); video, in both high (around 700 MB) &amp; medium (around 250 MB) bandwith forms; and, complete text transcripts. The website also includes the notes handed out with each lecture, although these unfortunately are without the original images due to copyright problems. The website itself is downloadable too (albeit with only links to the audio and video files). While videos of the lectures are available, it is not really necessary to download them as they mainly just show Kagan talking at his podium. Rarely does he use any visual aid during the lectures. Thus these are excellent podcasts to listen to audio-only - very little will be missed.</p>

<p>The lectures are often a recitation of events together with discussion of how and why things may have occurred that way (for instance a section on various military strategies and whether they were correct). The aim appears to be getting the listener into the mindset of the ancient Greek statesmen (and thus the citystates in general). A goal largely achieved to my mind. There is less discourse on daily life (but still some). Professor Kagan also talks a little about historical controversies and often compares ancient events to modern history (in particular around the use of military force). In both situations he tends to declare his own prejudices so the listener is not led too much.</p>

<p>This is a highly recommended lecture series - interesting content that goes into the subject with some depth and so well produced it is surprisingly easy listening.</p>]]></description>
            <link>http://www.cordinc.com/blog/2009/12/clcv-205-introduction-to-ancie.html</link>
            <guid>http://www.cordinc.com/blog/2009/12/clcv-205-introduction-to-ancie.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">History</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">Podcasts</category>
            
            <pubDate>Wed, 02 Dec 2009 20:26:13 +0000</pubDate>
        </item>
        
    </channel>
</rss>
