Updates

Hello people, it's been 11 days since my last update and no, I am not going to apologize for it. Hahaha.
'Cause for the last few days it has been very busy... Here's a list of things that I have to do:

1. Compile and finalize Industrial Training
2. TRC2500 test
3. TRC2400 test
4. WARMAN Competition
5. Start on TRC2201 Assignment 1
6. TRC2100 Assignment...
7. Tidy up WARMAN Competition aftermath

And other small things like attending the Music Festival and spending some time with my girlfriend. Haha.

Anyway, there's nothing much to update about because I am just so lazy to upload pictures of the WARMAN competition. I'll just leave it to other people to post it up. Haha.

By the way, our WARMAN competition was not too bad... Better than what we've expected. Our first run succeeded in 4.8 seconds and it was a very HUGE relief to us. However, the second run was a failure. -_-" Our beloved motor decided to amputate its own terminal right before the start of the run. Since we've only been given 2 minutes to set up our vehicle, we cannot possibly replace the motor in time. Therefore, I used Blue tack to stick a piece of wire at the briken terminal hoping it will conduct. Well, it didn't. Sigh...

Nevertheless, we still manage to get some pretty decent marks. Fortunately. Thus ends the terror of the WARMAN competition... *applause*

Big thanks to Yan Foon, Dun Hong and Kit Yee, my groupmates for relentlessly contributing to the project in many many ways. Especially in monetary form. Hahaha. I haven't paid a single cent in materials cost! Yeay? Haha.

OK, now to go tidy up my stuff... Bye people!

FB!

To facebook or not to facebook...?

Vote in the poll and leave a comment on why? Thank you. =D

EDIT: ok fine, i am on facebook now. bode plots made me do it...

1Malaysia


Has anyone visited the new website that our new prime minister introduced? Takes jolly long to load even though it's a .my website. Hmm...

Well, I'm not sure exactly what our PM is trying to do with this 1Malaysia thing. Can you believe it? Najib is on youtube, flickr, and even twitter! I bet he's gonna make a facebook account very soon. Lol. Certainly he doesn't have time for all these...must be some kakitangan who helped him manage it. I wonder if Najib knows how to write in html or xml... The 1Malaysia website is quite 'canggih' leh.

Having said that, I seriously doubt that the 1Malaysia 'campaign' would have a major impact on our nations' development and building. The thing is, I've been born into the age of Wawasan 2020 where Tun Dr. Mahathir was saying this and that to make the country grow etc. etc. etc. But look at the current state of Malaysia... Have we actually achieved anything that the country can be proud of? Or anything that the world would think of when we mention 'we are from Malaysia'.

Looking at other countries... China has become a globally recognised "power" country, India's development pace is much faster than us, foreign investors are heading to Vietnam, Indonesia to set up factories, etc instead of Malaysia. Besides that, all we read from the newspaper is about the government and politicians doing what they do best: politicking and making critical comments on the opposition party. BORING...!

Sometimes it doesn't take a genius to figure out why Malaysia hasn't grown into a developed country. Political parties are only sitting in their office trying to find faults in the opposition party. If not, they will somehow think of some riduculous idea like changing the name of streets (remember Jalan Alor). WHY THE HECK ARE THE TAX PAYERS PAYING THEM TO DO SUCH NONSENSE??? When you think of it, wouldn't you go "wtf?"? Lol. But after a while, it would be a sigh and you just have to shrug it off your shoulder. What to do? They are the 'big shots' mah... Wanna fight ah?

Anyway, back to 1Malaysia... I just read some blog comments on the website:

"Only UMNO and Barisan can lead Malaysia and not the Opposition parties (they are weak, with differing ideologies, with marriage of convenience, they can break away anytime)."

"Kekalkan teras perjuangan Melayu (UMNO)pramerdeka atas landasan Barisan Nasional."

"mengembalikan kegemilangan UMNO yang kian malap dewasa ini. Kembalikanlah gemilangan itu agar bangsa kita tidak dihina,dijajah dan diperlekehkan ditanah sendiri."

