Tuesday, September 23, 2008
Micro FourThirds from Olympus
Olympus has announced the development of its first Micro Four Thirds digital camera that will be compatible with the Four Thirds standard, and which will 'bring dramatic reductions in size and weight to the E-system'. A mock-up of the new camera will be shown at Photokina in Cologne, Germany.
Sunday, August 10, 2008
Sunday, May 04, 2008
Photo: Veitnam 2008
Veitnam is the easternmost country on the Indochina Peninsula in Southeast Asia. It is bordered by China to the north, Laos to the northwest, Cambodia to the southwest, and the South China Sea to the east. With a population of over 85 million, Vietnam is the 13th most populous country in the world.
Vietnam was under Chinese control for a thousand years before becoming a nation-state in the 10th century. Successive dynasties flourished until it was colonized by the French in the mid-19th century. Efforts to resist the French eventually led to their expulsion from the country in the mid-20th century, leaving a nation divided politically into two countries. Bitter fighting between the two sides continued during the Vietnam War, ending with a communist victory in 1975.
Emerging from a long and bitter war, the war-ravaged nation was politically isolated. The government's centrally-planned economic decisions hindered post-war reconstruction and its treatment of the losing side engendered more resentment than reconciliation. In 1986, it instituted economic and political reforms and began a path towards international reintegration. By 2000, it had established diplomatic relations with most nations. Its economic growth had been among the highest in the world in the past decade. These efforts culminated in Vietnam joining the World Trade Organization in 2007 and its successful bid to become a non-permanent member of the United Nations Security Council in 2008.
Saturday, December 08, 2007
Photo: Bangpa-in Palace
Bang Pa-In Royal Palace (Thai: พระราชวังบางปะอิน), also known as the Summer Palace, is a palace complex formerly used by the Thai kings as a summer dwelling. The palace is located on the Chao Phraya River bank in Bang Pa-In district, Ayutthaya Province
King Prasat Thong originally constructed the complex in 1632, and though it lay empty and overgrown throughout the late 18th and early 19th century, King Mongkut began to restore the site in the mid-1800s. Most of the present buildings were constructed between 1872 and 1889 by King Chulalongkorn.
The facilities include vast gardens and landscaping, Wehart Chamrunt (Heavenly Light), a Chinese-style royal palace and throne room; the Warophat Phiman (Excellent and Shining Heavenly Abode), a royal residence; Ho Withun Thasana (Sages' Lookout), a brightly-painted lookout tower; and the Aisawan Thiphya-Art (Divine Seat of Personal Freedom), a pavilion constructed in the middle of a pond.
The palace remains largely open to visitors, as King Bhumibol Adulyadej and his family use it only rarely for banquets and special occasions.
Saturday, October 27, 2007
YPOPs for Ubuntu!
What is YPOPs! ?
YPOPs! is an (OpenSource) application that provides free POP3 and SMTP access to Yahoo! Mail. It works with all know email clients like Outlook, Thunderbird, Evolution, Eudora etc.
YPOPs! 0.9.5.1 for Ubuntu released.
changes:
* Based on YPOPs! 0.9.5.1 as on 04.10.2007
* GUI configuration wizard (debconf)
* Auto-update notification of new releases
Please leave your comments/suggestion here.
How to install YPOPs! for Ubuntu:
You would need my PGP public key: E22CF38B. Save this to a file (say tskariah.gpg). And then use the following command to add the key:
$ sudo apt-key add tskariah.gpg
Add the following line to the bottom of your /etc/apt/sources.list file:
deb http://tskariah.000webhost.com/ubuntu ubuntu main
followed by:
$ sudo apt-get update
$ sudo apt-get install ypops
How to (Re)configure YPOPs! for Ubuntu:
$ sudo dpkg-reconfigure -fgnome ypops
Other front-ends could be "dialog" (default), or "web". The old /etc/ypops.ini would be saved as /etc/ypops.ini.bak
How to remove YPOPs! for Ubuntu:
$ sudo apt-get remove ypops
How to start YPOPs! for Ubuntu manually:
$ sudo /etc/init.d/ypops start
How to stop YPOPs! for Ubuntu manually:
$ sudo /etc/init.d/ypops stop
How to automatically start YPOPs! for Ubuntu at bootup:
Use the configuration wizard.
Directory structure:
/etc/init.d/ypops - init script
/etc/ypops.ini - config file
/usr/bin/ypops - executable file
/var/log/ypops/ - log directory
/var/run/ypops.pid - pid file
WARNING: The log directory is readable by all. If the log-level is set to Advanced, YPOPs! would dump all the HTML pages there, which might contian private information.
Thursday, October 25, 2007
Solved Ubuntu DNS always resolve to 1.0.0.0
Some models of router are absolutely fine, and some models resolve to 1.0.0.0 just about all the time.
Solved by...
Enable OpenDNS: Unix/Linux Ubuntu
1. Open a terminal window and type the following.
$ sudo network-admin
Note: Root access is required for this step.
2. Change to the DNS tab and enter the following two addresses in the top of the first field labeled DNS Servers.
208.67.222.222 208.67.220.220
To avoid having your settings get revoked after reboots, or after periods of inactivity, do this:
$ sudo cp /etc/resolv.conf /etc/resolv.conf.auto
$ sudo gedit /etc/dhcp3/dhclient.conf
# append the following line to the document
prepend domain-name-servers 208.67.222.222,208.67.220.220;
# save and exit
$ sudo ifdown eth0 && sudo ifup eth0
You may be required to change eth0 to your own network device's name if it uses a non-standard name.
Thursday, October 18, 2007
Hide Removable Drive Icons from Your Ubuntu Desktop
Hide Removable Drive Icons from Your Ubuntu Desktop
I prefer a clean desktop with no icons cluttering it up, but by default Ubuntu adds icons to the desktop for every single removable drive that you attach to your system.
Having recently transitioned to using Ubuntu full-time at home (instead of just part-time), this was one of the first things I wanted to disable. Sadly there's no option in the default configuration screens, so we'll have to use the "registry editor" for Ubuntu, called gconf-editor.
Just type in gconf-editor into the Alt+F2 run dialog to open the app.
Now browse down to the following key:
apps \ nautilus \ desktop
You should see a key in the right-hand pane called volumes_visible. Remove the checkbox from it, and the icons will instantly disappear from the desktop. Remember that you can always access the drives from the "Computer" icon, or easily in the file browser.
I'm much happier now with my beautiful desktop.
Default background color of Ubuntu splash screen
Wednesday, October 17, 2007
Setup KDE Application in GNOME Environment
Display configuration
Because a KDE application will appear very large/small on GNOME desktops. You can use either the kcontrol or the qt3-qtconfig package to configure the appearance and other KDE/QT applications. Of these two, the QT Configurator (qt3-qtconfig) has far fewer dependencies than kcontrol and may therefore be more convenient for people who mostly use non-KDE software. See also QtGnome for how to make Qt applications look more like Gnome.
A quick fix, without installing any configuration packages at all, is to make a file qtrc in your $HOME/.qt directory, and put these two lines in it:
-
[General]
font=Bitstream Vera Sans Mono,9,-1,5,50,0,0,0,0,0
-
You can start QT Configurator with the "qtconfig" command. On the "Fonts" tab, choosing Font Family Sans Serif and Point Size 10 will give something that resembles Ubuntu's GNOME desktop.
If you install the kcontrol package, you may run it by entering kcontrol into the Applications/Run Application... prompt. Expand the Appearance & Themes menu and select Fonts. Press Adjust All Fonts and select Size. Lower this value to your preference (size 10 or 11 is usually satisfactory). Press OK and Apply and exit the KDE Control Center.
Fonts
ที่มา http://www.thaitux.info/book/export/html/275
รวมหมวดฟอนต์
เอาไฟล์มาสรุปให้ดาวน์โหลดได้ง่าย ๆ
* ฟอนต์ที่ทดลองทำเอง เฉพาะไฟล์ ttf ttfonts.tar.gz
เมื่อแตกไฟล์แล้ว เอาไฟล์ ttf ทั้งหมดไปใส่ไว้ภายใต้ ~/.fonts หรือ /usr/share/fonts/truetype และ
ทำลิงก์ไฟล์ 65-z-ttfonts.conf ไปยัง /etc/fonts/conf.d
$ sudo ln -sf 65-z-ttfonts.conf /etc/fonts/conf.d
$ fc-cache -r
* ฟอนต์ทดแทนฟอนต์วินโดวส์ เฉพาะไฟล์ ttf thaifont-abc.tar.gz
เมื่อแตกไฟล์แล้ว เอาไฟล์ ttf ทั้งหมดไปใส่ไว้ภายใต้ ~/.fonts หรือ /usr/share/fonts/truetype และ
ทำลิงก์ไฟล์ 65-2-thaifont-abc.conf ไปยัง /etc/fonts/conf.d
$ sudo ln -sf 65-2-thaifont-abc.conf /etc/fonts/conf.d
$ fc-cache -r
บันทึกเกร็ดฟอนต์ของเดเบียน
* ไฟล์คอนฟิกของฟอนต์ในเดเบียนอยู่ที่ /etc/fonts/conf.d ซึ่งเดเบียนบรรจุไฟล์จริงไว้ที่ /etc/fonts/conf.avail แล้วใช้โยงลิงก์มาที่ conf.d อีกทีนึง
* ถ้ามีชื่อฟอนต์ซ้ำกันในไฟล์คอนฟิก ชื่อไฟล์ที่มาทีหลังจะมีความสำคัญกว่าชื่อไฟล์ที่มาถึงก่อน เช่น 65-1-ttfonts.conf จะสำคัญน้อยกว่า 65-2-ttfonts.conf
ดังนั้นถ้าจะ override ฟอนต์ของระบบ จะต้องตั้งให้ชื่อเรียงอยู่ทางท้าย
ลองทำฟอนต์ทดแทน ๑ - Angsima
ช่วงนี้กำลังทดลองเอา OpenOffice บนลินุกซ์ มาใช้แทน Microsoft Office บนวินโดวส์ ได้ผลดีพอควร แต่มาติดปัญหาสำคัญคือฟอนต์ในเอกสารเก่าจำนวนมาก เป็นฟอนต์บนวินโดวส์ คือ Angsana New และ Browallia New
ถ้าจะแก้ ก็ต้องแก้กันเป็นจำนวนมาก จึงคิดว่าถ้าเราทำฟอนต์ใหม่ทดแทน Angsana ให้สามารถเปิดเอกสารเก่าที่เป็นฟอนต์ Angsana โดยไม่เสียรูปแบบ น่าจะเป็นทางออกที่ดีกว่า
จึงทดลองนำฟอนต์นรบุตรมาแปลงขนาดความกว้างตัวอักษรให้เท่ากับ Angsana ตั้งชื่อว่า Angsima (อังสิมา) แปลว่าอะไรก็ไม่รู้ แต่ตั้งชื่อให้คล้าย เพื่อให้เวลาเราเลือกฟอนต์ รายชื่อจะได้อยู่ใกล้ ๆ กัน
ทดลองรุ่นแรก แบบหยาบ ๆ ได้ผลคือ
ภาษาไทยได้แล้ว แต่ภาษาอังกฤษยังไม่ได้
( ทำส่วนโค้งเป็นแบบ quadratic เพราะเริ่มถนัดแล้ว และสามารถแปลงเป็น cubic ได้โดยไม่สูญเสียตำแหน่ง )
ดาวน์โหลดได้ดังนี้
* ไฟล์ทรูไทป์ Angsima.ttf
* ไฟล์ฟอนต์ฟอร์ก Angsima.sfd
* ไฟล์ทรูไทป์ Angsima-Bold.ttf
* ไฟล์ฟอนต์ฟอร์ก Angsima-Bold.sfd
* รวมทั้งหมดในไฟล์เดียว Angsima.tar.gz
ถ้าต้องการทำเป็นฟอนต์ทดแทนฟอนต์อังศณา ในไฟล์คอนฟิกของฟอนต์ ต้องเติมท่อนนี้ลงไปด้วย
$ sudo vi /etc/fonts/65-thai-XXX.conf
...
...
ท่อนนี้เอาตัวอย่างมาจาก http://lists.freedesktop.org/archives/fontconfig/2006-June/002326.html
ถึงตอนนี้เรียกว่ายังไม่เสร็จ แต่ก็พอใช้งานได้ แต่จะพยายามทำต่อให้ใช้งานได้จริง ๆ ครับ
update
* 50-06-06 ทำ Angsima แบบปกติเสร็จแล้ว แก้(ลบ) Kerning ของต้นฉบับอักษรภาษาอังกฤษ ปรับปรุงเลขไทยให้เหมือนต้นแบบ ปรับระยะห่างระหว่างบรรทัดเรียบร้อย แต่ยังไม่ได้ทดสอบแบบละเอียด
* 50-06-07 ทำ Angsima-Bold เสร็จแบบหยาบ ๆ
* 50-06-08 Angsima-Normal ปรับละเอียดเสร็จแล้ว
* 50-06-09 สร้างเส้นใหม่-ปรับละเอียด Angsima-Bold เสร็จ
* 50-06-09 ทำ Oblique และ BoldOblique ด้วยเมนู Element -> Transformation -> Transform -> skew แบบอัตโนมัติทั้งตาราง แต่ยังไม่ได้ทดสอบ
ลองทำฟอนต์ทดแทน ๒ - Bromlila
ฟอนต์ตัวที่สองตั้งชื่อว่า บรมลีลา - Bromlila
จุดประสงค์จะใช้แทน Browallia (โดยไม่เสียรูปแบบ)
ใช้ฐานจากฟอนต์ Garuda ยกเว้นตัวหนาที่เป็นภาษาอังกฤษ ตัว Garuda-Bold ยังไม่หนาเท่า Browallia ผมจึงเอามาจากตัวหนา sans ของ Freefont แทน
มีข้อสังเกตุคือ ตัว Browallia กับ Garuda เมื่อปรับสัดส่วนแล้ว มีลายเส้นที่แทบจะนาบกันสนิท
เที่ยวนี้ขี้เกียจทำ Screenshot เพราะตัวเหมือนกันเป๊ะ ๆ ดาวน์โหลดเลยดีกว่า
ดาวน์โหลดได้ดังนี้
* รวมทั้งหมดในไฟล์เดียว Bromlila.tar.gz
ลองทำฟอนต์ทดแทน ๓ - Corada
ฟอนต์ตัวที่สามตั้งชื่อว่า ครดา - Corada
จุดประสงค์จะใช้แทน Cordia (โดยไม่เสียรูปแบบ)
ชื่อฟอนต์ไม่มีคำแปล เพราะพยายามให้อักขระสามตัวแรกเหมือนกัน เพื่อให้เลือกฟอนต์ได้ง่าย จำง่าย
ใช้ฐานจากฟอนต์ Loma แต่ยากหน่อยตรงที่ฐานของฟอนต์โลมาคือ FreeSerif ไม่มีขนาดความหนาแบบ Light เลยต้องเสียเวลาสร้างตัวภาษาอังกฤษแบบ Light ด้วย และใช้ขนาดปกติ (Book) ของ FreeSerif เป็น Bold ของ Corada แทน
ดังนั้นสำหรับเที่ยวนี้ ในส่วนของอักขระภาษาอังกฤษจึงไม่ค่อยเรียบร้อยเท่าที่ควร เพราะสร้างขึ้นเอง
พยายามให้หน้าตาฟอนต์ออกมาอยู่ระหว่างฟอนต์คอร์เดีย และสุดยอดฟอนต์แห่งยุค คือ ดีบีฟองน้ำ
ดาวน์โหลดได้ดังนี้
* รวมทั้งหมดในไฟล์เดียว Corada.tar.gz
ลองทำฟอนต์ทดแทน - สรุป
สรุปงานทำฟอนต์ทดแทนฟอนต์ของวินโดวส์ทั้งสามตัว คือ
* Angsana แทนด้วย Angsima
* Browallia แทนด้วย Bromlila
* Cordia แทนด้วย Corada
สร้างด้วยการปรับความกว้างของฟอนต์แต่ละอักขระ ให้เท่ากับฟอนต์วินโดวส์ และลบ kerning ของฟอนต์ต้นแบบออกให้หมด ส่วนความสูงของฟอนต์ ไม่ได้ปรับความสูงของสระให้เท่าของวินโดวส์ แต่ใช้วิธีสร้างอักขระพิเศษเพิ่มมาตัวนึง ให้จุดสูงสุดของอักขระเท่ากับไม้โทสูงของวินโดวส์ (ซึ่งสูงที่สุด) และให้จุดต่ำสุดของอักขระนี้ ให้เท่ากับสระอูที่ต่ำที่สุดของวินโดวส์
รวมทั้งสร้างไฟล์คอนฟิกให้ฟอนต์ ให้แทนชื่อฟอนต์จากวินโดวส์ตามรายละเอียดข้างบน ไฟล์นี้ตั้งชื่อว่า 65-2-thaifont-abc.conf ซึ่งจะต้องนำไปใส่ไว้ที่ไดเรกทอรี่ /etc/fonts/conf.d
เมื่อทำครบทุกอย่างแล้ว เราก็จะสามารถเปิดไฟล์ตระกูลออฟฟิศจากวินโดวส์ โดยไม่เสียรูปแบบ
สามารถดาวน์โหลดไฟล์รวมได้ดังนี้
* เฉพาะไฟล์ ttf thaifont-abc.tar.gz
* รวมซอร์ส sfd thaifont-abc-sfd.tar.gz
ลองทำฟอนต์ใช้เอง
ทดลองทำฟอนต์ใช้เองโดยใช้ไฟล์ฟอนต์ Norasi.sfd ของ NECTEC เป็นต้นแบบ
จุดประสงค์เพื่อทำฟอนต์แบบ Serif ที่ใช้รหัสอักขระยูนิโค๊ด จะนำมาแทนฟอนต์ Angsana ของวินโดวส์
ตั้งชื่อว่า นรบุตร (Noraputta)
ตั้งใจให้ออกมาเป็นลูกผสมของ Norasi กับ Angsana
ยังไม่ค่อยสวยเหมือนที่มืออาชีพเขาทำกัน ฮิ้นต้งฮิ้นติ้งไม่รู้เรื่องเลย เอาแค่พอใช้งานได้ตามสไตล์
ฝากลองทดสอบและใช้ฟรีโดยไม่มีเงื่อนไขครับ
* ไฟล์ฟอนต์ Noraputta.ttf
* ไฟล์ FontForge Noraputta.sfd
* ไฟล์ฟอนต์ Noraputta-Bold.ttf
* ไฟล์ FontForge Noraputta-Bold.sfd
update
* 50-04-13 ปรับมาใช้เทมเพลตของ thaifonts รุ่น 0.4.6 ทำให้ไม่มีปัญหาสระอำและวรรณยุกต์ กับ OO.o
* 50-04-19 ทำเรื่องเลขไทยใหม่ เก็บกวาดเรื่อง Hinting แบบหยาบ ๆ
* 50-04-20 ทำ Noraputta-Bold เพิ่ม
* 50-04-28 แก้ปัญหาเส้นบางเกินไป ทำให้เวลาถูก Hint แล้วเส้นขาด ด้วยการเพิ่มความหนาของเส้น
ลองทำฟอนต์ใช้เอง (ต่อ) - Gentini
ลองทำ Serif อีกฟอนต์นึง เพื่อให้สมดุลย์กับ Sans serif โดยเอาต้นแบบมาจากฟอนต์ Gentium ซึ่งเป็น Serif ที่ดูสบายตา กึ่งทางการกึ่งลำลอง จึงตั้งชื่อให้คล้าย ๆ กัน ว่า เจนทินี - Gentini
ทำไปก็งงไป ทำให้ทราบว่างานออกแบบฟอนต์นี่ยากจริง ๆ ผมเองยังมือไม่ถึง จึงอ่านบุคลิกของฟอนต์ Gentium ไม่ออก เลยทำแค่ฟอนต์ขนาด book แค่ตัวเดียว
ดาวน์โหลด
ไฟล์รวม Gentini.tar.gz
ลองทำฟอนต์ใช้เอง (ต่อ) - Pantaka
ไม่ใช่งานใหม่ แต่เป็นการเอา โลมาบุตร มาชำระล้าง ปรับปรุงเล็กน้อย แต่พอทำไป ๆ มันชักเพี้ยนมาทาง อัมพุช
เลยเปลี่ยนชื่อเสียเลยดีกว่า เพื่อไม่ให้สับสน และไม่ให้ทับซ้อนกับโลมา
ตั้งชื่อว่า ปัณถกะ - Pantaka แปลว่าชำนาญทาง
ทำแล้วรู้สึกว่าอ่านง่ายกว่า วีรชาติ เลยบรรจุเข้าประจำการเป็นฟอนต์หน้าจอแทนวีรชาติ
ดาวน์โหลดไฟล์รวมดังนี้
* ไฟล์รวม Pantaka.tar.gz
update
* 50-07-02 ได้ปรับปรุงวีรชาติ จนฟอนต์วีรชาติอ่านง่ายกว่าแล้ว จึงเอาฟอนต์วีรชาติกลับเข้ามาประจำการเป็นฟอนต์แบบ San-Serif แทนปัณถกะ
ลองทำฟอนต์ใช้เอง (ต่อ) - Umpush
หลังจากทำฟอนต์ Corada เสร็จแล้ว มีความรู้สึกว่าฟอนต์ Corada ตัวหนา น่าจะมาทำฟอนต์บนจอได้ เลยเอา Corada เดิม มาแปลงเป็น Light เอา Bold ทำเป็น Book แล้วสร้าง Bold ใหม่ ตั้งชื่อว่า อัมพุช - Umpush
สามารถทำเป็นฟอนต์สำหรับหน้าจอก็ได้ หรือจะออกเป็นงานพิมพ์ก็ได้
หากต้องการให้ดูทางหน้าจอภาพได้ง่ายขึ้น เพียงแค่ลดขนาดสระบน-ล่าง และวรรณยุกต์ ลงไปเป็นสัก 90% ก็จะดูทางจอภาพได้ง่ายขี้นแล้วครับ
ดาวน์โหลดได้ดังนี้
* ไฟล์รวม Umpush.tar.gz
อย่าลืมว่า ฟอนต์ทุกตัวที่สร้างไว้ ถูกออกแบบไว้ด้วยการ Hint ของระบบ ดังนั้น จะต้องคอนฟิกฟอนต์ทุกครั้ง ด้วย
$ sudo vi /etc/fonts/conf.d/65-1-ttfonts.conf
...
$ fc-cache -r
ถ้าไม่ประสบเหตุอื่นอีก ฟอนต์นี้คงเป็นฟอนต์สุดท้ายแล้วครับ
ลองทำฟอนต์ใช้เอง - Verachart
ทำฟอนต์หน้าจอเพิ่ม ตั้งชื่อว่า วีรชาติ เพราะเอามาจากฟอนต์ Vera ของ BitStream
ตัวบางไปหน่อย line spacing แคบไปนิด Hinting ยังแย่อยู่
ช่วยทดสอบและใช้ได้ฟรีเหมือนเดิมครับ
* ไฟล์ทรูไพป์ Verachart.ttf
* ไฟล์ FontForge Verachart.sfd
* ไฟล์ทรูไทป์ Verachart-Bold.ttf
* ไฟล์ FontForge Verachart-Bold.sfd
* ไฟล์ทรูไทป์ Verachart-Oblique.ttf
* ไฟล์ FontForge Verachart-Oblique.sfd
Update 50-07-12
* ไฟล์รวมล่าสุด Verachart.tar.gz
การทดลองที่ไม่สำเร็จ
ทดลองทำ Truetype Instruction ด้วยเมนู AutoInstruction
แก้ไขการที่โปรแกรม Fontforge ทำ Truetype Hint ไม่สมบูรณ์ ด้วยการปรับละเอียดที่ส่วนโค้งของตัวอักษรแทน
ไม่สำเร็จเนื่องจาก คุณภาพพอดูได้แค่ 11 ปอยนต์ ที่เหลือนอกจากนี้ ดูไม่ได้เลย
* ไฟล์ฟอนต์ Verachartti.ttf
* ไฟล์ FontForge Verachartti.sfd
ไฟล์ชุดนี้ยังไม่สมบูรณ์ แต่ถ้าหากต้องการทดลองใช้งานดู ไม่จำเป็นต้องแก้ไขไฟล์ 65-ttfonts.conf เนื่องจากมีการ Hint อยู่ในฟอนต์เรียบร้อยแล้ว
update
* 50-04-22 ปรับลดความสูงของฟอนต์ให้สมดุลย์กับภาษาอังกฤษ ใช้วิธี Hint แบบ AutoInstruction
* 50-04-24 กลับมาใช้ Hint แบบเดิม เปลี่ยนมาให้ระบบ Hint ได้ผลดีกว่า โดยเฉพาะฟอนต์ชุดนี้ ให้ปรับไฟล์ 65-1-ttfont.conf เป็นดังนี้
...
...
จะให้ผลที่ดูนุ่มสบายตากว่า แม้ในขนาดฟอนต์ที่เล็กมาก ๆ
หรือถ้าหากเห็นว่าเบลอเกินไป ก็ตั้งค่า hintstyle เป็น 4 ก็จะดูคมแข็งขึ้นครับ
(ดูรายละเอียดการปรับตั้งที่ ลองทำฟอนต์ใช้เอง - แถม)
* 50-04-24 สร้างฟอนต์ชุด Verachart-Bold เพิ่ม
* 50-04-24 ปรับละเอียด
* 50-06-06 ปรับปรุง Verachart-Bold เสร็จ ทำ Verachart-Oblique เสร็จ
* 50-07-02 ปรับละเอียด Verachart 90% และ Verachart-Bold 50%
* 50-07-04 ปรับละเอียด Verachart และ Verachart-Bold ครั้งที่สอง ทำเรื่อง Hinting โดยปรับให้ความหนาของตัวอักษร ในแนวนอน มีความสม่ำเสมอ จะทำให้การ Hint ดูดีขึ้นมาก
* 50-07-12 ปรับปรุงตัวหนา ช ฃ ช ซ โ พ ฟ เล็กน้อย
ลองทำฟอนต์ใช้เอง - แถม
update
* การตั้งค่าตามเนื้อความในโพสต์นี้ จะมีผลทำให้ฟอนต์ที่ถูกระบุในการปรับตั้งครั้งนี้ ไม่อยู่ภายใต้การควบคุมของระบบ (กับ Gnome คือ System -> Preference -> Fonts) นั่นคือการแสดงผลของฟอนต์ชุดนี้จะไม่เปลี่ยนไปตามการตั้งค่า Smoothing และ Hinting ของระบบ
โพสต์นี้ได้ความรู้มาจากคุณสมเจตน์ ท่านช่วยทดสอบให้ ได้ความว่า
ฟอนต์ชุดนี้ หากจะนำไปใช้ให้ได้ผลดีมีความคมชัด ต้องกำหนด Hint ให้ฟอนต์ด้วย ดังนี้
สร้างไฟล์ชื่อ 65-1-ttfonts.conf เอาไปใส่ไว้ในไดเรกทอรี่ /etc/fonts/conf.avail แล้วสร้างลิงก์ไปยังไดเรกทอรี่ /etc/fonts/conf.d
$ sudo vi /etc/fonts/conf.avail/65-1-ttfonts.conf
$ sudo ln -sf /etc/fonts/conf.avail/65-1-ttfonts.conf /etc/fonts/conf.d
แล้วก็รีบูตเครื่องใหม่ หลังจากนั้นก็จะเห็นฟอนต์ชุดนี้มีความคมชัดเพิ่มขึ้นครับ
ลิงก์รอศึกษา
* http://www.truetype-typography.com/
* http://en.wikipedia.org/wiki/TrueType
* http://developer.apple.com/textfonts/TTRefMan/RM03/Chap3.html
* http://dejavu.sourceforge.net/wiki/index.php/Hinting_tutorial/Example:_Hinting_L
ลองทำฟอนต์ใช้เอง ๒
ลองทำอีกชุดนึงสำหรับ sans-serif โดยเอาฟอนต์โลมามาเป็นต้นแบบ
จุดประสงค์เพื่อจะนำมาทำเป็นฟอนต์สำหรับดูที่หน้าจอมอนิเตอร์ โดยต้องการให้อ่านง่าย จึงปรับให้หัวตัวอักษรกลมขึ้น แยกเส้นตัวอักษรให้เด็ดขาดขึ้น
ตั้งชื่อว่าโลมาบุตร (Lomaputta)
ช่วยทดสอบหรือเอาไปใช้ได้ฟรี (ฟอนต์โลมาต้นฉบับเป็น GPL)
* ไฟล์ฟอนต์ Lomaputta.ttf
* ไฟล์ FontForge Lomaputta.sfd
* ไฟล์ฟอนต์ Lomaputta-Bold.ttf
* ไฟล์ FontForge Lomaputta-Bold.sfd
* ไฟล์ฟอนต์ Lomaputta-Oblique.ttf
* ไฟล์ FontForge Lomaputta-Oblique.sfd
* ไฟล์ฟอนต์ Lomaputta-BoldOblique.ttf
* ไฟล์ FontForge Lomaputta-BoldOblique.sfd
เพิ่มความหนานิดนึง ดูคล้าย ๆ Tahoma เสียดายอันเก่า เลยตั้งชื่อใหม่เป็นโลมาบุตร2
* ไฟล์ฟอนต์ Lomaputta2.ttf
* ไฟล์ FontForge Lomaputta2.sfd
update
* 50-04-14 ปรับช่องไฟละเอียด, ปรับส่วนโค้งอักษรแบบละเอียด, ปรับมาใช้เทมเพลตของ thaifonts รุ่น 0.4.6 ทำให้สามารถใช้งาน OO.o ได้
* 50-04-16 ปรับแต่ง Hinting ด้วยมือ ดูดีขึ้นมาก
* 50-04-17 ปรับมาใช้เทคนิกการ Hint แบบเบลอภายในฟอนต์ด้วย AutoHint และคมภายนอกด้วย ManualHint
* 50-04-17 สร้าง Lomaputta-Bold เพิ่ม
* 50-04-17 เปลี่ยนกลับมาใช้ Hint ด้วยมือล้วน เนื่องจากแสดงผลในเดเบียนฟุ้ง(Blur)เกินไป (คงไม่เกี่ยวกับเดเบียน แต่อาจเป็นเพราะเครื่องเดเบียนของผมใช้จอภาพเป็น LCD ของเอเซอร์ ซึ่งการแสดงผลดูแล้วจะสู้ของแอลจีไม่ได้) แก้อาการหลอกตาด้วยการลดขนาดหัวตัวอักษรแทน
รู้ปัญหาอาการฟุ้งบนเดเบียนแล้ว คือ เดเบียนไม่ทำ AutoHint เป็นค่าปริยาย จึงต้องทำเองด้วยมือ
$ sudo ln -sf /etc/fonts/conf.avail/10-autohint.conf /etc/fonts/conf.d
แล้วเข้าระบบใหม่ ผลที่ได้คือ ฟอนต์บนเดเบียนดูคมกว่าบนอูบุนตูอีก
* 50-04-18 สร้าง Lomaputta-Oblique เพิ่ม
* 50-04-19 แก้ไขตาราง Contextual ซ่อมเรื่องวรรณยุกต์กับสระอุ-สระอู ตามต้นฉบับ
* 50-04-19 สร้าง Lomaputta-BoldOblique เพิ่ม
* 50-04-27 ล้างลายเส้นเก่า สร้างลายเส้นใหม่ เลียนแบบของคุณเทพ
ลองทำฟอนต์ใช้เอง ๓
คราวก่อนทำฟอนต์โลมาบุตร ดูแล้วยังรู้สึกว่าอ่านยาก (ไม่รู้ว่าเป็นที่ hinting หรือเปล่า)
คราวนี้ลองเอาอีกฟอนต์นึงคือฟอนต์ครุฑ (Garuda) มาปรับให้เหมาะกับการแสดงผลบนจอคอมพิวเตอร์
โดยการลดขนาดสระและวรรณยุกต์ และปรับความกว้างของบรรทัดให้แคบเข้า
เอาไว้เป็นตัวเผื่อเลือกสำหรับการแสดงผลของฟอนต์ sans-serif
ตั้งชื่อว่าฟอนต์ ครุฑทัศน์ (Garudatas)
ดาวน์โหลด
* ไฟล์ฟอนต์ Garudatas.ttf
* ไฟล์ sfd Garudatas.sfd
update
ทำเพิ่มเติมสำหรับ serif ด้วย คือฟอนต์นรสีห์ เป็น นรสีห์ทัศน์
ดาวน์โหลด
* ไฟล์ฟอนต์ Norasitas.ttf
* ไฟล์ sfd Norasitas.sfd
หมายเหตุ
ไม่เหมาะสำหรับงานเอกสารที่ต้องพิมพ์ออกมา สำหรับงานพิมพ์ใช้ฟอนต์ Garuda และ Norasi เดิมสวยอยู่แล้ว
เกร็ดเกี่ยวกับโปรแกรม FontForge
โปรแกรม FontForge เป็นโปรแกรมที่ใช้ออกแบบฟอนต์ของลินุกซ์ที่ได้รับความนิยม มีความสามารถสูง แต่มีข้อเสียคือ ทำ AutoHint ได้แย่มาก เพราะโปรแกรมจะกันเหนียวด้วยการกำหนดแถบการ Hint ไว้กว้างเกินไป
การกำหนดแถบการ Hint ไว้กว้าง ทำให้เวลาแสดงฟอนต์ทางจอภาพ อักษร ก ไก่ จะดูเตี้ยกว่าอักษร ข ไข่ ซึ่งไม่ถูก AutoHint ไว้กว้างแบบนั้น
ถ้าจะทำให้ได้ผลการ Hint ที่ดี แบบที่เรา ๆ ท่าน ๆ สามารถทำได้เอง โดยไม่ต้องใช้ฝีมือระดับเทพ ก็คือการ Hint เองด้วยมือ
ซึ่งทำได้โดยการกำหนดสองจุดคู่ที่จะทำการ Hint แล้วสั่ง Add HHint หรือ Add VHint ตามลักษณะของส่วนโค้งตัวอักษรนั้น ๆ
วิธีนี้ทำให้ได้ตัวอักษรที่ดูสูงเท่ากัน แต่ปัญหาคือโปรแกรม FontForge ไม่ทำปุ่มลัดสำหรับคำสั่ง Add HHint และ Add VHint ไว้ด้วย
งานที่จะต้องมานั่งเลือกจุดคู่แล้วไล่คลิกเมนูสั่งงาน นับว่าเปลืองเวลาเกินไป
แต่ยังโชคดีที่โปรแกรมถูกออกแบบให้สามารถกำหนดปุ่มลัดได้เอง เพียงแต่ต้องออกแรงหน่อยนึงด้วยการคอมไพล์แพกเกจเอง
เราจะกำหนดปุ่มลัดเอง ทำให้การทำงานเร็วขึ้นมาก
เริ่มด้วยการติดตั้งแพกเกจที่จำเป็นในการคอมไพล์ก่อน
$ sudo aptitude install libfreetype6-dev
(แพกเกจอื่น ๆ ไม่แน่ใจครับ อาจตรวจดูจากข้อผิดพลาดตอนสั่ง ./configure ก็ได้)
ไปเอาซอร์สมาก่อนคือไฟล์ fontforge_full-20070312.tar.bz2
เมื่อได้ไฟล์มาแล้วก็แตกไฟล์ออกก่อน
$ tar xfj fontforge_full-20070312.tar.bz2
คอมไพล์และติดตั้ง
$ cd fontforge-20070312
$ ./configure
$ make
$ sudo make install
ต่อไปเป็นการสร้างไฟล์สำหรับกำหนดปุ่มลัด
ทำตามคู่มือ ในการนำเอาไฟล์ FontForge-MenuShortCuts.pot ออกมา
$ cd fontforge-20070312/fontforge
$ make -f Makefile.in FontForge-MenuShortCuts.pot
เราจะได้ไฟล์ FontForge-MenuShortCuts.pot
เราจะแก้ไขในไฟล์นี้โดยกำหนดให้ Add HHint ใช้ปุ่มลัดเป็น Alt+Ctl+1
และ Add VHint ใช้ปุ่มลัดเป็น Alt+Ctl+2
$ vi FontForge-MenuShortCuts.pot
...
#: charview.c:8105
msgid "Add HHint|No Shortcut"
msgstr "Alt+Ctl+1"
#: charview.c:8106
msgid "Add VHint|No Shortcut"
msgstr "Alt+Ctl+2"
...
คอมไพล์ไฟล์ pot
$ msgfmt -o FontForge-MenuShortCuts.mo FontForge-MenuShortCuts.po
ย้ายไฟล์นี้ไปไว้ที่ไดเรกทอรี่ที่เก็บ locale ของเครื่อง
ถ้าตั้ง locale เป็น en_US.UTF8 คำสั่งจะเป็น
$ sudo mkdir -p /usr/local/share/locale/en_US/LC_MESSAGES
$ sudo mv FontForge-MenuShortCuts.mo /usr/local/share/locale/en_US/LC_MESSAGES
เสร็จเรียบร้อยแล้ว สั่งรันโปรแกรมด้วยคำสั่ง
$ /usr/local/bin/fontforge -dontopenxdevices [ชื่อไฟล์ฟอนต์]
ผลที่ได้จากการทำ Hint ด้วยมือ ดูดีขึ้นกว่าทำ AutoHint มากครับ
จากความรู้ที่ได้นี้ สามารถสรุปการ Hint ได้คือ
* ส่วนในของฟอนต์เลือกใช้ AutoHint เนื่องจากต้องการให้เกิดการเบลอภายในให้มากที่สุด
* ส่วนนอกของฟอนต์ คือ จุดสูงสุดและต่ำสุด ต้อง Hint เองด้วยมือ เพราะต้องการให้ส่วนสูงมีความคงที่
เพิ่มเติม
* อ่านมาจาก http://osdir.com/ml/fonts.fontforge.user/2006-08/msg00030.html
บอกว่า ปกติ FontForge ไม่ทำ Hint ของทรูไทป์โดยตรง แต่เป็นของ Type1
ถ้าจะพยายามทำ Hint ให้ทรูไทป์ วิธีทำคือให้เปลี่ยนส่วนโค้งเป็นแบบ Quadratic
Element -> Font Info ... -> เลือก Quadratic Splines
หลังจากนั้นจึงทำ AutoHint และ AutoInstruction แล้วจึงสั่งผลิตฟอนต์ทรูไทป์
เลือกช่วงฟอนต์ที่ต้องการ -> Hints -> AutoHint
Hints -> AutoInstr
Files -> Generates Fonts
ทดลองแล้วได้ผลดีพอควร
* 50-05-05 ลองทดสอบเรื่อง Truetype Hint ได้ความว่า
ถึงแม้ว่า Fontforge จะทำ Truetype Hint ได้แย่มากก็ตาม แต่เราก็อาจบังคับทำได้ โดยได้ผลดีพอควร โดยมีข้อแม้ว่า :-
1. จุดต่าง ๆ ที่กำกับส่วนโค้ง ต้องเลือกใช้จุดให้ตรงจริง ๆ ทั้งสามชนิดคือ จุดส่วนโค้ง จุดหัวมุม และจุดแทนเจนต์ ห้ามใช้จุดมั่วเด็ดขาด
2. ขนาดความหนาของส่วนตัวอักษร และจุดกำกับส่วนโค้งต่าง ๆ ควรอยู่ในตำแหน่งทางเรขาคณิตแบบง่าย ๆ
3. ส่วนโค้งที่ยาวมาก ต้องมีจุดแบ่งส่วนกำกับเสมอ
4. ถ่าหากจุดเริ่มต้นส่วนโค้ง ไม่อยู่ในตำแหน่งทางเรขาคณิตอย่างง่าย ควรใช้จุดแทนเจนต์กำกับอยู่ใกล้ ๆ (เช่น ปลายหางของตัว จ.จาน เป็นต้น)
5. เมื่อทดสอบแล้วพบว่ามีบางอักขระที่มีอาการฟุ้ง ให้ลองปรับลดหรือเพิ่มความกว้างของอักขระนั้นที่ละ 1 พิกเซล (ส่วนใหญ่ลองที่ขนาดฟอนต์ประมาณ 11 ปอยนต์)
ถ้าผ่านข้อกำหนดดังกล่าว การ Hint จะได้ผลดีที่สุด
* การทำงานกับส่วนโค้งที่เป็น Quadratic ไม่ยากจนเกินไปนัก หัดสักพักก็จะชิน เมื่อชินแล้วจะพบว่าการบังคับส่วนโค้ง ง่ายกว่าแบบ Cubic เสียอีก เพราะโดนบังคับด้วยจุดขนาบ
* อนาคตของ Truetype Hint น่าจะเสื่อมความนิยมลงไปเรื่อย ๆ ผกผันกับขนาดความละเอียดของจอภาพที่จะละเอียดขึ้นไปเรื่อย ๆ
* การทำให้การ Hint แบบ Adobe ได้ผลดี ควรปรับความหนาของตัวอักษรในแนวนอนให้มีความสม่ำเสมอ จึงจะได้ความสูงของตัวอักษรที่เท่า ๆ กัน ที่ขนาดตัวอักษรต่าง ๆ กัน
ลองทำฟอนต์ใช้เอง - จบ
ค้นไปค้นมา ไปพบฟอนต์ที่เป็นฟรีแวร์และ gpl สรุปได้ดังนี้
* ฟอนต์แห่งชาติ นอกเหนือจากฟอนต์โลมา ครุฑ และนรสีห์แล้ว ยังมีฟอนต์กินรีที่สวยอยู่แล้ว ใช้แทนฟอนต์ Angsana ในวินโดวส์ได้เลย - ดาวน์โหลด national-fonts.zip
* ฟอนต์ของบริษัท Tep Club เป็นฟรีแวร์ มีฟอนต์สวยมาก ๆ คือ CmPrasanmit - ดาวน์โหลด tep-clubfonts.zip
* ฟอนต์ที่ SIPA พัฒนา ไม่ค่อยสวยเท่าไหร่ - ดาวน์โหลด dip-sipa-font.zip
* ฟอนต์ตระกูล JS ของคุณหมอภาณุฑัต ที่แนบมากับลินุกซ์ทะเล 7 สามารถนำออกจากแผ่น TLE-7 ได้เลย หรือสามารถดาวน์โหลดไฟล์ rpm แล้วนำมาแตกเองด้วยโปรแกรม Archeive Manager - ดาวน์โหลด thai-ttf-js.0.0.2-1.src.rpm
มีฟอนต์สวย ๆ มากจริง ๆ
ทำฟอนต์เอง มาตายตรง hinting มือไม่ถึง :P เวลาไม่เอื้อให้ศึกษา
แต่ก็ยังชอบใจ โลมาบุตรอยู่ดี ;D
Sunday, October 14, 2007
Custom Favorites Icon
Your Bookmark Icon
Whenever someone bookmarks a website (using a favicon-compatible browser), a tiny logo-type icon is displayed in their bookmarks next to the link to that site.
That icon is called a favicon and you can create one for your own site!
Here's how:
Make a tiny image, no larger than 16x16 pixels with no more than 16 colors.
Name the icon favicon.ico
Put this icon into each directory (folder) on your site that you want people to be able to bookmark.
You can specify a different favicon for each page of your site! Add <link rel="SHORTCUT ICON" href="pagex.ico"> to the page and upload that .ico file into the page's directory.
Resources
Here are some resources you can use to create your own custom icon.
You can use a free icon editor program from:
Download.com
Favicon.com
IconForge
Or you can use a graphics program:
Microangelo
Paint which comes with Win9x
PaintShopPro
Freeware image editors
IconEdit32 v1.0
If you have to, you can save the file as a favicon.bmp or favicon.gif and then use IrfanView to convert it to an icon file favicon.ico.
Notes
Favicon doesn't work with older browsers (pre IE 5.0 or pre Netscape 7.0). In some browsers, like the new Apple Safari, for instance, the little icon stays in the visitors address bar as long as he or she is on your site.
However, everytime someone clears their cache your Favicon will disappear until visited again.
When you see favicon in your stats you can see how many people (using Favicon-compatible browsers) bookmarked your site. If you see favicon in your 404 errors stats, that means people are bookmarking your site and you don't have a favicon to go with it.
Nokia E-series sync with Evolution via Bluetooth in Ubuntu
This is a howto (provided by Nailor) shows how to sync Nokia E-series phone (Symbian 9.1, Series60 3rd edition) with Gnome Evolution in Ubuntu Edgy Eft (6.10) and Feisty Fawn (7.04). This has been tested with Nokia E50. Information on how to sync Nokia E65 is available here. Kubuntu users may be interested in this.
1. Add required repositories:
Add following repositories to /etc/apt/sources.list:
deb http://opensync.gforge.punktart.de/repo/opensync-0.21/ feisty main
deb-src http://opensync.gforge.punktart.de/repo/opensync-0.21/ feisty main
To add key for the repo, do the following:
gpg --keyserver hkp://subkeys.pgp.net/ --recv-keys CB210090B029CB84
gpg --export CB210090B029CB84 | sudo apt-key add -
2. Install required software
sudo aptitude install libopensync-plugin-* libopensync0 opensyncutils msynctool mulstisync-qad bluez-passkey-gnome bluez-gnome
3. Configure msynctool
You can configure opensync via a graphical interface using multisync-qad (using similiar settings as below) or you can use command line. Guide below is for command line. Note, that the command line is reported not to work flawlessly on Feisty. You'll bet better results with GUI
Add a new group of preferred name (I'll be using nokia in this example):
msynctool --addgroup nokia
Add plugins to group. If you get errors in this face, they are propably due to missing plugins so check you've installed all required plugins.
msynctool --addmember nokia evo2-sync
msynctool --addmember nokia syncml-obex-client
Next is the 'trickiest' part. Installed plugins need to be configured. First, you have to find your phone’s MAC. Use hcitool to do that:
hcitool scan
It should return something like:
xx:xx:xx:xx:xx:xx PhoneName
Now, configure the syncml-obex-client:
msynctool --configure nokia 2
Replace the context of the configuration (should be open in separate editor after running previous command) with the following XML:
Where bluetooth_address is your phone’s MAC address you just discovered.
After configuring the syncml-obex-client it’s time to configure evo2-sync. Open configuration file with command:
msynctool --configure nokia 1
And modify it to look like:
Replace USERNAME with your username.
Edgy note: With the latest update from jahn repositories, this works with defaults. You can configure Calendar as calendar_db to syncml-obex-client setup to make calendar syncing work
4. Sync!
You should be good to go now, so you should try synchronizing:
msynctool --sync nokia
Tuesday, October 09, 2007
Connect Internet via USB E61 on Ubuntu
USB modem
On my system (kernel-2.6.18, udev-103) when I plug USB cable and selected PC Suite mode on my Nokia phone proper drivers are loaded and proper devices are created automatically. This is really how it should work! After phone is connected /dev/ttyACM0 device should be created.
If you have problems with it try to load drivers manually:
modprobe cdc_acm
modprobe usbserial vendor=0x0421 product=0x044d now, wvdial configuration by:sudo wvdialconf /etc/wvdial.conf
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 Z -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyACM0<*1>: Modem Identifier: ATI -- Nokia
ttyACM0<*1>: Speed 4800: AT -- OK
ttyACM0<*1>: Speed 9600: AT -- OK
ttyACM0<*1>: Speed 19200: AT -- OK
ttyACM0<*1>: Speed 38400: AT -- OK
ttyACM0<*1>: Speed 57600: AT -- OK
ttyACM0<*1>: Speed 115200: AT -- OK
ttyACM0<*1>: Speed 230400: AT -- OK
ttyACM0<*1>: Speed 460800: AT -- OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Found an USB modem on /dev/ttyACM0.
Modem configuration written to /etc/wvdial.conf.
ttyACM0
wvdial modem setup is also very simple (DTAC specific):
sudo gedit /etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
ISDN = 0
Phone = *99#
New PPPD = yes
Modem = /dev/ttyACM0
Username = dtac
Password = dtac
Baud = 460800connect to ISP by calling this command:vwdial
(to be continue with bluetooth connection...)
Sunday, October 07, 2007
install iP1500 on Ubuntu 7.04 Feisty Fawn
$sudo vi /etc/apt/sources.list
add this line “deb http://mambo.kuhp.kyoto-u.ac.jp/~takushi/ubuntu ./” and save with “wq!”
$sudo apt-get update
$sudo apt-get install libcnbj-2.5 bjfilter-2.5 pstocanonbj
System > Administration > Printing, Add Printer, Select from List
Everything went ok. I've already had all needed deps. If you are not that lucky and something says 'failed dependencies' try fixing it with apt-get install or apt-get -f install.
After that I suggest creating symlinks:
$cd /usr/lib
$sudo ln -s libpng12.so.0 libpng.so.2
$sudo ln -s libtiff.so.4 libtiff.so.3
$sudo ln -s libxml2.so.2 libxml.so.1
This step is optional but advised - change the .ppd file to get other resolutions (300x300, 1200x1200).
I modified file /usr/share/cups/model/canonpixmaip1500.ppd
(don't forget to backup before changing!)
here's a diff of new and old ppd files:
105a106
> *Resolution 300/300 dpi: "<>setpagedevice"
106a108
> *Resolution 1200/1200 dpi: "<>setpagedevice"
108a111,118
> *OpenUI *CNQuality/Quality: PickOne
> *DefaultCNQuality: 3
> *CNQuality 2/High: "2"
> *CNQuality 3/Normal: "3"
> *CNQuality 4/Standard: "4"
> *CNQuality 5/Economy: "5"
> *CloseUI: *CNQuality
>
/etc/init.d/cupsys restart
$gnome-cups-manager
The printer should be detected as "Canon iP1500" and you should select driver "PIXMA iP1500 Ver.2.50".
That's it!
Sunday, October 01, 2006
Wednesday, September 27, 2006
Monday, September 25, 2006
Portrait Photography Lesson
Monday, September 04, 2006
Ayuthaya 2006
A Trip to Ayuthaya, The Formal Capital City of ThailandAyuthaya: old historic capital of Siam
Ayuthaya is about 85 km north of Bangkok.
It was the capital of Siam from 1350 till 1767,
when Burma conquered the city
33 kings of Siam reigned here.
At its peak (about 1700) it had one million inhabitants.
Out of this area, there are many old wats (temple-monasteries).





