Apr 12

เอามั่ง

wason@wason-thinkpad-r61:~$ history|awk '{a[$2]++} END{for(i in a){printf “%5d\t%s\n”,a[i],i}}’|sort -rn|head 89 ssh 75 sudo 53 cd 45 ls 40 make 30 ifconfig 29 ping 21 iwconfig 10 svn 10 man wason@wason-thinkpad-r61:~$

เห็นมาจาก Kamthorn

written by lewcpe \\ tags: ,

Mar 26

Yesterday, my client request new some features on Trac. Those features are already available in the recent version and through some plugins. After a night of research, I decide to migrate from Trac 0.9 which available in the reposity to Trac 0.11b2 which is the most recent version available.

Upgrading is quite complicated but I think it’s worth. I struct with a few problems while upgrading so here is a few notes about what you should know before upgrade.

  • If you want to be sure that plugins will be work, you have to install Genshi 0.5 which is available from svn. Genshi 0.4.4 is block many plugins to be working.
    • EasyInstall via pypi incorrectly download OSX version instead of Linux version.
    • EasyInstall from python egg on the web is working fine but incompatible with many modules.
  • WebAdmin is just integrated as a core Trac module. But you have to grant TRAC_ADMIN permission to yourself before you able to see the menu.
  • In some situation, you may be have to resync to repository before get Trac work.
  • Upgrading from 0.9 to 0.11 work fine. No need for 0.10 at all.
  • Restart Apache after you get all things done.

written by lewcpe \\ tags: ,

Apr 26

เหตุผลอย่างหนึ่งที่หันมาใช้ Ubuntu เพราะ Beryl แม้มันจะสวยดี แต่สิ่งที่ทำให้ตัดสินใจจริงๆ คือ Plug-In ที่ชื่อว่า Negative ที่สามารถสั่งกลับสีเป็นรายหน้าต่างได้ ตรงนี้ใครได้ใช้จะรู้ว่ามีประโยชน์มากๆ เวลาที่ใช้อ่าน eBook ยาวๆ

ว่าแล้วก็มาใช้ลินุกซ์กันเถิด….

written by lewcpe \\ tags: , ,

Apr 24

หลังจากผจญชะตากรรมอันหนักหน่วงกับ ชิป Intel HDA บน Lenovo Y400 มายาวนาน ก็ดูเหมืิอนว่าโลกจะสงบสุขลงแล้วในที่สุด

บั๊กหมายเลข 105582 ของทาง Ubuntu อธิบายสาเหตุไว้ค่อนข้างชัด เรื่องของเรื่องคือใน kernel 2.6.20-13 ที่มากับ Feisty Beta นั้น ทำงานได้ถูกต้องทุกอย่าง แต่โมดูล alsa กลับเป็นรุ่น 1.0.13 ซึ่งไม่รองรับ Intel HDA

ทางทีมงานเลยเปลี่ยนมาใช้ alsa รุ่น 1.0.14rc1 (ไม่เข้าใจว่าทำไม เพราะ rc3 ออกมานานแล้ว..) พร้อมกับ update kernel module อีกสองตัวเพื่อแก้ปัญหาเรื่องของ jack sense ในชิปรุ่น AD1986A ซึ่งก็รุ่นเดียวกับของผม แต่บนเครื่องผมไม่มี jack sense ปัญหาคือ patch นี้ทำการ์ดจำนวนมากเงียบไปเลย -_-”

ตอนนี้บั๊กนี้เลยอยู่ในสถานะ Fix Committed (จะแก้แน่ๆ?) ก็คงต้องรออัพเดตกันต่อไป

แต่ถ้ารอไม่ไหว ก้สามารถไปโหลด kernel module ที่มีคนเอา patch ใหม่ออกมาลงได้ ตามความเห็นนี้

เพิ่มเติมอีกนิดว่าลูกเมียน้อยอย่าง Intel HDA ต้องไปแก้ไฟล์ /etc/modprobe.d/alsa-base กันอีกหน่อย โดยเพิ่มบรรทัด options snd-hda-intel model=XXX เข้าไปด้วยโดยใน Ubuntu Forums เค้าบอกให้ลองใช้ model=laptop-eapd แต่หลักจากบูตก็ต้องผจญกับบั๊ก 88546 ต่ออีกรอบ ตอนนี้เลยกลับไปใช้ model=3stack ซึ่งจะทำให้ลำโพงไม่ดังอีกเลย ดังแต่หูฟังซึ่งก็ตรงกับการใช้งานของผม

จบการรายงานข่าว

written by lewcpe \\ tags: , ,