I got up and for the rest of the day played Warcraft 3 and wrote Java. As per usual, here is the link you want, and the changes are... - 1 type of powerup added - Simple tail added to the ball - Passing a level gains you a life - Basic readme printed on the game when paused - The game now responds to mouse-clicks when the mouse is moving I also sliced three boxes of Mushrooms, tomorrow there's a big group breakfast at Church. The problem is I need to be up early... |
Saturday, April 28, 2007
Tired
Friday, April 27, 2007
No progress
The project has not been updated today as I was busy all day and thus distracted. However, I have a new activity to try. I am going to say something I like about every person I met today. I don't mean "I thought your t-shirt was funny", I mean things that make the person nice to know and be around. The people should be in the rough order that I spoke to them (I saw lots of people I know but most never spoke to me). Speaking over the internet doesn't count for the purpose of this exercise. In addition, the people must speak to me at least once a week or I simply don't know them well enough to list them here. Ceryn - Almost always excited with a big smile on her face and an attitude to match, interested to talk about anything troubling you and offer impartial advice SiƤn - Always innocent and well-meaning (as in, moreso than anybody else) Lorna - Happy to offer uncompromising points of view, won't compromise her principles to sound better Sarah - When not tired, always excited and awake, full of energy that enthuses those around her Brierley - Always has something positive and supportive to say to people, somehow seems to have some sort of a rota and seeks out different people each time to offer words of encouragement and renew social bonds Ryo - Talks about anything geekish but also happy to just listen to anything he understands, also has a very good sense of humour Huw - A sense of humour on the same level as myself, what more is needed? Lauren H - Happy to make sure I'm eating well, if she's making some food and I want some she'll make extra if I help cleanup and suchlike (actually, she doesn't require it I just do it out of courtesy but it's similar) Gareth - Has a similar sense of humour to myself and is happy to help with most geekish things Pete A - Is happy to share what he has if you haven't got it yourself |
Thursday, April 26, 2007
Progress?
I got up and went to the Group Project lab, it's not looking good but next week we've got our presentation. I'm going to be making the report, as such the Breakout game is going to have to slow-down a little. Speaking of which, the latest version is here. And the changes are... V0.3 - Some basic graphical acceleration used, it now redraws less per cycle than in V0.2, there might be more I can do so I am going to leave it as a "to do" item - The game now has three levels, the blocks change colour each level (Black, Green, Blue) - Lives and current level down the bottom are now colour coded - Speed is now displayed in the label at the bottom and increments by 1 for every 12 blocks removed, there are 48 blocks per level Tomorrow I hope to have some powerups functioning along with some cooler effects and the ability to turn said effects on or off with keys (for those with slower computers). If you're wondering why a slower computer is struggling under such a basic game, well, it's because of Java. I shall explain why. "Compiled" Languages such as C, C++ and Objective-C are saved in a language the computer understands. "Interpreted" Languages such as PHP, Python and Ruby are saved in a language the computer does not understand very well, but there is an on-the-spot translator saved with them Java I believe falls somewhere in between the two. I shall now explain the above concept in linguistic terms. C (a very fast language) saves itself in English (we're assuming computers speak English). PHP (not as fast as C) saves itself in German. As such, to run PHP programs, the computer must translate the program before it performs each instruction, thus, slowing it down. Java stores itself as a German language with some English notes in it, thus making it easier. Does that make any sense to anybody or have I simply confounded the issue? |
Wednesday, April 25, 2007
More work done, maybe I should be Chairperson?
Firstly, the Java project of Breakout. The correct link for yesterday is here, sorry for the broken link. I didn't bother going to the Java lecture, this semester they have been very poor and I would rather work on my project than attend a lecture that teaches me nothing. The project is coming along nicely, it now does several things. - When the ball hits a block, it bounces correctly, inverting only a single axis (based on the direction it hits the block in) rather than inverting both. - Pausing it really does pause it properly, it no longer resets the ball position, good luck cheating now! - The ball accelerates by 1 pixel a cycle every 10 blocks destroyed, it starts at 5 pixels a cycle - Download it here Midday there was an SSCC meeting. For some reason there seems to always be an item that is of interest to me and the rest are of no interest. Well, today's was the chairman item. Prof Cripps has been Chairperson for 10 years and has been trying to get a Student Chair for a while, he started by hinting at it and now he's put it on the agenda. There was a 2-1 ratio of Students to Staff today and of the vast horde of students, guess how many were eligible to be chair? Correct, just me. The rest were 3rd year and so would be leaving, I told them that if I didn't get a placement I'd accept it but my Mum has very helpfully found another company to apply to. Back when HP told me I was unsuccessful (I've re-emailed them to make sure they got my message asking why) I talked to a friend called Daan. Daan has had some interesting theological discussions with me and I told him that my faith was still strong and that despite the HP incident, God still has a perfect plan for me. Obviously, you can take the view that an 800 mile round trip to Newcastle and Back could be God's idea of a joke, maybe it is. The key thing is that I still believe He has that perfect plan. The thing is, I have to be able to accept that God does not want me to take a placement, it occurred to me while on the loo, "what would God do if He didn't want me to take a placement?". What's happened so far would be a good start in my opinion. So, unless something big happens, if this next chance fails then I will probably not take a placement. Tomorrow's Java project should have some speed optimisations, apparently a single core 1GHz computer isn't quite as good as a Dual Core 2.33GHz computer, odd that! |
Maybe I should do some work?
Today (yes, I'm missing out yesterday) I decided that seeing as my Java project was due in in about 3 weeks (I've been putting it off for a little too long) I should at least think about which of the three options I'd take. - The first was a "chat" program. Well, after the chess game, I hate Java and Networking (at least for now, it's probably because I couldn't understand it at the time) and so don't want to do that. - The second is a game called "breakout". I asked Ioannis how hard it'd be and he said it'd be really hard because Animation in Java is really hard. - The third is a "Customer Database System", it's also a 4 man project (apparently). Tempted as I was to do #3 I decided to do #2. Having no idea how to perform animation in Java or respond to input I was not enthusiastic about it. Thankfully, the first Sun Java tutorial page told me all I needed and even gave me a load of code to start with. Over the course of about 6 hours, I have expanded somewhat upon the code that Sun have on their website to produce something that should get me a pass. I am of course going to be ensuring a First in this Coursework so will be improving it. You can get a copy of V0.1 here. Incidentally, animation in Java is just as easy as in REALBasic, I was very much "at home" as it were in writing most of it. |
Saturday, April 21, 2007
Nothing to report
I'd say "It does what it says on the tin" except there is no tin and my blog gives data not function. I am also quite tired. |
Friday, April 20, 2007
Walking 500 Miles would be very Slow, 1000 would be worse
Wednesday morning I got up and went to the Java lecture where I learnt very little. After Java I decided that I needed some Sunglasses and Chocolate. After comparing prices I found some nice glasses for £2. here is a picture of me wearing them. I packed and got a train to London. At London I met my Dad and we travelled by train to my Uncle (Brett)'s house. When Coel, Brett and one of Brett's friends Anthony arrived we all tucked into some Kebabs. It was really nice to see Brett, Coel, my Dad and to meet Anthony. The Kebabs were really nice and we had a really good time. That night I went to bed about midnight and despite the heat I got a decent sleep. At 0600 my Dad and I left Brett's and headed for Newcastle. The roads were near dead and we made good time. Once we got some distance I started to rest my eyes, I was feeling semi-sleepy. I was jolted awake when my Dad yelled "No no no!" I thought I'd had some sort of a bad dream and then the car started to hit the hard shoulder. No, my Dad is actually a very good driver and it's because he's such a good driver that we were not in an accident. A truck on the left-most lane moved into the center lane just behind a car with a very low trailer. The truck could not see the trailer and as such moved into the trailer, we were to the right of the trailer and thankfully my Dad saw what was happening and accelerated while dodging the moving problem. Later we passed something with a cherry-picker, it'd happened probably a minute before we got there and so didn't hold us up. We heard on the radio it took an hour to clean up. At Newcastle I was to have an interview with HP. The interview was at 1500 and we arrived at about 1000. This was very useful as it allowed time to relax a little by visiting the Angel of the North (a big metal sculpture). Here are some pictures of me standing by it. Click to Enlarge. Dear Teifion
Further to your Interview Day with HP, we are writing to inform you that you have been unsuccessful in meeting the required criteria on this occasion.
May we take this opportunity to thank you for the interest you have shown in HP and we would like to wish you every success with your future career.
Now for the reason that I am very very confused. I am not confused because I think that the interview went well, I think most of my exams go well and I fail those. It's quite possible (and quite likely) that someone else was more suited to the job. No, I am confused because everything up till this point has "worked". I've been praying to God that He would be in control of the situation and direct it, I believe others have been doing so too. God's hand has been apparent over the past couple of days, so why make it abundantly clear that I should go to the interview if I would gain nothing from it?
The CU did a Social thing on the Southsea Common. I went and we were going to play rugby when it was changed to touch rugby. I was not in the most amazing of moods, probably tiredness. So when people kept moving when I touched them or tried to bend the rules I moved to simply stop them. It turns out that when people move from "fast" to "almost stopped" in under a second they also move from "vertical" to "almost horizontal", the rate of the two changes appear to be correlated. So, touch rugby was abandoned (I did tell them that it'd fail but they ignored me) and we played Baseball.
Overall the social was nice but it was overshadowed by the whole interview thing. I am very confused as to what God wants me to do. There has however been 1 good thing today. Recently I began the creation of a second game, it was put on hold due to time constraints, I have no figured that I started it because I was not happy with the way WoA is being run and felt I had no way to solve the problems. I've since decided that's silly and with the tact of a honeycombed brick I will be solving the problems, should that fail I'll use the tact of a normal brick. |

