Saturday, December 29, 2007

Week 10 (24 Dec - 28 Dec)

Monday, 24 December 2007
Today, is Monday, 24th of December 2007. X'mas eve. Which means that everyone gets to leave work early at 12.45pm. Today, we left work early, but it was at around 4pm, earlier than normal days I guess.

Today I still continued to research and refine my code on detecting a single point within any given shape, represented as an array of points. And finally, it reached a workable and acceptable state. I initially wanted to improve more on the code, but I guess with the datelines for SAB nearing, we'd better combine the code first. Better one working program with some bugs than two perfect files with no working output, JL reminded me.

And thus, we took code 1 and code 2 and mashed them up, and my luck, we got a working program. Well, not really by luck, but by a lot of re-editing the method signatures and copy and pasting code from one to another. Alas, a working game code, just with a couple of issues to iron out, such as the scoreboard, threading time, debugging outputs being printed at the background, etc.



Tuesday, 25 December 2007
Today is Christmas. Did I get many presents from Santa? Well, I've got all my friends around me. That should be enough for me, right? :)




Wednesday, 26 December 2007
Well, what else could we have done today, save for improving the game code? (its called whackapeng.c, btw).

Well, there are 2 major changes which we made today, and shall highlight them here:

Firstly, we ironed out some bugs in the game play, to name a few, were the encircling counter and circle sensitivity. It was hilarious when we started to test the program, and after attempting to draw 10 shapes (for level 1) to see if the code works fine under a happy flow, we realized that we had forgotten to add code to keep track of how many shapes have been encircled. Interesting.

The second problem we faced as that by drawing a small enough square/rectangle, by just basically completing 2 out of 4 sides, and a little start on the third side, the program will immediately assume its a circle (due to its small difference in diameter of the 3 random pair points) and draw a circle, which, if enclosing the center of the shape, will be considered as a successful shape encircling. Thus, I had to reduce the sensitivity of the circle detection, dropping the difference in diameter from 12 to 10. This change did not eliminate the problem, but only reduced the chance of it from happening, and the player had to draw a really shape to get it. Alternatively, was to totally trash circle detection for the game play, since the code for n-gon point detection will work fine for circles as well too, I believe.
Decisions, decisions.

We also added a high score board after the successful encircling of the shapes, though its just a dummy board as we have yet to think of a way to perform I/O effectively for the scores and the possible logo. hmmz.



Thursday, 27 December 2007
Well, with the main functionality of the game working, its time to improve it, pondering about the overall threading issue + file I/O.

One of the problems faced for the threading is that after every 20 seconds, the program will clear the screen of all drawings, just in case the user has drawn too much on the screen to effectively continue the game. Though when the thread that is in-charge of this goes to sleep for 20 seconds, it loses track of the game play. So even if the game had already moved to the next shape, or has been manually cleared (if ever it occurs during actual deployment), it would be impossible to alert the thread to stop and restart the count down timer, so that the clearing of the screen will effectively take place 20 seconds after the new drawing has been rendered on the screen. Or is there? hmmz. (I wonder if there is something akin to Java's wait() and notify() methods?)

File I/O is just thinking of how to solve the storing and retrieving of high scores for each level and the possible corresponding player logos for each of the high scores.

Been thinking...




Friday, 28 December 2007
I'm still working on some improvements of the game (e.g. overall threading issue + file I/O). Still not quite there yet. Took the last 3 hours of work or so to practice and revise for my SCJP exam, which is tomorrow. Hopefully I will do well :)

In addition to today, JL did a very cool code of using the light to drag primitive shapes around the screen. I can already see the HCI forming. :)




Reflection of the Week:
What did I learn for this week? Well, basically, its performance and the effect of inefficient code.

Lets start with performance, which I would be referring to code performance, as our entry point. Many times, our deployment environment or developing environment is quite powerful due to the use of modern technologies or high powered hardware. Which indirectly leads to more inefficient code being written. Why do I say that? When coding a function to solve a problem, there is little regard to the amount of memory that will be used by the function or the entire software. The code will run with little or neglectable performance degrading.

