Wednesday, April 30, 2014

Got to be the worse Semester

This Semester could be the worse semester I ever had in NTU. I have never flunk a mid term quiz in my life till now. Quite worried for the finals. Not sure if it is enough to save the two quiz that i failed. Any database Administrator out there who could really enlighten me if a person who failed two mid term quiz in school can be a DBA in the future?

Thursday, April 17, 2014

Life story from 3001

From this lab, I have learn a very useful life story from my very good friend Li Yuekang. To be great, it's nothing to do with grade and smartness. It's more on perseverance and how you manage to overcome what you do not know initially. If you have known what's going to happen then there's nothing great. It's when you do not know what is coming and you adapt to cope with it even though you may not be successful. It still makes you stand out. Yeap thanks yue kang

Wednesday, April 9, 2014

VpnToPhyPage(int vpn)
InsertToTLB(int vpn, int phyPage)
int VpnToPhyPage(int vpn)
{
IptEntry* iptPtr = hashIPT(vpn, currentThread->pid)->next;
// loop while there is any entry and is mismatch
while ((iptPtr) &&
( ((int)(iptPtr->vPage)!=vpn) ||
((int)(iptPtr->pid) != currentThread->pid) )
)
{
iptPtr = iptPtr->next;
}
// if entry found then return its physical page otherwise -1
if (iptPtr) return iptPtr->phyPage;
return -1;
}
void InsertToTLB(int vpn, int phyPage)
{
int i = 0; // entry in the TLB
static int FIFOPointer = 0;
// Find any empty space in TLB
for (; iif (machine->tlb[i].valid == false) break;
}
if (i>=TLBSize) i = FIFOPointer;
FIFOPointer = (i+1) % TLBSize;
... (Rest of code given)
}
CZ2005 LAB 3 REPORT SS2 2014
4
int clockAlgorithm(void)
int clockAlgorithm(void)
{
int phyPage;
static int clockPointer = 0;
while (! (
( memoryTable[clockPointer].valid == false) ||
( !memoryTable[clockPointer].dirty && memoryTable[clockPointer].clockCounter == OLD_ENOUGH) ||
( memoryTable[clockPointer].dirty && memoryTable[clockPointer].clockCounter == OLD_ENOUGH + DIRTY_ALLOWANCE)
) )
{
memoryTable[clockPointer].clockCounter++;
clockPointer = (clockPointer + 1) % NumPhysPages;
}
phyPage = clockPointer;
clockPointer = (clockPointer + 1) % NumPhysPages;
return phyPage;
}



Tuesday, April 8, 2014

Goals and Aim for this Semester

2003 Computer graphic    A- and above
2005 Operating System    B+ and above
2007 Database                 B and above (after my first quiz hopefully everything will pull up and can aim for B+)
3001 Advanced Computer Architecture       B and above
Cyber Security                A-  and above

Saturday, April 5, 2014

NTU Chinese Orchestra Concert


Database Quiz

I sat for this database quiz recently. And unfortunately i flunk it. 19/50 just because of conceptual error. Superkey is not a key and I lost 25 marks. WTF. Seriously. Only in NTU then it is not a key. Such a question can be so deadly. And not even one or two marks is awarded to me. Damm.... my life. A DBA aspired how can score that badly. Guess I have to work extremely hard now. But I realise one thing, I have learn how to cope with failures and move on. Something which I say I can't in the past. Will post all the lab answer and quiz after the semester to share with all other ppl. My aim this semester to break into second lower honour. Hopefully.

Thursday, April 3, 2014

Life sucks in NTU

Well.... I would say life in NTU computer science is really not easy. But I have learn alot. Everyday, it's either juggling with coding or lectures or tutorials or CCAs because I need to stay in hall as I live too far away from Pulau NTU. I do not really have time for myself seriously. Wake up in the morning 6 am and reach home at 12 midnight and it starts all over again. Then Saturday and Sunday have to chiong projects and recorded lecture because you really cannot grasp what the professor are speaking. I would say half of them don't even know what they are teaching. Why do I say so? Well.... there are instances when we ask them questions, the prof or the lecturer would try to push by saying it's in the note or you have to google it yourself or blah blah. I know of one who would tell you something like this.... "you should have learn this in the lecture note...." or "Everything could be found in the notes". Dude if we have known the answer, we do not need to ask you in the first place and you do not need to be here. Seriously, knowing your work and educating others is really two different entities. Now, I really appreciate all my teachers back in primary all the way to JC days. So i guess this also further imply that you could be an elitist but that doesn't make you god. Sometime i do really wonder how does NTU choose their prof? Is it like how Iphone chose their staff (Grades) which makes them weaker ever since the fall of their god Steve Job. Do not forget it's the student who improve the ranking and not the professor. And mind you, the students from China, India, Vietnam are doing well because they learn it before in their homeland and not from NTU. This could be seen from their absenteeism from lectures. I once talk to some of the deans in my school, they told me theres no point going for lecture. Just do your work and prepare for the final because the final is the most important. Fuck care about the mid term and the rest coz it's wasting your time. Is that true? Can someone clarify with me?

Tuesday, April 1, 2014

Life in NTU Computer Science

Well.... I really hated my course. Computer science. If given a choice, I would have chosen something else. Something that is less project intensive. I think NTU Computer Science is the most intensive among the four Universities offering the IT courses. Not only are the project tough, where you would find yourself figuring how to solve the problem yourself with no lecture slides to go through but only Google as your best companion, the quiz question depending if you are lucky or not you may get question that test you on one single concept throughout the entire paper. Yeap, it's throughout. So for example, out of complacency or time constraint, you miss that one single chapter or page, "Boom" you fail. It's seriously not fair and I feel that it is not the best way to test a student especially when you just change your syllabus with limited amount of Pyp to refer to and with so many heavy project throughout the entire semester. There could be the reason why 50% of our cohort are hating what they are studying and thus pulling the grades down. I also feel it's super unfair as the foreigners may have done that in their own country and hence are not on even ground. How can you set a bell curve like that. That is not teaching le. That is call learn it yourself. No wonder many of us are not turning up for lecture because it is pointless. You are setting question from things that you are not teaching. Haiz... I really feel it that way. Hence I would persuade those who is coming into NTU Comp sci to think twice before coming. Do not regret or tricked by the salary survey. Life throughout the four years are tougher than you can imagine.