sugree's blog
Renew SSL certificate in RedHat 9
Most services should run in secure mode by adding SSL on top of them. The most popular services in RedHat 9 are imapd, pop3d, and sendmail. Anyway, default configuration of RedHat 9 will generate certificates with 365 days valid period. So that means you have to renew them once a year. The default certificate directory in RedHat 9 is /usr/share/ssl/certs. The first thing you need to do is to confirm that it has expired by using below command.
# openssl x509 -in sendmail.pem -text | grep Not
Add new comment
Read more
1497 reads
Patch for LDAP Integration module in Drupal 4.7
According to the previous post, the patch is not complete for all functions. I found a problem according to attributes mapping. The attributes changed in Drupal are not synchronized to LDAP because of missing some options in administer interface. So below is the new patch.
- Add new comment
- Read more
- 1565 reads
Convert TIS-620 to UTF-8 in PHP
In case you don’t have iconv and mbstring, you might use below function to convert TIS-620 to UTF-8.
function tis620_to_utf8($text) {
$utf8 = "";
for ($i = 0; $i < strlen($text); $i++) {
$a = substr($text, $i, 1);
$val = ord($a);
if ($val < 0x80) {
$utf8 .= $a;
} elseif ((0xA1 <= $val && $val < 0xDA) || (0xDF <= $val && $val <= 0xFB)) {
Add new comment
Read more
2298 reads
Convert UTF-8 to TIS-620 in PHP
In case you don’t have iconv and mbstring, you might use below function to convert UTF-8 to TIS-620.
function utf8_to_tis620($string) {
$str = $string;
$res = "";
for ($i = 0; $i < strlen($str); $i++) {
if (ord($str[$i]) == 224) {
$unicode = ord($str[$i+2]) & 0x3F;
$unicode |= (ord($str[$i+1]) & 0x3F) << 6;
$unicode |= (ord($str[$i]) & 0x0F) << 12;
2 comments
Read more
5512 reads
Wow! Google Talk has just with avatar and theme support. This version is numbered as 1.0.0.92. There are 2 noticeable look and feel changing. Now you can see avatar and, of course, you can set your avatar using your own photo. Not just that simple thing, you can change look and feel of the chat window.
- Add new comment
- 2151 reads
AllPeers are spreading limited beta version
I have just received a notification e-mail indicated that AllPeers are available for beta tester. Anyway, in this first beta release, an activation key is necessary. Fortunately, the developers allow beta testers to invite 3 more friends to test the program.
For more information, go to read the first announcement and the latest clarification. I am very exciting to try AllPeers. According to the reply message, I have to wait for a few days to get my activation key and download instruction.
- Add new comment
- Read more
- 465 reads
Recent comments
2 years 11 weeks ago
2 years 16 weeks ago
2 years 16 weeks ago
2 years 17 weeks ago
2 years 17 weeks ago
2 years 19 weeks ago
2 years 19 weeks ago
2 years 19 weeks ago
2 years 20 weeks ago
2 years 20 weeks ago