Thus even if the function is very inefficient, it won't really matter cause during development phase or (even deployment phase), only one application is tested at a single time, with a possibility of core 2 dual processor at 1.8GHz running in the back ground and 2GB of RAM. With regard to my experience in our school projects (again, this leads to school. But hey, isn't this supposed to be a reflection of my school experience vs the experience I am having now?), we develop applications that take little consideration of efficiency. Sure, we know what is the definition of efficiency, but do we really know the finer details of how to go about doing it in our code?

There was once I wrote a 1800 line class file for a very simple application - well, it probably beat the length of many people's code, but I bet it also beat them in being the most inefficient code. It had so many repetitions and nested loops, but when tested on my computer (Pentium 4), it was totally not a problem. Now imagine we put that code up on a not so powerful server in Singapore, and this application becomes really popular, with up to 3,000 concurrent users worldwide online calling it concurrently. Now we're really going to see the strain on the server. But if back then I've written really efficient code, perhaps of a couple of hundred lines, the strain would be much lesser.

So how does this relate back? Many times, the ideas that come to my mind to solve the problems I face within the code are not really the best way to go about doing it. Cramming all the code within a nested for-loop in a single thread and calling it to execute its loops repeatedly would probably cause strain on the program, which can be seen by the time it takes between when the light is captured by the camera, to the time it is rendered on the screen. The longer the time needed for the program to process the code, the larger the gaps become.

So conclusion? Thinking before coding :)

What a mess!

Thursday, December 20, 2007

Week 9 (17 Dec - 21 Dec)

