Saturday, September 17, 2005

Assignment Status

It's going good. I've started the actual coding today, and done that for a 5 hours or so... Quite a lot of time to spend programming in one session don't you think? Yeah, me too.

It's going well. Well, actually, I started it yesterday then got side tracked by various dealies I had to do for my parents then I had work and so I though I'd be fucked for today cause the assignment isn't exactly a push-over.

It involves breaking the project down into modules. So I have to link to my procedures in another file, ADT's defined in their own header file. Mainline program logic, again, in it's own file.

Yesterday was spent getting the main code working. I learnt that you must be careful of where you put things in case statements, and not to copy and paste little sections, cause I did that, for a while loop, and forgot to modify the loop condition for this 2nd loop, and absically fuxored my program into an infinite loop until I figured out my mistake.

Today I've done the rest of the main code, which involves reading data from a file, and loading that data into a linked list. I encountered various problems with that, until I spotted all my mistakes. Logic errors? I think they're called... Where your program compiles, runs, doesn't error, but then doesn't give you the output you expected. I also had a large number of exceptions where it was trying to get data from memory which it wasn't supposed to, leading to many crashed programs.

So, now I have the linked list implemented, it reads from the file perfectly. I have the rest of today and tomorrow to implement the following functions:-

  • Search;
  • Check-out via call number;
  • Check-in via call number;
  • List the most popular movies with the highest rental frequency (I'm going to average the frequencies, and define popular as being greater than average);
  • Exit the program

Oh... No wait, shit... I've already done the exit part, what it's meant to be is Save & Exit, so that it saves any changes to the data into another file (or maybe the same file? I'm saving to another file to negate any hassles I may encounter) before exiting the program.

I'm gona take a break for a while longer, I hope to finish the program by tonight. I think... I shall start on the save + exit tonight, and get that done, as it's sure to be a bitch.

Wednesday, September 14, 2005

So... Many... Primes...

No, this has nothing to do with Transformers (more than meets the eye :o).

A few nights ago, I was watching NUMB3RS, this cop show dealy where they solve problems using math (crazy I know). But in the most recent episode, they talked about internet encryption and whatnot. This is the same kind of stuff we talked about in discrrete mathematics. How the encryption key can be factorised into the prime numbers that were used to create it. This is cause every number can only be factorised in ONE UNIQUE WAY.

So I proceeded to make a program that lists all primes, it did all the primes less than 1000 in a few seconds; pretty good. So I put in a big number, ooh, say, I don't know, 1 billion? That should do it. The program ran while I was asleep, and it wasn't even up to 2 million D: I might do something like make a program to implement the Euclidean algorithm, then again, I'm not entirely sure whether that's useful for breaking a number into it's primes... Although! ... I don't know, I'll think about this some more when I can be bothered.

Kinda makes you think. Simply printing the primes take forever. Imagine breaking down a number, with several hundred digits, in a series of primes. Crazy shit.

I... Am so nerdy at times...

Friday, September 02, 2005

*Apologies*

I apologise for my lack of blog postage and update-age... Updateage? Is that even a word? No, according to M$ Word, it is not.

Let me be frank - I've been busy lately. With school, relaxing after school, some study, and now it's about to get worse.

I have an exam later this week - 30 multiple choice questions. How kick ass is that for a mid-term exam? Pretty kick ass ay? I thought so. But I still have 6 weeks of dealies to cover, so I can't really take it lightly. I want to do well this semester, really well. So that means my extra-curricular study has had to suffer. Yeah that's right little man (or woman, as it may be), I've had to stop with Windows and DirectX programming for the moment in favour of University work. Don't hate me.

What little spare time I've had has been spent chatting to my loving girlfriend who starts back at university soon, meaning we'll have less time to talk, meaning I want to talk to her as much as I can now without impacting negatively on my studies. I hate it when people use school as an excuse not to be with someone. It's like "I can't be with you because I have to focus on studies," which should, in turn, become "I can't be with you because of work, " before transforming into "I'm 80 years old and need to tend to the garden, I'm sorry." I will not go any further into this.

Again, I apologise for my lack of updating and keeping you posted on the happenings and goings-on in my programming life. For the moment it can't be helped. I need you to bear with me!

Now for a slight future note :: As I'm going to be working during the summer holidays, I intend to save up for a few things. A DS is a must have, coupled with some games, enough cash to pay for my fees / textbooks next year, and then the rest gets saved for my trip to Canada. ALSO on my list of things to get is a domain thinger, webspace, whatever it's called... A place to have my site on the web, and not having to worry about silly advertising headers, expiry conditions, and small bandwidth limitations. It'll extend to encompass my personal blog (which I shall reveal when I get a new layout done for it), the C.O.P. Studioz blog (and maybe a website), as well as this RufiGAMING blog /note.

I've gone fairly off-topic, covered things slightly out of the area of programming and games, and possibly even bored you. Just a little bit.

Thank you for bearing with me, IF you do in fact bear with me. If you don't then I have no thanks for you. THAT'S RIGHT! NO THANKS! So bear with me if you want thanks.

I'm out.