Sunday, September 26, 2010

what I'm busy with right now

1. Computer Science Game

my group's doing some sorta girly fairy-shooting-goblins first-person-shooter game. I'm supposed to write the codes, and someone else do the graphics. so far, the states are done, but without the graphics.


2. English ISU research.

it's a REALLY heavy topic

Evolutionary View on Social Structure in The Time Machine.

I have TONNES of pages to read up on Marxism, Social Structure, Evolutionary Theories and H.G. Wells himself.



3. Chemistry

urhhh..Acid-Base calculations, I need practice on this. I should seriously make time for this. T_T


4. Advanced Functions Trig



5. Musical Theatre

ohh...October please come fast. but I never get the pitching right for Colors of The Wind.



I'm totally stressed out now.

Thursday, September 16, 2010

CS Flex 3 Test Revision

Task One:

1. You have two buttons. One labeled "Timestable" and the other "Divison table". The Timestable button calls the timesTable function, and the Division table button calls the divisionTable function.
2. Assume that the logIT function has already been given, write the codes for the timesTable and divisionTable functions so that as the button is clicked, the respective tables will be printed out in the debug logger.

Answer:

private function timesTable ():void{
for (var i:int=0; i<13; i++){
for (var j:int=0; j<13; j++){
logIT (String(i) + ' times ' + String(j) + ' = ' + String (i*j));
}
}
}

private function divisionTable ():void{
for (var i:int=0; i<13; i++){
for (var j:int=0; j<13; j++){
logIT (String(i*j) + ' divided by ' + String(i) + ' = ' + String (j));
}
}
}

 
 
Task Two:
 
1. You are given a text input box and a button. On click of the button, whatever information from the text input box will be in reversed order and displayed in Alert.show.
2. Write the codes for that function.
 
Answer:
 
Create a variable to extract information from the text input box, and another variable to be displayed on the Alert.show.
 
private function reverseText ():void{
var reverseText:String = txiInput.text;
var inAlert:String = ' ';
for (var i:int= reverseText.length-1; i<-1; i--){
inAlert = inAlert + reverseText.charAt(i);
}
 Alert.show(inAlert);
}
 
 
 
Task Three:
 
1. You are given a text input box and a button.
2. Create a function whereby on click, the total of vowels in whatever information from the text input box is displayed in Alert.show. Change upper case characters to lower case when extracting information from the text input box.
 
 
Answer:
 
Similar to the previous problem, a variable must be created to extract information from the text input box, as well as to display or count the number of vowels.
 
You can use: a switch statement, five if statements or one if statement.
 
using switch:
 
private function vowelCount():void{
var sampleText:String txiInput.text.toLowercase();
var vowelTotal:int = 0;
for (var i:int=0; i
switch (sampleText.charAt(i)){
case 'a': vowelTotal++;
             break;
case 'e': vowelTotal++;
             break;
case 'i': voweTotal++;
             break;
case 'o': vowelTotal++;
             break;
case 'u': vowelTotal++;
             break;
default:  break;
}
}
Alert.show ('Total vowel is ' + String(vowelTotal));
}
 
 
erh, I'll figure out the if statement sometime.

Monday, September 13, 2010

Memori Keropok Lekor



  1. Setiap kali ada school trip ke SBP pantai timur di Pahang atau Terengganu (seingatnya, pernah mengunjungi SESTER-Perfect Score Zon Timur 2009, SBPI B. Rakit-HKSBP Zon timur 2008 kot? SHAH Pekan- HKSBP Zon Timur 2006, SESMA-bermalam untuk Sambutan Hari Guru Kebangsaan. Eh, who knows where the headgirl of SESMA 2009 is right now? and....tu setakat yang ingatlah tentang sekolah yang dikunjungi), kalau berkesempatan lalu Batu Buruk, mesti singgah beli keropok lekor. Best gila. Sekali beli mesti habis dalam RM 50, sebab beli untuk cikgu, untuk kelas, untuk ahli dorm.

  2. Sesampainya di kelas, keropok lekor akan dibahagikan untuk bahagian budak-budak (budak-budak?) laki and budak-budak perempuan. Di bahagian depan kelas, budak-budak laki dalam sekelip mata sahaja menghabiskan keropok. Budak-budak perempuan pula makan di meja belakang (selalunya meja akulah tu. Nampak sangat muka kuat "jjella", huhu). Kita makan 'cover-cover', konon ayulah kot. And then, berduyun-duyun pergi toilet sama-sama basuh tangan. Kadang-kadang lepas balik cuti, yang selalu bawa keropok mesti Amylea ke, Hanani ke, Shatilla ke.

  3. Balik dorm, makan lagi keropok, siap buat announcement lagi ajak pergi ke dorm, and then tambah dengan make ccolek plop. Kat kelas mengata sangat budak laki makan keropok macam piranha, budak-budak perempuan bila di dorm, pun lebih kurang juga. Lahap saja telan keropok rebus tak tergoreng itu. (Especially tuan empunya diri ini.huhu. Nafsu makanan tak tertahanlah katakan.)

  4. itu baru satu jenis keropok lekor. jenis lain pula ialah yang di kantin kak ze. selalu sahaja 'kompelen' tentang kenipisan dan kekerasan keropok itu, tetapi ditelan jua. Kalau kebetulan ada sambal pada masa itu, ya Rabbi, sedapnya makan keropok dengan sambal.

  5. jenis ketiga yang sedap pula ialah semasa HKSBP Kebangsaan di Jenan. Memang montok-montok sahaja keropoknya, dan amatlah rangup. Cikgu Paridah pernah membeli keropok itu daripada tuan gerai untuk dikirimkan ke rumah. Sayang, api dapur tak cukup besar, minyak tak cukup panas, makakeropok pula tidak terlalu rangup. Tapi tak mengapa, namanya keropok, tetap boleh dimakan juga.

  6. Dalam perjalanan pulang ke KL baru-baru ini, eh, baru sahaja semalam, sampai di persimpangan ke Kuala Terengganu, baru teringat kenangan makan ikan, udang, sotong celup tepung di tepi Pantai Penarik bersama-sama Cikgu Paridah, Cikgu Razuki, Cikgu Muhammad, Pak Cik Hamdan dan Syakir. Masa tu on the way nak pergi ke nak balik Sambutan Hari Guru Kebangsaan.