Monday, 10 December 2007
Week 9 has come (and gone, for when I'm typing this entry, its Friday). The presentation during the mid-semester briefing/meeting is today.

Anyway, it went well actually. With some people laughing at us at the beginning before we started for some strange reason which we both cannot comprehend. But they liked the video a lot - which is attributed to CT's fantastic skills in creating the video and JL's interesting music.

Anyway, maybe we're making another one..?



Tuesday, 11 December 2007
ReachOut - Beyond Social Services is today. We went over to NTU Alumni Clubhouse in the morning and prepared for the games. For my "Amazing Scientific Race" station, I was with Harold and we shifted indoors due to the threat of rain. We talked about gravity and air resistance in the form of a fun game, which consisted them of throwing paper airplanes to reach the furthest distance (further = more points). And they got points which they could claim for prizes. Although the kids were very energetic which was a good sign, though I'm not sure if the handling of them was very effective, with all the overlooking for certain things which they should not be doing.

Anyway, after the race, had a buffet lunch at 8 Degrees Restaurant (so familiar) and when back to IHPC for a movie screening of Ratatouille, in conjunction with the staff movie screening for December. Well, since I've not watched that movie, might as well sit in and enjoy myself. :)

At the end of the day, though we were all tired from all the activities, we sat in for an AC Xmas retreat and enjoyed a bit before heading home.





Wednesday, 12 December 2007
Back to work. We started the day with manually calibrating the 4 projectors and learnt a bit about projector keystones, the effect is has when projecting while tilting up or down, as well as how the 4 tiled projectors were set up.

It took a lot of fine-tuning and adjusting before we managed to get the projectors more or less aligned. So now we have 4 screens where we can drag our windows on - which gets confusing sometimes, because I'm so used to drawing on a reversed canvas for the shape detection that when I draw on the normal canvas, I keep moving in the wrong way.

Oh well, gotta get used to it. Anyway, Kevin briefed us that we have the SAB presentation on the 8th of January 2008. We reviewed our milestones and projected end products and decided to give the game a while more before we move on to developing the HCI. However, this would mean that we will leave the game at a certain state where it is stable enough before moving on and coming back to it later to refine it. Oh well, few more days of the game code, gotta work harder!

Now focusing on point within a polygon detection. With the previous code for circle detection, it is possible to find the center of the circle to match the center of the object drawn. However, with a polygon, it is virtually impossible to find the center of it as there is no knowning before the detection, the number of corners the polygon will have. But some people will ask, why so? If the user draws (approximately) 4 right angles, it should relate to a rectangle/square, right? Or a shape with 3 corners would result in a triangle, won't it?

Not so! As the user's hand is not necessarily stable and the camera may not exactly capture light in a straight line. Result? A square with 4 right angles but more than 4 points, or a triangle with 4 points. - totally unpredictable.

So, without being able to find the fixed center of a n-gon without invoking very complicated and resource intensive mathematics, how can we find the center of a polygon, if possible, or to find out if a point is within the polygon, given a series of points/coordinates?

The Solution - I'm working on it!



Thursday, 13 December 2007
Today is a holiday. I spent the better half of the day studying for SCJP.



Friday, 14 December 2007
Okay. I'm lagging behind in my postings. Let me recall / summarize the things I've done for today.

Doing more research on Wednesday's problem. Searching and researching. Well, there are numerous interesting links, including a Fortan code written by someone a long time ago. Things like Mathlab and other related programs/framworks do repeatedly resurface in the search results, though it is highly likely using another program altogether would fix the problem.

Determination finally paid off, and towards the end of the day, I've finally found a suitable method. Well, it is not surprising that the C code solution is written by the same person who had written that Fortan code a long time ago. Well, looks like he's very kind to redo it in C, since majority of people use C/C++ out there.

http://softsurfer.com/Archive/algorithm_0103/algorithm_0103.htm


Well, let me do a summary of the algorithm here. But for more detailed information and the code implementation, please feel free to visit the website above. So, without further ado, the algorithm, which is called "The Crossing Number", goes something like this:

Accepting an argument for the single point (P) to be checked if it is inside the polygon, and an array (and where array[n] == array[0]) of all the points, it will draw a line from P, towards the edge of the canvas, towards the direction where x = infinity while keeping y constant (i.e. towards the right, parallel to the x-axis on a x/y graph). It then traverses the array and for every two points (i.e. Polygon Boundary Edge) , it determines if the line will cut across it. It then counts the total number of times the line passes over the entire polygon boundary. If the total number is even, then the point is outside of the polygon, else it is inside.

Pretty ingenious right? Using the knowledge of this new found methodology, I proceeded to manipulate it for my own selfish means and finally overcome the problem of detecting a point inside/outside an n-gon, which was resurfacing in my mind frequently for quite a while now.

Another thing I've learnt (although it is quite a while back) is that the coordinates (0,0) of the image is actually the top right corner, not the initial top left corner I have always assumed. Probably because during the circle detection, I was using an unflipped version of the canvas, causing everything to have a mirrored effect.

Okay, that's all for today. Hope you enjoyed reading.

Reflection of the Week:
I'm not sure if I have mentioned it previously, but I joined a Yahoo! Group regarding OpenCV as well as thronged through many forums and websites to search for tried and tested (and even untried and untested) methods to solve my problems. One thing I've noticed in all my surfings, including surfings from the past 3 to 5 years (5 being my first arrival to the Wired), is the lack of initiative that exist in there. Well, let me say that I am not stereotyping by saying that everyone inside a forum or user group has no initiative, but rather, a small number of people (and their outstanding incidents) have got me wondering if these people joined the group just to ask/demand/expect for answers. Although the way they ask their question may be slightly rude and demanding, the other great members inside the forums tap on their pool of patience and knowledge to try to answer them thoroughly and patiently.

What are the incidents, one might ask? Well, it usually goes along the lines of:

"I am developing [project details] and have an error. Can someone help me out? [insert entire source code here, consisting of a/several complex class(es)]" or "Can someone tell me the answer to [insert a question that has already been answered by other earlier threads, or can be easily found by searching Google]"

Well, it is true that forums and user groups are a source of information - to find solutions to problems, but should we be abusing it by pasting our entire source code (or worse, only a portion of the source code with no explanation and expect others to know the rest) there and expecting people to scan through the entire codes to understand the logic and find out what is wrong? Or demanding a quick answer to their problems which can easily be solved if they attempted to try (such as by looking at the API available online)?

IMHO, if there were at least attempts to try to understand their problem and only ask questions towards a narrower scope, it would have been much more easier and quicker for people to respond. Anyway, who would be inclined to find problems in codes amount up to 1000 lines with no incentive in return?

Perhaps, a better way to put it would be:

"I am developing [project details] and have encountered a problem which I cannot seem to comprehend. I've checked the server logs and it mentions that I have an buffer overflow thrown on line 35 (highlighted in red). I did a search on the method being called and did not notice anything wrong with the return type, neither does it throw any checked exceptions which I am supposed to handle. Could it be that the variable passed in as the argument during the for-loop is null or of wrong type? I know it might be tedious, but can someone kindly help me out, please? [insert source code of the method which the error occurs in and any related methods.]"

And of course, a little thank you after the answer has been posted and an update of the problem solving is appreciated, to show that their hard work and time is not wasted after all. Well, perhaps after going into that level of detail to state their problem within a narrower scope, they themselves would have been able to notice the error and solve the bug in their code before they even hit the "post thread" button.
Thankfully, only a small handful of people behave like the former; the rest behave in a much more matured and well-mannered fashion.

Negative online etiquette aside, I found many people at these forums or groups helpful and passionate to share their knowledge. Perhaps they are the ones, whose posts we should also value more, who make the forums a good place to hang out and learn. :)


