Just in Chronicles

Jun 18

Difference between “|” and “||”

What a difference they have!!

Calling a method using its name as a string value

System.Reflection.MethodInfo is the one that I can use the name of method as a string value to call the method.

In order to get the method, the typeof() keyword should be used, instead of the Type.GetType() method.

Possibility that Korea Advances to the Next Round

Even though South Korea lost the match against Argentina, it still stands at thesecond of the Group B. Well, there is still hope to go to the next round depending on the last match with Nigeria.

switch (GetResultMatch(Korea, Nigeria))
{
  case Result.Won:
    if (GetResultMatch(Greece, Argentina) == Result.Won)
      if (GetGoalDifference(Greece, Korea) >= 2)
        SetNextRound(Greece);
      else
        SetNextRound(Korea);
    else
      SetNextRound(Korea);
    break;
  case Result.Draw:
    if (GetResultMatch(Greece, Argentina) == Result.Won)
      SetNextRound(Greece);
    else if (GetResultMatch(Greece, Argentina) == Result.Draw)
      if (GetGoalDifference(Greece, Korea) >= 2)
        SetNextRound(Greece);
      else
        SetNextRound(Korea);
    else
      SetNextRound(Korea);
    break;
  case Result.Lost:
    if (GetResultMatch(Argentina, Greece) == Result.Won)
      SetNextRound(Nigeria);
    else
      SetNextRound(Greece);
    break;
}

I don’t think it’s possible for Greece to put Argentina two more goals down. South Korea should take the last game from Nigeria. I bet South Korea goes to the Round 16. And yourself guys?

Test from Posterous

This is test posting.

Posted via email from Just in Chronicles

May 24

How to manually attach debugging to ASP.NET process

This is the way to manually attach debugger to process when debugging mode is not properly running because of the account privilege, especially for PHP scripts in Visual Studio 2008.

PS. It’s been for age since the last post!

Mar 07

To Encrypt/Decrypt web.config

It’s really complicating, though.

It’s really annoying, though.

Feb 16

Installing PHP on IIS 7

Unlike IIS 5.1 running on WindowsXP, IIS 7.0 on Windows Vista and IIS 7.5 on Windows 7 are a lot different, in terms of setting up. Well, even though Windows Web Platform Installer can automate all the set up process, manual set-up needs be learned for troubleshooting.

Feb 11

IIS 7.0 + FTP 7.0 : 530 Error

When setting up user accounts on FTP 7.0 running onto IIS 7.0, the username of it must be the same as its root directory. Otherwise, the error message below will come up.

530 User cannot log in, home directory inaccessible.

Feb 10

GoDaddy IIS7 URL Rewrite

In order to get both web sites - dev and live - working and search engines optimised, URL rewriting must be done.

Feb 08

GymLog/ 08/02/2010

Can’t get myself into the rhythm. T.T Used be a “Pump-it-up” expert, though!