Funny, only ONE commenter (Indian) mentioned MCA or MIC when they post comments urging the PM to 'revive' the 'glory' of our nation. ONE! Others are like above... UMNO dan Barisan, UMNO dan Barisan... Why didn't they just say "Barisan Nasional"? I realised that most of the people in our country only look up to the parties that's made up of their race. This means that the people of Malaysia are still seeing our country's political parties divided as Malays, Chinese and Indians... NOT Malaysians. I see that this skin colour division still has ALOT of influence in the people of our nation... Having said that, I must shamelessly admit that I, myself see differently in people of different skin tone. Why? 'Cause I've been brought up like that. Under the influences of the people around me and also the politicians of our wonderful country.

The racial divider/barrier have existed since the early days of our country's history. As far as I know and as I can see... The single largest mistake that prevented the merging of the races is back then when UMNO rejected the proposal of Dato Seri Onn Ja'afar to open up UMNO to all Malayans. It resulted in the resignation of Dato Seri Onn Ja'afar of his post in UMNO. Ahh... Why did they rejected the proposal? Who knows... But from my point of view, IF UMNO had opened up to all Malayans back then, we would only have ONE party now. Not a coalition of UMNO, MCA and MIC. In fact, racial harmony would also be promoted in a even better way. WHY? Because leaders of all races are working together in a party from TOP down to the BOTTOM. How can the people be united if we are already split at the top?

Sigh... as an almost 19 year old who have spent my entire life in this country, it is very very saddening to see how bleak the future of our country is. I am not being a pessimist. Hearing all the infamous stories of our nation's leaders such as corruption cases, lavish spendings of the minister's spouse, over budget contracts being awarded to companies related to the ministers in certain ways, etc., how can one not be concern on how our country will finally end up. Sigh...

If only we can merge the all the parties together...
If only we can make everyone colour blind...
If only we can shed some greed from our hearts and minds...
If only we can create only ONE race, ONE country and ONE Malaysia...

But sadly we can not...
Power hungriness, racial discriminations, greed... all this makes 1UglyMalaysia...

P.S.: On a lighter note, don't you think the 1Malaysia logo looks alot like Suria KLCC's logo? lol.

HAPPY BIRTHDAY CHU JIE JIE JIE!

Happy birthday to you,
Happy birthday to you,
Happy birthday to Chu Jie~~~
Happy birthday to you!

Though you are in Adelaide now, birthday wishes sure will come from every corner of the world and reach you through your K800i. =D

Anyways, wishing you a happening and joyful birthday over at the land of platypus and kangaroos, and don't forget to wish for world peace and anti global warming oo! Hahaha. Just joking. =p

Since I have limited birthday wish vocabulary, I'll post some nice picture of you la. Lol.

.
Oh ya, we all love you. =D

Happy 20th birthday.

blue tack

Harlow people, just a short update here. Haha.
Blue tack is fun! and it keeps you awake during lectures! =D
I don't mind getting a large bundle of blue tack for my bday if you don't know what else to buy. Hahaha.

The escaping man 2500 (it fooled the face detection algorithm in C905)


Mr. Octopus bowling

walao-eh

Just got an inspiration to blog 'cause I was woke up abruptly by the tv when i was blissfully having an afternoon nap on the floor in my living room and was told "nvm nvm, i'll tune the volume down, u can still sleep".

wt_? (fill in the blanks)

Code code code

