Mai's profileเบาเหมือนควัน จางเหมือนล...BlogListsGuestbookMore Tools Help

Blog


    วิธีติดตั้ง Driver Lan 10/100 ของ P5GC-Mx/1333 สำหรับ CC4.2

    วิธีติดตั้ง Driver Lan 10/100 ของ P5GC-Mx/1333 สำหรับ CC4.2

    ก่อนอื่นต้องขอขอบคุณ

    1.xxxkung ผู้แนะนำแนวทาง จาก http://www.internetcafe.in.th/showthread.php?t=3358
    2.คุณบอม Siamcafe เอื้อเฟื้อ วิธีการ Update โดยไม่ต้องลงทะเบียน

    เนื่องจาก มีโอกาศได้เอาบอร์ด P5GC-MX / 1333 มาลองทำ เป็น Clarkconnect ก็พบปัญหาว่า ตัว
    ClarkConnect เองไม่สามารถ ใช้ Lancard onboard ได้ ก็เลยได้ทดลอง ค้นหา วิธีการ จนได้ออกมาดังนี้


    1. update package cc-devel , kernel-sourcecode , kernel-devel

    ด้วยคำสั่ง

    โค๊ด:
    apt-get install cc-devel
    apt-get install kernel-sourcecode
    apt-get install kernel-devel
    apt-get install kernel-devel#2.6.18-8.1.14.3.cc

    ตามลำดับน่ะครับ

    2. โหลด Driver ของ lancard ด้วยคำสั่ง

    โค๊ด:
    wget ftp://ftp.hogchain.net/pub/linux/attansic/vendor_driver/l2-linux-v1.0.40.4.tar.gz


    3. คลาย zip ด้วยคำสั่ง

    โค๊ด:
    [root@Gw tmp]# tar zxvf l2-linux-v1.0.40.4.tar.gz
    l2-linux-v1.0.40.4/
    l2-linux-v1.0.40.4/release_note.txt
    l2-linux-v1.0.40.4/atl2.spec
    l2-linux-v1.0.40.4/readme
    l2-linux-v1.0.40.4/atl2.7
    l2-linux-v1.0.40.4/copying
    l2-linux-v1.0.40.4/src/
    l2-linux-v1.0.40.4/src/at.h
    l2-linux-v1.0.40.4/src/kcompat_ethtool.c
    l2-linux-v1.0.40.4/src/kcompat.h
    l2-linux-v1.0.40.4/src/Makefile
    l2-linux-v1.0.40.4/src/at_main.c
    l2-linux-v1.0.40.4/src/at_hw.h
    l2-linux-v1.0.40.4/src/Module.symvers
    l2-linux-v1.0.40.4/src/at_hw.c
    l2-linux-v1.0.40.4/src/at_param.c
    l2-linux-v1.0.40.4/src/kcompat.c
    l2-linux-v1.0.40.4/src/at_osdep.h
    l2-linux-v1.0.40.4/src/at_ethtool.c
    l2-linux-v1.0.40.4/ldistrib.txt


    แก้
    Hi, you may look at the following code in the kcompat.h:
    [1083] #if (!(( RHEL_VERSION == 4 ) && ( RHEL_UPDATE >= 5 )))
    [1084] typedef irqreturn_t (*irq_handler_t)(int, void*, struct pt_regs *);
    [1085] #endif

    It doesn't recognize rhel5/centos5. Therefore, just delete the line 1084.
    4. เข้าไปในโฟรเดอร์ ที่คลายออกมา แล้วสั่ง คอมไพล์

    โค๊ด:
    [root@Gw tmp]# cd l2-linux-v1.0.40.4
    [root@Gw l2-linux-v1.0.40.4]# cd src/
    [root@Gw src]# make install
    make -C /lib/modules/2.6.18-8.1.14.3.cc/build SUBDIRS=/tmp/l2-linux-v1.0.40.4/src modules
    make[1]: Entering directory `/usr/src/kernels/2.6.18-8.1.14.3.cc-i686'
      CC [M]  /tmp/l2-linux-v1.0.40.4/src/at_main.o
      CC [M]  /tmp/l2-linux-v1.0.40.4/src/at_hw.o
      CC [M]  /tmp/l2-linux-v1.0.40.4/src/at_param.o
      CC [M]  /tmp/l2-linux-v1.0.40.4/src/at_ethtool.o
      CC [M]  /tmp/l2-linux-v1.0.40.4/src/kcompat.o
      LD [M]  /tmp/l2-linux-v1.0.40.4/src/atl2.o
      Building modules, stage 2.
      MODPOST
      CC      /tmp/l2-linux-v1.0.40.4/src/atl2.mod.o
      LD [M]  /tmp/l2-linux-v1.0.40.4/src/atl2.ko
    make[1]: Leaving directory `/usr/src/kernels/2.6.18-8.1.14.3.cc-i686'
    gzip -c ../atl2.7 > atl2.7.gz
    # remove all old versions of the driver
    find /lib/modules/2.6.18-8.1.14.3.cc -name atl2.ko -exec rm -f {} \; || true
    find /lib/modules/2.6.18-8.1.14.3.cc -name atl2.ko.gz -exec rm -f {} \; || true
    install -D -m 644 atl2.ko /lib/modules/2.6.18-8.1.14.3.cc/kernel/drivers/net/atl2/atl2.ko
    /sbin/depmod -a || true
    install -D -m 644 atl2.7.gz /usr/share/man/man7/atl2.7.gz
    man -c -P'cat > /dev/null' atl2 || true
    Formatting page, please wait...

    5. ติดตั้ง Driver ด้วยคำสั่ง

    โค๊ด:
    [root@Gw src]# insmod /lib/modules/2.6.18-8.1.14.3.cc/kernel/drivers/net/atl2/atl2.ko

    6. แก้ไขไฟล์ /etc/modprobe.conf ให้เพิ่ม alias ethX atl2 โดย X เท่ากับ 0 , 1 , 2 อย่าให้ซ้ำอันเดิม

    ตัวอย่างของผมเป็น 2

    โค๊ด:
    alias eth0 8139too
    alias eth1 8139too
    alias scsi_hostadapter ata_piix
    alias usb-controller ehci-hcd
    alias usb-controller1 uhci-hcd
    alias eth2 atl2

    7. เรียกใช้งาน Driver ที่พึ่งติดตั้งไปด้วยคำสั่ง

    โค๊ด:
    [root@Gw src]# depmod
    [root@Gw src]# modprobe eth2


    8. รีบูทเครื่อง 1 ครั้ง เป็นอันจบกระบวนการ

    Replace with .innerHTML

    ใช้โค๊ด JAVA นี้แทนที่ HTML ปกติใน ID นั้นๆ
    <script>
    document.getElementById('ID_NAME').innerHTML="Any HTML";
    </script>

    connect Twitter use cURL

    <?php

    $username = $_REQUEST['u'];
    $password = $_REQUEST['p'];

    $url = 'http://twitter.com/statuses/user_timeline.rss'; //choose output format

    $curl_handle = curl_init();
    curl_setopt($curl_handle, CURLOPT_URL, "$url");
    curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
    curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($curl_handle, CURLOPT_USERPWD, "$username:$password");
    $buffer = curl_exec($curl_handle);
    curl_close($curl_handle);

    header ("Content-type: text/xml"); // Output file as XML
    echo($buffer);
    ?>

    ทดสอบ video

     

    เอาลงใน hi5 ไม่ได้ 555+ เขินเลย เอามาลง spaces แทนกะได้ฟระ หัดทำๆ

    การคสบคุมคุณภาพ jpeg จาก GD libraly

    imagejpeg ( resource $image [, string $filename [, int $quality ]] )

    ใช้ปกติแบบ imagejpeg ($im ,'',100) //quality สูงสุดขอบ ใหญ่จัดๆ

    บอท ผิด คิด จน ติด คุก

    พอดีวันนี้ได้อ่าน พระราชบัญญัติ ว่าด้วยการกระทำความผิดเกี่ยวกับคอมพิวเตอร์ ซึ่งอ่านๆ ดู พวกใช้บอทเขียนบอทแจก นี่อาจจะมีความผิดเรียงมาตรา ไป 6-7 มาตราเลยนะนั่นเรียกว่าปรับกันเป็นแสน ติดคุกกันหัวโตเลย แต่ผมก็ไม่ใช่นักกฎหมายก็ไม่รู้ว่า การใช้บอทมันจะเข้าข่ายความผิดแบบที่กฎหมายเขียนไว้หรือเปล่า อย่างว่าเป็นกฎหมายใหม่อะไรๆ ก็ยังดูหละหลวมแล้วก็ดูคลุมเครืออยู่มากเลย แต่โดยรวมแล้วก็แสดงให้เห็นว่าทำผิดโดยการ แฮค นี่ติดคุกได้แน่นอน!!

    ใครสนใจลองอ่าน พ.ร.บ. ฉบับนี้ดูครับ

    Attn: Newbies..if your DMA is OFF or PIO Mode (here is a very easy guide to fix it)

    Lately, I've been seeing tons of DMA issues (i.e. DMA is Off or in PIO Mode) when members posting their Nero logs. With that being said, here's a super easy guide for all of you.
    <><> To Enable DMA back On by "uninstalling" its driver(s) by Alkohol <><>














    Enjoy it!!

    Source: Attn: Newbies..if your DMA is OFF or PIO Mode (here is a very easy guide to fix it)

    StuffPlug.com - News

    Alright, the newyear-release wasn't quite as stable as I had expected it to be, so here's a little update.
    The whole problem lies in the fact that I always test with the latest WLM I can get my hands on, which was 8.1.0168 in this case. This required some major changes from 8.0, which made it work only and exclusively on 8.1. I can't really undo those changes just like that, so I'm going to leave them in.
    This means that this new beta still requires 8.1.0168, but this time the installer will check your Windows and WLM version and warn you before installing smile.gif
    If you want to know where to get 8.1.0168, check the FAQ.
    I haven't had time to fix the talk-while-blocking, keyboard flashing, or the CE/DP Stealer, but I did take a look at the current bugs:
    - The "Entrypoint" error message is caused by a wrong version of WLM, just update to the beta and you should be fine.
    - The "DBG error" or the Polygamy issues were caused by me opening a file exclusively *grin*, fixed that
    - I have no idea where the parser errors came from, I'll need more info on that, but I'll make a seperate post on that once I have time to look into it.
    The complete change-list:
    - Added instructions on how to translate to installer
    - New installer side-image (previously was SPNG image, now says StuffPlug 3)
    - Added 20 extra languages to this release
    - Solved Polygamy issues (or "DBG error" issues)
    - Added WLM version check to installer
    - Installer refuses on pre-2000
    - Installer warns on pre-XP
    Anyway, enough talking, get it while it's hot.
    Have fun with this release, report bugs and glitches if you find them, but *please* look if there are any previous reports of them! Duplicate entries only make it more difficult for me to get a quick overview of bugs to fix!
    Bye,
    TB

    Source: StuffPlug.com - News

    ใส่ข้อมูล 256GB ลงกระดาษ

    ข้อมูลภาษาไทยจาก www.blognone.com


    Sainul Abideen explains the features of his Rainbow Technology. (AN photo) ทุกวันนี้เรากำลังเข้าไปสู่โลกของสื่อแบบ HD ที่ให้ความจุระดับ 25-50 GB บนสื่อขนาดแผ่นซีดีรอม หรือจะให้ใกล้ตัวกันเข้ามาอีกนิด เราอาจจะเคยชินกับการมีแผ่นซีดีหรือดีวีดีแบบเขียนได้ไว้ในบ้านเผื่อเวลาที่ ต้องการส่งข้อมูลขนาดใหญ่ขึ้นมา แต่ Sainul Abideen นักศึกษาจาก Muslim Educational Society Engineering College ได้นำเสนอเทคโนโลยีที่เชื่อได้ว่าง่ายกว่าเทคโนโลยีทุกวันนี้มาก ด้วยการพิมพ์แถบรหัสสีลงบนแผ่นกระดาษธรรมดา ทำให้พื้นที่กระดาษขนาดเท่าแผ่นดีวีดีสามารถเก็บข้อมูลได้ 90 ถึง 450 กิกะไบต์กันทีเดียว Sainul เรียกเทคโนโลยีของเขาว่า Rainbow Technology เนื่องจากมันใช้สีที่หลากหลายในการแทนค่าข้อมูลแทนที่จะเป็นศูนย์กับหนึ่งเช ่นเทคโนโลยีปรกติ โดยเทคโนโลยีนี้จะมีความได้เปรียบเทคโนโลยีในปัจจุบันหลายๆ ด้านไม่ว่าจะเป็นค่าใช้จ่ายในการสร้างแผ่นที่ถูกกว่าด้วยราคาเพียงหนึ่งในสิ บ ตลอดจนมีความเป็นมิตรต่อสิ่งแวดล้อมที่ีดีกว่า ถ้าสำเร็จจริง เราคงได้เห็นแล็ปท็อปพร้อมเครื่องพิมพ์/แสกนเนอร์ ในช่องดีวีดี



    ที่มา - http://www.arabnews.com/?page=4&section=0&article=88962&d=18&m=11&y=2006

    ปล.แบบนี้ถ้าเก็บข้อมูลที่จะพิมพ์ลงบนกระดาษเป็นภาพ digital แบบนี้ cd แผ่นนึงอาจจะบันทึกข้อมูลได้หลายร้อยหลายพัน เทอราไบท์ เลยนะเนี่ย น่าคิดๆ

    Close For Maintenance

    Chalawanweb & Changsomcom
    All Service Online