About me

我的相片
I'm a web and software developer from Kaohsiung, Taiwan.
I design and implement user interfaces, also contribute to open source projects.
http://penkia.net/portfolio

2008年5月29日 星期四

本日書籤 05/29/2008

Alternative distros and tools: Fluxbuntu, TinyMe, SliTaz

http://0rz.tw/da4aq

MPX has been merged.

http://wearables.unisa.edu.au/mpx/?q=node/144

The A-Z of Programming Languages: AWK

http://www.computerworld.com.au/index.php/id;1726534212;fp;4;fpid;611908207

[Ruby] 發送 Trackback 的實作方法

http://blog.xdite.net/?p=587

Logitech Control Center太糟糕

http://lukhnos.org/blog/zh/archives/599

讓我們輕鬆自在設計自己的 LXPanel Plugin

http://fred-zone.blogspot.com/2008/05/lxpanel-plugin.html

透過 Python 體驗 QtWebKit 快速開發

http://blog.linux.org.tw/~jserv/archives/002026.html

以 ptrace 系統呼叫來追蹤/修改行程

http://blog.linux.org.tw/~jserv/archives/002027.html

Richard Stallman 台灣行第四天紀錄: 5/15 新竹清大行側寫

http://www.jollen.org/blog/2008/05/richard_stallman_day4.html

Richard Stallman 台灣行第四天紀錄: 5/15 演講實紀

http://www.jollen.org/blog/2008/05/richard_stallman_speech_nthu.html

馬上,就會漲

http://blog.dragon2.net/2008/05/28/532.php

「天馬行空」我的 Mac 白日夢

http://blog.osx119.com/?p=160

鎚子與釘子

http://zonble.twbbs.org/archives/2008_05/1008.php

履歷問題與44個寫作訣竅

http://fred.ipod.to/blog/?post;1522

與客戶維繫良好關係的5個訣竅

http://fred.ipod.to/blog/?post;1524

手機的演進史

http://uiui.mmdays.com/2008/05/22/cellphone/

User Experience Design

http://uiui.mmdays.com/2008/05/22/ux/

Multitouch: The DigitalDesk Calculator

http://uiui.mmdays.com/2008/05/23/digitaldesk-calculator/

Windows 7

http://uiui.mmdays.com/2008/05/28/windows7/

Twitter 該怎麼收費?

http://blog.woixv.com/?p=532

思考函數編程(一)Language is Functional Again

http://jerrylovesrebol.blogspot.com/2008/05/fp_22.html

你需要開始學習簡體中文了

http://jerrylovesrebol.blogspot.com/2008/05/blog-post_25.html

Canonical CEO says Ubuntu Netbook Remix build coming in June

http://0rz.tw/bb4cG

Ultimate Edition 1.8

http://ultimateedition.info/Ultimate_Edition_1.8/

Releases : Zenwalk 5.2 Beta is out :)

http://www.zenwalk.org/modules/news/article.php?storyid=78

TinyMe 2008.0 Released!

http://tinyme.mypclinuxos.com/wiki/doku.php?id=latestrelease

DistroWatch Weekly, Issue 254, 26 May 2008

http://distrowatch.com/weekly.php?issue=20080526

Release Notes for Linux Mint 5 Elyssa RC2 (BETA 048)

http://www.linuxmint.com/rel_elyssa.php

Elive 1.7.5 development released

http://www.elivecd.org/Main/News/elive-development-1.7.5-released

SquirrelFish: WebKit has a new, fast, JavaScript engine

http://webkit.org/changeset-33979.html

Portishead - Third

http://pulp.bluecircus.net/archives/012572.html

Sugar Labs和四家筆電商洽談中

http://0rz.tw/9649u

超級彈跳機器人創造新跳躍記錄

http://0rz.tw/2549Q

以 Panasonic EVOLTA 電池為動力的機器人成功攀爬大峽谷!

http://0rz.tw/e2486

Google 在自家 I/O 會議上以 HTC Dream 示範 Android 作業系統?

http://0rz.tw/844aj

Lightweight Equinox Desktop Environment needs polish

http://www.linux.com/feature/135684

Review: Equinox Desktop Environment 1.2

http://www.osnews.com/story/19782/Review:_Equinox_Desktop_Environment_1.2

Distributed bug tracking

http://lwn.net/Articles/281849/

