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.
Sunday, September 26, 2010
Saturday, September 25, 2010
the thing about private blogs is...
I don't bother updating it, because in order for me to view the page, I'd have to sign in. Unless, of course, if I were the only reader of the private blog, I would update it regularly like I would a diary, but a private blog with readers, that's different. That's why I'd much prefer my blog to be public if I wanted to share stuff. however making it public, with a stalker running rampant..urgh...
| Reactions: |
Thursday, September 23, 2010
oh just something I came across yahoo
5 Mistakes Everyone Should Make
by Real Simple Magazine, on Fri Sep 17, 2010 10:30am PDT 92 Comments Post a Comment Read More from This Author » Report Abuse Five successful people, ranging from a noted psychologist to a legendary tastemaker, describe their most startling (and most revealing) blunders.
by Amanda Armstrong
1. Totally embarrass yourself.
After the publication of my book Reviving Ophelia, in 1994, I was invited to a prestigious party. I got all dressed up; I was so excited to make connections. I had a wonderful time and was elated as I was walking back to my car. Well, that is, until I felt something on the back of my skirt. While I had gotten dressed for the function, I had apparently sat on a stack of clean laundry, and a pair of underwear had affixed itself. I had spent the entire night that way! I was mortified, but at the end of the day, it just didn’t matter. I went to other similar events after that, and as far as I could tell, that incident didn’t change people’s impression of me one little bit.
Related: Everyday Dangers Not to Worry About
I tend to think that we are all always one static-cling mishap away from looking like a total idiot—and believing that helps me keep gaffes in perspective. And, of course, these grand embarrassments eventually loosen their grip anyway, leaving you with an ace-in-the-hole story to crack up your friends with for years to come.
Related: What's the Worst That Could Happen?
Mary Pipher, Ph.D., has been a psychotherapist for more than 30 years. Her latest book is Seeking Peace ($16, amazon.com).
2. Ruffle people’s feathers.
Years ago, when I began working at a business school, I sat in meetings quietly, afraid I would say the wrong thing. Some people spoke up and were scoffed at. I didn’t want that to happen to me, so I held my tongue. I soon realized that my silence implied that I was on board with whatever was being said. I started voicing my opinion, even on controversial subjects, regardless of how my comments would be received. Occasionally colleagues would roll their eyes, but I found that even those who disagreed with me came to respect me for not backing down. Sometimes my ideas will make me unpopular, sure, but that’s better than being a blank slate.
Related: How to Handle Sticky Situations
Mary C. Gentile, Ph.D., is a senior research scholar in business management at Babson College, in Wellesley, Massachusetts. She is the author of Giving Voice to Values ($26, amazon.com).
3. Follow trends blindly.
Looking back on my life, I find it hard to think of a fad I did not embrace. When glam rock glittered, I bleached my hair and wore a dangly earring. When punk rock raged, I donned black leather. Not until my 50s did I find my look—I call it Carnaby Street mod circa 1966—which allowed me to hop off the trend merry-go-round. But I am grateful for this process: It took a fashion odyssey to help me find out who I really am.
Related: 7 Pieces, 5 Outfits
Simon Doonan has been the creative director of Barneys New York since 1986. He is the author of Eccentric Glamour ($15, amazon.com).
4. Be willing to fail—doing something you love.
In 1997 I had just graduated from law school (with tons of student-loan debt) and was interviewing for high-paying positions at big firms. The problem was, my heart wasn’t in it. So I took myself out of the running in order to build a small Internet publishing company with a friend. After a year of barely staying afloat, our venture went the way of a 404 ERROR message. I was broke and unemployed, and Sallie Mae was hot on my tail. I wondered what endeavor I should try next.
Related: How 5 Inspiring People Give Gifts of Time
It sounds crazy, but once again I decided to throw caution to the wind and just do what I wanted. I began working as a trial attorney for the U.S. Department of Justice. Over the next few years, I held a wide array of fascinating jobs that I took because they captured my imagination: serving in the military, reporting from Iraq for the Washington Post, and, most recently, becoming a full-time author. Some might consider me flighty for changing careers so often, but I contend that the key to professional happiness is asking yourself two simple questions every single day: Are you passionate about what you do? And if not, what are you going to do instead?
Bill Murphy Jr. is the author of The Intelligent Entrepreneur ($27.50, amazon.com).
5. Carelessly put yourself at risk.
I’m a terrible skier, and I’m not being hard on myself when I say that. Small children and monkeys are more coordinated than I am. So it was with unbridled terror that I once found myself alone on a black-diamond ski trail in the middle of a blizzard. (Long story.) With nobody to carry me down, I didn’t have a lot of options. So I wept—and had a fairly supplicating talk with God about my imminent death. (I believe I made a series of promises involving church attendance, reduced alcohol intake, and forgoing swearing.) And, finally, I skied—slowly, with zero elegance, and whimpering like an infant the entire time—down the mountain. It wasn’t pretty, but I did it.
Related: Experts Offer Advice for Tough Times
The point being, sometimes you have to get in over your head to realize that you’re not really in over your head at all. Two years ago, I got a job that I desperately wanted but had no idea how to do. So I took it, endured several panic attacks, and eventually learned the ropes. My choices were either figure it out or get fired. The bottom line: Most of the time, a high-risk situation won’t kill you, because you are stronger than you think. And it’s never a bad thing to be reminded of that.
Amy Ozols is a cultural commentator and writer for Late Night With Jimmy Fallon.
by Real Simple Magazine, on Fri Sep 17, 2010 10:30am PDT 92 Comments Post a Comment Read More from This Author » Report Abuse Five successful people, ranging from a noted psychologist to a legendary tastemaker, describe their most startling (and most revealing) blunders.
by Amanda Armstrong
1. Totally embarrass yourself.
After the publication of my book Reviving Ophelia, in 1994, I was invited to a prestigious party. I got all dressed up; I was so excited to make connections. I had a wonderful time and was elated as I was walking back to my car. Well, that is, until I felt something on the back of my skirt. While I had gotten dressed for the function, I had apparently sat on a stack of clean laundry, and a pair of underwear had affixed itself. I had spent the entire night that way! I was mortified, but at the end of the day, it just didn’t matter. I went to other similar events after that, and as far as I could tell, that incident didn’t change people’s impression of me one little bit.
Related: Everyday Dangers Not to Worry About
I tend to think that we are all always one static-cling mishap away from looking like a total idiot—and believing that helps me keep gaffes in perspective. And, of course, these grand embarrassments eventually loosen their grip anyway, leaving you with an ace-in-the-hole story to crack up your friends with for years to come.
Related: What's the Worst That Could Happen?
Mary Pipher, Ph.D., has been a psychotherapist for more than 30 years. Her latest book is Seeking Peace ($16, amazon.com).
2. Ruffle people’s feathers.
Years ago, when I began working at a business school, I sat in meetings quietly, afraid I would say the wrong thing. Some people spoke up and were scoffed at. I didn’t want that to happen to me, so I held my tongue. I soon realized that my silence implied that I was on board with whatever was being said. I started voicing my opinion, even on controversial subjects, regardless of how my comments would be received. Occasionally colleagues would roll their eyes, but I found that even those who disagreed with me came to respect me for not backing down. Sometimes my ideas will make me unpopular, sure, but that’s better than being a blank slate.
Related: How to Handle Sticky Situations
Mary C. Gentile, Ph.D., is a senior research scholar in business management at Babson College, in Wellesley, Massachusetts. She is the author of Giving Voice to Values ($26, amazon.com).
3. Follow trends blindly.
Looking back on my life, I find it hard to think of a fad I did not embrace. When glam rock glittered, I bleached my hair and wore a dangly earring. When punk rock raged, I donned black leather. Not until my 50s did I find my look—I call it Carnaby Street mod circa 1966—which allowed me to hop off the trend merry-go-round. But I am grateful for this process: It took a fashion odyssey to help me find out who I really am.
Related: 7 Pieces, 5 Outfits
Simon Doonan has been the creative director of Barneys New York since 1986. He is the author of Eccentric Glamour ($15, amazon.com).
4. Be willing to fail—doing something you love.
In 1997 I had just graduated from law school (with tons of student-loan debt) and was interviewing for high-paying positions at big firms. The problem was, my heart wasn’t in it. So I took myself out of the running in order to build a small Internet publishing company with a friend. After a year of barely staying afloat, our venture went the way of a 404 ERROR message. I was broke and unemployed, and Sallie Mae was hot on my tail. I wondered what endeavor I should try next.
Related: How 5 Inspiring People Give Gifts of Time
It sounds crazy, but once again I decided to throw caution to the wind and just do what I wanted. I began working as a trial attorney for the U.S. Department of Justice. Over the next few years, I held a wide array of fascinating jobs that I took because they captured my imagination: serving in the military, reporting from Iraq for the Washington Post, and, most recently, becoming a full-time author. Some might consider me flighty for changing careers so often, but I contend that the key to professional happiness is asking yourself two simple questions every single day: Are you passionate about what you do? And if not, what are you going to do instead?
Bill Murphy Jr. is the author of The Intelligent Entrepreneur ($27.50, amazon.com).
5. Carelessly put yourself at risk.
I’m a terrible skier, and I’m not being hard on myself when I say that. Small children and monkeys are more coordinated than I am. So it was with unbridled terror that I once found myself alone on a black-diamond ski trail in the middle of a blizzard. (Long story.) With nobody to carry me down, I didn’t have a lot of options. So I wept—and had a fairly supplicating talk with God about my imminent death. (I believe I made a series of promises involving church attendance, reduced alcohol intake, and forgoing swearing.) And, finally, I skied—slowly, with zero elegance, and whimpering like an infant the entire time—down the mountain. It wasn’t pretty, but I did it.
Related: Experts Offer Advice for Tough Times
The point being, sometimes you have to get in over your head to realize that you’re not really in over your head at all. Two years ago, I got a job that I desperately wanted but had no idea how to do. So I took it, endured several panic attacks, and eventually learned the ropes. My choices were either figure it out or get fired. The bottom line: Most of the time, a high-risk situation won’t kill you, because you are stronger than you think. And it’s never a bad thing to be reminded of that.
Amy Ozols is a cultural commentator and writer for Late Night With Jimmy Fallon.
| Reactions: |
Thursday, September 16, 2010
Random Things
Just bored and getting stuff out from my head before I go back to college to face Chem Unit Three, Trig, Macbeth, CS Test, ISU, Musical Theatre numbers: Boh Rap, Nice and Disney, not to mention a whole lotta other stuff about college and growing up. (huh? I'm not grown up yet? urhm, getting there, not completely yet). Prepare for a total mememememe post. Time to dish dirt.
1. I HATE taugeh.
2. I ate ulam and budu the last time I went back to Kelantan.
3. I MAKE rules and I BREAK rules.
4. I can't stand children. All the noise and tantrums. Urgh, I've considered getting myself a sound-proof room to dump a crying kid in it and let him cry until he sleeps. (yeah, I know, I'mdiabolical mean, but I'm not evil. I'm against baby-dumping and abortions). Giving birth, taking care of and raising a kid is like a nightmare to me. I'd really freak out if a person ask me to hold a newborn baby, I'm afraid that I'd "break" him. Kids and babies just don't look cute to me. I'd totally make a break for it when my teacher comes with a kid, instead of flocking to the baby like the other girls and go "awhhh..so adorable.. how old is he? omg, he's so small! can I hold him?" Sometimes I wonder if I had it in me, the maternal instinct, or am I just another selfish b****? Oh, but I can berleter for hours. Sometimes if I go out with my mum and the kids, people wonder who the mum is.
5. I eat vanilla ice-cream, but I don't eat chocolate ice-cream.
6. I have a cavity, and God knows if there's more in my teeth.
7. I have trouble waking up early.
8. My bedtime is at twelve, otherwise, I'll be 'high' between 1 a.m. and 3 a.m.
9. I've considered being a career woman. Living solo. Having multiple degrees. Of course, when I grow older and I start to have 'feelings', it makes it a whole lot more complicated. =.="
10. I've considered getting a PR in a different country.
11. I hate Politics, and it'd be over my dead body if I ever become a politician. I just don't get why people always say that about me, I hate it. I repeat, I hate it. Don't make me gun you down for it.
12. I find ethical issues regarding genetic studies fascinating. For example, is ovum and sperm-donating allowed in Islam? I mean, it's not like you copulate with the person you're giving it away to, right? Yet, who are considered to be the rightful parents of the offspring? yeah, I think about these freaky things).
13. I used to want a luxurious life, but now, I feel like resorting to the simple life. Of course, money is still important.
14. When I was a kid, I used to have an invisible man under my bed, and if I'd stayed to long down there, he's going to grab me and pull me into his invisible world. (such wild imagination I had back then).
15. The craziest thing I did was force myself to debate sleep-deprived, fever+sore throat+diaorhea-stricken in UIA Interschool 2009.
16. I pretend to be gay with Mujahidah and Jaja sometimes because we think it's funny, not that we're really gay.
17. I used to think I was more of a boy than a girl. (and sometimes I still occasionally wished I was one, not to say that I'm ungrateful of being a girl, but..well, hmm..how do I say it, refer to this post). I don't know why I feel less embarrassed to use the word 'macho' instead of 'feminine', or 'girly' to describe myself (because I'm not girly!).
18. I like not having any strings attached. Free to do whatever I want.
19. My hair is totally damaged beyond repair.
20. I listen to all kinds of songs, depending on my mood, one day it will be Rock Day, another Oldie Day, or Disco Day..As I'm writing this, I'm totally drugged on Franz Ferdinand, Weezer and Muse.
21. I used to hate pink, now I have lots of clothes in pink.
22. In primary school, I was always the quiet goody-two-shoes, in highschool, yeah, I still was goody-two-shoes, but I also discovered a dark side to me as well, meaning, I am capable of mischief to some extent. Only to some extent because I have guts to do certain things, while for other things I don't, because it's wrong, like, groping in the dark, for instance.
23. I love food, but when I'm really, really, really depressed, I don't eat.
24. I have many sides to my personality, and I wear different 'masks', I'm not pretending to be someone I'm not, because all those 'masks' are part of me. I don't see it as being a hypocrite, well, maybe just Machiavellian. I also enjoy acting as antagonistic characters. I am egoistic, and although I may sometimes spout provocative statements, but when it comes to "feelings", (other than anger, frustration and sadness) I choke.
25. I used to like Artemis Fowl, now I hate him.
26. I'm ambitious when I'm feeling at my best, and I'll always have a to-do list in my head, so do keep up with me, for I will not wait for you. My motto is, I hate to wait, or be waited on.
27. I find nerdiness cute, and yeah, I guess I do get along well with those sort of people, because I'm a nerd too, but I don't know why I always end up with people of total opposite poles from my personality. Nerdy people always end up being a short fling, and I lose interest. This is just too weird. The opposite poles are like drugs. I know they're not that compatible with my system, yet, I keep coming back for 'em.
28. Marry me, and you marry my dad. Take it, or leave it.
29. I don't know how to melayan tetamu, so don't expect much out of my Malay social life.
30. I enjoy American comedies, and testosterone-loaded action flicks.
31. I love singing, but after this Musical, I'll only sing at karaokes.
32. Sometimes, I'd listen to one sad song after another just to make me feel miserable for no apparent reason.
33. I used to hate being a Malay. Period.
34. First language: Klate. Second language: English. Third language: Standard Malay. Do take note.
35. I write self-indulgent emo poems when the inspiration strikes me.
36. I love CS nowadays more than Chem and English. Advanced Functions? Okay, I guess. Thank God, I have Miss Nicole teaching me.
37. I love work. I want to work. I like going places.
38. I have really "beautiful" handwriting.
39. I used to love drawing and playing chess.
40. I wish I could dance..and drive...and swim...and play guitar.....(dancing and playing the guitar are actually some of the irrelevant things I'd like to do, and an example of my rambling on and on).
41. I have a PHOBIA of worms. Yes, worms. Phobia. That includes slimy, writhing, elongated, legless things. (Millipedes and centipedes included because although they have legs, but they're elongated and creepy). Please don't pull a prank on me involving these things. I might get a heart attack.
42. I find The Ring (movie) scary.
43. I don't watch Malay shows.
44. When the mood strikes me(which is very rare), I actually enjoy reciting the Quran.
45. I navigate Pengkalan Chepa better than KL.
46. I used to be fascinated with life after death.
47. I don't like people coming over to my house, discuss things over at a cafe.
48. I love animals. I used to fantasize of becoming a planet savior, but in this day and age of weariness and jadedness, there's nothing more to it than a memory of a distant dream.
49. I like clothes and shoes, but I have to restrain myself from buying it. (Nah!! this fact isn't as interesting as "my idea of fun is mutilating Barbie dolls").
50. Another one of my motto: Get-up, Grab and Go. Which is why I can get ready in 15 minutes in the morning, and optimize sleeping time. I don't do make-up. One, I don't know how to apply it (other than just one layer of lipstick and skin-shade face-powder). Two, I just don't bother.
Okay, it's about time I stop, it gets boring. I'll add on some more if I need to get anymore stuff out of my head. I don't mean for people to read it, but I don't care if they do, which is why I posted it anyway, it's my blog. This post is totally mengarut. I'm clearing up the clog in my brain.
1. I HATE taugeh.
2. I ate ulam and budu the last time I went back to Kelantan.
3. I MAKE rules and I BREAK rules.
4. I can't stand children. All the noise and tantrums. Urgh, I've considered getting myself a sound-proof room to dump a crying kid in it and let him cry until he sleeps. (yeah, I know, I'm
5. I eat vanilla ice-cream, but I don't eat chocolate ice-cream.
6. I have a cavity, and God knows if there's more in my teeth.
7. I have trouble waking up early.
8. My bedtime is at twelve, otherwise, I'll be 'high' between 1 a.m. and 3 a.m.
9. I've considered being a career woman. Living solo. Having multiple degrees. Of course, when I grow older and I start to have 'feelings', it makes it a whole lot more complicated. =.="
10. I've considered getting a PR in a different country.
11. I hate Politics, and it'd be over my dead body if I ever become a politician. I just don't get why people always say that about me, I hate it. I repeat, I hate it. Don't make me gun you down for it.
12. I find ethical issues regarding genetic studies fascinating. For example, is ovum and sperm-donating allowed in Islam? I mean, it's not like you copulate with the person you're giving it away to, right? Yet, who are considered to be the rightful parents of the offspring? yeah, I think about these freaky things).
13. I used to want a luxurious life, but now, I feel like resorting to the simple life. Of course, money is still important.
14. When I was a kid, I used to have an invisible man under my bed, and if I'd stayed to long down there, he's going to grab me and pull me into his invisible world. (such wild imagination I had back then).
15. The craziest thing I did was force myself to debate sleep-deprived, fever+sore throat+diaorhea-stricken in UIA Interschool 2009.
16. I pretend to be gay with Mujahidah and Jaja sometimes because we think it's funny, not that we're really gay.
17. I used to think I was more of a boy than a girl. (and sometimes I still occasionally wished I was one, not to say that I'm ungrateful of being a girl, but..well, hmm..how do I say it, refer to this post). I don't know why I feel less embarrassed to use the word 'macho' instead of 'feminine', or 'girly' to describe myself (because I'm not girly!).
18. I like not having any strings attached. Free to do whatever I want.
19. My hair is totally damaged beyond repair.
20. I listen to all kinds of songs, depending on my mood, one day it will be Rock Day, another Oldie Day, or Disco Day..As I'm writing this, I'm totally drugged on Franz Ferdinand, Weezer and Muse.
21. I used to hate pink, now I have lots of clothes in pink.
22. In primary school, I was always the quiet goody-two-shoes, in highschool, yeah, I still was goody-two-shoes, but I also discovered a dark side to me as well, meaning, I am capable of mischief to some extent. Only to some extent because I have guts to do certain things, while for other things I don't, because it's wrong, like, groping in the dark, for instance.
23. I love food, but when I'm really, really, really depressed, I don't eat.
24. I have many sides to my personality, and I wear different 'masks', I'm not pretending to be someone I'm not, because all those 'masks' are part of me. I don't see it as being a hypocrite, well, maybe just Machiavellian. I also enjoy acting as antagonistic characters. I am egoistic, and although I may sometimes spout provocative statements, but when it comes to "feelings", (other than anger, frustration and sadness) I choke.
25. I used to like Artemis Fowl, now I hate him.
26. I'm ambitious when I'm feeling at my best, and I'll always have a to-do list in my head, so do keep up with me, for I will not wait for you. My motto is, I hate to wait, or be waited on.
27. I find nerdiness cute, and yeah, I guess I do get along well with those sort of people, because I'm a nerd too, but I don't know why I always end up with people of total opposite poles from my personality. Nerdy people always end up being a short fling, and I lose interest. This is just too weird. The opposite poles are like drugs. I know they're not that compatible with my system, yet, I keep coming back for 'em.
28. Marry me, and you marry my dad. Take it, or leave it.
29. I don't know how to melayan tetamu, so don't expect much out of my Malay social life.
30. I enjoy American comedies, and testosterone-loaded action flicks.
31. I love singing, but after this Musical, I'll only sing at karaokes.
32. Sometimes, I'd listen to one sad song after another just to make me feel miserable for no apparent reason.
33. I used to hate being a Malay. Period.
34. First language: Klate. Second language: English. Third language: Standard Malay. Do take note.
35. I write self-indulgent emo poems when the inspiration strikes me.
36. I love CS nowadays more than Chem and English. Advanced Functions? Okay, I guess. Thank God, I have Miss Nicole teaching me.
37. I love work. I want to work. I like going places.
38. I have really "beautiful" handwriting.
39. I used to love drawing and playing chess.
40. I wish I could dance..and drive...and swim...and play guitar.....(dancing and playing the guitar are actually some of the irrelevant things I'd like to do, and an example of my rambling on and on).
41. I have a PHOBIA of worms. Yes, worms. Phobia. That includes slimy, writhing, elongated, legless things. (Millipedes and centipedes included because although they have legs, but they're elongated and creepy). Please don't pull a prank on me involving these things. I might get a heart attack.
42. I find The Ring (movie) scary.
43. I don't watch Malay shows.
44. When the mood strikes me(which is very rare), I actually enjoy reciting the Quran.
45. I navigate Pengkalan Chepa better than KL.
46. I used to be fascinated with life after death.
47. I don't like people coming over to my house, discuss things over at a cafe.
48. I love animals. I used to fantasize of becoming a planet savior, but in this day and age of weariness and jadedness, there's nothing more to it than a memory of a distant dream.
49. I like clothes and shoes, but I have to restrain myself from buying it. (Nah!! this fact isn't as interesting as "my idea of fun is mutilating Barbie dolls").
50. Another one of my motto: Get-up, Grab and Go. Which is why I can get ready in 15 minutes in the morning, and optimize sleeping time. I don't do make-up. One, I don't know how to apply it (other than just one layer of lipstick and skin-shade face-powder). Two, I just don't bother.
Okay, it's about time I stop, it gets boring. I'll add on some more if I need to get anymore stuff out of my head. I don't mean for people to read it, but I don't care if they do, which is why I posted it anyway, it's my blog. This post is totally mengarut. I'm clearing up the clog in my brain.
| Reactions: |
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.
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
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.
| Reactions: |
Monday, September 13, 2010
Memori Keropok Lekor
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.
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.
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.)
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.
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.
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..
7 comments:
Labels:
fond anecdotes,
tales
| Reactions: |
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.
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.
No comments:
Labels:
tales
| Reactions: |
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.
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.
No comments:
Labels:
reviews
| Reactions: |
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.
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.
No comments:
Labels:
tales
| Reactions: |
Monday, September 06, 2010
Human Connect To Human
Overdosed on Tokio Hotel while getting my essay done. It sort of is, yet I'm still dissatisfied.
I found stuff on the net about Gaga being an Illuminati/Freemason/Devil-worship agent, how far this is true, I can't be sure, it seemed plausible. I am not suggesting boycott or anything, and I'm not on either side, but it is best to be on our feet. After all, you can't really trust media nowadays.
Anyway, about this loss of innocence deal, it made me think about my own loss of innocence. When did I lose mine? I didn't notice. Loss of innocence here means the realisation that the world is not what I make it to be. Gone are the superheroes and fairy tales. Rather, for me, I think it was Sailormoon and Hercules. I remember I had that shocked feeling that a kid gets when they discover that santa claus and tooth fairies didn't exist. I remembered that I could pinpoint exactly when I felt that, yet later, a faint memory comes, and I realize that wasn't the beginning of it, it was way back. So, I'm not entirely sure where it all began. My first experience with death of a family member was in Form One. My grandfather died about a few days after my birthday.
In terms of sexual knowledge. As far as I could remember I was so fascinated by animals, I observe them a lot, and at that time I was puzzled when the male chicken clambered on top of the female chicken. I found it amusing at that time, I knew they were doing something, but I was too young to comprehend what it was. Yeah,and I was reading a pregnancy book, at that time. Well, I'm an avid reader, I loved Science, and I was obsesed with life and death at that time (can you imagine me running around in public and asking people, "what's it like to die?" Imagine if a stranger suddenly came up to me and said, "would you like to find out?" pergh..good thing that never happened!). So, there were "pictures" that told me that you have to "do something" to get a baby. At that time, it just seemed like two people rolling in the sheets for me. hahah. And of course, there were always those 'grown-up movies' that my parents wouldn't let me watch. I got curious.That was in...Standard Two?
Then, in Standard Six. Someone brought along a copy of Mastika. It was an issue about luar tabii stuff, and then, someone told me the real deal. I was like, what the heck? Ewwwwww.......grossss...... And in my mind at that time was, "I'm not suppose to know about this. It's bad. It's not what kids are supposed to know. That's why we don't talk of it. It's taboo to speak of it so openly. What will my parents say if they knew that I knew?"
Another time was when I was lining up at a counter, of course they have all those condoms lined up at the side of the counter. I had to open my mouth and asked loudly, " Ma, what's a condom?" I don't remember what age I was at that time, but I remembered the lady lining up behind us looking so horrified, like I've said something blasphemous publicly.In Form One, people were reading all those teen mags, so I did get to know more stuff, and in Form Two, the boys started to make lewd jokes, but Form Three was the biggest blow. I had uncovered pieces of paper in one boy's desk. At that time, there weren't any boys in class, I forgot why. On those pieces of paper were excerpts from a website for people to post their sexual 'escapades'. Most of it were luar tabii and written in crude Malay language. (p**t*t, b*r*t...) and the likes. It was downright disgusting. This were the things my fellow male classmates read? Some of my female friends broke down at the sight of it, the lewdness of the content. Even in Form Three, Teacher Rozi had asked us individually, who has or has never watched porn. I was surprised at the number of boys owning up, and admitting the age they started to watch porn. At that moment I decided, there is no guy at that age who has never watched porn. They were all...tainted...dirty..
And in Form Three, one of my batchmates got expelled for 'inappropriate behaviour'. Then, all those talks about coupling is haram, batas-batas pergaulan were pretty much frequently held. And yeah, in Science, you learn about the reproductive system. At that time, yeahp, education has further induced a loss of innocence, like, it's a must. Well, it is, I mean, it's inevitable.
I've had my friends who tell me about their other friends who already got married when the rest of us were having our PMR's and SPM's. I've had guys talked about what they observed or fantasize or thought of girls, and all the other weird stuff they think about or do so openly. And to think that this 'disease' is spreading and getting a lot more worse than I thought it was, whoa...it's mind-boggling. Watching porn, masturbating, boy-and-girl holding hands, kissing the cheek, French kiss, hugging, groping, touching 'sensitive areas' are considered normal??
And to think that people like doing that? urgh..gross..don't they ever give it a second thought? Easier said in a situation where you're safe in your own home, away from those negative influences. Now, that I've learnt the nature of temptations, and human weaknesses, I find it plausible enough to "like" doing those things and "not give a second thought". Put yourself in that situation, someone's offering you candy. How strong are you to resist it? Or put yourself in the shoes of a teen who just gave birth to a child born out of wedlock. The easiest and most likeliest reaction is of course to do what most people do, throw the baby away. Desperation and temptation clouds your judgment, and these people didn't have it easy either. The only way to prevent things like these from happening, is to not to be a part of it, in the first place. Don't ever put yourself in such a situation. Do you think it's easy to resist when you're face-to-face with the real thing? It's like falling into a black hole, you can't escape it if you're within range of it's power. That's why you should stay out of it, take a route that's as far away as possible from it. Even if you do get out of it alive, consider yourself lucky. It's a one-shot God's sleight-of-hand for you.
When you hear those stories of teenage pregnancies, of course, if it were a prostitute or a wild child involved, no surprise there, but it turns out that even the goody-two-shoes get caught up in this. Those girls wearing tudungs, straight A students and all. Typically we'd go, "are those girls damn stupid or what?"
Well, indeed, they are. Anybody in that situation is stupid to get themselves in that mess in the first place. BUT, we must bear in mind, we have an equal risk of being embroiled in a similar situation, then other people would start calling us stupid as well. never underestimate the power of temptations. I don't think it dirty to talk about these things. I mean, you have to be aware of these things so that it doesn't take you by surprise and destroy you eventually. In our culture today, this subject is taboo to speak of in public, and yes, girls would normally wouldn't admit that they do think of sex as well (most of them cover it up by talking about marriage), but I don't think they think about it as much as boys, correct me if I'm wrong. I mean, it's normal, it's only part of human nature. Just because you think about it, doesn't mean you're dirty or you think about it all the time, or that's all that's ever in your head, but the fact is, you do. Any rational person could never actually eliminate all thoughts of sex, but you can actually limit it, and that's what holds your behaviour in check.
Try putting a stopper on a volcano. When it erupts, everything goes down in smithereens. It goes the same way here. Too much restrain and you get all those goody-two-shoes becoming perpetrators in baby-dumping, and all those porn. The fact is, you need a healthy outlet for these things, instead of shunning them away. No, I'm not suggesting that we should let them be and have free sex all they want, but maybe they need to talk about these things more openly, you know, like a proper channel? At this age, yes, with the raging hormones and curiosity and hot blood, they do tend to try out stuff. I can't actually suggest a specific solution, because I don't know of one, well, I can give a textbook answer, but whether or not it's effective is another story, and you probbaly know what those textbook answers are anyway.
What I'm trying to say here is, well actually, initially I just wanted to talk about the loss of innocence, but now it's dragged on to this, you know how I love to ramble on and on, but it's my blog and I can do whatever I like. But now that it has come to this issue of social ills, what I'm trying to convey is simply: IF YOU HAVE A PROBLEM, JUST ADMIT IT AND DEAL WITH IT. DON'T JUST SHUN IT AWAY AND PRETEND IT DOESN'T EXIST BECAUSE YOU WANT TO KEEP THAT PRETTY PICTURE OF THE SOCIETY. "Our children are all good, they do well at school, they don't think about sex." and suddenly, "who the hell are you? you're not my kid! get out of my house! you're a disgrace!" typical, typical scenario, but does kicking your kid out of the house solve anything? Ladies and gentlemen, NO. They're not kids, I mean, technically. They already know that's wrong, they already feel punished by their consequences, you don't have to rub it in, supposedly by throwing them out you 'teach them a lesson'. B*llsh*t. And leave the kid for dead? Don't get me wrong, just because i talk about these things in my blog and I use the three-letter taboo word that starts with an 's' and ends with and 'x', doesn't make me a person with a perverted mind. i am just simply trying to put things into perspective from this cluttered mind of mine, and showing somewhat little concern for the future of the society. Not to say that I am so altruistic, but hey, I'm living in that society, who would want to live in an unsafe, depraved, baby-killer community right?
Now, about that statement in capital letters, remind me of another matter, relating to that same message. (I know at this point my writing sucks and is all over the place, it's choppy and the ideas aren't exactly coherent, but it's not a proper essay, so yeah, who cares?)
Another sense of losing innocence is the fact that I discover the ugly sides of human nature, or that something isn't what they seem. Like boarding school, everybody paints a pretty picture of it. Then, it turned out to me, boarding school, wasn't as perfect as it turned out to be, and like Holden Caufield from Catcher In The Rye (I haven't actually read this book, yet in search of materials for my essay, people actually wrote stuff about this book and it sounds interesting), he calls them "PHONY" (relate this to the above statement in caps lock. I wrote the 'supposed' transition paragraph, which is the paragraph before this one, later on. Now heck this is confusing, just read on, people, regardless of whether you understand or not. This is an example of a spontaneous and very confusing thought process of Kamilah), which is true in many ways. Due to this, I resented most of school, I became a rebel. I detested it so much that I'd make a 'provocative' statement during a speech at a school assembly that I can't wait to leave school.
It turned out now, I'm missing it, not much for the fact that I missed it for it' oh-so-pretty system, but rather, due to the fact that I'd simply missed being a kid. Not to say that I act matured all the time, yes, I am sometimes immature and childish, but I remembered when I was a kid, I had so often wanted to be "grown-up" because that's what most people expect me to be. I'd made myself into a know-it-all, kind of, disgustedly, I have to admit, like Piggy from Lord Of The Flies, well, now, I'm like, so in love with Jack for no apparent reason. I can't get back my childhood, it's lost forever in the past, I can only reminisce of it, like watching behind a window pane, because it's intangible already. Gone are the days of plastic dinosaurs, lego blocks and morbid Barbie doll mutilation rituals (okay, I wasn't exactly the girly girl. Even until now). Gone are the days when I don't think about the worries of the world..the ills of society...sex...(oh wait, that sounds wrong)..
Come English3U (God, English3U literature has so much affected me. This is so not happening.), they give lots of reading materials on Social Evils, and coming-of-age novels, it kinds of, affects me in a way. I'm like, whoa, I'm not a kid anymore, and..people are REALLY bad.....and suddenly it's weird when I have all these strange thoughts that I never had before. It's weird.
I think I can live with the fact that people come and go, and highschool is so yesterday, at least, I can put that to rest for now, at least, I won't be that school-sick (school-sick?? wtf??) anymore.
Why the heck am I writing all this? Okay, I've got tests to study for. So long, people.
No comments:
Labels:
thoughts
| Reactions: |
Sunday, September 05, 2010
Subscribe to:
Posts (Atom)








