September 29th, 2006
4:46am: I think i might have gotten too much sleep…
4:46am: I think i might have gotten too much sleep for my own good. Goodness, its even enough for 2 days! sigh..
12th May 2008
September 29th, 2006
4:46am: I think i might have gotten too much sleep for my own good. Goodness, its even enough for 2 days! sigh..
September 29th, 2006
Trying the new blogger beta. Oh well.. I think its great.. Interface looks like it works on Ajax.. means nothing for non web developers. Anyway theres a password function, which people who have something to hide will want to use. Some other things i haven’t explored yet too… some tag thing.. I think that’ll be useful.
September 29th, 2006
Was sick the last 2 days. Slept for 17hours!! 5pm to 11am the next day.. Felt like a newborn babe when I got up. Today went to school to film something for my project, now at home blogging from yx’s laptop while waiting for something to update. Anyway while transferring pictures I found some of my dogs! such nice memories..
Far far away.. ha.. oh well. I feel like I’m walking my rocher everytime I come home no matter how late out of guilt. Oh well, I’m off to bed.
September 25th, 2006
See this funny mail I got in my inbox
Dear Tech Support:
Last year I upgraded from Girlfriend 7.0 to Wife 1.0. I soon noticed
that the new program began unexpected child processing that took up
a lot of space and valuable resources. In addition, Wife 1.0
installed itself into all other programs and now monitors all other
system activity. Applications such as Poker Night 10.3, Football
5.0, Hunting and Fishing 7.5, and Racing 3.6
I can’t seem to keep Wife 1.0 in the background while attempting to
run my favorite applications. I’m thinking about going back to
Girlfriend 7.0, but the uninstall doesn’t work on Wife 1.0. Please
help!Thanks,
Troubled User. (KEEP READING)____________ _________ _________ _______
REPLY:
Dear Troubled User:This is a very common problem that men complain about.
Many people upgrade from Girlfriend 7.0 to Wife 1.0, thinking that
it is just a Utilities and Entertainment program. Wife 1.0 is an
OPERATING SYSTEM and is designed by its Creator to run EVERYTHING!! !
It is also impossible to delete Wife 1.0 and to return to Girlfriend
7.0. It is impossible to uninstall, or purge the program files from
the system once installed.You cannot go back to Girlfriend 7.0 because Wife 1.0 is designed to
not allow this. Look in your Wife 1.0 manual under Warnings-Alimony-
Child Support. I recommend that you keep Wife1.0 and work on
improving the situation. I suggest installing the background
application “Yes Dear” to alleviate software augmentation.The best course of action is to enter the command C:\APOLOGIZE
because ultimately you will have to give the APOLOGIZE command
before the system will return to normal anyway.Wife 1.0 is a great program, but it tends to be very high
maintenance. Wife 1.0 comes with several support programs, such as
Clean and Sweep 3.0, Cook It 1.5 and Do Bills 4.2.However, be very careful how you use these programs. Improper use
will cause the system to launch the program Nag Nag 9.5. Once this
happens, the only way to improve the performance of Wife 1.0 is to
purchase additional software. I recommend Flowers 2.1 and Diamonds
5.0 !WARNING!!! DO NOT, under any circumstances, install Secretary With
Short Skirt 3.3. This application is not supported by Wife 1.0 and
will cause irreversible damage to the operating system.Best of luck,
Tech Support
Well, it not totally orthadox but its good laughing material for the guys out there.
September 20th, 2006
1400-1610: Computer lab, chatted up some guy who helped me last week. He’s a nice chinaman, the first of its kind I’ve encountered. Din make much progress. Added tons of cout statements to debug the program.
1610-1630: At the dreamweaver workshop I made it work when my batteries were almost gone! It compiled… it ran.. and it computed the numbers correctly! haha.. I tried to submit but was not able to because my computer shut down cos no batt.
1705: submited my lab and started screaming when i saw it passed al the dynamic tests.
2003-????: Dinner at home, prepared by dency. It was nice. Just too bad it wasn’t more. Anyhow, I think I need to lose more weight.
September 20th, 2006
0635 - no progress for the past 3 hours. I need to go to school now
September 19th, 2006
Its 0332hrs!!! AAAAAAAAARGHGGG!!!! WHO’S YOUR DADDY!!!!!!
///////////////////////////////////////////////////
/////
///// LogName: u0508802
///// FullName:
///// CreationDate: 2006-09-20 00:13:28
/////
///////////////////////////////////////////////////#include
#include
#include
#includeusing namespace std;
int eval(string&, string&);
void convert(list& );//—————————
//Main function
int main()
{
list v;
list::iterator i = v.begin();
stack numstack;convert(v);
//print output
while (i != v.end())
cout & v){
stack ops;
list::iterator i = v.begin();
string line, item;
int counter=0;//read whole line
getline(cin, line);//create string stream
istringstream istrs(line);//read from line into item string until next space is met
while(!istrs.eof()) {
istrs >> item;//decide what to do with operators
//if its an operator add to stack unless its ) then pop until (
if (item == “(”){
ops.push(”(”);
}if (item == “)”){
while (ops.top() != “(”){
v.insert(i, ops.top());
ops.pop();
}
ops.pop();
}if (item == “*”){
ops.push(”*”);
}if (item == “/”){
ops.push(”/”);
}if (item == “+”){
ops.push(”+”);
}if (item == “-”){
ops.push(”-”);
}//decide what to do with numbers
if (item != “-”)
if (item != “+”)
if (item != “*”)
if (item != “/”)
if (item != “(”)
if (item != “)”){
//put number into list
v.insert(i, item);
}}//End of While
// flush ops stack and print content
cout &) {
int answer;
string line, item;
//read whole line
getline(cin, line);//create string stream
istringstream istrs(line);//read from line into item string until next space is met
while(!istrs.eof()) {
istrs >> item;
}
return answer;
}
That took me 4 hours! ARGH!!!!!!!!!!! you can’t imagin how i’m feeling now!!! RAHHHHHHHHHHHHHHHHHHHHHHH!!!! hahaha… I’m halfway there! I hope i’ll be done before i go to school.
it converts infix expressions to postfix to calculate.
so ( 1 + 2 ) / ( 3 * 4 ) becomes 1 2 + 3 4 * /
basically this is to eliminate use of parenthesis and have no ambiguity in evaluating an expression. check here for a mini lecture on how to evaluate a postfix expression and just watch the animation to get an idea.
September 18th, 2006
Argh! I was just looking at my tagboard then when i saw the chari* i thought of C++ coding. Declaring a pointer to a data type chari.. argh!!! I’m crazy already. I had so much time taken up by misc stuff I had to finish up.
My lab sits undone because I’m too tired and I have a 2 hour break tommorrow where i will try to finish it up and hand in. CS1102 Lab looks easy too but time consuming. I shall force myself to spend some time reading today though.
Goodnight all!
September 13th, 2006
I was just musing on the reasons for arguments between people.
2 causes:
Whats an argument for? at least for me its mostly been a way to find the honest truth and to present all facets of a proposition whether I’m right or not.
Things I depise in arguments:
I really believe most people are capable of stepping back and reflecting on themselves but they refuse to. Also, most of the time both parties have something to learn from each other and they never realise until they look back on hindsight. By that time they’ve already hurt each other and hopefully its not irrepairable.
Lastly, The Book gets the final say on the matter:
Jeremiah 17:9 (New King James Version)
9 “ The heart is deceitful above all things,
And desperately wicked;
Who can know it?
We’re never able to look at yourself objectively, so don’t kid ourselves.