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?