2007年4月30日

拯救啞巴企鵝 Ubuntu 7.04 + alsa 1.0.14rc3

自從Ubuntu 7.04(feisty)的kernel更新至2.6.20-14 / 2.6.20-15,我的Linux系統就陷入一片寂靜,用Google找不到有效的解決方法,只好先裝alsa 1.0.14rc3救急,沒想到真的有用*_*。

我的Notebook是ASUS M9J(hda-intel, AD198x Analog [AD198x Analog])

1.下載alsa-driver
wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.14rc3.tar.bz2
2.解壓縮
tar jxvf alsa-driver-1.0.14rc3.tar.bz2
3.編譯&安裝
cd alsa-driver-1.0.14rc3
./configure --with-kernel=/usr/src/linux-headers-$(uname -r) --with-cards=hda-intel --with-oss=yes
make
sudo make install

4.重開機&放點音樂吧..

參考文件: 完整音效問題解決指南 (from Ubuntu正體中文站 論壇)

2007年4月25日

免費的燒錄軟體

  1. burnatonce
    功能多,評價頗不錯的軟體
  2. burrrn
    燒錄音樂CD專用,支援檔案格式:wav, mp3, mpc, ogg, aac, mp4, ape, flac, ofr, wv, tta, m3u, pls, fpl, cue

2007年4月8日

[轉載]不賣雞排也可以 - 程式設計師真情懺悔錄

這是一篇值得看的文章:
相關文章:
其他推薦:

今夜就拿蔡學墉先生寫的的「爪哇夜未眠」當枕邊書吧,當我買這本書時,還是個Java的門外漢, 於是翻過幾頁後,就一直擺在書櫃裡,之後就沒再打開過;熬過一星期每天coding趕project的日子,很容易就感到疲倦,或許已經衰老了?!抑或熱情已經不再?! anyway.. 眼下最重要的事情,就是先解決經濟上的問題阿。

2007年4月7日

CurlFtpFS - A FTP filesystem based on cURL and FUSE

Description

CurlFtpFS is a filesystem for acessing FTP hosts based on FUSE and libcurl.

Features

CurlFtpFS diferentiates itself from other FTP filesystems because it features:

* SSLv3 and TLSv1 support
* connecting through tunneling HTTP proxies
* automatically reconnection if the server times out
* transform absolute symlinks to point back into the ftp file system

*從v0.9開始有支援utf8編碼

使用方法 =>
mount:
$ curlftpfs -o utf8 -o allow_other ftp://USERNAME:PASSWORD@HOSTNAME/ MNT_NAME/
-o utf8: Try to transfer file list with UTF-8 encoding. Send OPTS UTF8 ON at the beginning of file list transfer.
-o allow_other: Allow access to other users. By default the mount point is only accessible to the user that mounted it and not even to root.

umount:
$ fusermount -u sunet/

2007年4月5日

Linux在UTF-8環境下的檔案分享伺服器(ftp,samba)

  1. 設定Locales
    zh_TW.utf8(Mandriva在/etc/sysconfig/i18n設定檔,也可使用draklocale變更)
  2. 設定Samba
    dos charset = UTF8
    unix charset = UTF8
    display charset = UTF8
  3. 使用smbmount
    smbmount //your_host/res_name mount_path -o iocharset=utf8,codepage=unicode,unicode
  4. 設定PieTTY/PuTTY
    主選單將字元編碼切換為Unicode UTF-8即可。
  5. 設定FileZilla
    在「站台管理員」建立或選擇一個FTP站台,編輯"進階設定",將Use UTF8 on server if available設定為Force。
  6. 安裝Unicode-at-on(UAO)
    Windows灌個UAO可以解決一些亂碼問題。
  • 建議使用pure-ftpd加入RFC 2640支援, 可以解決UTF-8編碼問題
  • 測試的系統為Mandriva Linux 2007.0 (x86)

Free services for DNS parking..

Following are some useful sites for DNS parking:

Linux下發簡訊的Perl Script

一些 SMS 的 function提供的script稍加修改, 可以在UTF-8的console下發送emome的簡訊。
#!/usr/bin/perl

# Usage: sms-emome #PHONE MSG

use HTML::Form;
use WWW::Mechanize;
use Text::Iconv;

use strict;

die "Usage: sms-emome #PHONE MSG\n" if $#ARGV<1;

my ($target, $msg) = @ARGV;

my $converter = Text::Iconv->new("utf8", "big5");

&sendsms('手機號碼', '密碼', $target, $converter->convert($msg));

sub sendsms
{
my ($username, $password, $receiver, $msg) = @_;

my $agent = WWW::Mechanize->new();
$agent->agent_alias('Windows IE 6');
$agent->get('http://www.emome.net/cgi-bin/MASP/jsp/membersvc/AuthServlet?serviceId=5235');

$agent->form('myform');
$agent->field('MSISDN', $username);
$agent->field('PASSWD', $password);
$agent->submit();

$agent->get('http://websms1.emome.net/sms/sendsms/new.jsp?msg=');

$agent->form('form1');
$agent->field('phonelist', $receiver);
$agent->field('data', $msg);
$agent->field('language', 1); # 1 == 中,2 == 英
$agent->current_form()->action('http://websms1.emome.net/sms/sendsms/send.jsp');
$agent->submit();
}
lyhcode by lyhcode
歡迎轉載,請務必註明出處!