My bankdraft got rejected from my college's office as that fella who issue the bankdraft wrote USD instead of USA at the "Payment To" column. Aih, I also don't know what to say, and my bad also for didn't notice that mistake. Is hardly noticeable for me, thats why I didn't realize the mistake. So! No choice but have to visit bank again. I plan to take leave on tomorrow, but company having function tomorrow, and our dear lecture wanna to see us in job-line XD. Hmm... no choice, have to wait till Thursday to banking again. Aih, hate it la... Hopefully can change another bankdraft else I'll be in big problem. (!=.=)
If every payment can be solved through Internet Banking, I wonder how good it is... Save the queue, save the time, save the hassle to bring large sum of money and travel around. XD
Wei... monster game server down again... today can't manhunt... grrr...... lost a day loot.
Tuesday, June 27, 2006
Banking again
Posted by littleway at 9:55 PM 0 comments
Monday, June 26, 2006
Importing file VS All-in-one
When we comes into programming, there is always a debate between codes written all-in-one file or write separatedly and then import it back to become one. Today I came across a ColdFusion file while I labelled it as "body.cfm". When I look at the bottom of the page, it imports another ColdFusion file which I label as "details.cfm". Inside "details.cfm", I found a imported javascript file labelled as "details_ctrl.js". When translated into diagram it should be displayed like this:
body.cfm(main file as we request from server) -> details.cfm -> details_ctrl.js
I spend some time to trace where all the javascript functions went to, and this is not over yet. The validation for details.cfm are written at the top of body.cfm. If you are the one who assigned to write a program, which way would you choose? The way like the example I given, or trash everything into one file?
Come come, feel free to comment about your programming habit. :)
Oh, by the way before ending my today post, I want to wish my Alicia jie jie HAPPY BIRTHDAY~!~!~!.... Wishing jiejie to be healthier, prettier, cuter, smarter and of course happier. Hope you read this... ;)
Posted by littleway at 11:25 PM 0 comments
Sunday, June 25, 2006
Weekend again
Well, should be weekend gonna to end again ba... Hahahaa... how I spend this 2 weekends? Hmm... first of all, playing that text based game, Monster Game.
Today I spend half of my day sleeping on the bed because thats the only day I can lazy on my bed till 12pm. Hahahahaa... Then after I wake up, reliazing that this week I was on duty. So started to clean here and there, then change and clean the water filter. The filter was sOooOOo yellow, and I wonder how long ago the filter was cleaned. Then the worst thing is the toilet. Is so damn dirty too. Normally some places would turn yellow if you don't clean it for some time, but this turned black.. :S (You know how dirty it is already rite?) I spend about half hours to clean all those things up. Aih.. Now I know, our house here looks clean but in fact is as dirty as other place. So sien...
That all la.. Nothing much to say for today also as I whole day nest at home. Hahahaa.. Tomorrow is working life again.. XD
Posted by littleway at 8:57 PM 4 comments
Saturday, June 24, 2006
Hate banking
This morning went to the bank to buy bankdraft for my external paper tuition fee. When we reach Public Bank, they told us that they don't issue bankdraft on weekend. We are suggested to visit another bank which would issue bankdraft on weekend. Then I try to withdraw money from the counter, yet the banker in the counter told me that my passbook is too old already, and the signature is kinda blur. She told me to renew my book back at my hometown. :( How am I going to renew it when my working hours is more than bank operating hours. :S Aih.. no choice lo.. I withdraw my money through ATM. Hahaha.. is fearful experience also because I need to withdraw 3 times only can get enough amount for that bankdraft. XD Then we go to TBR (The taman which next to our college) for Bumiputra Commerce Bank as I know they open on weekend for student.
After we reach BCB, they told us to go the branch in KLCC as small branch here doesn't issue overseas bankdraft. :S (Aih.. damn mah fan) Then we look at the time, it was nearly 11:30, and bank close at 12pm during weekend. So, no choice we rush to KLCC with a stack of cash with us. Hahaha... if somebody rob us at that time, perhaps they can get around 5k. XD (Don't rob me now la.. now no money already). I started to hate banking because everytime they like to direct you from places to places.
At Malaysia here, we need to adapt the bank, instead of bank adapt the customer. They are always bigger than customer. What the hell it is.. not only the bank that I mentioned here, but other bank also. Is there anyway to solve this problem? XD I guess the answer is NO for next few decade.
Posted by littleway at 11:35 PM 5 comments
Thursday, June 22, 2006
From Java to ColdFusion
Yo, today officially I had been transferred from the Java (SD Team) to the ColdFusion(AM Team). I have been given 1day to familarized the whole thing. :'( It means that I need to learn a completely new language in one day. LOL.. New challenge.
Ok, these are the thing that I don't like about coldfusion. We don't install a testing server in our own PC. Thus, all the things that we developed are directly from the host server. Our editor/development tools would hang if the server gets busy. This is really annoying when you are rushing your work. (Although I don't have any work to rush yet)
The second thing is coldfusion don't follow the coding standard like the other language which you can easily differenciate between codes and html tags. For example,
PHP
<?php
$a = 4; //creating a variable to store value 4
?>
<body>
The variable a contains value of <?php print $a; ?>
</body>
JSP
<%
int a = 4; //creating a variable to store value 4
%>
<body>
The variable a contains value of <%=a%>
</body>
*Thanks for the correction... Hehehe... I more used to output variable through salmon tags (SOFIA Framework)
Yet for coldfusion
<cfset a=4> <!---//creating a variable to store value 4 --->
<body>
<cfoutput>
The variable a contains value of #a#
</cfoutput>
</body>
Everything you need to put in the cfoutput tag in order to display the output of the variable. For the IfElse condition, coldfusion handle it in very different way too. For example a simple condition like this:
if(a!=0){
a=0;
}else{
a=1;
}
when it comes to coldfusion you need to write in this way,
<cfif a neq 0>
<cfset a=0>
<cfelse>
<cfset a=1>
</cfif>
So you can see the difference? I also don't know why such new programming language can be so in-standard. Imaging you have more than 4000 lines of codes and all of it looks almost similar because all codes are in the tags. Seriously, I wonder why people say that coldfusion is easy to learn than other languages where other languages follow the standard. :S
Posted by littleway at 11:28 PM 2 comments
Monday, June 19, 2006
Session in PHP mystery solved
As the problem that I posted yesterday, I finally found what went wrong in that particular thing. In PHP, wherever page that you need session, session_start() has to be called. This is solved as I include the auth.php in all my pages, yet the main problem of the session variable is the session_register(). The session_register() is used for older version of php (3.0 or below) and what I am using now is php5.1, which supports $_SESSION super variable. When you called your session_register(), the $_SESSION super variable would not work as what you expected. Thus by removing the session_register() and replace it with $_SESSION super variable, and whole things works as what I want. :)
Previous code:
auth.php
<?php
session_start(); //start session when your auto_start_session is 0 (off) in your php.ini
session_register($auth); //register global variable 'auth' into session variable
session_register($username); //register username as session variable too.
?>
Corrected code:
auth.php
<?php
session_start(); //start session when your auto_start_session is 0 (off) in your php.ini
$_SESSION['auth'] = $auth; //register global variable 'auth' into session variable
$_SESSION['username'] = $username; //register username as session variable too.
?>
Posted by littleway at 11:14 PM 0 comments
Sunday, June 18, 2006
Session in PHP
Hmm... whole day of today, I've been playing with the session using PHP. As many of us know that Session handling in ASP.NET using the Microsoft Visual Studio .NET environment was pretty easy as it has a file which you can declare your session variables, and application level variables. In php, it doesn't offer such functions. Thus, all you have to do is create an extra php file and import to every page of your web applications. I was having problem to declaring the Session and retrieve the values from the session variables in the php pages. Hence, I decided to google around and it suggested me to do as below:
auth.php
<?php
session_start(); //start session when your auto_start_session is 0 (off) in your php.ini
session_register($auth); //register global variable 'auth' into session variable
session_register($username); //register username as session variable too.
?>
Well, when I try to access the variable in another page, it does appears to be null. So where have I gone wrong?
Posted by littleway at 10:07 PM 0 comments
Saturday, June 17, 2006
Tokyo Drift
Yo.. Today me and few of my friends purposely went to 1Utama just to catch this movie as the GSC threatres in 1Utama has the THX sorround certified threatres. We love that cinema because it has very spacious seats and the sound system rocks.
We took the Putra LRT from Wangsa Maju to Kelana Jaya to catch the free shuttle that transport us to 1Utama. We wait at there for more than an hour if I've not mistaken because the schedule there says lunch break for half and hour. Why still need to wait for an hour and yet the bus isn't there? Well Rapid KL "rocks" because their schedule is just for display purpose only. XD If you really have rush hour, DON'T EVER TRUST THE SCHEDULE, or you get ourself waiting at the bus station like a fool. XD
Ok, back to the movie. This is the first american racing movie which not all about drag. Finally they understand that power wasn't everything like the previous two of their movie (Fast and Furious & Too Fast Too Furious). The scene where DK drift all the way from the lower level carpark to the rooftop, I like it very much. XD Although is a different type of movie from the InitialD (starring by Jay Chow), yet there is some shadow of it. The scene which the car feel from the top to downhill, and racing between a old car with a newer car. (Although the engine of the old car was from that wrecked Nissan).
Ok, the part that I don't like was about last few minutes of the movie where when both of then drifting, the DK keep banging on the car but still can maintain the stability. It was kinda fake for me, as it was nearly impossible for a car under drift can control their car after hit by another car. Afterall what we expected to see is how crazy their car is modified and the designs. Luckily, it doesn't dissapoint us. For those car modders freak, you can get alots of inspirations from the movie maybe. XD
Hmm... back to life, there is a funny thing about bus shuttle that we took to Kelana Jaya. The bus driver start their engine at the engine placed back of the bus instead of using the ignition in the bus. How advance we are, in Malaysia. Hahaha.... I wonder which place has their bus starts engine at the back rather than using the ignition, other than here. XD
Posted by littleway at 10:22 PM 0 comments
Friday, June 16, 2006
Technical Support that men needs
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.....
_____________________________________
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 Wife 1.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
Posted by littleway at 9:48 AM 0 comments
Monday, June 05, 2006
Posting from Microsoft Word 2007 Beta
This post is posted using Microsoft Word 2007 Beta2.
Posted by littleway at 11:40 AM 2 comments