What's Up

Cinta Perlu Waktu, Waktu Adalah Uang, So.. Cinta ???

21 July 2006

Finally the day Has come

07:30 The day has come true ... what should i do. let's see it in the next 3 hours from now

... to be continued

11:30 Fuhhhhhhhhhhhhhhhhhhhh ....
finally ... it's done with happy one ...
ALhamdulillah ....

12 July 2006

Just For Fun

SERBA SERBI BATMAN

1. Batman (Betmen) manggil dirinya?.........BETa
2. Senjatanya batman??.........BETcheng
3. Kalau batcave-nya kebanjiran jadi apa?.....BETchek
4. Obatnya batman?....BEThadine
5. Asalnya batman?....BETawi
6. Kendaraannya batman selain bat-mobile?....BETchak
7. Artis favoritnya batman?....BETharia sonata
8. Hobinya batman?....BETcanda
9. Makanan favorit batman?.....BETagor
10. Kalo berlibur batman perginya kemana?....tiBET
11. Ngapain di Tibet?.....BETapa
12. Temennya batman yang idungnya panjang?.....BETruk
13. Bat-cave lokasinya ada dimana?...komplek Bet-Te-eN
14. Orang tuanya batman kerjanya ngapain?.....BETani
15. Batman kalo di dunia kriminal jadinya?......JamBET
16. Batman nabungnya dimana?.....BET Ce A
17. Merek kolornya Batman? B T Man
18. Panggilan Batman kalo jadi Bencong?.....BETi
19. Batman lulus ebtanas karena?.....karena jago ngeBET
20. Kalo ujan dan dingin, Batman ngapain? minum BETjigur
21. Kalo berlibur ke Bali, Batman ngapain?.....BETjemur
22. Batman kalo tidur pake apa?......BET cover
23. Kalo malam minggu Batman ngapain?......BET-gaul
24. Kenapa pulang BET-gaul Batman jadi kesel?.... soalnya mobilnya keseremBET
25. Gara-gara itu hidup Batman jadi.......riBET
26. Kalo kasurnya basah, Batman tidur dimana?...... karBET
27. Batman kesurupan kenapa?.....kesamBET
28. Kalo ngelap Batman ngelap pake apaan?.....serBET
29. Lebaran, Batman makan apa?...... ketuBET
30. Aktor kesukaannya Batman?......BET-Li
31. Tokoh kartun favoritnya Batman?..... BET Simpson
32. Film favoritnya Batman?..... SinBET
33. Kalau keluar negri, Batman naik apa?.....BETsawat
34. Kalu camping, Batman bawa apa?..... BET Pack
35. Kalau digigit nyamuk Batman jadinya...??? BETol2
36. Tahun 45 Batman ngapain?...... BETjuang
37. Waktu BETjuang Batman ngapain?... BETempur
38. Batman Berapa bersaudara?..... Betiga
39. Nama salah satu saudaranya Batman?.... BETjo
40. Kalo Batman baca humor ini jadinya apa? ....... BETeeeeeeeeeee!!!!
41. Batman lincah karena dia sering... main BETminton

Counting time with C#

Wanna count the time with C# ???
here is the code that i got from csharphelp.com By S.Thangaraju

/*
This program finds out your Age using the DateTime structure in C#.
*/

using System;

class DOB{

private DateTime dtDob;
private DateTime dtNow;
private DateTime dtAge;
private int intDay;
private int intMonth;
private int intYear;
private int intHour;
private int intMinute;
private TimeSpan tsAge;
private int intAgeYear;
private int intAgeMonths;
private int intAgeDays;
private int intAgeHours;
private int intAgeMinutes;


public static void Main (String[] args) {

DOB objDob=new DOB();
objDob.getDob();
objDob.createDateObjects();

Console.WriteLine("Your Age in Years :" + objDob.getAgeInYears());
Console.WriteLine("Your Age in Months :" + objDob.getAgeInMonths());
Console.WriteLine("Your Age in Days :" + objDob.getAgeInDays());
Console.WriteLine("Your Age in Hours : " + objDob.getAgeInHours());
Console.WriteLine("Your Age in Minutes : " + objDob.getAgeInMinutes());
Console.WriteLine("Your Accurate Age is : " + objDob.getAgeInYears() + " Years " +
objDob.getMonthDiff() + " months " + objDob.getDayDiff() + " days");
}

/* get the date */

private void getDob() {

try {

Console.Write("Enter the Day u were born : " );
intDay=Console.ReadLine().ToInt32();
Console.Write("Month : ");
intMonth=Console.ReadLine().ToInt32();;
Console.Write("Year(yyyy) : ");
intYear=Console.ReadLine().ToInt32();
Console.Write("Hour(0-23) : ");
intHour=Console.ReadLine().ToInt32();
Console.Write("Minute(0-59) : ");
intMinute=Console.ReadLine().ToInt32();
}

catch (Exception e) {
Console.WriteLine(e.StackTrace);
Environment.Exit(0);
}
}

/* create the date objects */
private void createDateObjects() {

dtDob=new DateTime(intYear,intMonth,intDay,intHour,intMinute,0);
dtNow=DateTime.Now;

if (DateTime.Compare(dtNow,dtDob)==1)
tsAge=dtNow.Subtract(dtDob);
else {
Console.WriteLine("Future dates cannot be entered.");
Environment.Exit(0);
}

dtAge=new DateTime(tsAge.Ticks);
Console.WriteLine("Your date of birth :" + dtDob.Format("F",null));

}

/* calculates the age in Years */
private int getAgeInYears() {
intAgeYear=dtAge.Year-1;
return intAgeYear;
}

/* calculates the age in months */
private int getAgeInMonths() {
intAgeMonths=intAgeYear*12;
intAgeMonths=intAgeMonths+(dtAge.Month-1);
return intAgeMonths;
}

/* calculates the age in days */
private int getAgeInDays() {
if (dtDob.Year==dtNow.Year) {
intAgeDays=dtNow.DayOfYear-dtDob.DayOfYear;
}
else {
if(DateTime.IsLeapYear(dtDob.Year))
intAgeDays=366-dtDob.DayOfYear;
else
intAgeDays=365-dtDob.DayOfYear;

for (int i=dtDob.Year+1;i < intagehours="getAgeInDays()" intagehours="intAgeHours+(dtNow.Hour-dtDob.Hour);" intageminutes="getAgeInHours()" intageminutes="intAgeMinutes+(dtNow.Minute-dtDob.Minute);" intdaytemp1="getAgeInDays();" inttempday="intDay;" 1="=" inttempyear="dtNow.Year-1;" inttempmonth="12;" inttempmonth="dtNow.Month-1;" inttempmonth="dtNow.Month;" inttempday="1;" inttempyear="dtNow.Year;" 1="=" month="=" inttempmonth="dtNow.Month-1;" inttempmonth="dtNow.Month;" inttempday="1;" inttempyear="intYear;" dtnow="new" intdaytemp2="getAgeInDays();">


/*
Result
------
D:\progs>dob
Enter the Day u were born : 1
Month : 1
Year(yyyy) : 2000
Hour(0-23) : 1
Minute(0-59) : 4
Your date of birth :Saturday, January 01, 2000 1:04:00 AM
Your Age in Years :1
Your Age in Months :17
Your Age in Days :520
Your Age in Hours : 12489
Your Age in Minutes : 749375
Your Accurate Age is : 1 Years 5 months 3 days
*/

Hopefully this will save someone some time in the future