Ciao for Week 9!

Tuesday, December 11, 2007

Week 8 (10 Dec - 14 Dec)

Monday, 10 December 2007
Week 8, and this means 8 more weeks to the end of my internship at IHPC. Giving it some thought over dinner, I am definite that I will miss IHPC and the Cove once I'm gone. Working here at IHPC, though only 8 weeks, have not only been fun, but also an educational and eye-opening experience. *opens eyes*

Now that I've opened my eyes and am finally awake, lets start this week fresh, energetic and in the mood of X'mas. I want my play-doh please. Whoops.

Odd shape detection is very challenging. With all the strange point coordinates its returning me and attempting to draw lines to. After spending some OT on Friday to separate the method used to draw the coordinate and calculate the corners (making it much more neater and easier to understand), I sat down the entire morning to do a code walk through. My waste-paper stack cum mouse pad is increasing with every paper I use. :)

Anyway, finally managed to more or less solve the problem before I called it a day - the coordinates being passed into the array of points seemed to be giving very strange numbers, such as (18912345, -1452) and (-523, 8), resulting in the lines being drawn all over the place, in an attempt to connect these nonexistent points which seem to fluctuate over time. With the time hitting 6.30pm, I decided to leave the office to grab some chow on my way home...

I've given some thought about the skeleton for the slides on Monday - hopefully I'll be able to get some interesting pictures to add to the slides. And that they won't bore anyone to sleep.

*back @ home*
Starting for SCJP is not easy. I've spent 0.0 hours today studying about it. The thought of it resurfacing regularly in my mind though, reminding me to study, but alas...

Picture of the day ...

I mistook this as a pillow by the roadside. Guess I was still sleeping.



Tuesday, 11 December 2007
RedSteel - and the "oh yes" scene.

What should I say? Eureka! or whatever word that has the same meaning as it.

