<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lynxworks &#187; Computing</title>
	<atom:link href="http://blog.lynxworks.eu/category/computing/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lynxworks.eu</link>
	<description>I don&#039;t think there are any dragons here</description>
	<lastBuildDate>Sat, 31 Mar 2012 12:42:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Tomighty</title>
		<link>http://blog.lynxworks.eu/2012/02/tomighty/</link>
		<comments>http://blog.lynxworks.eu/2012/02/tomighty/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 14:54:18 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Open University]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Study]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=2173</guid>
		<description><![CDATA[If you&#8217;re a fan of the Pomodoro technique &#8211; there&#8217;s a fantastic little timer applet for the notification area called Tomighty.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re a fan of the <a href="http://www.pomodorotechnique.com/">Pomodoro</a> technique &#8211; there&#8217;s a fantastic little timer applet for the notification area called <a href="http://www.tomighty.org">Tomighty</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2012/02/tomighty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forget everything you knew about coding (or perhaps remember, depending on your age)</title>
		<link>http://blog.lynxworks.eu/2011/12/forget-everything-you-knew-about-coding-or-perhaps-remember-depending-on-your-age/</link>
		<comments>http://blog.lynxworks.eu/2011/12/forget-everything-you-knew-about-coding-or-perhaps-remember-depending-on-your-age/#comments</comments>
		<pubDate>Sun, 25 Dec 2011 20:34:06 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[COBOL]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Project Euler]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=2037</guid>
		<description><![CDATA[This Christmas I&#8217;m going to embrace the past. COmmon Business Oriented Language (COBOL) 85 standard was the first language I was taught. Napier University was a feeder into the banking and insurance industries in Edinburgh at the time and they &#8230; <a href="http://blog.lynxworks.eu/2011/12/forget-everything-you-knew-about-coding-or-perhaps-remember-depending-on-your-age/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This Christmas I&#8217;m going to embrace the past.</p>
<p>COmmon Business Oriented Language (COBOL) 85 standard was the first language I was taught. Napier University was a feeder into the banking and insurance industries in Edinburgh at the time and they had sizeable COBOL farms. It proved profitable too, as a number of students I knew went to the US to alleviate Y2K bugs in thousands of legacy applications. COBOL had fallen out of favour in US colleges.</p>
<p><span id="more-2037"></span>I was talking to someone the other day who mentioned that he maintains COBOL legacy applications. Apparently things have gone full circle for the UK, where COBOL is no longer taught so his company outsources to India. I&#8217;m not overly surprised COBOL is dying out as an educational tool because as languages go its not like much else &#8211; Dijkstra certainly didn&#8217;t <a href="http://www.cs.utexas.edu/users/EWD/transcriptions/EWD04xx/EWD498.html">rate it</a>:</p>
<blockquote><p>The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offence.</p></blockquote>
<p>Who am I to argue with the man who <a href="http://www.cs.utexas.edu/users/EWD/transcriptions/EWD02xx/EWD215.html">killed the</a> <em>goto</em> statement? Certainly as a language it has issues &#8211; the 86 standard wasn&#8217;t totally compatible with the previous 74 standard; it has no functions; and it has no pointers. Then again it was in part based around the work of <a href="http://en.wikipedia.org/wiki/Grace_Hopper">Rear Admiral Grace Hopper</a>, the coolest woman ever in computer science, so it couldn&#8217;t be all bad could it? She believed that programming languages in mathematical notation were generally not well understood &#8211; COBOL is about as self documenting as it gets. It is a product of its time &#8211; for example the first six columns are reserved for sequence numbers, this came about as forms were used to write programs which were in turn converted to punch cards.</p>
<p>An example is the best way to explain this, so I decided to <a title="Find the sum of all the multiples of 3 or 5 below 1000" href="http://blog.lynxworks.eu/2011/06/find-the-sum-of-all-the-multiples-of-3-or-5-below-1000/">revisit</a> Project Euler&#8217;s first problem and code it in COBOL, something I haven&#8217;t touched in <em>years</em>. As Rear Admiral Grace Hopper said:</p>
<blockquote><p>It&#8217;s easier to ask for forgiveness than it is to get permission.</p></blockquote>
<p>Of course we need a compiler, Ubuntu has <a href="http://www.opencobol.org/">Open COBOL</a> available:</p>
<pre class="brush: bash; gutter: true">sudo apt-get install open-cobol</pre>
<p>Lets consider the problem again:</p>
<blockquote><p>If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.</p>
<p>Find the sum of all the multiples of 3 or 5 below 1000.</p></blockquote>
<p>My solution is to iterate through every number from 1 to 1000, test if it divides by 3 or 5 without a remainder and if so then add it to a counter. In pseudocode:</p>
<pre class="brush: text; gutter: true">For counter = 1 to 1000 Step 1
    If counter % 3 = 0 or number % 5 = 0 Then
        total = total + counter
    End If
End For
Display total</pre>
<p>But wait &#8211; this is COBOL, a language that doesn&#8217;t include the word &#8220;terse&#8221;. So let&#8217;s adapt this to a more verbose piece of pseudocode:</p>
<pre class="brush: text; gutter: true">For counter = 1 To 1000
    If counter % 3 = 0 Then
        Set flag To TRUE
    End If
    If counter % 5 = 0 Then
        Set flag To TRUE
    End If
    If flag = TRUE Then
        total = total + counter
        Set flag To FALSE
    End If
    Display total
End For</pre>
<p>Right, here we go. Its been a <em>long time</em>.  COBOL is organised into divisions, sections, paragraphs, sentences and statements &#8211; all are terminated by a period. There are four divisions:</p>
<ul>
<li>Identification. Unsurprisingly contains information about the program.</li>
<li>Environment. This isn&#8217;t initially obvious but is concerned with portability &#8211; this section allows you to isolate anything that is platform specific. So in theory only the environment division needs changing between platforms.</li>
<li>Data. This holds all the variables and has four sections &#8211; file (file handling); linkage (used with sub-routines); report (for report writers); and the one you almost always need, working-storage (where all your working variables are).</li>
<li>Procedure. Guess what? Yes this is where the program itself is.</li>
</ul>
<div><span style="font-size: small;"><span style="line-height: 24px;">Let&#8217;s start with the beginning:</span></span></div>
<pre class="brush: text; gutter: true">        IDENTIFICATION DIVISION.
        PROGRAM-ID. EULER_PROBLEM_ONE.</pre>
<p>Not much explanation required there then. We don&#8217;t need an environment division, it doesn&#8217;t hurt to populate the division name anyway.</p>
<p>The next division requires a little more explanation. We need a working-storage section but COBOL defines variables using level, name, picture clause and optionally a value.</p>
<p>Picture clauses define a variable&#8217;s format. Levels allow data to be grouped, for example if you defined a student as having an ID and a name you might have:</p>
<pre class="brush: text; gutter: true">01 student.
    02 identifier          PIC A9(7).
    02 name                PIC A(30).</pre>
<p>Level numbers are for the most part arbitrary as long as the lower the number the higher the level, with the exception of 66 (deprecated), 77 (individual elements) and 88 (used to define conditions). Picture clauses can use: 9 (digit); A (letter); X (digit or letter); V (decimal point); S (sign). You can use A(30) rather than typing loads of A&#8217;s.</p>
<p>That just leaves us a procedure division. If you have ever coded assembler then you&#8217;ll probably find this easier than if you&#8217;ve used C. You need to describe every step. The main iteration construct we need from our pseudocode is a For Loop. COBOL has a PERFORM statement, you need to increment your counter yourself:</p>
<pre class="brush: text; gutter: true">PERFORM UNTIL counter = 3
    ADD 1 TO counter GIVING counter
END-PERFORM.</pre>
<p>A general convention is to use upper-case for reserved words and lower-case for variables. Pretty much all operations follow this command&#8217;s format &#8211; do something (ADD 1) to something (counter) and store it somewhere (counter).</p>
<pre class="brush: text; gutter: true">IF condition1 &gt; condition2 THEN
   STATEMENT
ELSE
   STATEMENT
END-IF.</pre>
<p>You can nest if statements (there&#8217;s no Else If statement). Its not uncommon to find a lot of legacy code that only uses IF statements, why I don&#8217;t know because it has a Case statement called EVALUATE.</p>
<p>That just leaves us assignment:</p>
<pre class="brush: text; gutter: true">MOVE value TO variable</pre>
<p>Putting it all together, you need variables to Hold temporary values used to calculate answers, I always call it <em>junk</em>:</p>
<pre class="brush: text; gutter: true">        IDENTIFICATION DIVISION.
        PROGRAM-ID. EULER_PROBLEM_ONE.

        ENVIRONMENT DIVISION.

        DATA DIVISION.
        WORKING-STORAGE SECTION.
        01 total        PIC 999999     VALUE 0.
        01 counter      PIC 9999       VALUE 1.
        01 junk         PIC 999999     VALUE 0.
        01 flag         PIC 9          VALUE 0.

        PROCEDURE DIVISION.
        PERFORM UNTIL counter = 1000
             COMPUTE junk = FUNCTION MOD (counter, 3)
             IF junk = 0 THEN
                 MOVE 1 TO flag
             END-IF
             COMPUTE junk = FUNCTION MOD (counter, 5)
             IF junk = 0 THEN
                MOVE 1 TO flag
             END-IF
             IF flag = 1 THEN
                ADD counter TO total GIVING total
                MOVE 0 TO flag
             END-IF
             ADD 1 TO counter GIVING counter
        END-PERFORM.
        DISPLAY total.
        STOP RUN.</pre>
<p>Remember that indentation is important (despite the code formatting here not wanting to do it) &#8211; areas A and B take the first 6 characters so you need to begin in column 7.</p>
<p>Save the file as euler.cob, compile and run it:</p>
<pre class="brush: bash; gutter: true">cobc -x euler.cob
./euler</pre>
<p>Giving the correct answer of 233168, albeit without any frills.</p>
<div id="attachment_2059" class="wp-caption alignnone" style="width: 291px"><a href="http://blog.lynxworks.eu/wp-content/uploads/2011/12/Capture.png"><img class="size-full wp-image-2059" title="Hold on to your hats..." src="http://blog.lynxworks.eu/wp-content/uploads/2011/12/Capture.png" alt="Output" width="281" height="106" /></a><p class="wp-caption-text">Hold on to your hats...</p></div>
<p>It took me a while to get this to compile &#8211; <a href="http://www.opencobol.org/">Open COBOL</a> doesn&#8217;t care for the AUTHOR statement in the IDENTIFICATION DIVISION so I removed it.</p>
<p>What this snippet of code doesn&#8217;t show us is that larger projects are unbelievably verbose, lines and lines of code. Nor does it cover the hilarity of design using <a href="http://en.wikipedia.org/wiki/Data_flow_diagram">Data Flow Diagrams</a> - queuing for hours to collect printouts from the University&#8217;s only <a href="http://en.wikipedia.org/wiki/Dot_matrix_printer">132 column</a> printer.</p>
<p>Well that&#8217;s been a fun trip down memory lane, I don&#8217;t remember why I started this post.</p>
<p>Now get off my lawn.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2011/12/forget-everything-you-knew-about-coding-or-perhaps-remember-depending-on-your-age/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Largest product of five consecutive numbers in a 1000 digit number</title>
		<link>http://blog.lynxworks.eu/2011/12/largest-product-of-five-consecutive-numbers-in-a-1000-digit-number/</link>
		<comments>http://blog.lynxworks.eu/2011/12/largest-product-of-five-consecutive-numbers-in-a-1000-digit-number/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 20:53:18 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Project Euler]]></category>
		<category><![CDATA[VB.Net]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=2029</guid>
		<description><![CDATA[Haven&#8217;t done much Project Euler recently &#8211; I&#8217;ve been busy studying. So here is an answer to problem eight which asks: Find the greatest product of five consecutive digits in the 1000-digit number. It then gives a massive number. My &#8230; <a href="http://blog.lynxworks.eu/2011/12/largest-product-of-five-consecutive-numbers-in-a-1000-digit-number/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Haven&#8217;t done much Project Euler recently &#8211; I&#8217;ve been busy studying. So here is an answer to <a href="http://projecteuler.net/problem=8">problem eight</a> which asks:</p>
<blockquote><p>Find the greatest product of five consecutive digits in the 1000-digit number.</p></blockquote>
<p><span id="more-2029"></span>It then gives a massive number.</p>
<p>My solution is very quick and dirty and makes use of VB.Net&#8217;s happiness with jumping between characters, strings and integers. The Val() function treats a character as a value and to make matters easier still, VB Strings can access characters by position. Knowing this, I just iterated through the string multiplying every five consecutive numbers together.</p>
<pre class="brush: actionscript3; gutter: true">Sub Main()
    Dim beganAt As Date = Now

    Dim hugeNumber As String = _
    &quot;73167176531330624919225119674426574742355349194934&quot; _
    &amp; &quot;96983520312774506326239578318016984801869478851843&quot; _
    &amp; &quot;85861560789112949495459501737958331952853208805511&quot; _
    &amp; &quot;12540698747158523863050715693290963295227443043557&quot; _
    &amp; &quot;66896648950445244523161731856403098711121722383113&quot; _
    &amp; &quot;62229893423380308135336276614282806444486645238749&quot; _
    &amp; &quot;30358907296290491560440772390713810515859307960866&quot; _
    &amp; &quot;70172427121883998797908792274921901699720888093776&quot; _
    &amp; &quot;65727333001053367881220235421809751254540594752243&quot; _
    &amp; &quot;52584907711670556013604839586446706324415722155397&quot; _
    &amp; &quot;53697817977846174064955149290862569321978468622482&quot; _
    &amp; &quot;83972241375657056057490261407972968652414535100474&quot; _
    &amp; &quot;82166370484403199890008895243450658541227588666881&quot; _
    &amp; &quot;16427171479924442928230863465674813919123162824586&quot; _
    &amp; &quot;17866458359124566529476545682848912883142607690042&quot; _
    &amp; &quot;24219022671055626321111109370544217506941658960408&quot; _
    &amp; &quot;07198403850962455444362981230987879927244284909188&quot; _
    &amp; &quot;84580156166097919133875499200524063689912560717606&quot; _
    &amp; &quot;05886116467109405077541002256983155200055935729725&quot; _
    &amp; &quot;71636269561882670428252483600823257530420752963450&quot;

    Dim endAt As Global.System.TimeSpan = Now.Subtract(beganAt)
    Dim took As Integer = endAt.Milliseconds

    Dim answer As Integer
    Dim biggestAnswer As Integer = 0

    For index As Integer = 0 To hugeNumber.Length - 5
        answer = Val(hugeNumber(index)) _
                 * Val(hugeNumber(index + 1)) _
                 * Val(hugeNumber(index + 2)) _
                 * Val(hugeNumber(index + 3)) _
                 * Val(hugeNumber(index + 4))
            If answer &gt; biggestAnswer Then
                biggestAnswer = answer
            End If
        Next

    Console.WriteLine(biggestAnswer.ToString + &quot; in &quot; + took.ToString + &quot;ms.&quot;)
    Console.ReadKey()
End Sub</pre>
<p>40,824 in 1 ms.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2011/12/largest-product-of-five-consecutive-numbers-in-a-1000-digit-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MT254 TMA 01</title>
		<link>http://blog.lynxworks.eu/2011/11/mt254-tma-01/</link>
		<comments>http://blog.lynxworks.eu/2011/11/mt254-tma-01/#comments</comments>
		<pubDate>Sun, 27 Nov 2011 20:32:21 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Open University]]></category>
		<category><![CDATA[MT264]]></category>
		<category><![CDATA[TU100]]></category>
		<category><![CDATA[VB.Net]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=2013</guid>
		<description><![CDATA[First TMA on MT264 (Designing applications with Visual Basic) got returned today &#8211; 96%. I&#8217;m very pleased with that and exceptionally lucky given that I read the material in a week, attended one on-line tutorial and wrote the assessment in a couple of days. I&#8217;ve &#8230; <a href="http://blog.lynxworks.eu/2011/11/mt254-tma-01/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>First TMA on MT264 (<a href="http://www3.open.ac.uk/study/undergraduate/course/mt264.htm">Designing applications with Visual Basic</a>) got returned today &#8211; 96%. I&#8217;m very pleased with that and exceptionally lucky given that I read the material in a week, attended one on-line tutorial and wrote the assessment in a couple of days.</p>
<p>I&#8217;ve seen complaints on the module forum that tutors aren&#8217;t getting assessments back to quickly enough. The cut off was the 15th (I submitted on the 13th) and it was returned on the 27th, I don&#8217;t really see what the problem is.</p>
<p>Nested selection reared its head again but I didn&#8217;t lose any marks for it. In every programming module I&#8217;ve been picked up for using <em>Else If</em> so I played it safe and used nested<em> If</em> statements. So I was advised to use <em>Else If</em> proving I can&#8217;t win!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2011/11/mt254-tma-01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developing a developer</title>
		<link>http://blog.lynxworks.eu/2011/11/developing-a-developer/</link>
		<comments>http://blog.lynxworks.eu/2011/11/developing-a-developer/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 10:29:25 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Open University]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Volunteering]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=2006</guid>
		<description><![CDATA[Still some way to completing my degree part-time (at the end of this academic year I&#8217;m half way). I&#8217;m not soliciting my services &#8211; just looking for advice from the community and if anyone has a few minutes it&#8217;d be &#8230; <a href="http://blog.lynxworks.eu/2011/11/developing-a-developer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Still some way to completing my degree part-time (at the end of this academic year I&#8217;m half way). I&#8217;m not soliciting my services &#8211; just looking for advice from the community and if anyone has a few minutes it&#8217;d be very much appreciated.</p>
<p>I enjoy mathematics and programming, my degree modules have revolved around the two, covering Java and VB.Net (its a very Windows centric place the Open University but it&#8217;s getting better). I&#8217;m in the UK and would like to go back to Edinburgh for family reasons when I leave the services in a couple of years time. Looking at the job boards, there&#8217;s a lot of Java contracts in the area.</p>
<p>Has anyone got a job with <em>only</em> open source experience? Does anyone know of any open source projects that are Java based and would be a good starting point to build on the fundamentals? Are there other qualifications or courses that you recommend? What are employers looking for? Does anyone work in a specific field that utilises both maths and programming? Is there a language that is in particular demand or do you find that good experience is more value? What&#8217;s a realistic starting salary?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2011/11/developing-a-developer/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Assumption</title>
		<link>http://blog.lynxworks.eu/2011/11/assumption/</link>
		<comments>http://blog.lynxworks.eu/2011/11/assumption/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 14:46:30 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=1989</guid>
		<description><![CDATA[Someone asked me yesterday &#8220;You&#8217;re good with computers, can you give me a copy of Photoshop?&#8220;. Aside from the fact I run Linux on most of my computers, I&#8217;m not keen on being accused of software piracy on the basis that &#8230; <a href="http://blog.lynxworks.eu/2011/11/assumption/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Someone asked me yesterday &#8220;<em>You&#8217;re good with computers, can you give me a copy of Photoshop?</em>&#8220;. Aside from the fact I run Linux on most of my computers, I&#8217;m not keen on being accused of software piracy on the basis that I&#8217;m &#8220;good with computers&#8221; or any other reason. I made the mistake of asking why he needed it, he wanted to resize some pictures &#8211; so I suggested Paint.net.</p>
<p>His answer? <em>&#8220;Oh no that&#8217;s free, it&#8217;s bound to be rubbish.&#8221;</em></p>
<p>Strange, I thought he wanted Photoshop <em>free</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2011/11/assumption/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Samsung NP-RV511-S02UK</title>
		<link>http://blog.lynxworks.eu/2011/10/samsung-np-rv511-s02uk/</link>
		<comments>http://blog.lynxworks.eu/2011/10/samsung-np-rv511-s02uk/#comments</comments>
		<pubDate>Sun, 16 Oct 2011 20:04:08 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Open University]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Fix]]></category>
		<category><![CDATA[Mathematics]]></category>
		<category><![CDATA[MS221]]></category>
		<category><![CDATA[MT264]]></category>
		<category><![CDATA[Netbook]]></category>
		<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=1949</guid>
		<description><![CDATA[I bought a new laptop the other week, a Samsung NP-RV511-S02UK. I have been using a Samsung NC10 dual booting Ubuntu and XP. An NC10 is a wondrous thing but when push comes to shove, a 1280&#215;600 resolution is too small for Visual &#8230; <a href="http://blog.lynxworks.eu/2011/10/samsung-np-rv511-s02uk/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I bought a new laptop the other week, a Samsung NP-RV511-S02UK. I have been using a Samsung NC10 dual booting Ubuntu and XP. An NC10 is a wondrous thing but when push comes to shove, a 1280&#215;600 resolution is too small for Visual Studio work &#8211; especially when you want to see a PDF at the same time.</p>
<p><span id="more-1949"></span>I&#8217;m keeping the net book &#8211; I just replaced the battery on it. I forgot how much care Lithium Ion batteries require. After two journeys to the desert in two years I&#8217;ve watched the average life go from around 5 hours under normal use to 1 hour 50 minutes. Last week I noticed it was hitting 50% then telling me I had 8% and needed to charge &#8211; so I figured a cell was bad and ordered a new battery (a very reasonable £40 for an after market model). Now I&#8217;m relieved to see everything is back up at 5 hours.</p>
<p>I&#8217;ve had a couple of days to play with it and get it set up (I&#8217;m away on a course next week). First impressions are excellent.</p>
<p>Windows 7 Home Premium comes with Windows Media Centre, which is useful because the TV tuner software that came with my aged Freecom DVB-T is looking rather dated. Windows 7 didn&#8217;t recognise the device but luckily I have a copy of Freecom&#8217;s BDA driver (which has <a href="http://blog.lynxworks.eu/wp-content/uploads/2011/10/32bit-Driver.zip">32</a> and <a href="http://blog.lynxworks.eu/wp-content/uploads/2011/10/64bit-Driver.zip">64</a> bit drivers). I had to go into Device Manager and manually update the drivers.</p>
<p>Running the Windows Experience rating gave me a 4.9. Then I realised that I had no idea what that meant &#8211; apparently the <a href="http://windows.microsoft.com/en-US/windows7/What-is-the-Windows-Experience-Index">index score</a> is based on the lowest score of 5 components rated from 1 to 7.9. I would have expected &#8220;Gaming graphics&#8221; to have been the bottleneck but actually at 5.9 its not bad &#8211; I play a few titles on Steam and ran Bioshock at maximum resolution (1366 x 768) with no problems. The only game I&#8217;ve got (which isn&#8217;t many) that I have issues with is GTA IV but I have a feeling that&#8217;s something to do with DRM or Windows Live for Games.</p>
<p><a href="http://blog.lynxworks.eu/wp-content/uploads/2011/10/WindowsExperienceIndex.png"><img title="WindowsExperienceIndex" src="http://blog.lynxworks.eu/wp-content/uploads/2011/10/WindowsExperienceIndex.png" alt="" width="489" height="155" /></a></p>
<p>The HDMI port is very useful, no problems with an HDCP connection between the laptop and my Panasonic TV. Lovefilm and Sky Go on a big screen are much better &#8211; my wife isn&#8217;t keen on crowding around a laptop screen.</p>
<p>Battery life is pretty good for this specification of laptop, I&#8217;m writing this using the &#8220;Balanced&#8221; setting, with a couple of applications open and downloading a big file over WiFi with the Bluetooth on &#8211; it&#8217;s at 81% and reading 3 hours 47 minutes.</p>
<p>Updates were a pain, three needed before the touch pad did multi-touch. About 1 Gb all told, with a service packs for Windows 7. That&#8217;s where the fun started because the Windows 7 SP failed repeatedly so I downloaded the <a href="http://support.microsoft.com/kb/947821">system update readiness tool</a> - take notice of this advice from Microsoft:</p>
<blockquote><p>Although the progress bar may appear to stop, the scan is still running and you should not cancel the update.</p></blockquote>
<p>It certainly appeared to stop. However it did complete and didn&#8217;t solve the problem. In the end I downloaded SP1 from Microsoft&#8217;s Windows 7 Download Centre (903 MB) and that did install. There&#8217;s a lot of forum posts on the Internet about this sort of problem with SP1 and with all the bits and bobs that are installed by Samsung for power management, updates, display and wireless it comes as no big surprise that there are issues with large updates.</p>
<p>Really pretty pleased with this laptop.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2011/10/samsung-np-rv511-s02uk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Repair Samsung NC10 MBR</title>
		<link>http://blog.lynxworks.eu/2011/10/repair-samsung-nc10-mbr/</link>
		<comments>http://blog.lynxworks.eu/2011/10/repair-samsung-nc10-mbr/#comments</comments>
		<pubDate>Sun, 16 Oct 2011 11:07:35 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Fix]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[MBR]]></category>
		<category><![CDATA[NC10]]></category>
		<category><![CDATA[Recovery]]></category>
		<category><![CDATA[Samsung]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=1966</guid>
		<description><![CDATA[Repair the Samsung NC10's MBR - returning the F4 recovery option. <a href="http://blog.lynxworks.eu/2011/10/repair-samsung-nc10-mbr/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I removed Ubuntu from a Samsung NC10 yesterday, now the F4 recovery option doesn&#8217;t work. Please excuse the lack of screen shots on this Howto but I couldn&#8217;t think how to capture from the recovery manager and camera shots look rubbish.</p>
<p>It would appear that Samsung uses a custom Master Boot Record (MBR) &#8211; so for Grub all is well because you can choose to boot into the recovery partition and away you go. However if you have followed any of the usual guides to removing grub (such as running an XP CD to a recovery console and typing fixmbr) F4 will not launch the restore tool.</p>
<p><a href="http://www.sysresccd.org/Main_Page">System Rescue CD</a> is a great tool to have handy on a USB key. You can, so booting into it run this command:</p>
<pre class="brush: bash; gutter: true">fdisk /dev/sda</pre>
<p>Now pressing &#8220;p&#8221; should show you that the recovery partition is 1, so type &#8220;a&#8221; then &#8220;2&#8243;, &#8220;a&#8221; then &#8220;1&#8243; to make it bootable. Now write the partition table by typing &#8220;w&#8221; then reboot. At this point you will boot into the recovery manager and be able to recover but the F4 key will not still not be available at boot and of course trying to create a backup will not work either (as Windows will be booted on restart).</p>
<p>Once Samsung Recovery Manager III has loaded up, press Ctrl+Alt+F10 &#8211; I had no idea there was a management mode until I read this <a href="http://www.sammynetbook.com/forum/threads/11440-Recovery-Partition-rebuild-with-F4-key-enable">page</a> (French) but be aware its only available from the recovery partition. It asks for a password &#8211; &#8220;secos&#8221; (without the quotes). Once in management mode, click the &#8220;Image&#8221; tab and select &#8220;Export&#8221; then &#8220;Select Location&#8221;, I used &#8220;D:\&#8221;. Click &#8220;Start&#8221; and accept the dialogue box that comes up. This is a backup of the recovery partition.</p>
<p>Once this stage is finished, select the &#8220;Tools&#8221; tab, insert a spare USB stick and click &#8220;Admin Tool USB&#8221;. It will format the USB stick and then install some utilities. It takes a couple of minutes. Once finished click the close button in the top right and it&#8217;ll ask if the computer should be turned off &#8211; say yes.</p>
<p>Boot with the USB key we just made, bringing you to a completely different recovery menu. Click &#8220;MBR Fix&#8221; and then close the application.</p>
<p>Now when you reboot you&#8217;ll notice that the MBR has been repaired and F4 once again boots into Recovery Manager III.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2011/10/repair-samsung-nc10-mbr/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Compaq CQ10 failed BIOS update</title>
		<link>http://blog.lynxworks.eu/2011/10/compaq-cq10-failed-bios-update/</link>
		<comments>http://blog.lynxworks.eu/2011/10/compaq-cq10-failed-bios-update/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 21:46:24 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Compaq]]></category>
		<category><![CDATA[Fix]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[HP]]></category>
		<category><![CDATA[Netbook]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=1961</guid>
		<description><![CDATA[A friend brought me a Compaq CQ10 over earlier. It seems it lost power during a Softpaq BIOS update. Initially the screen was booting to the HP BIOS recovery screen, attempting to rewrite and failing around 10%. I tried a &#8230; <a href="http://blog.lynxworks.eu/2011/10/compaq-cq10-failed-bios-update/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A friend brought me a Compaq CQ10 over earlier. It seems it lost power during a Softpaq BIOS update. Initially the screen was booting to the HP BIOS recovery screen, attempting to rewrite and failing around 10%. I tried a few things and nothing worked, until the owner mentioned they&#8217;d upgraded the RAM.</p>
<p>Sure enough, it was a different size and type to the original specification so I refitted a 1 Gb 666MHz stick I had lying around from a previous upgrade and rebooted.</p>
<p>This time we re-flashed, verified and rebooted. Then it kept repeating this cycle so I took off the back panel (use the orange latch visible when the battery is removed) and removed the CMOS battery. After a short pause (30 seconds or so) I put it back and rebooted. This time there was an error message about the CMOS settings (unsurprisingly) and it rebooted.</p>
<p>However this time we got the Compaq BIOS boot screen, so I hit the escape key to enter BIOS. Then hit F9 to load default values, accept it and hit F10 to save values and hey presto the system is back up and running.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2011/10/compaq-cq10-failed-bios-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open access to data</title>
		<link>http://blog.lynxworks.eu/2011/09/open_data/</link>
		<comments>http://blog.lynxworks.eu/2011/09/open_data/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 19:28:13 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Open University]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=1916</guid>
		<description><![CDATA[During T175 there was a section on &#8220;eGovernment&#8221; &#8211; block 4 part 3. Section 2 discussed modernising government and suggested that two essential aspects of electronic government should be: Making most, or even all, of the government’s services available online. Bringing &#8230; <a href="http://blog.lynxworks.eu/2011/09/open_data/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>During T175 there was a section on &#8220;eGovernment&#8221; &#8211; block 4 part 3. Section 2 discussed modernising government and suggested that two essential aspects of electronic government should be:</p>
<blockquote><p>Making most, or even all, of the government’s services available online.</p></blockquote>
<blockquote><p>Bringing online services together, so that the user does not have to go to different departmental websites for different services.</p></blockquote>
<p>The text also remarked there are a multitude of formats and making tools to mine this data is complicated.</p>
<p>Hand Rosling has a <a href="http://www.ted.com/talks/hans_rosling_shows_the_best_stats_you_ve_ever_seen.html">talk on TED</a> about a dedicated tool to mine such publicly funded data &#8211; <a href="http://www.gapminder.org/desktop/">Gapminder</a>. The software is free to download and the site even offers handouts, lecture plans and interactive presentations. It&#8217;s a fascinating talk, highlighting the possibilities of presenting data in new and more accessible ways.</p>
<p><strong>Edit:</strong> Here&#8217;s <a href="http://www.ted.com/talks/tim_berners_lee_the_year_open_data_went_worldwide.html">Tim Berners Lee</a> discussing open data availability a year after requesting it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2011/09/open_data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

