<?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>James McMinn &#187; University</title>
	<atom:link href="http://jamesmcminn.com/category/university/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamesmcminn.com</link>
	<description>My little piece of the web</description>
	<lastBuildDate>Tue, 18 May 2010 19:13:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>An introduction to Binary</title>
		<link>http://jamesmcminn.com/2010/01/25/an-introduction-to-binary/</link>
		<comments>http://jamesmcminn.com/2010/01/25/an-introduction-to-binary/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 23:00:38 +0000</pubDate>
		<dc:creator>James McMinn</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[University]]></category>

		<guid isPermaLink="false">http://jamesmcminn.com/?p=263</guid>
		<description><![CDATA[The Binary, or base-2 number system,  is represented by the symbols 1 and 0. It&#8217;s used in most digital electronic circuits and all desktop computers in the world. Because of this, a basic understanding of binary is extremely important to a computer scientist.
Why Binary and not Decimal?
Everyone&#8217;s familiar with Decimal. It&#8217;s the number system we [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-336" src="http://jamesmcminn.com/wp-content/uploads/2010/01/binary21.png" alt="Some blurry binary" width="250" height="200" />The Binary, or base-2 number system,  is represented by the symbols 1 and 0. It&#8217;s used in most digital electronic circuits and all desktop computers in the world. Because of this, a basic understanding of binary is extremely important to a computer scientist.</p>
<h2>Why Binary and not Decimal?</h2>
<p>Everyone&#8217;s familiar with Decimal. It&#8217;s the number system we all use every day &#8211; and for good reason &#8211; we have 10 fingers and 10 toes. For a humans it just makes sense.</p>
<p><span id="more-263"></span>When working with electronics however, 10 different states isn&#8217;t easy to represent, especially when working with low voltages. Noise is  huge problem, as is deciding which voltage represents each state. Try to implement a digital circuit which uses more than 2 states and you&#8217;ll get yourself into a whole lot of bother. Binary is perfect for digital circuits, very low voltages correspond to 0 and high voltages 1.</p>
<p><a href="http://jamesmcminn.com/wp-content/uploads/2010/01/binary11.png"><img class="aligncenter size-full wp-image-325" title="binary1" src="http://jamesmcminn.com/wp-content/uploads/2010/01/binary11.png" alt="" width="585" height="333" /></a>In this graph, anything above the top dotted line represents a 1 and everything below the bottom line represents a 0.</p>
<p>The use of binary makes circuits and hardware much more stable and less prone to noise. It makes them simpler too, without the use of binary, digital circuits would be nowhere near as advanced as they are today.</p>
<p>We can use very simple building blocks with simple rules to take billions of  transistors and create insanely powerful hardware that&#8217;s fast, stable and cheap.</p>
<h2>How do I convert from Decimal to Binary?</h2>
<p>So lets recap. Binary is a base-2 number system, that means it only has 2 symbols, 1 and 0, to represent every number. This sounds insane but its actually very simple and doing maths with it is similar and can be done in the same way you were first taught how to add and subtract decimal numbers when you were young.</p>
<p>Let&#8217;s start of by converting from a decimal number, such as 14, to binary. It&#8217;s actually fairly simple. Binary is read from right to left and every digit represent a power of 2. You&#8217;re probably familiar with the powers of 2, they&#8217;re very recognisable and crop up all the time in computers, the first few are 1, 2, 4, 8, 16, 32, 64 and 128.</p>
<p>There are a number of ways to convert from decimal to binary, some are faster than others but they all work. We&#8217;ll start with the simplest one first. It involves dividing the number by 2 and taking the remainder as the binary digit. Every time we divide by 2 we are increasing the power of 2. This method is best given as an example:</p>
<pre class="brush: plain;">
MATHS                           BINARY NUMBER SO FAR
14 ÷ 2 = 7 remainder 0          0
 7 ÷ 2 = 3 remainder 1          10
 3 ÷ 2 = 1 remainder 1          110
 1 ÷ 2 = 0 remainder 1          1110
</pre>
<p>So starting with 14 and dividing by 2 we get 7 with 0 remaining. It the remainder that is important here as it&#8217;s our binary digit. Note it down and repeat the steps again with 7. This time we have a remainder of 1. This is our second binary digit and it goes to the left of the 0 giving us 10. Remember, when using binary we read and write from right to left. Doing the same again with 3 gives us another 1 (110) and finally repeating the process again gives us 1 which means that 14 in binary is 1110.</p>
<h2>Converting from Binary to Decimal</h2>
<p>Converting from binary to decimal is very simple. My favorite method for doing so is to write out the binary number and above each digit write the powers of 2. I then sum all of the powers which have a 1 below them to get the decimal value.</p>
<pre class="brush: plain;">
Powers of 2:   16   8   4   2   1
Binary:         1   1   0   0   1
Decimal:       16 + 8 + 0 + 0 + 1 = 25
</pre>
<p>We can use this to check that the binary value we got for 14 earlier is correct.</p>
<pre class="brush: plain;">
Powers of 2:   8   4   2   1
Binary:        1   1   1   0
Decimal:       8 + 4 + 2 + 0 = 14
</pre>
<p>I&#8217;ve included a table with the decimal numbers from 0 to 31 and their binary counterparts below.</p>
<pre class="brush: plain;">
Binary    Decimal   |   Binary    Decimal
000000       0      |   010000      16
000001       1      |   010001      17
000010       2      |   010010      18
000011       3      |   010011      19
000100       4      |   010100      20
000101       5      |   010101      21
000110       6      |   010110      22
000111       7      |   010111      23
001000       8      |   011000      24
001001       9      |   011001      25
001010      10      |   011010      26
001011      11      |   011011      27
001100      12      |   011100      28
001101      13      |   011101      29
001110      14      |   011110      30
001111      15      |   011111      31
</pre>
]]></content:encoded>
			<wfw:commentRss>http://jamesmcminn.com/2010/01/25/an-introduction-to-binary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>1st Year at the University of Glasgow</title>
		<link>http://jamesmcminn.com/2009/08/27/1st-year-at-the-university-of-glasgow/</link>
		<comments>http://jamesmcminn.com/2009/08/27/1st-year-at-the-university-of-glasgow/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 15:31:50 +0000</pubDate>
		<dc:creator>James McMinn</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[University]]></category>
		<category><![CDATA[Glasgow]]></category>

		<guid isPermaLink="false">http://james.ohthebanter.com/?p=160</guid>
		<description><![CDATA[
I recently finished my first year at the University of Glasgow where I did Computer Science, Maths and Physics. I enjoyed it immensely and I cannot wait to go back in just over 3 weeks time (although I&#8217;ve still not decided exactly what courses I&#8217;ll be taking) when I&#8217;ll be doing Computer Science, Electric Engineering, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://james.ohthebanter.com/wp-content/uploads/2009/08/p-18559.jpg"><img class="size-full wp-image-197 alignright" title="The University of Glasgow" src="http://james.ohthebanter.com/wp-content/uploads/2009/08/p-18559.jpg" alt="The University of Glasgow" width="326" height="122" /></a><br />
I recently finished my first year at the <a href="http://gla.ac.uk" target="_blank">University of Glasgow</a> where I did Computer Science, Maths and Physics. I enjoyed it immensely and I cannot wait to go back in just over 3 weeks time <del datetime="2009-09-10T13:19:43+00:00">(although I&#8217;ve still not decided exactly what courses I&#8217;ll be taking)</del> when I&#8217;ll be doing Computer Science, Electric Engineering, C Programming under Linux and Exploring the Cosmos 1X.</p>
<p>This is an account of my thoughts about 1st year and will hopefully prove useful to anyone starting university soon.</p>
<p><span id="more-160"></span><br />
<h2>Living away from home</h2>
<p>University was exactly what I expected and hoped for. It gave me much more freedom, not just in terms of my eduction but my life too. Living away from home has been the biggest change and although I do miss my family, it&#8217;s been the most positive too.</p>
<p>I&#8217;m not talking about the ability to do whatever I want or stay out as late as I want &#8211; my parents have always been very trusting and relaxed when it came to what I did. Being forced to be independent and do things for myself made me a more organised person. It increased my confidence and made me even more determined to succeed.</p>
<h3>Student Halls</h3>
<p>If you&#8217;re living in Halls, or even just a student flat, you&#8217;ll become accustom to all of these:</p>
<ul>
<li>Alcohol</li>
<li>Drugs</li>
<li>Dirt</li>
<li>Noise</li>
</ul>
<p>You&#8217;ll meet lots of people you can&#8217;t stand too. I&#8217;m not a big drinker. I&#8217;ve never done drugs. I can&#8217;t sleep with lots of noise and I like things to be clean and tidy. For anyone like me student halls sounds like a nightmare, but you know what? <strong>I loved every minute of it!</strong></p>
<p>You&#8217;ll meet lots of people. Some of them you&#8217;ll hate. Others you&#8217;ll get on with and, if you&#8217;re lucky, you might even find someone you <em>love</em>. Drink, drugs, noise and dirt are all part of student life. Alcohol will be all around you almost every day. You don&#8217;t have to drink it if you don&#8217;t want to. I didn&#8217;t encounter anyone trying to sell me drugs, although there are obviously people who are on them.</p>
<p>Noise and dirt, on the other hand, are something you&#8217;ll just have to get used to. Most people will be living away from home for the first time and some of them won&#8217;t remember to shower every day or, in some cases, every week. Keeping the kitchen &amp; bathroom clean, washing clothes and changing the bed just proves too much for some people. Keep yourself clean and tidy and with a bit of luck the people around you will do the same. A little push in the right direction here and there &#8211; a comment about the pile of unwashed dishes at the sink or how messy the bathroom is <em>can</em> help but it doesn&#8217;t always work &#8211; they&#8217;ll quite possibly hate you because of it &#8211; but sometimes (and more often than not) they&#8217;ll apologise and clear up their mess.</p>
<h3>&#8220;Mum, what&#8217;s for dinner?&#8221;</h3>
<p>It&#8217;s a line that I got far too used to blurting out at home. For my first night in student halls, when my tummy started to rumble, I was left thinking: <em>&#8220;What the hell do I do now?&#8221;</em>. I could cook my own food easy enough &#8211; that wasn&#8217;t my problem. It was the daunting task of making myself 3 meals per day, every day and doing the dishes afterwards. On top of all that, I actually had to go out and buy the food and ingredients too!</p>
<p>Somehow I survived though.</p>
<p>Feeding yourself isn&#8217;t as difficult as you&#8217;d think and after a while you get used to it. Depending on how brave you are (and your budget) you might even start to investigate and try some more adventurous dishes than pasta or baked beans &#8211; the hardest part is usually just getting together the ingredients and equipment you need.</p>
<h2>Lectures, labs, workshops</h2>
<p>Lectures won&#8217;t teach you everything, in fact they won&#8217;t <em>teach</em> you very much at all. The real learning is done in preparing for, and during, labs and workshops  (I&#8217;m talking as a science and maths student here, other subject areas, such as English may be different).</p>
<p>I&#8217;m not saying that you shouldn&#8217;t go to lectures, they are still very important and you should attend them as often as possible. However, you wont fail the year because you missed one or two lectures. What they do provide you with is all the information you need to complete the labs, workshops and coursework. The notes you take in lectures are the basis of your learning. <strong>Don&#8217;t neglect lectures</strong>, you wont know what to do in labs, miss workshops and when exam time comes running along you&#8217;ll find yourself begging others for notes.</p>
<p>Labs are what taught me the most. Preparation for labs is important. Before a Computer Science lab I generally complete most of, if not all of, the set work for that lab. Why? Because labs are where you have most access to help. Work out problems before you go, find your weaknesses. You can ask as many question as you need and get help, not only from your tutor, but from the other people in your lab too.</p>
<p>Workshops are small tests done either at home or, for the majority, in class. They count for a percentage of your overall grade and are definatly work working for. Consider these as a chance to bump up your grade without too much work. They serve as great examples of the sort of thing you can expect in the actual exam.</p>
<h3>It&#8217;s lots of work</h3>
<p>Student life really is a lot of work. University is hard and if you want an easy ride then it&#8217;s not the place to be. You can do nothing all year, skip all your lectures, miss workshops and labs, get drunk every night of the week and sleep during the day &#8211; you&#8217;ll have the time of your life &#8211; but you&#8217;ll probably fail.</p>
<p>It&#8217;s <strong>ok to have fun</strong>, go out drinking and miss a few lectures here and there. All work and no play would make life <em>suck</em>. It&#8217;s not, however, a good idea to treat every week like its freshers week.</p>
<h3>Good luck</h3>
<p>That&#8217;s all I have to say. I loved first year and if you&#8217;re about to start University I hope you do to.</p>
<p>I hope to write up a review of 1st Year <a href="http://dcs.gla.ac.uk">Computer Science at Glasgow</a> soon and go into some detail about the course but for now I&#8217;m going to leave you with a picture of a really cute cat I found.</p>
<p><a href="http://james.ohthebanter.com/wp-content/uploads/2009/08/cejPy.gif"><img class="aligncenter size-full wp-image-210" title="Isn't it cute?" src="http://james.ohthebanter.com/wp-content/uploads/2009/08/cejPy.gif" alt="Isn't it cute?" width="324" height="242" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://jamesmcminn.com/2009/08/27/1st-year-at-the-university-of-glasgow/feed/</wfw:commentRss>
		<slash:comments>41</slash:comments>
		</item>
		<item>
		<title>Welcome to my new Blog!</title>
		<link>http://jamesmcminn.com/2009/08/07/welcome-to-my-new-blog/</link>
		<comments>http://jamesmcminn.com/2009/08/07/welcome-to-my-new-blog/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 12:31:33 +0000</pubDate>
		<dc:creator>James McMinn</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[University]]></category>

		<guid isPermaLink="false">http://james.ohthebanter.com/?p=3</guid>
		<description><![CDATA[I&#8217;ve been mulling over the idea of a blog covering Computer Science, the University of Glasgow and anything else I happen to find interesting for a while now.
As you can see, I decided to go ahead with it.
I&#8217;ll be posting about Project Euler when I find time and hope to write about my first year [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been mulling over the idea of a blog covering Computer Science, the University of Glasgow and anything else I happen to find interesting for a while now.</p>
<p>As you can see, I decided to go ahead with it.</p>
<p>I&#8217;ll be posting about <a title="Project Euler" href="http://projecteuler.net" target="_blank">Project Euler</a> when I find time and hope to write about my first year at <a href="http://gla.ac.uk" target="_blank">the University of Glasgow</a> (hint: I loved it) sometime soon.</p>
<p>I hope to be able to showcase some of my web design work here too. I&#8217;m always looking to earn a bit of extra money doing web design or programming work so if you think you have something to offer then please get in touch.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesmcminn.com/2009/08/07/welcome-to-my-new-blog/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