Before lunch, finally manged to find out why the coordinates for the points were so strange - they were actually values of the memory addresses which I was using thanks to a addition of a wrong variable to the array index. After lunch, managed to fix that problem and move on to ironing some other bugs, such as deleting some unwanted repeated code to make the program more efficient (hopefully) so that it does not skip a few points when the total number of points and pointers increase [which happened a few times for some strange reasons, where the total # of points increased up to 110+ but the program was still reading the points from around 105 ].

After 7 days, managed to find out what is wrong with the odd shape detection code, solve it, and tidy up the code on my side a bit as well. I've also improved my knowledge of the parameters used in various OpenCV functions and its parameters. The idea behind it is still the same, taking only the points which are required to draw the n-gon shape and draw them, skipping those points on the contour which are already drawn, or contours with only less than 3 points.

This n-gon (or odd shape) detection is by far one of the longest task which I have done for Lightdraw so far. However, the experiences and challenges it brings is something worth exploring and solving, as the focus moves away from what I usually do in school, web dev, to something a bit closer to Computer Visioning and pattern recognition.


Pictures of before and after:
Before...

After...




Wednesday, 12 December 2007
With the odd shape detection / n-gon shape detection done, we moved on to discuss the rest of the game play and the immediate step to take. JL did a great job on the .png pictures which were used as the encircling symbol for the game play.

The next step would be to detect a single point collision within a shape via (ideally) a sequence of points of the shape or (not so ideally) by redrawing the shape.

In order to properly and more effectively get the sequence of the points and perform this encircling detection, it was suggested to perform "point merging". Which is to say, if on the n-gon where there are a couple of points which are closely positioned of X units between, we would merge them as one point so that the shape will become more defined, and that there will be lesser points to draw on the screen. Which will in turn lead to better point collision code. Hopefully.

After lunch went to double check the code and tested it to see if any hidden errors / memory leaks were hiding before updating of the SVN.

Just when we were all ready to start with the next step, we were reminded that we had a presentation to do on Monday and Kevin suggested that we prepare some slides and do a sample presentation to him so that he can give us areas of improvements.

Well, seemed like a pretty straightforward task to me. (or so I thought before Thursday)

Picture of the day:


Cake



Thursday, 13 December 2007
We focused mainly on the slides today which I have done up yesterday to present on next Monday. However, having not done presentations for a long time, I had lost touch of many presentation skills and did not synchronize well with JL, partly due to my complicated and over-wordy slides.

Naturally, our presentation didn't go as well as we would have liked and were given numerous areas of improvements for the presentation, including rewording and redesigning the slides. Reworking of the slides took place over throughout the rest of the day (and night) as the next demo presentation was in 24 hours after the first one ended.

After the presentation, we started filming the short video to complement our presentation. with JL as the director and myself as the star, who knows what rating will our video get. R21? Just kiddin'.

The idea may be good, but without a good presentation, no one will buy the idea.





Friday, 14 December 2007
Today I learn the meaning of 3 minutes. And good customer service.
That aside, today we sat through some presentations of some AC staff. We observed how they presented and what points which they did well on, and where they can improve. Indeed, every day seems to be an eye opener. It seems that many people fear presenting, and occasionally choosing to memorize their slides/speech, which should not be the case. As memorizing (IMHO) would mean that the speaker would not be flexible in his speech and panic when he/she forgets the words or point sequence ( i learnt that the hard way from the MSP dinner too ). The memorized sequence would partly seem to be very mono-tone and no tone of enthusiasm for some.

Anyway, after which, we all headed down to doc green for some healthy food ( a man of my word ). And some humorous incidents at the Vaio roadshow. And then back to the Cove for more slide editing and video filming before finally presenting to Kevin and Harold again. This time round, they mentioned that we have improved from the previous time, though there were still many points to take note. They gave many valid points of improvements for the slides as well as some of their learning points from previous experiences. Thank you, to Kevin and Harold, if you are reading this post. :)

Finished up some last minute work on the slides, and finally left the office at 9pm.

We take some, we give some.

Picture of the day:




Reflection of the Week:

I always thought that presentations relied only on the speaker - How confident the speaker portrayed himself and how detailed he elaborated about was somewhat all that mattered. Of course, the speaker must know his/her stuff thoroughly enough to do so.

Or at least that is my perception until this week at work.

When we got the points of feedback pertaining to our first presentation, it was then I realized how much things that I have been doing wrongly for my past few presentations in school. It is true that while presenting, we do a few things which we do not consciously take notice of, such as swinging our arms and playing with things in our hands. And we need people to tell us that we are doing such things before we actually realize it.

I also thought that speech came fluently to the speaker so that abstract slides, or even no slides, can still get the message to the audience within a short period of time. But again, I was proven wrong as I stumbled a couple of times during our rehearsals and got tongue-tied. Perhaps I need to speak slower in order to be concise and clear.

