Wednesday, January 30, 2008

การใส่ FLV ไว้บนเว็บแบบ ง่ายๆ

แหม๋มๆ หาวิธีตั้งนาน จะทำแบบ Advance ก็ยังไม่เสร็จ
เลยไปเจอวิธีแบบง่ายๆมา ของฟรีซะด้วยอ่ะ

ใช้เจ้านี่เอา JW FLV MEDIA PLAYER กดโหลดได้ที่นี่

วิธีใช้ก็ง่ายๆ
1. เตรียมไฟล์ .flv ซะก่อนนะ ถ้าเป็นไฟล์อื่นก็หาโปรแกรมแปลงซะเน่อ
2. ก็ สร้าง HTML มา 1 หน้า แล้วดูตัวอย่างการใช้งานจากไฟล์ที่โหลด
3. upload แค่นั้นเอง ^0^ ง่ายเนอะ

แต่มันเป็น Streaming ไหมหว่า -*-

Tuesday, January 29, 2008

วิธีการ Set ULIMIT ใน UNIX

แก้ Config ของ OS แก้ไขใน
1. /etc/pam.d/login เพิ่ม
session required /lib/security/pam_limits.so

2. /etc/pam.d/sshd เพิ่ม
session required /lib/security/pam_limits.so

3. /etc/security/limits.conf เพิ่ม
* - nofile 10240



4. Restart server
*หมายเหตุ* ก่อนหน้าที่ทำการแก้ไข open file = 1024

-----------------------------------------
ดูค่า Config ทั้งหมด
# ulimit -a

กำหนดค่า Open file
#ulimit -n 2048

ดูว่าตอนนี้มีไฟล์เปิดอยู่เท่าไหร่กัน
# lsof grep REG wc -l

Monday, January 28, 2008

'Unable to compile class for JSP' error message occurs at runtime

ปัญหาที่เจอใน WebSphere Portal Server อะครับ
Search มาใส่ไว้ จะได้หาง่ายๆ ^_^
อ่อ แก้ ulimit ใน profile root เลยง่ายกว่านะ

ทางที่ดีนะ Up Fix work สุดๆ

Problem
An "Unable to compile class for JSP" error is thrown at runtime. See the complete error message below.
org.apache.jasper.JasperException: Unable to compile class for JSP/usr//temp//WebSphere_Portal///genjsp/.java:: error while writing : /usr/ /temp//WebSphere_Portal///genjsp/.class (Too many open files)(source unavailable)

Cause
The exception above is thrown when the operating system (OS) and JVM run out of file descriptors. File descriptors are unique to processes to identify open files of different types, including sockets or pipes. Exceptions indicating too many open files are thrown when the OS runs short of file descriptors.

Solution
There is a ulimit parameter in Linux that controls the number of files/connections that can be opened. You can find the current ulimit setting by entering the following command (ulimit -n). Ensure that this is set to at least 8192.