Archive for July, 2007

Sorted Alphabetically

Sunday, July 22nd, 2007

Hoo-hah! I have got the search engine over at my comic book library to sort its results alphabetically. I’ve been looking for a way to do this, on and off, since I started using it, but had not had much luck until now, it seeming to be a feature no-one has ever seen fit to document.

However, today I decided to upgrade to the latest version and in looking through its code, that I might apply my own personal modifications, I came across a buried sort function that is not called by any of the parameters you are told to include in your search form.

All that’s needed is a variable named “sort” with the value “title”. This results in the comic books being listed alphabetically by title rather than according to some random “weighting” algorithm. However, it is rather a simple sort, placing books beginning with “The” in amongst the Ts and ordering numbers as 1, 10, 11, 12, 2, 20, 3, 4, 5 etc.

Simply instructing the aforementioned sort function (on line 454 of the search.pl file) to use the “docs_db” database instead of the “titles_db” one means that it sorts by filenames instead, which I purposefully structured two years ago that they would be pretty darn close to both alphabetical and chronological.

Also, I added four lines of Perl that let the results page use the singular term instead of the plural if only one matching comic book is found. Studying for a Computer Science degree has taught me things!

Exam Results

Friday, July 6th, 2007

My first year, second semester exam results:

65% for Software Development was expected as I didn’t do so well in the second Java project. For the first project I got 79%, for the in-class test 84%… meaning 66% for the final exam. Not stellar, but a reasonable 2:1.

75% for Communications & Telematics was all down to one multiple-choice exam. As I answered 48 out of 56 questions, and because it was negatively marked, that meant the highest I could possibly get was 86% and the lowest was 49%… 44 correct out of 48 answered equals “Hoo-hah!”

83% for Web Programming was thanks to three projects worth a total of 40% of the module; I got 100% for both the first and third, and 93% for the second. Means I got 73% for the exam, which was a written one this time around; whilst I can make websites go good, I need to memorise more facts.

64% for Professional & Personal Development is the weird one. I was led to believe that this was a Mickey Mouse course; that you could get near to 100% simply by turning up to lectures and tutorials, giving a couple of presentations and handing in a CV. So I did all that. But I guess at some stage it was actually marked? Oh well.

Because I got over 60% in every module I can, if I want, change my course into a five year MEng… However, whilst that was looking tempting just a month ago, I think it more likely that I will not. I want a Masters, but I would much rather do it in interface/interaction design. Plus, I shall wait and see what happens during my year in industry; may hook myself up with a sweet career straight away, not do a Masters at all.

Anyway, twelve more weeks of summer holiday? I can totally learn Java in that time…