ahh..sungguh..makanan sememangnya mampu menggamit memori..

Sunday, September 12, 2010

Kemamai in Kemaman

Yeahp, a two-day trip to Kelantan. 2nd Raya, went for the alumni thing. I'm so, so glad many of my batchmates turned up, but too bad, it was all rushed, and I didn't get to chat with most of them. I only got, like, two minutes each?

Then, the next day, back to KL via Ganu. Hence, the title. I reached home at around 3 a.m. Okay, no mood to post. Later.

Thursday, September 09, 2010

Dalil dan Penyakit Gila

Dua perkara yang kerap menjadi sebutan dalam novel Maryamah Karpov, iaitu novel terakhir dalam tetralogi Laskar Pelangi karya Andrea Hirata. Tatkala menurunkan tinta dalam entri blog kali ini, tertanya-tanya pula pada diri sendiri, apakah bahasa yang akan digunakan pula? ahh..! hentam sahajalah mana-mana pun bahasa yang terkeluar, asalkan dapat menyatakan dengan jelas kupasan pada kali ini.

First two books are more nostalgic, as it talks about school and childhood, but the last two books seem more 'epic'. It tells of his travels and self-discovery, albeit a tad Paolo-Coelho-ish. I find the travels to be extraordinary and hard to believe. You should read it to know where he went and what he did.

What I liked about the whole series, and perhaps it is more prominent, well, probably, I understood it more in the fourth book, is the sarcasm and irony in the Malay habits. What sets the fourth book apart is the fact that he has finished his studies, so it almost seems like the end of his quest for formal education. In the fourth one, it's more towards a completely new discipline of knowledge he'd never thought of acquiring. This reminded me so much of Paolo Coelho's works. For example, in The Witch of Portobello, the title character, herself, was in search of peace and tried finding it in learning calligraphy, although she was more of a dancer.

The theme of self-discovery seems to be parallel with travelling. (This is certainly saying something!) In the fourth book as well, it's about the Quest for True Love. Of course, I shrug it off as a fairy tale, but then again, this was a true story, but to find such faithful men like that..hurm, getting more scarce nowadays. yeah, and it's crazy, the extremes he goes to just to get the girl of his dreams, just like his travels, it seems hard to believe, yet it was based on a true story.

All in all, it was a good read. I like the sarcastic anecdotes of the Malay mindset. I find many ironic things that people do. They're poor people, yet they liked to bet. Even the protagonist himself, was educated abroad, yet, still seeks answers from a friend who did not even finish school and works in a copra mill. Oh yeah, and the ending was superb. Heck yes, I'm a sadist.

and becoming a Raya scrooge.


SELAMAT HARI RAYA to fellow muslims.

Wednesday, September 08, 2010

Honestly

I'm not so much in a Raya mood. Well, the fact that I'm totally broke, JPA has yet to give me money, and I don't get any pineapple tarts this year, contributes as much to the non-Raya-ing mood. However, the other major factor of non-Raya mood are my grades. Yes, it's an 'A' okay, but with people getting 90's, they make mine look like CRAP. And the fact that the assessment is not over yet, leaves me feeling paranoid. Obssessed. October will be a full month for me. UNIT THREE CHEMISTRY, MACBETH and ISU, UNIT THREE ADVANCED FUNCTIONS, COMPUTER SCIENCE CPT, omg...and.....Musical Theatre..October is like, the last leg before the finals, and if I don't give it all out, bye-bye 90's..or even 80's...my God...pressure is building up, I just hope that I don't explode.

However, I'm looking forward to going back to Kelantan, although it's just for a day, and I don't knowhow many people will actually turn up.

And another thing, using U.O.X. is so much better than postpaid, that is if I only contact fellow xpax users. From a bill of RM 160 per month, I've managed to reduce it to RM 3 per week. How cool is that? And yeah, I will not bother sending any Raya wishes this year, I don't knowlah, like, so malas to do so. Just not in the festivity mood, I guess. So, sorry guys if I don't seem as excited. (arhhh...hang me now..how can I not get psyched up over Raya?)

oh well, just no vibe to Raya. Feelin' really weary lately, or maybe, I'm just no fun anymore.