เรื่องมีอยู่ว่าดันอยากดึงข้อมูลจาก Tumblr มาลงบล็อกเสียหน่อย ซึ่ง API ที่ Tumblr มีให้นั้นสะดวกมาก มาเป็น REST แถมเลือกผลลัพธ์ออกมาได้ตั้ง 3 แบบ ทั้ง RSS feed, XML feed และ JSON ไหนเลยทำทั้งทีก็ขอเท่หน่อยเอาเป็น JSON ละกัน
เผอิญว่า PHP ของเครื่องที่ใช้อยู่เก่าไปนิด ไม่ได้ลงโมดูล json มาให้
ดูเหมือนไม่มีอะไรลำบาก แต่เผอิญว่าเครื่องที่ใช้อยู่เป็นเครื่องของชาวบ้าน และมันดันเป็น Gentoo โอ้
รับงานทำเว็บด้วย Drupal มา (คนจ้างก็อยู่แถวนี้ล่ะ) เนื่องจากเป็นเว็บจับกลุ่มตลาดทั่วไป ผมและนายจ้างเลยเห็นตรงกันว่าควรมี WSYIWYG editor (เว็บที่คนเข้าเขียน Markdown แบบ Blognone คงหาได้ยาก)
การเลือก editor ทำได้ไม่ยาก เพราะ TinyMCE ดูจะเป็น de facto ไปเรียบร้อยแล้ว (คงเป็นเพราะ FCKEditor มันอืดมากถึงมากที่สุด) แถมตัวโมดูล TinyMCE ของ Drupal เองก็พัฒนามากกว่าที่ผมเคยใช้เมื่อชาติปางก่อนมาก
อย่างไรก็ตาม กว่าจะเซ็ตระบบ WSYIWYG เล่นเอาเหนื่อย ส่วนหนึ่งเป็นเพราะความซับซ้อนของระบบ โมดูลลิงก์กันวุ่นวาย อีกส่วนหนึ่งเป็นเพราะผมแทบไม่เคยใช้ WSYIWYG ทำให้ต้องเริ่มสะสมประสบการณ์ด้านนี้ใหม่หมด
เพื่อไม่ให้เหนื่อยฟรี บันทึกไว้เป็นอนุสรณ์
I just updated my first production site to Drupal 6. (Actually, sugree did it) Since I use custom theme, I need to update it to 6.x format.
Drupal.org provides good documentation. However, it’s too long and aims for fully customized themes. My theme is based on Arc Materia and very simple. Here is my simplified version on theme updating.
That’s all.
Finally I can make it, Ubuntu on MacBook Air with Wi-Fi enable. Since Ubuntu can not detect Wi-Fi out of the box and MacBook Air has no ethernet port. The process is quite tricky.
Follow these steps if you want to install Ubuntu on MacBook Air.
I used to be a GIMPShop user for years. GIMPShop, as the name already suggest, is the tweaked version of GIMP to behave like Photoshop. It’s just the temporarily hacked one, doesn’t intend to be separate software project. But it’s good enough for me who just want to crop and add text label to my screenshot.
The problem came up when I bought a new MacBook Air with pre-installed Leopard. GIMPShop didn’t show up as in Tiger. After Googling for a while, I found that GIMPShop is not compatible with Leopard and the author said he won’t update it anymore.
Fortunately, someone at Wilber loves Apple provides the GIMP Mac package. Furthermore, it’s new GIMP 2.4 branch with loads of new features. However, since it’s not the official and fully-tested version, some bugs remain and installation process is a bit tricky.
Follow these steps if you want to use GIMP on Leopard.
After using GIMP 2.4 for a while, it’s very welcome improvement. New interface is cleaner and some more features are added.
Update Since GIMP 2.4 brought us new way of select-and-move and Mac version seems not recognise the Alt key (need to use in combination with Ctrl to move selection). The workaround is to ‘Select Float’ from menu instead.