Why the pre-loaded Linux Desktop is important

http://0rz.tw/554ct

Review: Lightweight Linux distributions

http://www.abzone.be/Review001_p001

Linux On The Desktop: Who Cares!

http://www.linuxjournal.com/content/linux-desktop-who-cares

Tweak photos with Fotox

http://www.linux.com/feature/135390

A Talk with Fedora Project Leader Paul Frields

http://lwn.net/Articles/281550/

Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail

http://0rz.tw/2a4cG

Comparing Linux USB flash disk distros

http://www.linux.com/feature/134670

Become A System Rescue Guru With Linux, Part 2

http://www.linuxplanet.com/linuxplanet/reviews/6486/1/

Anatomy of Linux flash file systems

http://www.ibm.com/developerworks/linux/library/l-flash-filesystems/index.html

Zdrv loads on /lib/modules

http://puppylinux.com/blog/?viewDetailed=00123

new features, code, and brainstorms

http://use.perl.org/~pmichaud/journal/36494?from=rss

Using Unified Separators and Containers to Draw a GUI

http://0rz.tw/764aL

Multitouch, New Taskbar in Motion

http://osnews.com/story/19801/Multitouch-New-Taskbar-in-Motion

Light Painting in Pixelmator 1.2

http://abduzeedo.com/light-painting-pixelmator-12

Video Introduction to Cocoa

http://www.tuaw.com/2008/05/23/video-introduction-to-cocoa/

模組編譯的小技巧

最近在玩 Ubuntu Mobile 的時候發現, 有很多好東西藏在 linux-ubuntu-modules 的源碼裡面, 因為種種原因而沒有編譯成套件發佈, 甚至連 debian/config 都沒有寫. 另外 PPA 裡面的更新也是不能錯過的..

所以我們的使用情境就是, 要怎麼 1) 只編譯我想要的模組 2) 並且讓它能安裝於現在的核心. 原本我用 dpkg-buildpackage 試了半天, 發現要嘛編出來的版本號不符合 , 要嘛是我不會改 debian/control 還有 debian/rules 所以編了一堆沒必要的模組跟套件..後來總算是找到更簡單的模組編譯方法了!

安裝必要工具


# apt-get install build-essential linux-headers-$(uname -r)

取得源碼


# apt-get source linux-ubuntu-modules-$(uname -r)

修改版號


# cd /lib/module/$(uname -r)/build ; vi Makefile

這部份就比較 tricky 了, 將 EXTRAVERSION = 改成我們要的版號比如說 -17-generic (目前在 hardy-updates 的最新版本).

編譯模組


# make M=/path/to/your/module/directory \
-C /lib/module/$(uname -r)/build


大功告成! :-)

2008年5月25日 星期日

25 行寫一個瀏覽器 (的介面)



只是實驗來讓自己辛酸的而已. 這過程是這樣的.. XD
  • 如果可以用瀏覽器做到整個 "desktop" 該有的功能, 包括 web-based UI, file I/O, multimedia, 那我們根本不用跑 window manager, 甚至連 X 都不用, 看 GtkFB 底下哪套功能可接受就能跳過去.

  • pyclutter-webkit 還沒編好, 所以轉向玩 gtkhtml2

  • 再由 python-gtkhtml2 玩到 gtkmozembed (現在包在 python-gnome2-extras 裡面)

  • ..之前弄 XEmbed 幹嘛, 人家都直接有 binding 了....
程式碼和介面的 glade 檔 請從這邊下載, 這麼「範例」的程式也不用什麼授權了. XD

PulseAudio 設定筆記

安裝套件

那些圖形介面的設定工具我就沒裝了, 想要的話也可以順便把 gconf 補上:
# apt-get install gstreamer0.10-pulseaudio pulseaudio pulseaudio-utils \
pulseaudio-esound-compat pulseaudio-module-hal pulseaudio-module-x11 \
libasound2-plugins libflashsupport

設定

PulseAudio 是 ESD 的取代工具, 因此其他的 sound server 或多或少都需要動點手腳, 我主要只用 ALSA 所以只做這部份的設定:
# vi /etc/asound.conf
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}

設定 init script

不知道為甚麼, Ubuntu 套件中 PulseAudio 的啟動程序會對變數 PULSE_AUDIO_SYSTEM_START 做奇怪的檢查, 造成剛裝好以後根本沒辦法 start, 把這行註解掉就沒問題了. XD
# vi /etc/init.d/pulseaudio

