hmm, it also laggs a lot when something is downloading the the stick, makes sense really.
-
New Ubuntu 9.04 install on a 16GB USB Stick
@ 2009-06-17 – 07:19:28
The 40GB IDE HDD in my inspiron 600m notebook died a few weeks ago. I just installed ubuntu 9.04 on a 16GB USB stick for now. It was simple, no messing or hacking for it to install and run. Ubuntu saw the stick, partitioned, formatted and installed no problems. I remember installing XP on a USB drive was a pain when I did it a few years back. It involved ripping some packed .inf files from the install CD, editing them, re-packing and injecting them back into a new XP .iso image and finally making a new bootable cd.
I remember using at least 3 cd-rs before I got it working.Here is a sreenshot of the desktop. Installed Cairo Dock and Compiz. Not as nice and complete as I had it originally but it's only temporary. Still runs fine from usb. Only slowdown was when I was updating ubuntu or installing something, other than that I can't tell its running from a usb stick!
I'm not sure if to buy a 80GB replacement or go for a 320GB while I'm at it. It would be nice to have the extra storage, then again I have 1.3TB in my desktop.
-
Not Finished but deadline expired.
@ 2009-06-16 – 00:03:35
This is how much of the marbles simulation I got done in time. I'll post the code once I clean it up a little

-
Simulation and 3D Graphics - OpenGL
@ 2009-05-05 – 00:57:02
-
C# Networking results
@ 2009-04-25 – 01:16:24
Got 75% on the C# Networking coursework.
Need to do some prolog coursework and have no idea how to start
-
History of the C family of languages
@ 2009-04-09 – 18:26:52
http://dotnetmasters.com/historyofcfamily.htm
Something amusing about hallucinating industry analysts and the C programming languages.
-
80mins to burn a DVD!
@ 2009-04-08 – 15:04:04
Fact:
Burning a full 4.4GB DVD-R from a USB1.1 HDD takes 1hour and 20 minutes. And the same again if you choose to verify the burn.
-
Back in Mallorca
@ 2009-04-01 – 01:08:07
Just got back to Mallorca. Here for 3 weeks now
Going to play some CoD5 on ps3. Starting at rank1 and never really played consoles since PS1
-
C# Console Pong Game
@ 2009-03-26 – 16:51:48
This was my first C# game or program for that matter. I did it more than a year ago at the end of 2007 for first semester's coursework.
Note:
<> have been replaced with smallerthan and greaterthan because they were causing problems with the xml blog software./* Sam Leach
Programming 1 - Pong
* Final Version. */using System;
class Game
{
static int x = 2;
static int y = 1;
static int xSpeed = 1;
static int ySpeed = 1;
static int leftPaddleX = 2;
static int leftPaddleY = 10;
static int leftPaddleLength = 5;
static int rightPaddleX = 78;
static int rightPaddleY = 10;
static int rightPaddleLength = 5;
const char block = '\u2588';
static int leftScore = 0;
static int rightScore = 0;static void Main()
{
bool gameRunning = true;//Sets different colour scheme.
Console.BackgroundColor = ConsoleColor.Black;
Console.ForegroundColor = ConsoleColor.Yellow;Console.Clear();
while (gameRunning)
{// Clears with a "space".
Console.SetCursorPosition(x, y);
Console.Write(" ");
x = x + xSpeed;
y = y + ySpeed;//Sets Paddle boundaries to keep them within the game area.
if (leftPaddleY smallerthan 1)
{
leftPaddleY = 1;
}
Console.SetCursorPosition(2, 1);
Console.Write(" ");if (leftPaddleY greaterthan 18)
{
leftPaddleY = 18;
}
Console.SetCursorPosition(2, 24);
Console.Write(" ");if (rightPaddleY smallerthan 1)
{
rightPaddleY = 1;
}
Console.SetCursorPosition(78, 1);
Console.Write(" ");if (rightPaddleY greaterthan 18)
{
rightPaddleY = 18;
}
Console.SetCursorPosition(78, 24);
Console.Write(" ");// Keyboard keys.
if (Console.KeyAvailable)
{
ConsoleKeyInfo keyInfo =
Console.ReadKey(true);
switch (keyInfo.Key)
{
case ConsoleKey.Escape:
gameRunning = false;
break;case ConsoleKey.A:
leftPaddleY = leftPaddleY - 1;
break;case ConsoleKey.Z:
leftPaddleY = leftPaddleY + 1;
break;case ConsoleKey.K:
rightPaddleY = rightPaddleY - 1;
break;case ConsoleKey.M:
rightPaddleY = rightPaddleY + 1;
break;
}
}// Draws the ball
Console.SetCursorPosition(x, y);
Console.Write("o");if (x smallerthan = 1) // Returns ball to top left pos. and updates the scores.
{
Console.SetCursorPosition(x, y);
Console.Write(" ");
rightScore = rightScore + 1;
x = 15;
y = 2;
xSpeed = xSpeed * -1;
x = x + xSpeed;
y = y + ySpeed;
Console.SetCursorPosition(x, y);
Console.Write("*");
}if (x greaterthan= 79)
{
Console.SetCursorPosition(x, y);
Console.Write(" ");
leftScore = leftScore + 1;
x = 15;
y = 2;
x = x + xSpeed;
y = y + ySpeed;
Console.SetCursorPosition(x, y);
Console.Write("*");
}//Makes the ball bounce off the top and bottom of the game area.
if ((y == 24) || (y == 1))
{
ySpeed = ySpeed * -1;
}//Left Paddle code.
for (int i = leftPaddleY; i smallerthan leftPaddleY + leftPaddleLength; i = i + 1)
{
Console.SetCursorPosition(leftPaddleX, leftPaddleY);
Console.Write(" ");Console.SetCursorPosition(leftPaddleX, i);
Console.Write(block);Console.SetCursorPosition(leftPaddleX, i + 1);
Console.Write(" ");
}//Right Paddle code.
for (int i = rightPaddleY; i smallerthan rightPaddleY + rightPaddleLength; i = i + 1)
{
Console.SetCursorPosition(rightPaddleX, rightPaddleY);
Console.Write(" ");Console.SetCursorPosition(rightPaddleX, i);
Console.Write(block);Console.SetCursorPosition(rightPaddleX, i + 1);
Console.Write(" ");
}//Paddle-ball collision.
for (int i = leftPaddleY; i smallerthan leftPaddleY + leftPaddleLength; i = i + 1)
{
if (leftPaddleX == x && i == y)
{
xSpeed = xSpeed * -1;
}
}for (int i = rightPaddleY; i smallerthan rightPaddleY + rightPaddleLength; i = i + 1)
{
if (rightPaddleX == x && i == y)
{
xSpeed = xSpeed * -1;
}
}//Displays current player scores.
Console.SetCursorPosition(1, 0);
Console.Write("Player 1: " + leftScore + " Player 2: " + rightScore);//Controls game speed.
System.Threading.Thread.Sleep(50);
//Updates & resets player scores.
if (leftScore >= 5)
{
Console.SetCursorPosition(27, 0);
Console.Write("Player 1 won the last Match");
leftScore = 0;
rightScore = 0;
}if (rightScore greaterthan= 5)
{
Console.SetCursorPosition(27, 0);
Console.Write("Player 2 won the last Match");
rightScore = 0;
leftScore = 0;
}
}
}
} -
WinDirStrat
@ 2009-03-25 – 21:19:30
This useful tool will scan your HDDs and show you a graphical reprsentation of your files and folders. Useful when trying to figure out whats actually on your drives and whats taking up all that space.
Different file types are colour coded. It's quite cool to see :S




