Post หน่อยดีกว่า นานแล้ว :)

เอางานมาแปะ
- cnap 10 chapters ทำไปได้แค่ 2
- SE presentation ทำ preliminary presentation material ไปแล้ว เหลือทำให้ดีขึ้นอีก ส่วนตัว paper ยังไม่ได้จากชัยเลยไม่รู้ว่าเป็นยังไง
- PM report paper ตกลงทำ redhat : opensource project management case study
- PM quiz ยังไม่ได้แตะ
- web service — ทำ exercise ให้หมด สรุปเนื้อหาที่เรียนด้วย

Table Books

isbn varchar 20
title varchar 70
author varchar 50
price float -
DROP TABLE IF EXISTS `test`.`books`;
CREATE TABLE  `test`.`books` (
`isbn` varchar(20) NOT NULL,
`title` varchar(70) NOT NULL,
`author` varchar(50) NOT NULL,
`price` float NOT NULL,
PRIMARY KEY  (`isbn`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

Mounting NFS at boot automatically on Solaris10 x86

1. add the mount entry in /etc/vfstab
2. check if disabled or not
svcs nfs/client
if disabled then enable it
3. svcadm enable  svc:/network/nfs/client:default

Tags: , ,

I could , could sing of your love forever :)

Hello dude , today I  start the  warm saturday morning with a very very good feeling after finishing the midterm examination.
Yes, absolutely have been the hard time for me. Last Night, I slept on my dearest bed for 6 hours
and I wake up on 5.30 am.
I spend my morning time on googling and watching the [...]

HTTPD mod_perl & mod_cgi

1. install mod_perl , mod_cgi
#yum -y install mod_perl mod_cgi
2. edit /etc/httpd/conf/httpd.conf
#vi /etc/httpd/conf/httpd.conf
LoadModule cgi_module modules/mod_cgi.so
LoadModule perl_module modules/mod_perl.so
3. edit /etc/httpd/conf/vhost.conf to handle cgi/perl
#vi /etc/httpd/conf/vhost.conf
<Directory “/path/to/your/perl-script-dir”>
AllowOverride all
DirectoryIndex index.php index.html
Options +ExecCGI
AddHandler cgi-script cgi pl
Order allow,deny
Allow from all
</Directory>
4. reload your httpd server
#service httpd reload
5. test to execute perl script by httpd
#cd /path/to/your/perl-script/dir
#vi test.pl
#!/usr/bin/perl
print “Content-type: text/plain\r\n\r\n”;
print “mod_perl rules!\n”;
6. chmod +x [...]

SMF Repository Restore

#/lib/svc/bin/restore_repository
choose the backup

Tags: , , ,

glassfish on opensolaris

Probably I can install Tomcat by downloading it from the Tomcat site, unpack it, and run it, but I don’t want to do this: I’d rather use the OpenSolaris packaging system. However, it seems there isn’t a package available for Tomcat. Atleast, I haven’t found it. So, my initial thought was to install JBoss instead. [...]

lsb_release : to print out the ubuntu release information

#lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 7.04
Release:        7.04
Codename:       feisty

Tags: ,

น่าคิดดีนะ

Tags:

Setting up NTP Client on CentOS 5.3

setting up the ntp client for time synchronization on centos cando as follow
1. login to your shell as root
2. install ntp client by invoke this command
yum -y install ntp
3. edit ntp file configuration|
vi /etc/ntp.conf
comment out all the default time server and add your own time server. in case of me , Im in Thailand
so I [...]

Tags: , ,