另外 initng 還沒有提供對應的 ifile, 只好暫時加一行手動開啟, 看之後要不要從 JACKd 來改.

設定群組

# addgroup penk pulse; addgroup penk pulse-access; addgroup penk pulse-rt

這樣就完成了, 目前使用上還沒碰到什麼大問題, 至少 firefox/flash + exaile + vlc + pidgin 都還能正常發聲. XD

之後若是處理到 mplayer, skype 或是 gstreamer 的程式再來更新吧! 接下來要把這部份更動 commit 到 build-livecd 裡面.

2008年5月23日 星期五

Hildon Desktop 修改心得

Home plugin 會被自動載入. 那顆 Home 按鈕是 libshowhomeplugin.so, 不用重寫.
  1. 先編好 python 的 hildondesktop 模組
  2. pythonhome.py 安裝到 /usr/lib/hildon-desktop
  3. 改寫 .desktop 的 type=python, X-Path 不用副檔名
  4. 修改 /etc/hildon-desktop/home.conf
至於 panel plugin 或 marqee plugin 也是一樣道理.

因為某些原因, moblin 好像需要 gtk2-engines-sapwood.

2008年5月21日 星期三

本日書籤 05/21/2008

iVanilla: 一個已經停止的 OpenVanilla 實驗

http://lukhnos.org/blog/zh/archives/598

這就是無名小站所造成的經典例子?

http://blog.xdite.net/?p=586

Richard Stallman 結束訪台行程: 5/19 離台

http://www.jollen.org/blog/2008/05/richard_stallman_departure.html

叫「台灣」有這麼丟臉?去你媽的大陸官方!

http://blog.dragon2.net/2008/05/20/531.php

YouTomb:被 YouTube 下架的影片

http://blog.gslin.org/archives/2008/05/21/1502/

Git 與 Subversion 的結合

http://blog.gslin.org/archives/2008/05/21/1503/

Linux Kernel 2.6.25 - ACPI 的電池狀態大變動

http://fred-zone.blogspot.com/2008/05/linux-kernel2625-acpi.html

how-open-source-projects-survive-poisonous-people

http://0rz.tw/73488

PycTW2008 (台灣 Python 研討會) 將於六月 15 日登場

http://blog.linux.org.tw/~jserv/archives/002023.html

以 CMake 處理專案的多國語文翻譯

http://blog.linux.org.tw/~jserv/archives/002024.html

「我愛 Git」簡報上線

http://blog.linux.org.tw/~jserv/archives/002025.html

REBOL vs. F# vs. Erlang

http://jerrylovesrebol.blogspot.com/2008/05/rebol-vs-f-vs-erlang.html

進入FP的第一步

http://jerrylovesrebol.blogspot.com/2008/05/fp.html

100 Must-Read Books For Man

http://pulp.bluecircus.net/archives/012569.html

Ryan McGinley & Sigur Ros New Album

http://pulp.bluecircus.net/archives/012571.html

Running with the 2.6.25.4 kernel

http://puppylinux.com/blog/?viewDetailed=00102

Testimonial about Puppy4

http://puppylinux.com/blog/?viewDetailed=00106

How does wifi module get it's firmware?

http://puppylinux.com/blog/?viewDetailed=00107

Parrot 0.6.2 "Reverse Sublimation" Released!

http://www.nntp.perl.org/group/perl.perl6.announce/2008/05/msg582.html

Documentation for sysfs, hotplug, and firmware loading.

http://lwn.net/Articles/242046/

Installing Linux Without a CD: The Easy Process

http://0rz.tw/ca494

gOS (Linux) Usability Review

http://0rz.tw/c743c

2.6.26-rc3, "Another Week, Another -rc Release"

http://kerneltrap.org/Linux/2.6.26-rc3_Another_Week_Another_rc_Release

Wall-climbling robot scales nearly any building material

http://0rz.tw/6c48C

Parsix GNU/Linux 1.5r0-TEST-2 Release Notes

http://www.parsix.org/html/pnWikka-tag-ReleaseNotes15r0TEST2.html

DistroWatch Weekly, Issue 253, 19 May 2008

http://distrowatch.com/weekly.php?issue=20080519

Distribution Release: eAR OS 1.08

http://distrowatch.com/?newsid=04900

