บทความ

กำลังแสดงโพสต์จาก 2012

การต่อ USB Serial ใน Linux

ทดสอบกับ ubuntu 10.04 การใช้ USB to serial adaptor สำหรับ ubuntu desktop ต้องการทำคอนฟิกอุปกรณ์เครือข่ายชนิด L2 Switch โดยใช้โน๊ตบุ๊คต่อกับอุปกรณ์ดังกล่าว รายการอุปกรณ์ USB to serial adaptor ที่ทดสอบแล้ว Billionton DTech เชื่อมต่ออุปกรณ์ เสียบหัว DB9(เมีย) ของสาย NULL MODEM เข้ากับ L2 Switch เสียบหัว DB9(ผู้) ของ USB to serial adaptor เข้ากับหัว DB9(เมีย) ของสาย NULL MODEM อีกปลายเสียบกับช่อง USB ของโน๊ตบุ๊ค ใช้คำสั่ง dmesg  จะเห็นขัอความตอนท้ายๆประมาณว่า usb 4-1: pl2303 converter now attached to ttyUSB0 แสดงว่าระบบเห็นเป็น /dev/ttyUSB0 ติดตั้งโปรแกรม Serial Port Terminal ใช้คำสั่ง sudo apt-get install gtkterm การเรียกใช้โปรแกรม Serial Port Terminal ทำดังนี้ คลิกเลือก Applications > Accessories > Serial Port Terminal ตั้งค่า Port ก่อนใช้งาน โดยเลือก /dev/ttyUSB0 ที่หน้าต่าง GtkTerm Windows คลิกเลือก Configuration > Port > Port: /dev/ttyUSB0 กดปุ่ม Enter ก็จะเข้าสู่หน้าจอ Console พบ login: ตอนนี้ก็พร้อมที่จะทำคอนฟิกอุปกรณ์ L2 Switch ได้แล้ว การใช้โ

การ import data ใน express

http://www.esg.co.th/smf/index.php?topic= 5708.0 http://www.esg.co.th/smf/index.php?topic= 5665.0 ลองดูว่าจะใช้ได้หรือปล่าว

ตัวอย่างของ 7 layer ต่างๆ

หลังจากที่ได้ไปเรียนมาที่แห่งหนึ่งเกี่ยวกับ Network ก็ได้ความรู้ถึงการเปรียบเทียบของ 7 layer เพิ่มเติม L1 เป็นทางระดับสัญญาณทางไฟฟ้า 0110101 L2 เป็นระดับ MAC address L3 เป็นการส่ง Frame Packet  SRC_IP(PC):DST_IP(HOST) จะมีการ random port Src_Port(xxx):Dst_Port(80) เป็นขาออก เวลากลับก็เป็น Host:PC, 80:xxx L4 TCP พูดถึงแม่ค้าขายของให้คน 1 คน แต่      UDP พูดถึงแม่ค้าขายของให้คนหลายคน L5 เหมือนกับ program chat คุยกันหลายๆคน L6 เหมือนกับ program เดียวทำงานได้หลายๆอย่างเช่น msn ใช้ chat,ส่ง file,... L7 ก็เป็น Interface นั่นเอง หวังว่าผมคงจะเข้าใจแต่คนอื่นไม่รู้เหมือนกัน

การใช้งาน Wirecast Pro

Wirecast Pro 2012 v4.1.3.16387 Final: เป็นสุดยอดโปรแกรมที่ใช้ในการถ่ายทอดสด TV Streaming ผ่านทางระบบ Internet  ซึ่งสามารถสลับการออกอากาศของกล้องหลายๆ ตัวในขณะถ่ายทอดสดได้ และนอกจากนี้ยังมีลูกเล่นอื่นๆ เสมือนโปรแกรม Switcher ที่ใช้สำหรับรายการโทรทัศน์นั่นเองครับ  ซึ่งโปรแกรมนี้ทำได้ทั้ง Recorder ,  Streamer ,  Video Effect ,  Video Overlay และ Video Switcherในตัวเดียวกัน โดยรองรับได้มากกว่า 100 โมดูลไม่ว่าจะเป็น Audio ,  Camera ,  Player หรือ Preview ก็รองรับหมด แถมยังรองรับไฟล์วีดีโอได้มากมายหลายนามสกุล เช่น WMV ,  AVI ,  MPG ,  MPEG ,  MP2 ,  MOV ,  MP4 ,  M4V ที่สำคัญคือรองรับความละเอียดของวิดีโอได้ถึง 1280*720(HD) การใช้งานเพียงแค่มีกล้องเว็บแคมและอุปกรณ์อุปกรณ์จับภาพวิดีโอเชื่อมผ่าน ทาง USB ก็ใช้งานได้แล้วครับ  

การทำ dhcp snooping

http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/12.1/20ew/configuration/guide/dhcp.html#wp1074087

เมื่อใช้ xcopy แล้ว nsufficient-memory นี่เลยครับ robocopy

Here is an interesting issue I ran into today. I have a script which creates a local copy of one of the important folders on the server using the xcopy command. To make the long story short, after several “accidents” with people messing up or deleting files on the server, we figured that letting people to make local mirrors on their own desktops might be slightly better than restoring stuff back from the tape 4 times a day. It was something along the lines of: rmdir /S /Q "%HOMEPATH%\My Documents\Important" xcopy /E /R /Y /I G:\Important "%HOMEPATH%\My Documents\Important" The script worked fine for almost a year now. Today however it decided to fail. After copying 1 or 2 folders it would simply stop. After closer inspection of the output I noticed that the last line was: Insufficient Memory I immediately checked the memory. The machine had 512 MB of RAM, and over 20 GB of free disk space. The folder I was attempting to copy had only 128 MB. This could not be corre