Monday, June 1, 2009

how to print to standard error in php

php has a function to print message to standard error which normally will be in the log file set by apache.

this function is error_log($message). Example:

<?php
error_log('some error message');
?>

References:
http://php.net/manual/en/function.error-log.php

DBD::Oracle Perl Module and Oracle - Versions

The truth is that DBD::Oracle 1.19 will work with Oracle 9i only.

Newer version of DBD::Oracle module will not be able to be compiled with Oracle 9i, unfortunately.

Friday, May 29, 2009

oracle sid length

The maximum length of ORACLE_SID is 8 characters.

І can confirm only with Oracle 9i.

Sunday, February 22, 2009

TrueNetTalk and Fring

TrueNetTalk is a VoIP service in Thailand. To subscribe TrueNetTalk with Fring, follow this step:

  • Assume that your username is 1256352355 and your password is 6258415
  • Open Fring
  • Go to the list of supported Protocol
  • Go to SIP
  • Go to Other
  • Enter the username (without any ip address!!!)
  • Enter the password
  • At the Proxy box, enter: 61.90.255.132

Monday, February 16, 2009

Fring and Skype Login Issue

Sometimes when you unsubscribe your Skype account from Fring, you might have trouble re-logging in to Skype later. The error message is:

Could not login to Skype. Please re-enter your user id and password.

Though you are so sure that you enter the correct username and password.

To solve this, it is so easy! You just have to try logging in for approximately 100 attempts and it will work!

Hope that help...

Thursday, February 5, 2009

How to change Windows password

Issue this command in cmd:

net user :your_username: * /domain

:your_username: is your username.

Wednesday, February 4, 2009

Thailand will block hi5.com because of the green

Recently, a ministry of culture agent found a Hi5 of a guy who posted some photos of himself smoking weed. The ministry said that this was unacceptable and would work on the lawsuit to block hi5.com.

Saturday, January 24, 2009

Quit smoking

It can be more difficult when you want to quit while your friends are still smoking.
You can be rich if you use only 10% of your salary.

Wednesday, January 21, 2009

Determining w3wp process and IIS AppPoolId

When hosting several virtual hosts in IIS, if you go to the Windows Task Manager > Processes, you will notice that the IIS worker process all share the same name as w3wp.exe. To see which w3wp is of which virtual host, one way is:

  • In the task manager, select to show PID column.
  • In cmd, execute C:\WINDOWS\system32\iisapp.vbs