Firmware loading, savepuppyd

http://puppylinux.com/blog/?viewDetailed=00108

2008年5月18日 星期日

本日書籤 05/18/2007

演講:我愛 Git - 有效使用分散式版本控制系統

http://blog.linux.org.tw/~jserv/archives/002019.html

QGtkStyle : 讓 Qt 應用程式模擬 GtK+ 的外觀

http://blog.linux.org.tw/~jserv/archives/002020.html

演講:尋幽訪勝話系統--以 Linux 探索軟硬體整合設計

http://blog.linux.org.tw/~jserv/archives/002021.html

Richard Stallman 台灣行第三天:演講「The Danger of Software Patent」

http://www.jollen.org/blog/2008/05/richard_stallman_day3_tku.html

Richard Stallman 台灣行第三天:下課後

http://www.jollen.org/blog/2008/05/richard_stallman.html

詭異的富邦銀行 [Google Adsense 託收]

http://blog.xdite.net/?p=585

Yahoo輸入法問世!

http://fred.ipod.to/blog/?post;1513

Multitoch 多點觸控時做比較圖表

http://uiui.mmdays.com/2008/05/17/multitoch-comparison-chart/

良知。

http://blog.woixv.com/?p=531

Pokarekare ana

http://blog.woixv.com/?p=530

共時導向編程

http://jerrylovesrebol.blogspot.com/2008/05/blog-post_16.html

Python / Perl / Ruby for Symbian

http://blog.ijliao.info/archives/2008/05/16/3554/

OLPC 也墮落了!

http://0rz.tw/a445T

Removing the Big Kernel Lock

http://kerneltrap.org/Linux/Removing_the_Big_Kernel_Lock

BSDCan 2008: ZFS Internals

http://kerneltrap.org/FreeBSD/BSDCan_2008_ZFS_Internals

WWDC to launch a 3G iPhone and Atom-based MID device? [updated]

http://0rz.tw/2a485

ASUS bringing Splashtop instant-on OS to all its motherboards

http://0rz.tw/3e4b3

DIYer becomes inundated with spare time, crams Wikipedia onto PDA

http://www.instructables.com/id/Wikipedia-in-your-pocket/

LCARS-esque touchscreen controls home, excites Trekkies

http://0rz.tw/c741S

(終於有 LCARS 介面出現了!!! XD)

Aigo MID tested, ported to a real OS

http://www.engadget.com/2008/05/16/aigo-mid-tested-ported-to-a-real-os/

Displaced by XP, Sugar Labs goes it alone

http://www.engadget.com/2008/05/16/displaced-by-xp-sugar-labs-goes-it-alone/

Distribution Release: Ark Linux 2008.1

http://distrowatch.com/?newsid=04891

Development Release: Sabayon Linux 3.5 Beta 3

http://distrowatch.com/?newsid=04892

Hacking the FreeBSD Boot CD

http://www.bsdworld.net/tutorials/12

How not to sell embedded Linux

http://lwn.net/Articles/281037/

Dreamy Dreamlinux

http://www.linux.com/feature/134960

Building a glossier front end for MythTV

http://www.linux.com/feature/135096

Become A System Rescue Guru With Linux, Part 1

http://www.linuxplanet.com/linuxplanet/tutorials/6484/1/

Fixing Debian OpenSSL

http://blogs.computerworld.com/fixing_debian_openssl

Essential commands for Linux network administration

http://www.reallylinux.com/docs/networkingadmin.shtml

Anonymous Web surfing with TorK

http://www.linux.com/feature/135094

Linux Product Insider: Instant-on Internet for ASUS

http://0rz.tw/2c4al

Hotplugging improved

http://puppylinux.com/blog/?viewDetailed=00095

Kernel 2.6.25.4

http://puppylinux.com/blog/?viewDetailed=00098

Smartlink non-GPL problem

http://puppylinux.com/blog/?viewDetailed=00099

Sysprof

http://puppylinux.com/blog/?viewDetailed=00101

Catching up on Rakudo changes

http://use.perl.org/~pmichaud/journal/36420?from=rss

The Rise of Contextual User Interfaces

http://osnews.com/story/19747/The-Rise-of-Contextual-User-Interfaces

Fedora 9: an OS that Even the Linux Challenged Can Love

http://www.theregister.co.uk/2008/05/12/fedora_9/