In terms of abstract slides, to me, I know what that one word means on the slide and/or how great a screen shot may be, in terms of time and effort spent. But putting myself in the shoes of the listener, the word is just another word and the screen shot might be just another possible photoshopped picture.

But this experience is great, as in school, the presentations were focused mainly on the way we portrayed ourselves (formal attire, etc) and the project which we have done (the so and so system which does ABC). Rarely were we actually corrected us on things like how we should not read from the slides, speaking too softly, not making eye contact, body movement, not presenting confidently, etc. The focus, was more or less on attire and project.

I'm not saying that there was totally no help or constructive feedback given to us by our tutors and peers. But perhaps the state of seriousness (or the lack of it) of the situation inside a classroom with all our peers looking equally worried as they frantically coded and amended their code before their turn (myself included) while they half-listened as us did not really drive in the point. Also, with our friendly tutors as our evaluators, the familiar faces reduced one of the stress and pressure points on us.

Peer to peer evaluation is equally important and should be taken seriously. Though it is rare that peer evaluations included pointers on presentation skills - more on the project and teamwork issues. In my experience, very few friends have came up to me and actually told me in my face that I was doing something wrongly. Of course, if feedback came my way, I would have to put aside any emotional feelings and see the feedback as it is, and not from who it was said by.

Well, at the end of this post, would just like to summarize the learning point for this week, which is: good presentations need quality visual aids to compliment the presenter. When given feedback, accept it modestly, thank the person and work to improve on it if it is a valid point.

Anyway, hope Monday's presentation goes well.

Monday, December 3, 2007

Week 7 (3 Dec - 7 Dec)

Monday, 3 December 2007
Ahh! Monday, a start of a brand new week. After the long weekend, inclusive of being burnt from a 22km kayaking expedition around Pulau Ubin, its back to work.

Circle Detection and Rectangle Detection seems okay - but a problem arises from the code: When drawing of the rectangle or a 4-sided polygon, the user may have an unstable hand or be unsure of the direction to travel to create the appropriate shapes - which may result in a rectangle having 4 distinct sides. But in reality, after the cvDilate-ing and cvCanny-ing it, there will be 1 to 3 additional points detected along with the 4 distinct corners due to the uneven width of the light and the straightness (or rather, the un-straightness) of the line being drawn.

Solution: to modify the rectangle detection code in such a way that it is able to dynamically detect shapes with 3 or more corners and draw its outline. This way, there will not be a need to have a set of code for each shape, starting with a triangle, polygon, pentagon, hexagon, etc.



Tuesday, 4 December 2007
Tuesday.setTasks = Monday.getTasks();

I'm still doing Monday's task.

Some trivia: RSVP is the abbreviation of the French phrase répondez s'il vous plaît,




Wednesday, 5 December 2007
This blog has been discovered! There is no more hiding in the shadows of my inner random thoughts. Perhaps some censorship is needed in the following 9 posts (9 weeks). Oh well, just do until told not to. :)

Odd shape detection. Still on it - still redefining it. Managed to get a more or less accurate code up and running and understand the source code more, including the one line if-statement again, after asking Harold about it and being reminded that I was not learning based on my first week's post. Perhaps I should really take time out of a weekend to read that book I borrowed about C as well as the C++ books that Mr Yeak has kindly lent me.

Anyway, we also discussed a bit about the concept game, its game play and some rules and things to take note. We got a list of tasks to do and will start working on it as soon as I get the odd shape detection with separate polygons being drawn without being connected.

Ms Chiang sms-ed me today informing JL and myself that we had to do a short 10-15min presentation about the lightdraw project to our cohort during our mid-sem briefing (17 December 2007). We discussed this with CT and Kevin and decided to do some progressive introduction via a slide show and a short video show casing lightdraw in action. Time to factor in some time to do script and slides within the next 2 weeks. Probably, there goes my free nights and weekends (if I had any to begin with) :)

