<?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"
	>

<channel>
	<title>Andrew Gee</title>
	<atom:link href="http://andrewgee.org/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://andrewgee.org/blog</link>
	<description>The life of Andrew Gee. How boring...</description>
	<pubDate>Thu, 14 Aug 2008 12:24:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>Django</title>
		<link>http://andrewgee.org/blog/2008/08/14/django/</link>
		<comments>http://andrewgee.org/blog/2008/08/14/django/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 12:24:15 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
		
		<category><![CDATA[Internet]]></category>

		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/2008/08/14/django/</guid>
		<description><![CDATA[In my last post, I was talking about how I had made a nice little radio automation app in python. Since then I&#8217;ve completely restructured it and it is now split into a frontend and backend, which communicate with XML-RPC (yay for the xmlrpclib module). But the website to go with this project is not [...]]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://andrewgee.org/blog/2008/03/21/radio/">last post</a>, I was talking about how I had made a nice little radio automation app in python. Since then I&#8217;ve completely restructured it and it is now split into a frontend and backend, which communicate with XML-RPC (yay for the xmlrpclib module). But the website to go with this project is not that great. The other day I went back to look at the website so far, which I had originally written in PHP. I got annoyed with how disorganised it was and decided to rewrite it in django. Oh. And I just prefer python coding over PHP now <img src='http://andrewgee.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;ve been trying to learn django on and off for ages now. I usually lose concentration after the first two parts of the <a href="http://www.djangoproject.com/documentation/tutorial1/">tutorial</a>. But this time I had a purpose - the website. I&#8217;ve found the best way, for me to learn a new language, is to take a tutorial telling me how to make another project, but apply it to my own project. So I installed the SVN version of django and I&#8217;ve zoomed through a lot of django learning now. It&#8217;s great. It&#8217;s all nicely arranged and modular, which is something I&#8217;m liking more and more as my programming skills have developed and perhaps lazyness, when re-using code <img src='http://andrewgee.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;ve also been using subversion to keep the code organised. I would have used bazaar if there had been a webdav plugin that worked with the current version I have. I suppose I&#8217;ll have to wait for intrepid for that then. subversion is serving me well though. I just got to get the person that&#8217;s supposed to be helping me to actually help me. Yes, that&#8217;s right - I&#8217;m looking at you <a href="http://twitter.com/stephendew">Stephen</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2008/08/14/django/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Radio</title>
		<link>http://andrewgee.org/blog/2008/03/21/radio/</link>
		<comments>http://andrewgee.org/blog/2008/03/21/radio/#comments</comments>
		<pubDate>Fri, 21 Mar 2008 22:15:37 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[School]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/2008/03/21/radio/</guid>
		<description><![CDATA[Within the past year, my school has started to become very involved in trying to start it&#8217;s own radio station. We&#8217;ve had a large amount of money put into it and it&#8217;s slowly growing. We have the software that all the professionals use, and all of the equipment too.
But now I&#8217;m moving on to developing [...]]]></description>
			<content:encoded><![CDATA[<p>Within the past year, my school has started to become very involved in trying to start it&#8217;s own radio station. We&#8217;ve had a large amount of money put into it and it&#8217;s slowly growing. We have the software that all the professionals use, and all of the equipment too.</p>
<p>But now I&#8217;m moving on to developing an automation application for the time that there isn&#8217;t a show on air. This will be similar to Southampton University&#8217;s radio station automation system (http://surgeradio.co.uk).</p>
<p>I&#8217;m using a combination of python and gstreamer. The feedback so far from the teacher involved, with our radio station, is good. The only problem is the network technician that is a Windows Server user. I think I&#8217;m going to have a problem, when I ask for a linux server to host the automation server, streaming, file server, and website. I expect he&#8217;ll wonder what&#8217;s wrong with his little sharepoint setup, he has going. Hopefully I might be able to do some persuading to get past that, but it&#8217;s not going to be easy. I understand the problem that this would cause though. I&#8217;m the only one with the skills to maintain the linux server. When I leave next year, I doubt they will have a clue how to operate the server, as I don&#8217;t think they have no knowledge of Linux. Anyway, that&#8217;ll be fun to try and sort out. Any suggestions?</p>
<p>At the application side, it&#8217;s coming along well. I&#8217;ve made a website that will allow listeners to request songs to be played. These requests are popped into a MySQL database. From here, my python app checks for new requests after every song. If there is a request, it&#8217;ll play that. If not, it&#8217;ll choose the next song from a pre chosen list. Nifty, aye?</p>
<p>I was amazed at how quick it was to develop in python, as this is my first real programming project in python. It was so simple to get a basic set up done. I had it done within a night! Jono Bacon&#8217;s excellent <a href="http://www.jonobacon.org/?p=750" target="_blank">guide on gstreamer in python</a> helped me well. The app now also has a nice little GUI, made in glade, that&#8217;ll help the DJs turn the automation on and off.</p>
<p>For the hardware setup, I&#8217;m looking to get the server, that I mentioned, and a few high quality sound cards, that&#8217;ll provide balanced audio in and out. I don&#8217;t think we&#8217;d need much processing power for the encoding of the streaming, as I&#8217;ve done a few test runs with my old Pentium 4 clocked at 1.8GHz.</p>
<p>All I have to do is finish it all up now&#8230; And perhaps do some of my many pieces of homework!</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2008/03/21/radio/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Gordon Brown!</title>
		<link>http://andrewgee.org/blog/2007/09/28/gordon-brown/</link>
		<comments>http://andrewgee.org/blog/2007/09/28/gordon-brown/#comments</comments>
		<pubDate>Fri, 28 Sep 2007 21:12:31 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/2007/09/28/gordon-brown/</guid>
		<description><![CDATA[It&#8217;s taken me a few days to blog about this, but here it is&#8230; I haven&#8217;t blogged in a while now. I&#8217;ve finally got around to it.
So Wednesday. An average sort of day, you&#8217;d guess. Well, not quite.
Arriving at school, we noticed a large group of people walking around with the head teacher. Entering tutor [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s taken me a few days to blog about this, but here it is&#8230; I haven&#8217;t blogged in a while now. I&#8217;ve finally got around to it.</p>
<p>So Wednesday. An average sort of day, you&#8217;d guess. Well, not quite.</p>
<p>Arriving at school, we noticed a large group of people walking around with the head teacher. Entering tutor time we were told that &#8220;someone important&#8221; was visiting our school today, and there would be camera crews around. Went to the first lesson of double maths. Room change. Fine&#8230;</p>
<p style="border: 1px solid #000000; margin: 3px; padding: 3px; float: right"><a href="http://www.flickr.com/photos/andrewgee/1454088875/" title="Photo Sharing"><img src="http://farm2.static.flickr.com/1057/1454088875_54622228b3_m.jpg" alt="A normal maths lesson" border="0" height="160" width="240" /></a></p>
<p>Got to the new room and were told by our maths teacher that there were going to be three people coming to our maths lesson. These three people, announced in this order, were:</p>
<ul>
<li>Minister for women Harriet Harman</li>
<li>Education secretary Ed Balls</li>
<li>And finally, the Prime Minister</li>
</ul>
<p>Ok then. Sounds like fun! So we continued on with our maths lesson. Quadratics in simultaneous equations. What fun! We even got a presentation on the computer (that&#8217;s my maths teacher trying to show off, I expect). During our lesson camera crews and photographers slowly trickled in to the maths room standing at the back. They were even taking pictures, though no one had turned up yet. What&#8217;s all that about?</p>
<p style="border: 1px solid #000000; margin: 3px; padding: 3px; float: left"><a href="http://www.flickr.com/photos/andrewgee/1454088883/" title="Photo Sharing"><img src="http://farm2.static.flickr.com/1356/1454088883_ea1d07ecdd_m.jpg" alt="Who's this then?" border="0" height="160" width="240" /></a></p>
<p>5 minutes later the door opened and out popped Gordon Brown (followed by the other two of course!). Everyone stared at him amazed that it was actually him. He asked a few questions, such as &#8220;Is maths your favourite subject?&#8221; and &#8220;What do you want to do, when you&#8217;re older?&#8221;. That must&#8217;ve been the quietest my class has ever been. After a while, they began to start talking to him, although it was still quiet. He went to go and talk to people individually while the other two came around too. Harriet Harman came and had a look at my maths book, looked confused, and said she was &#8220;crap at maths&#8221;.</p>
<p style="border: 1px solid #000000; margin: 3px; padding: 3px; float: right"><a href="http://www.flickr.com/photos/11248771@N05/1080468379/" title="Photo Sharing" target="_blank"><img src="http://farm2.static.flickr.com/1018/1454088885_6c14b84491_m.jpg" alt="Gordon Brown" border="0" height="180" width="240" /></a></p>
<p>About 15 minutes passed and they were all pulled out again to move on. Once they left, we discussed what we thought of our prime minister. I thought he looked different to how we see him on the TV. He was older and larger (my maths teacher used the term &#8220;cuddlier&#8221;) than how he seems on Television.</p>
<p>Ok that&#8217;s over&#8230; Back to maths! What a lot of homework we get&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2007/09/28/gordon-brown/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Soldering Clap Switches</title>
		<link>http://andrewgee.org/blog/2007/08/11/soldering-clap-switches/</link>
		<comments>http://andrewgee.org/blog/2007/08/11/soldering-clap-switches/#comments</comments>
		<pubDate>Sat, 11 Aug 2007 14:50:23 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
		
		<category><![CDATA[Electronics]]></category>

		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/2007/08/11/soldering-clap-switches/</guid>
		<description><![CDATA[After watching recent Systm episodes, I decided that I would try and get into electronics. The most specific part that I decided I wanted to get into was the AVR programming. But before I get to that, I decided that it would be a good idea to learn how to solder first!

More pictures?
Off I went [...]]]></description>
			<content:encoded><![CDATA[<p>After watching <a href="http://revision3.com/systm/diggthedigg" target="_blank">recent</a> <a href="http://revision3.com/systm/avr101" target="_blank">Systm</a> <a href="http://revision3.com/systm/tools" target="_blank">episodes</a>, I decided that I would try and get into electronics. The most specific part that I decided I wanted to get into was the AVR programming. But before I get to that, I decided that it would be a good idea to learn how to solder first!</p>
<p style="border: 1px solid #000000; margin: 3px; padding: 3px; float: left"><a href="http://www.flickr.com/photos/11248771@N05/1080461907/" title="Photo Sharing" target="_blank"><img src="http://farm2.static.flickr.com/1368/1080461907_9e4e84f16c_m.jpg" alt="P1010028.JPG" border="0" height="180" width="240" /></a><br />
<a href="http://flickr.com/photos/11248771@N05/tags/electronics/" target="_blank">More pictures?</a></p>
<p>Off I went to a <a href="http://maplin.co.uk" target="_blank">Maplin</a> store. You walk into maplin and you are instantly greeted with millions of electronic things, of which I didn&#8217;t know what they were. Walking around there, for a while, I discovered some electronic kits. These &#8220;make your own&#8221; kits are manufactured by <a href="http://www.velleman.be/ot/en/engine.php" target="_blank">Velleman</a>, and I can recommend them.</p>
<p>So after browsing through the <a href="http://www.maplin.co.uk/family.aspx?menu=1702&amp;source=2003&amp;MenuName=Electronic%20Kits&amp;worldid=-2&amp;doy=11m8" target="_blank">many different kits</a>, I ended up choosing a Clap activated switch. Whilst I was there, I grabbed a soldering iron stand, as I already had the soldering iron + solder.</p>
<p style="border: 1px solid #000000; margin: 3px; padding: 3px; float: right"><a href="http://www.flickr.com/photos/11248771@N05/1080468379/" title="Photo Sharing" target="_blank"><img src="http://farm2.static.flickr.com/1096/1080468379_bebf723496_m.jpg" alt="P1010025.JPG" border="0" height="180" width="240" /></a><br />
<a href="http://flickr.com/photos/11248771@N05/tags/electronics/" target="_blank">More pictures?</a></p>
<p>Opening the kit presented me with millions (ok, 20) resistors, and a bunch of other electronic parts. Two days later, and the solder sucker having to be used occasionally, the kit was finished. One thing I forgot to purchase was a transformer to plug it in with. After visiting maplin I came home and found the transformer was faulty. It is one of those changeable voltage transformers. This one, however, would only work when set to 6 volts. After getting a replacement, finding that it was faulty too, buying a different one instead, I finally got the clap switch to work.</p>
<p>And am I surprised that it worked first time? Well&#8230; Yes!</p>
<p>And where will I go from here then? Read on&#8230;</p>
<p><span id="more-11"></span></p>
<p>As I mentioned earlier, I&#8217;d like to get into AVR programming. Unfortunately, there is no simple kit, like the Clap switch. The parts that they mentioned I should use, in that Systm episode on AVR programming, are quite hard to find in the UK. You can go ahead and use the digi-key site that Systm recommended. One problem with that though is the postage. £15 for shipping + £5 for handling!</p>
<p>Eeek! After a fair bit of searching, I decided to post a forum thread. The result turned up <a href="http://www.farnell.com/" target="_blank">Farnell</a>. I haven&#8217;t found out the postage yet. But I expect it can&#8217;t be as bad as Digi-key.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2007/08/11/soldering-clap-switches/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Vodafone 3G card in Ubuntu</title>
		<link>http://andrewgee.org/blog/2007/08/07/vodafone-3g-card-in-ubuntu/</link>
		<comments>http://andrewgee.org/blog/2007/08/07/vodafone-3g-card-in-ubuntu/#comments</comments>
		<pubDate>Tue, 07 Aug 2007 19:55:04 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
		
		<category><![CDATA[Hardware]]></category>

		<category><![CDATA[Internet]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/2007/08/07/vodafone-3g-card-in-ubuntu/</guid>
		<description><![CDATA[First off, I realise that I haven&#8217;t posted a blog entry in a while now. I don&#8217;t know why I haven&#8217;t, as I&#8217;ve had plenty of time, it being the summer holidays and all. I always find my self wanting to do so much stuff in the summer holidays, and somehow turn up doing hardly [...]]]></description>
			<content:encoded><![CDATA[<p>First off, I realise that I haven&#8217;t posted a blog entry in a while now. I don&#8217;t know why I haven&#8217;t, as I&#8217;ve had plenty of time, it being the summer holidays and all. I always find my self wanting to do so much stuff in the summer holidays, and somehow turn up doing hardly anything. &#8216;Tis a shame.</p>
<p>Anyway&#8230;</p>
<p>After reading <a target="_blank" href="https://lists.ubuntu.com/archives/ubuntu-uk/2007-June/005776.html">this</a> mailing list post on ubuntu-uk, I was surprised these 3G datacards actually worked under ubuntu. Therefore, I instantly zoomed off to ebay and purchased one for £34 + postage. I made sure it said unlocked in the ebay listing, as I currently have a virgin mobile sim card and didn&#8217;t want to waste/switch to vodafone.</p>
<p>So the datacard turned up and I popped my phone SIM in it. Following the guide that was written in the mailing list, I configured it. This was using kppp. So I made everything was in there right and tried to connect. One problem though. Everytime I tried to connect kppp would lock up instantly. &#8220;Ah dear&#8221;, I though.</p>
<p>After much researching, I managed to set up the datacard using gnome-ppp, which is equally, if not more, easier to set up the datacard in. And here is a little guide I&#8217;ll write in full for you&#8230;</p>
<p><span id="more-10"></span></p>
<h3>The guide</h3>
<p>The vodafone 3G card. Great little thing. Get the internet almost anywhere!</p>
<p>Now, these vodafone cards seem to be just some re-branded ones. The real manufacture, found from the label underneath, is Novatel Wireless. The model of the datacard is <strong>Merlin U630</strong>.</p>
<p>Pop the SIM card into your datacard, ensuring that you put it in the right way (I may have been stupid enough to put it in the wrong way <img src='http://andrewgee.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ). And then plug it into your computer. First off, it would be quite a good idea to ensure that it was detected by the system. To do this open up a terminal and enter the command <code>dmesg</code>. This should hopefully give you a long list of text, where the end of it slightly resembles this:<br />
<code><br />
[ 124.076000] pccard: PCMCIA card inserted into slot 0<br />
[ 124.076000] cs: memory probe 0xf8000000-0xfdffffff: excluding 0xf8000000-0xfc1fffff 0xfce00000-0xfd3fffff<br />
[ 124.080000] pcmcia: registering new device pcmcia0.0<br />
[ 124.080000] pcmcia: registering new device pcmcia0.1<br />
[ 124.224000] pcmcia: request for exclusive IRQ could not be fulfilled.<br />
[ 124.224000] pcmcia: the driver needs updating to supported shared IRQ lines.<br />
[ 124.268000] 0.0: <strong>ttyS0</strong> at I/O 0&#215;3f8 (irq = 3) is a 16550A<br />
[ 124.312000] pcmcia: request for exclusive IRQ could not be fulfilled.<br />
[ 124.312000] pcmcia: the driver needs updating to supported shared IRQ lines.<br />
[ 124.360000] 0.1: ttyS1 at I/O 0&#215;2f8 (irq = 3) is a 16550A<br />
</code></p>
<p>From this you can see the ttyS0 part. This is the name the Linux has given to your datacard. This isn&#8217;t really necessary, but it could be useful to know.</p>
<p>Time to install gnome-ppp. Run <code>sudo apt-get install gnome-ppp</code>. One final thing to do in the terminal is edit a setting of ppp in linux. Run the command <code>sudo gedit /etc/ppp/options</code>. That will load up the text editor, so that you are able to change the options. Head to the bottom of the file and add <code>novj</code> to the end on a separate line. Save and close this file.</p>
<p>Head to Applications -&gt; Internet -&gt; Gnome PPP. This will load up the gnome ppp manager. Press the setup button to load up the options for connecting. Click the detect button, so that it can find your modem device, or alternatively choose the name we found earlier (in my case /dev/ttyS0). Even though it isn&#8217;t a USB modem select under type USB modem, as I found this is the setting that worked. Set the speed to 460800.</p>
<p>Now, you&#8217;re going to need to find your mobile provider&#8217;s APN address. I found <a target="_blank" href="http://www.filesaveas.com/gprs.html">this website</a> had a bunch of APNs for many different mobile providers. So, as I use virginmobile, I scrolled on down to the virginmobile part and found my APN was goto.virginmobile.uk.</p>
<p>Pop back to the settings for gnome-ppp. Click the &#8220;Init Strings&#8230;&#8221; button. In the 3rd Init string item put the following line of code, replacing goto.virginmobile.uk with the APN for your mobile provider.</p>
<p><code>AT+CGDCONT=1,"IP","<strong>goto.virginmobile.uk</strong>&#8220;</code></p>
<p>Once you&#8217;ve entered that, press the close button in the Init Strings window. That is the end of the configuration in the Setup dialog also. So go ahead and close that too.</p>
<p>You&#8217;re now back to Gnome PPP main screen. If you go back to that webpage <a target="_blank" href="http://www.filesaveas.com/gprs.html">I pointed to you</a> earlier, and down to your provider you&#8217;ll find a username and password. Copy these accross to the username and password boxes of gnome ppp. If the webpage said (leave blank) next to either the username or password, just put anything in to fill that up, as gnome ppp will not allow you to connect otherwise.</p>
<p>One final part is to add in the phone number to dial. This is, for most people, going to be *99***1#. Now that you&#8217;ve entered all the settings needed go ahead and click Connect. Hopefully, through the power of 3G or GPRS, you will be connected up to your mobile network and able to surf the internet.</p>
<p>You may have a few problems with your DNS. You&#8217;ll know this if you are not able to load a webpage like google.com normally, but you are able to via http://64.233.187.99/. In which case, I&#8217;d solve this problem by using the opendns servers. Head to System -&gt; Administration -&gt; Network. On the DNS tab set your DNS servers to be 208.67.222.222 and 208.67.220.220. After that, you should be able to visit sites easily again.</p>
<p>Now, I think that&#8217;s it. If I&#8217;ve missed anything please comment.</p>
<p>Bye.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2007/08/07/vodafone-3g-card-in-ubuntu/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Servers and Whatnot</title>
		<link>http://andrewgee.org/blog/2007/07/14/servers-and-whatnot/</link>
		<comments>http://andrewgee.org/blog/2007/07/14/servers-and-whatnot/#comments</comments>
		<pubDate>Sat, 14 Jul 2007 11:51:33 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
		
		<category><![CDATA[Hardware]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/2007/07/14/servers-and-whatnot/</guid>
		<description><![CDATA[So I&#8217;ve been on a little fun into setting up a webserver. Using an old computer which uses a shuttle case + motherboard. This case and motherboard has been through a lot. Stuff taken in and out loads.
And the fan failing. That was fun. It kept overheating and after much playing around, we found that [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been on a little fun into setting up a webserver. Using an old computer which uses a <a href="http://eu.shuttle.com/" target="_blank">shuttle</a> case + motherboard. This case and motherboard has been through a lot. Stuff taken in and out loads.</p>
<p>And the fan failing. That was fun. It kept overheating and after much playing around, we found that the fan on the cpu heatsink had died. Shuttle being nice and kind when they designed this heatsink, made a size fan that you can&#8217;t get anywhere. Instead, I got a generic case fan and duct taped it to the heatsink! Clever, eh?</p>
<p>So my server. What is it serving? Well, it&#8217;s backup server. Thanks to the backuppc package, all the computers will be backed up in my house. Every week a full backup is done. Followed up by a incremental backup each day. Backuppc is also very clever. If there are files that are the same across backups and computers, the file will only be stored once. I can&#8217;t backup my whole house yet though. This is because of the hard drive in the server. It&#8217;s only a 120GB one. That means I&#8217;m currently only backing up one computer as a test.</p>
<p>What else is my server serving? SSH. The first thing I did when I set up the server was install SSH. This is for two reasons. The server is now on top of a shelf somewhere else in the house with only power and an ethernet cable attached. SSH is my means of remote access. The other reason is so I can have a nice SSH tunnel when I go to sixthform in September. No more annoying school filters to me <img src='http://andrewgee.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Another part of my SSH server is a key based authentication. I decided that I didn&#8217;t really want to put my server out on the internet, if someone was able to bruteforce the password. Therefore, I have set up key based authentication and completely turned off Password authentication.</p>
<p>Quotas. I also managed to set these up. Just as a play around really. It was pretty simple to do:</p>
<ol>
<li><code>sudo apt-get install quota</code></li>
<li>Open up fstab and pop in the usrquota option to the partitions that need to be quotaised</li>
<li>Restart</li>
<li><code>sudo edquota -u <em>username</em></code></li>
<li>The quota config for that user will show up. Under the blocks and inodes column, you are able to see what the current use of that user is.</li>
<li>You are then able to edit the number of blocks (1,000 blocks = about 1MB) that the user can make under the first hard and soft columns.</li>
<li>The second quotaing is the number of files which can be set under the second hard and soft columns</li>
<li>Save and quit. You&#8217;re set!</li>
</ol>
<p>What&#8217;s the difference between hard and soft quotaing you ask? From what I&#8217;ve read around the internet, a soft quota is one that limits the user slightly. The user is allowed to go over the soft quota. But only for a limited time, before they have to delete the files. The hard quota is a strict quota. You hit that quota, and that&#8217;s it. Delete the file or be able to do nothing!</p>
<p>And of course, to do my bit, my server is folding proteins. Slowly but surely&#8230;</p>
<p><img src="http://folding.extremeoverclocking.com/sigs/sigimage.php?un=Webspot.co.uk&amp;t=57391" alt="Folding stats" /></p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2007/07/14/servers-and-whatnot/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ruby on Rails Fun</title>
		<link>http://andrewgee.org/blog/2007/07/09/ruby-on-rails-fun/</link>
		<comments>http://andrewgee.org/blog/2007/07/09/ruby-on-rails-fun/#comments</comments>
		<pubDate>Mon, 09 Jul 2007 14:43:05 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
		
		<category><![CDATA[Internet]]></category>

		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/2007/07/09/ruby-on-rails-fun/</guid>
		<description><![CDATA[Still my early summer holidays. Apart from the many household jobs my parents have instructed me to do, I&#8217;ve also be learning a new programming language.
I&#8217;ve be learning the great web development language known as ruby on rails. I&#8217;m not quite a 1337 h4xx0r at it yet, but hopefully one day! Or perhaps not. I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>Still my early summer holidays. Apart from the many household jobs my parents have instructed me to do, I&#8217;ve also be learning a new programming language.</p>
<p>I&#8217;ve be learning the great web development language known as ruby on rails. I&#8217;m not quite a 1337 h4xx0r at it yet, but hopefully one day! Or perhaps not. I&#8217;m not a 1337 h4xx0r at php and javascript and I&#8217;ve been using them for quite a while now.</p>
<p><strong>Advantages?</strong></p>
<p>I think this ruby on rails magic makes all this web development lark much easier because of the following things I&#8217;ve found so far:</p>
<p>Firstly, the &#8220;Model, View, Controller&#8221; way of running things. Ok. So this wasn&#8217;t easy to understand straight away. But as soon as it goes *click* in your head, it sure is amazing. I remember half heartedly trying to learn ruby on rails a while back and gave up pretty quickly because of the confusion from this MVC. If you want to learn ruby on rails, I do recommend getting a good book (I&#8217;ll talk about that in a minute), and also making lots of examples to remember what all the different components of MVC do.</p>
<p>Number 2 in ruby on rails features has to be Migrations for databases. Migrations allow you to easily synchronise database changes between developers of the web application. You make a change to the database that needs to be synchronised? Well then you setup a database migration step and the changes will be updated when the developer next runs db:migrate. Another good use for database migrations would be to easily manage the database states between the development and the actual deployment on a server. I can&#8217;t see PHP doing that with any great ease.</p>
<p>Number 3? Well&#8230; I don&#8217;t have a number 3! I&#8217;ve only got to page 100 so far. Actually 99. But still!</p>
<p><strong>The elite book</strong></p>
<p style="padding: 5px; float: right"><iframe src="http://rcm-uk.amazon.co.uk/e/cm?t=webspotcouk-21&amp;o=2&amp;p=8&amp;l=as1&amp;asins=0977616630&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr&amp;nou=1" style="width: 120px; height: 240px" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe></p>
<p>Before starting to learn I spent much time trying to find the best book to guide me through learning the language. After browsing through the surprisingly small amount of RoR books on amazon, I found that the best beginners book is one that goes by the name of &#8220;Agile Web Development with Rails&#8221;. It&#8217;s a bit of a mouthful for a book title, but it surely is a great book. It is very well written and easy to understand.</p>
<p>The book takes you through building a project that is an e-commerce site. I find this is the best way to learn a new language and is what I&#8217;ve done for almost every other programming language I&#8217;ve learnt. I would have preferred for it to be a more useful project, such as a blogging system or something else. But looking at it now, I can see that an e-commerce system probably contains lots of different concepts that you will learn.</p>
<p>I&#8217;ve included a direct link to the amazon page for the book on the right, so if you are thinking about buying this book, please follow the link below to help support the running of my blog!</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2007/07/09/ruby-on-rails-fun/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Take 97</title>
		<link>http://andrewgee.org/blog/2007/07/05/take-97/</link>
		<comments>http://andrewgee.org/blog/2007/07/05/take-97/#comments</comments>
		<pubDate>Thu, 05 Jul 2007 13:55:25 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
		
		<category><![CDATA[Screencasts]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/2007/07/05/take-97/</guid>
		<description><![CDATA[Before you ask&#8230; No I don&#8217;t know why I chose 97 takes for the title! It just seems like that after the number of times I had to rerecord.
Having my summer holidays starting early, I&#8217;ve got to find things to fill my day with. Yesterday was &#8220;make the samba screencast&#8221; day.
New format as well. Full [...]]]></description>
			<content:encoded><![CDATA[<p>Before you ask&#8230; No I don&#8217;t know why I chose 97 takes for the title! It just seems like that after the number of times I had to rerecord.</p>
<p>Having my summer holidays starting early, I&#8217;ve got to find things to fill my day with. Yesterday was &#8220;make the samba screencast&#8221; day.</p>
<p>New format as well. Full 720p HD format and also a little introduction at the start.</p>
<p>Here it is anyway, in all of it&#8217;s hd goodness:</p>
<p><a href="http://screencasts.ubuntu.com/SAMBA_Filesharing"><img border="0" width="427" src="http://screencasts.ubuntu.com/videos/20070704_samba_filesharing_427x240.png" height="240" alt="Samba Filesharing" /></a></p>
<p>I seemed to be extremely slow in making this screencast too. It took me the whole day to make a 4 and a half minute screencast. I suppose. I wasn&#8217;t working on it constantly though.</p>
<p>So, in making the screencast I did the following things:</p>
<ul>
<li>Planned my general script while running through it with a vm</li>
<li>Make a little presentation to start off the screencast</li>
<li>Get the transitions to work just right</li>
<li>Record the intro + presentation</li>
<li>Add audio</li>
<li>Record the content</li>
<li>Add audio</li>
<li>Record the ending</li>
<li>Add audio</li>
<li>Join it all together</li>
</ul>
<p>Simple, eh? Not really. I kept bumping in to little problems whilst recording which annoyed me everytime.</p>
<p>And with the audio, if I say one word wrong, that&#8217;s it, I&#8217;d have to start again. Audacity seems to hate me. If I was to want to have a separate track to record to it would decide that the sound would be all broken up. Annoying I know, but I think I fixed it *after* I recorded all the sound. At least it should be better next time!</p>
<p>And today I found out that I forgot to include a part on changing the samba configuration file.</p>
<p>Oh well. Hopefully more will be on the way soon!</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2007/07/05/take-97/feed/</wfw:commentRss>
		</item>
		<item>
		<title>It&#8217;s good when things don&#8217;t work</title>
		<link>http://andrewgee.org/blog/2007/07/03/its-good-when-things-dont-work/</link>
		<comments>http://andrewgee.org/blog/2007/07/03/its-good-when-things-dont-work/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 17:29:18 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
		
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/?p=4</guid>
		<description><![CDATA[Things going wrong. You&#8217;d expect this to be a bad thing. But I often find this a good thing. Why? Well it may take ages to fix a problem, but you learn so much in the process!
I persuaded my friend to use Ubuntu Linux a while back. So he went and installed it. He found [...]]]></description>
			<content:encoded><![CDATA[<p>Things going wrong. You&#8217;d expect this to be a bad thing. But I often find this a good thing. Why? Well it may take ages to fix a problem, but you learn so much in the process!</p>
<p>I persuaded my friend to use Ubuntu Linux a while back. So he went and installed it. He found that his wireless network card didn&#8217;t work, and there was no way it would work (even under ndiswrapper). So he went ahead and bought a nice wireless card from linuxemporium.co.uk. You&#8217;d think that they&#8217;d pick one that would work &#8220;out of the box&#8221;. Well, no! You get this awkwardly written guide (not good for newbies to linux). So I went ahead and re wrote it into simple talk. Great! It worked!</p>
<p>About a month later he decided to reinstall ubuntu and windows so that he could get the partitions right. So he went and did it and began to set up the wireless network card again. This time it didn&#8217;t work, even with my simpler instructions. So instead of getting me to help that much he decided he&#8217;d just get a nice ethernet cable instead.</p>
<p>Right. So he&#8217;s trying to get *everything* to work under ubuntu now. One of those things required his external USB hard drive. Simple you&#8217;d think. Plug it in and see it appear on the desktop. Unfortunately not. In this case it was, plug it in and see *nothing at all* happen. So he comes talking to me to ask for help. This is what I found out</p>
<ul>
<li>The device was being recognised as sde - from <code>dmesg</code></li>
<li>The device was not mounted - from <code>mount</code></li>
<li> The device had partitions - from <code>cfdisk /dev/sde</code></li>
</ul>
<p>So, I go ahead and tell him to mount the disk manually. <code></code></p>
<p><code>sudo mount /dev/sde1 test</code></p>
<p>&#8220;Please specify a file system type&#8221;. Ok then. <code></code></p>
<p><code>sudo mount -t vfat /dev/sde1 test</code>.</p>
<p>&#8220;Invalid file system type&#8221;. At this point my friend restarted into his windows partition, and the drive worked perfectly. During this time I had a google around and found that there might be an error on the drive. I don&#8217;t know much about <code>fsck</code>, but I gave it a go anyway.</p>
<p><code>fsck /dev/sde</code><br />
<strong>Response:</strong> No FSINFO sector  1) Create one  2) Do without FSINFO</p>
<p>Ok then. We&#8217;ll press 1 and continue, even though I don&#8217;t know what a FSINFO sector is (but at a guess I&#8217;d say it is a sector that holds information about the file systems). After that part there were a few other messages like &#8220;Free cluster summary uninitialized (should be 10914208)  1) Set it  2) Leave it uninitialized&#8221;. We just hit 1 each time and carried on. But at the end of all of that we get a message saying &#8220;<strong>Leaving file system unchanged.</strong>&#8220;. I was asking myself why it isn&#8217;t saving the fixes, even though I told it to fix it. Ah well. Back to the drawing board.</p>
<p>After a few variations on the fsck command I came up with this nice one:<br />
<code>dosfsck -w -r -v /dev/sde1</code></p>
<p>So. Ran that. Hit 1 a few times. And tada! All fixed!</p>
<p>And now I know how to operate fsck more! Yipee!</p>
<p>In other news, it&#8217;s raining a bit here, and there&#8217;s a lot of thunder</p>
<p>/me hides</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2007/07/03/its-good-when-things-dont-work/feed/</wfw:commentRss>
		</item>
		<item>
		<title>All this blogging lark</title>
		<link>http://andrewgee.org/blog/2007/07/01/all-this-blogging-lark/</link>
		<comments>http://andrewgee.org/blog/2007/07/01/all-this-blogging-lark/#comments</comments>
		<pubDate>Sun, 01 Jul 2007 17:44:21 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/?p=3</guid>
		<description><![CDATA[Well. I have myself a blog. How&#8217;d you like it? I&#8217;ve been wanting to get a blog up and running for months. Finally got around to it.
As you can see, I&#8217;m using wordpress, which I found terribly easy to set up. Puts my old WebspotBlogging to shame really.
Ah well
]]></description>
			<content:encoded><![CDATA[<p>Well. I have myself a blog. How&#8217;d you like it? I&#8217;ve been wanting to get a blog up and running for months. Finally got around to it.</p>
<p>As you can see, I&#8217;m using wordpress, which I found terribly easy to set up. Puts my old WebspotBlogging to shame really.</p>
<p>Ah well</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2007/07/01/all-this-blogging-lark/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