Harlow people... It's been quite long since I update my blog. Reason? No inspiration and no motivation. =p
Just got ffk-ed again yesterday when trying to sell the HTC Diamond. Anyone want to buy? Zzz.
Anyway... just thought i would share a little part of my engineering course with everyone: my C++ program code for the recent lab 4. A glorious 199 lines of codes (It's considered short). =D

// Lab4_1.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <stdio.h>
#include <string.h>

/**********Bunch of stuffs given**********/
const int IDLEN=10;
const int POLARITYLEN=3;
const int MAXSTOCKITEMS=10;

struct TransistorRec {
char manufacturersID[IDLEN];
char polarity[POLARITYLEN];
float power;
float gain;
int stock;
};

typedef struct TransistorRec Transistor;

struct StockRec{
int size;
Transistor stocklist[MAXSTOCKITEMS];
};

typedef struct StockRec Stock;

/**********Function prototypes**********/
int fgetdata(Stock *ptr);
void fprintinfo(Stock);
void fsearch(Stock);

/**********Main**********/
int main()
{
//Declaring variables used
int choice,exit,countt;
Stock StockInfo;
StockInfo.size=0;

//Print header for menu
printf("Transistor Stock Menu\n");
printf("==================================================\n");
printf("[1] Input transistor stock data.\n");
printf("[2] Show current transistor stock. d-(^^,)z\n");
printf("[3] Search for transistor.\n");
printf("[4] Exit\n");
printf("--------------------------------------------------\n");

exit=0; //Initialize variable "exit"

//Do-while loop to run program until users ends it
do{
printf("\nPlease enter a choice: ");
scanf("%d",&choice);

//Switch statement to let user choose what to do
switch (choice){
case 1:{
if(StockInfo.size<MAXSTOCKITEMS){
countt=fgetdata(&StockInfo); //Input data
break;
}
else{
printf("Cannot input anymore transistor.\n");
break;
}
}

case 2:{
fprintinfo(StockInfo); //Print data
break;
}

case 3:{
fsearch(StockInfo); //Search data
break;
}

case 4:{
exit=1; //Exit
break;
}
default:{
printf("Please enter a valid choice.\n"); //Prompt user for correct choice
break;
}
}
}while(exit!=1);

return 0;
}

/**********Function definitions**********/

//Function to get data
int fgetdata(Stock *inptr)
{
int count=inptr->size; //Initialize counters
int next=0,cont=1;
char temppol[POLARITYLEN+1],tempid[IDLEN+1];
//Loop to input data
do{
printf("==================================================\n");
printf("Please enter manufacturer's ID: ");
scanf("%s",&(inptr->stocklist[count].manufacturersID));

//Loop to input and validate polarity
do{
printf("Please enter polarity: ");
scanf("%s",&temppol);
if(!strcmp(temppol,"PNP")|!strcmp(temppol,"NPN")){
strcpy(inptr->stocklist[count].polarity,temppol);
cont=0;
}
else{
printf("Please enter a valid polarity.\n");
for(int j=0;j<POLARITYLEN;j++){
temppol[j]='\0';
}
cont=1;
}
}while(cont);

printf("Please enter power: ");
scanf("%f",&(inptr->stocklist[count].power));
printf("Please enter gain: ");
scanf("%f",&(inptr->stocklist[count].gain));
printf("Please enter amount in stock: ");
scanf("%d",&(inptr->stocklist[count].stock));
count++;//Increases type of transistor count
inptr->size=count;

if((inptr->size)<MAXSTOCKITEMS){
//Prompts to repeat data input
printf("Thank you, input another? (YES=1, NO=0): ");
scanf("%d",&next);
}
else{
printf("Maximum stock items reached!\n");
next=0;
}
}while(next!=0);

return count;
}

//Function to print data
void fprintinfo(Stock input)
{
//Print table header
printf("\n================= CURRENT STOCK ==================\n");
printf("|_Mft. ID_|_Polarity_|_Power_|_Gain_|_Stock_|\n\n");

//Loop to print transistor info until number of transistor types
for(int i=0;i<input.size;i++)
{
printf(" %s\t\t%s\t%5.2f\t%2.0f\t%2.0d\n",
input.stocklist[i].manufacturersID,
input.stocklist[i].polarity,
input.stocklist[i].power,
input.stocklist[i].gain,
input.stocklist[i].stock);
}
printf("\n==================================================\n");
}

//Function to search transistor type
void fsearch(Stock input)
{
//Define variables and print header
int sel=99; //Set sel to 99 (Unreachable value for type of transistors)
char searchID[IDLEN]={0};
printf("==================================================\n");
printf("Search: ");
scanf("%s",&searchID); //Receive input for search

//Loop to compare searchID and manufacturer's ID
for(int i=0;i<input.size;i++)
{
if((strcmp(searchID,input.stocklist[i].manufacturersID))==0)
sel=i;
}
if(sel!=99)
{
//Print out results
printf("==================================================\n");
printf("Found transistor...\n");
printf("Manufacturers ID = %s\n",input.stocklist[sel].manufacturersID);
printf("Polarity = %s\n",input.stocklist[sel].polarity);
printf("Power = %f\n",input.stocklist[sel].power);
printf("Gain = %.0f\n",input.stocklist[sel].gain);
printf("Stock = %.0d\n",input.stocklist[sel].stock);
}
else
printf("Transistor not found. \n"); //Print if transistor type doesnt exist
}

yeay! It's an update! XD