And one more thing, Merry X'mas.





Thursday, 6 December 2007
The high wall remains firmly rooted to the ground, unbeaten by the multiple attempts that we have put forth to bring it down. Swaying slightly in the breeze, it looks down on our feeble attempts and laughs.

Perhaps in my imagination.


I'm still doing odd shape detection with separate polygons. There's some progress - at least I know where my previous algorithm went wrong. The corners of the polygon being detected do not necessarily get detected sequentially, thus in a pentagon, the 3rd corner drawn may very well become the first corner in the detected contour. This makes slicing the sequence of points based on the number of corners (like the polygon detection) impossible as there is no way to tell the number of points the user-shape may have, even for a regular polygon, due to the width of the light detected by the camera and the non-linear hand movement across the screen even for straight lines.

Task now: Thinking about how to effectively separate/slice the points, belonging to a single closed shape, from the main sequence of points.



Friday, 7 December 2007
I think I've got it - but only in theory. It took me the entire morning to figure it out, and the entire afternoon to duplicate the code such that it worked via two functions instead of everything lumped together. (Perhaps I'm not understanding the code enough?)

The way that I have thought about to detect if the points within the sequence is by checking, based on the original picture, that the midpoint between them is/are of equal colour, with consideration of thresholding. If they are, that will mean that there is a line drawn between them and they are belonging to the same shape, connected by a line.

However, I've only managed to think about the concept of it. If this concept fails, I'll have to go back to CT's way of manually checking each pixel and defining each pixel to see if it belongs to a certain pattern. Which we suspect will be very slow, and will further cause lag to the software's performance. But we will never know unless we try and then again, with the Mac Pro so powerful...



Reflection of the Week:
This task on odd shape detection for 2 or more shapes is taking quite a while to do (so far till friday, its been 5 days). Well, I admit that perhaps the confusing usage of the various parameters to pass into the functions is one of them. With many parameters being generally explained or the use of terminology with regards to computer vision...

Anyway, that aside, Kevin mentioned to me earlier in the week about how working in an environment outside of school is different in terms of real world experiences. Which I have to agree to some extent. In school, we are unconsciously being spoon-fed to some extent. When assignments are given to us, we already know that they are do-able, and that the answers we seek are inside the lecture notes. We know what is the criteria to score a A/B/C/... (at least for the old system I went through).

Again, I have to clarify my point that it is not that I hate studying in school or I hate being spoon-fed - when I first came into TP-IIT school, I needed all the help I could get to do a simple Hello World program. Spoon-feeding to some extent in school is not a bad thing as isn't it by looking and understanding how others do it that we learn to do it ourselves, and do it better? But just that when it comes to getting exposure on the various industry stuff and what not (e.g. SVN), perhaps these attachments are most ideal in getting the student hands on experience in this aspect.

Working in an environment outside school is akin, IMHO, to doing the bonus task of the assignment, which targets a totally different segment of the working software. However, that aside, for assignments we could always ring on Dr Eng's staff room extension and ask for advice when we meet with some problems (whoops, sorry for disturbing you for the past 2 years, Dr Eng!). But outside of that school boundaries, perhaps some of the problems we are attempting to solve are not even solvable with the state of the libraries/technologies at this point of time (opposite when compared to assignments which we know are possible).

Now, there is no number to call for specific advice with regard to the part of uncertainty. Again, not that I am complaining - it is a good way to gain experience and learn how to solve my own problems. Using forums, interest groups, APIs, white papers and what not. Thankfully, I took up the CDS of "Using the Internet as a Research Tool" (thanks Mdm Jamila) and it is perhaps time to refer back to some of the first few lessons I've learnt in that subject..

At the end of the day, each approach has its pros and cons. And regardless of each phase, we should make the best use of what we have to fully learn as much as we can from our differing experience and grow/develop ourselves.

Next week, I throw another thing up in the air to juggle with my 24 hours each day - studying for SCJP, its test on 29 December. Will I survive?

Wish me luck!



Reminder to myself: write maintainable code...