My 20th Birthday

I made a YouTube playlist for my 20th birthday and have been enjoying it ever since…
Featuring many songs I love from, among others: Billy Joel, Pablo Alborán, Bon Jovi, AC/DC, Slash, Metallica, Bob Dylan, The Rolling Stones, R.E.M, ZZ Top, Pink Floyd, The Beatles, Rage Against The Machine, Green Day and, of course, Jethro Tull!
If you like a weird mix of music (or just want to see how it’s possible to have a playlist with so many amazing artists in it) – have a listen! Enjoy!

New programming post coming soon!

Today I did something fun…

I began today attempting to revise for COMP118- Logic in computer science… I completed some practice questions and then got bored and started to organise my files on my laptop.

Then my brother and I began discussing my old laptop and wondering whether the RAM could be salvaged from it- it hasn’t worked at all since I took it apart to try to fix it back in 2013. We got a couple of screwdrivers and set to dismantling the laptop.

Soon we’d taken it all apart and I began to ‘bag and tag’ all of the parts and looking online to see what they might sell for.

But then we wondered… could we reattach the power cable and the power button and still make it light up?

Lights on and a VGA attached, we also addded a little bit of RAM back in, and then added the HDD and the fan.



Suddenly, there was a response on the screen we’d attached so we reinserted the USB ports and attached a keyboard and mouse.

Windows had a bit of fixing to do…


And then it returned! I barely remembered the password but when I did…

we were away!
The computer had Microsoft Office 2007 on it…

And I played a game of chess…

And then I wondered: yeah, but can I run the Sims on it…?


Yep, kinda.
The computer did crash after a while but I can’t believe that it went from not even switching on to running the Sims 2 in just 3 hours! I don’t think that I’ll be giving up on a laptop so easily in the future!

Liverpool Careers Fair

Visited stands for FDM Group, Innovative Technology, Impact Control Systems Ltd, and Doris IT.
Doris IT seems a company I would be interested in joining in the future, they are very focused on mentoring employees and providing a support base for continuing development of skills throughout your career. They also have branches across the country which it is easy to transition between- including in Liverpool and Birmingham, which is ideal for me.

Concurrent Processes

Last week (15th March 2017) I handed in my COMP104 Concurrent Processes assignment. (I aim to leave at least five days after the deadline before dicussing assignments online as that is the point at which no more submissions can be made.)

This was a variation of the Dining Philosophers Problem, a common test for concurrency algorithms.

Copyists = Philosophers

Copying & Checking ~ Thinking & Eating (Except have to copy before you can check)

Pencil & Eidograph ~ Chopsticks/Spoons (Except different tool in each hand)

copyists 7 and 0 share pencil 3
1       2                           0
3      4                            1
5      6                            2
copyists 0 and 1 share egraph 0
2         3                         1
4         5                         2
6         7                         3

 

The Copyists had to work in synch until each Copyist had copied and checked 5 drawings.

There were also other restrictions, such as the length of time each copyist took but the details of the assignment are beside the point.

This task was… a rollercoaster

I started off very slowly, always forgetting to take my latest version of the program to labs with me so kind of working on two versions simultaneously (or, some might say, concurrently haha). I then stopped doing any work on it whilst I worked on my COMP106 assignment. When I got back to working on this assignment, at first I struggled to work out how to synchronise the threads but, using a combination of the lecture notes; a sample assignment on the Producer-Consumer problem from previous years; and trial and error…(s, many errors…), I eventually had a working solution which I happily handed in two days early after sorting out the output display. The next day, however, I suddenly realised that Copyists 7, 0, and 1 were all sharing Pencil 0! This didn’t take long to fix but I cannot stress enough how important it is to check for logic errors. Sometimes getting the program to compile in the first place is so difficult that I’m almost afraid to check for logic errors- but, as anyone who has ever played with a Rubik’s Cube is well aware, sometimes the only way to get perfect results is to mess stuff up a bit first.

console output

 

Results

I got my final results for Semester 1 today.

I was pleased overall but it annoyed me again to see my lowest percentage of the semester… 40% in Coursework #6 🙁 The reason for this is that, as seen in .zips, we had to hand in a few assignments as .zips. When I got the result for this assignment I was dismayed to see that the marker commented that he could not compile my code!

Of course, I immediately opened my cmd and compiled it myself- it worked perfectly. What was going on? Before accusing the marker of misspelling javac or something, I decided to check what I had handed in… Oops (as in oopsy-daisy or Object Oriented Programming, whichever).

My .zip did not contain the abstract class! The whole program was relying on the abstract class and it wasn’t there! No wonder the marker couldn’t compile it!

But I can’t really complain… hopefully I’ll learn from this mistake, and maybe you will too… Check the contents of your .zip before you send it!

(Also my next lowest mark is 78% in my mathsy exam so not too shabby hehe)

HTML + CSS

I don’t have very much experience of HTML and CSS. I have made mockups of websites a few times using HTML- once when on work experience with Rok Animation, and another time for my A2 Computing Project, and (nerd as I am) probably just for fun too…

But I have never had any particular training in HTML, and I haven’t written any CSS, so I was excited to find that COMP106- Human-Centric Computing- will involve being taught HTML!

I find it a little difficult that many people on my course already have a lot of experience with many things we learn, but I’m a quick learner and it may be better to learn formally from scratch than thinking that I know everything already because I’ve messed around with it and made a website before… I get the impression that, had I ended up at University of Hull rather than Liverpool, I would have actually found it harder to progress as they work in C#, my first (programming) language, whereas here I have retained and built upon my C# knowledge by learning Java too!

Anyway, about to embark upon my first HTML + CSS tutorial, wish me luck!

Colour Schemes

https://addons.mozilla.org/en-US/firefox/addon/dark-background-light-text/?src=search

I recently did an assignment for Human Centric Computing in which I had to evaluate the user interfaces of two websites under 6 distinct rules for good design taken from Nielson’s Heuristics, the Eight Golden Rules of Interface Design, and general guidelines for various users. I realised that to form an accurate opinion, I’d have to disable my Firefox colour scheme for a few weeks…

What a relief it was when I returned to my darker theme today! I could feel my eyes relaxing immediately- everyone should have this experience!

#de97b0 #1c2328 #7fd7ff #ffafff #a800ff #31444b

In order, these are the colours my brother selected and I copied into my add-on:

Caleb Jennings, [05.12.16 15:01] #de97b0 #1c2328 #7fd7ff #ffafff #a800ff #31444b colours selected for add-on

Originally, this was due to the fact that I needed to complete an assignment but couldn’t look at my screen because of a… ahem (hangover) ahem… but I grew accustomed to the style and how much easier on the eyes it is.

I did, for a while, use f.lux- an incredible application which I highly recommend. I had it on my last computer but never used it on this one as it does increase startup time and this laptop is generally more comfortable to look at anyway as it has a matte screen and the brightness is easy to change.

However, I have to say https://justgetflux.com/ , just get flux, you (probably) won’t regret it.