tag:blogger.com,1999:blog-8079909556104953882024-03-13T19:24:56.380+08:00Play Linux請善用站內搜尋找文章、切換檢視為標題或摘要查看列表。Best viewed with OperaAnonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.comBlogger95125tag:blogger.com,1999:blog-807990955610495388.post-18002718962186895832011-08-14T11:48:00.003+08:002011-08-14T11:53:43.657+08:00Dual Head for nouveau (one rotate, absolute position) in both xorg.conf and KDExorg.cnof:<br />
<pre class="code">Section "Monitor"
Identifier "Monitor0"
ModelName "DELL 2209WA"
Option "PreferredMode" "1680x1050"
Option "Rotate" "left"
Option "Position" "0 0"
EndSection
Section "Monitor"
Identifier "Monitor1"
ModelName "Ancor Communications Inc ASUS VB191"
Option "PreferredMode" "1280x1024"
# Option "Rightof" "Monitor0"
Option "Position" "1050 503"
EndSection
Section "Device"
Identifier "Device0"
Driver "nouveau"
Option "Monitor-DVI-I-1" "Monitor0"
Option "Monitor-VGA-1" "Monitor1"
EndSection
Section "Screen"
Identifier "Screen0"
DefaultDepth 24
SubSection "Display"
Depth 24
Virtual 2330 1050
EndSubSection
Device "Device0"
EndSection
Section "ServerLayout"
Identifier "Layout0"
Screen "Screen0"
EndSection</pre><br />
Then set the correct Xrandr mode in KDE's system settings. Remember to save this as default after applying the configuration. Otherwise it will revert to original one after every log-in.<div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-3568629655343828622011-05-26T22:26:00.000+08:002011-05-26T22:26:04.435+08:00Stop GNOME3 from overriding Synaptics SettingRun this in terminal
<pre class=code>gsettings set org.gnome.settings-daemon.plugins.mouse active false</pre><div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-82084510214133737172011-03-02T11:57:00.000+08:002011-03-02T11:57:48.507+08:00Ion3 no tabbarPut the following to ~/.ion3/cfg_ion.lua:
<blockquote><pre class=code>function toggle_tabbar(f)
local mode = f:get_configuration('mode')['mode']
if mode == 1 then
f:set_mode('tiled-alt')
else
f:set_mode('tiled')
end
end
defbindings("WFrame", {
kpress(META.."Shift+Return", "toggle_tabbar(_)"),
})</pre></blockquote>
Then type Alt+Shift+Return(or Win+Shift+Return) shall toggle the appearance of tab bar.<div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-45585491715635080342010-12-03T12:24:00.000+08:002010-12-03T12:24:22.585+08:00nvidia dual head with one rotation in XFirst, use nvidia-settings to generate xorg.conf with the following settings:
<ul>
<li>Check "Enable Xinerama"
<li>Set every screen to "Separate X Screen"
<li>set relative position (left of, right of, etc.) in "X Screen" tab
</ul>
Then edit /etc/X11/xorg.conf, add the following line in Monitor Section:
<pre class=code> Option "Rotate" "left"</pre>
Tested on debian lenny(stable), glx-nvidia, XServer 1.4.2.<div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-53284948025492792612010-11-25T11:55:00.001+08:002010-11-29T12:39:10.728+08:00FS defragment<h3>xfs</h3>
<blockquote>
reference: <a href="http://st-on-it.blogspot.com/2008/02/how-to-defragment-your-xfs-partition.html">url</a>
<h4>check</h4>
<div class=code># xfs_db -r /dev/sda5
xfs_db> frag
actual 22222222, ideal 2342342, fragmentation factor 99.9%
xfs_db> quit</div>
<h4>defragment</h4>
<div class=code># xfs_fsr -v /dev/sda5</div>
</blockquote>
<h3>ext4</h3>
<blockquote>
reference: <a href="http://forums.fedoraforum.org/showthread.php?t=232773">url</a>
<h4>check</h4>
<div class=code>e2freefrag</div>
<h4>defragment</h4>
<div class=code>e2defrag</div>
並不是官方版本
</blockquote><div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-8765901303772286962010-08-21T21:41:00.001+08:002010-11-29T12:39:33.689+08:00kde dbus shortcut setup在 KDE 的 system settings 中可以設定全域熱鍵指定 D-Bus Action 並有 D-Bus Browser 但卻沒有講怎麼去填那 4 個東西,在此筆記。 ##ReadMore##
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/_81p2MPCtx54/TG_Uz0Ay4hI/AAAAAAAAAog/LLTOd-K6ijU/s1600/C:%5Cfakepath%5Csnapshot1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="http://1.bp.blogspot.com/_81p2MPCtx54/TG_Uz0Ay4hI/AAAAAAAAAog/LLTOd-K6ijU/s640/C:%5Cfakepath%5Csnapshot1.png" width="588" /></a></div>
<ul>
<li>Remote application 就直接填左邊 services 的那個
<li>Remote object 是你要的 Method 所在的樹狀結構中,<b>最後有斜線</b>的從<b>root</b> 開始全部串起來,感覺很像目錄
<li>Function 則是 remote object 下那些沒有 tailing slash 的全用點(.)串起來
</ul><div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-78481608284628773732010-07-12T15:49:00.000+08:002010-07-12T15:49:54.604+08:00undefined reference to `CSite::SetPasswd在 Archlinux 上想要編 pcmanx-gtk2 時碰到的問題<br />
解法參考<a href="http://swyear.blogspot.com/2010/06/opensuse-113-rc1-4.html">黑眼珠2</a>,在 ./configure 時加入下面參數:
<div class=code>--enable-static --disable-shared</div><div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-66561845790451919252010-04-29T13:15:00.002+08:002010-04-29T14:16:07.953+08:00Urxvt clipboard copy and pasteMakes urxvt could talk to CLIPBOARD like gnome-terminal or konsole alike. ##ReadMore##
<ol>
<li>save following content as /usr/lib/urxvt/perl/clipboard:
<xmp class=code>#! perl -w
# Usage:
# URxvt.perl-ext-common: clipboard
# URxvt.keysym.Mod4-c: perl:clipboard:copy
# URxvt.keysym.Mod4-v: perl:clipboard:paste
# consult command "xmodmap" to see what your modifier mapped into.
sub copy {
my ($self) = @_;
my $pid = open( pout, "| xsel -ib" ) or die "fork";
print pout $self->selection;
close(pout) or die "close";
}
sub paste {
my ($self) = @_;
my $content = `xsel -ob` ;
$self->tt_write ($content);
}
sub on_user_command {
my ($self, $cmd) = @_;
if ($cmd eq "clipboard:copy") {
$self->copy;
}
if ($cmd eq "clipboard:paste") {
$self->paste;
}
}</xmp>
<li>make sure the Super key is mapped into Mod4 by command xmodmap:
<xmp class=code>$ xmodmap
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x69)
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)</xmp>
<li>load script and define keybindings in ~/.Xdefaults:
<xmp class=code>urxvt.perl-ext-common:clipboard
urxvt.keysym.Mod4-c:perl:clipboard:copy
urxvt.keysym.Mod4-v:perl:clipboard:paste</xmp>
</ol><div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-19469927544513686472010-04-17T12:21:00.004+08:002010-05-05T00:08:34.713+08:00Linux on SD card<p>This method uses local grub partition storing external kernel image and initrd then make leave to run the SD card outside, kinda dirty. ##ReadMore##
<ol>
<li>Install on SD, typically mmcblk0p1 (meaning 1st partition of 1st card), note not to override your local MBR
<li>chroot & rebuild initrd with theese modules:
<div class="code">mmc_core
mmc_block
sdhci
sdhci-pci</div>
Configuration files:
<div class="code">Ubuntu :/etc/initramfs-tools/modules
Archlinux :/etc/mkinitcpio.conf</div>
<li> copy both vmlinuz-26* and initrd to local grub, setup corresponding menu entry command, then done
</ol><p></p>
<p>Suspend Issue<br />
Referrer to #7 and #8 of <a href="http://bbs.archlinux.org/viewtopic.php?pid=716128#p716128">this thread</a>, if you get a kernel >= 2.6.33 just simply append this option into kernel boot parameter:
<div class=code>mmc_core.removable=0</div>
otherwise you have to reconfigure your kernel with option UNSAFE_RESUME enabled and recompile it to get effect.
</p><div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-81229491239307324502010-04-03T16:12:00.002+08:002010-04-03T16:18:26.860+08:00wine UI tweak<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/_81p2MPCtx54/S7byw5-gBfI/AAAAAAAAAoc/1JI6d9AzHuk/s1600-h/wineUI.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="288" src="http://4.bp.blogspot.com/_81p2MPCtx54/S7byw5-gBfI/AAAAAAAAAoc/1JI6d9AzHuk/s400/wineUI.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">效果示意圖</td></tr>
</tbody></table>
調整方法 ##ReadMore##
<ol>
<li>讓 wine 預設先吃一個好字型(以文泉譯微米黑為例):
<xmp class="code">cd .wine/drive_c/windows/Fonts/
rm *
ln -s /usr/share/fonts/wenquanyi/wqy-microhei/wqy-microhei.ttc</xmp>
<li>下載 <a href="http://www.istartedsomething.com/uploads/royale_noir.zip">Royale Noir</a> 佈景,由 winecfg → Desktop Integration → install 安裝佈景
<li>下載 <a href="http://www.csie.ntu.edu.tw/~b95089/file/upload/?dl=004">winefontssmoothing_en.sh</a> 並執行調整 wine 的字體開啟 anti-aliasing
<li>如果之前有手賤從 winecfg 調過字型可能會造成問題,請手動開啟 ~/.wine/user.reg 刪掉有下面 pattern 的機碼(它會定死字型,從而無法自動選不同語言 render):
<xmp class="code">Font"=hex:</xmp>
</ol>
參考資料
<ul>
<li><a href="http://www.winehq.org/pipermail/wine-users/2008-February/029124.html">[Wine] Font anti-aliasing in wine?</a>
<li><a href="http://www.istartedsomething.com/20061029/royale-noir/">Royale Noir: secret XP theme uncovered (download) – istartedsomething</a>
<li><a href="http://ubuntuforums.org/showthread.php?t=1050920">Easy way to enable font smoothing in Wine - Ubuntu Forums</a>
</ul><div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-30909001541066551912010-03-06T04:06:00.021+08:002010-03-11T07:59:49.274+08:00新東西<ul>
<li>gcin 掰,ibus 你好<br />
<li><del>wicd 掰,networkmanager0.7+ 有 wpa_supplicant 整合了</del>
<blockquote style="padding-top:0px;">
不過無法對付所有複雜的無線設定;雖然 wicd 也不行,但它可以自己寫加密方式模板
wpa_supplicant 自己手刻還是王道
</blockquote>
<li>KDE 掰,以後叫 KDE SC, appearance 的 style 和 window 多了一堆可以調整拍拍手
<li>policykit 掰,polkit 你好
</ul><div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-76509109188220725252010-02-17T15:11:00.001+08:002010-06-23T22:36:08.886+08:00iBus in Archlinux完全賴人包安裝法(感謝獨立的圓提供<a href="http://xxb.is-programmer.com/2008/8/31/ibus.5247.html">設定教學</a>):
<div class="code">yaourt -S --asdeps python-pyenchant
yaourt -S ibus{,-{chewing,anthy,qt,table}}</div>
然後修改 ~/.xprofile:
<div class=code>export XMODIFIERS=@im=ibus
export QT_IM_MODULES=ibus
export GTK_IM_MODULE=ibus
ibus-daemon -r -x &</div>
嘸蝦米安裝的話,本人是直接到官網下載 ibus 的 tar 檔,直接解開後照指示就可以裝完 =3=<div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-37844193748180470232010-02-11T22:18:00.001+08:002010-05-05T00:06:53.223+08:00kde 4.4 synapticskde 4.4 以後把原本在外的 touchpad 設定整合起來了<br />
但是它無法正常地使用 circular scrolling<br />
而 gnome 下的 gsynaptics 則是有 circular scrolling 無 two finger tapping (兩隻手同時按即為 middle click) = =<br />
後來是把 kde 內的某些檔案黑掉,讓 kde 不會去 override 我在 <a href="http://playlinux.blogspot.com/2008/11/xorg-74-hal-0591-synaptics-default.html">hal 的設定</a>來完成的:<br />
<div class="code"># mv /usr/lib/kde4/kcm_touchpad.so{,.orig}
# mv /usr/share/kde4/services/touchpad.desktop{,.orig}</div>
補:Archlinux 可以在 /etc/pacman.conf 的 [options] 下加入參數避免它又再長出來
<div class=code>NoExtract = usr/lib/kde4/kcm_touchpad.so
NoExtract = usr/share/kde4/services/touchpad.desktop</div>
注意路徑不能以 '/' 開頭<div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-34145603738215269252009-12-19T00:11:00.004+08:002009-12-19T00:14:19.195+08:00Chrome / Chromium ExtensionsStill, a quick note for myself:
<ul>
<li><a href="http://userscripts.org/scripts/show/46974">Adblock plus with element hider</a> - just rocks! duno why didn't find on official site, but default Easy list would make my blogspot unpostable.
</li><li><a href="https://chrome.google.com/extensions/detail/gffjhibehnempbkeheiccaincokdjbfe">Google Mail Checker Plus</a> - check your mail
</li></ul><div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-58187606074080071522009-12-01T16:14:00.004+08:002010-02-01T17:59:03.747+08:00external notesThis page is for saving some reference page from other sites, would append more items in the future.##ReadMore##
<ul>
<li><a href="http://roylez.wordpress.com/2009/10/22/设定内核cfs调度算法参数来改善桌面相应/">CFS tuning for desktop system</a> - for better kernel response
<li><a href="http://wiki.archlinux.org/index.php/Sshfs">SSHFS</a>(secure shell filesystem) - Play video on sftp
<li><a href="http://www.lesswatts.org/projects/powertop/">powertop</a> - to save power of CPU, esp. Intel's
</ul><div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-41337898859471581242009-11-22T14:24:00.001+08:002009-11-22T14:24:52.738+08:00xorg force VGA output onlyor say, disable/ignore LVDS output, referred from <a href="https://wiki.ubuntu.com/X/Quirks">X Quirks - Ubuntu wiki</a>:
<ol>
<li>use the command to generate an xorg.conf (from <a href="http://wiki.archlinux.org/index.php/Xorg#Configuring">Xorg - ArchWiki</a>):
<xmp class="code">Xorg -configure
mv /root/xorg.conf.new /etc/X11/xorg.conf</xmp>
<li>In section "Section "Device"" of xorg.conf add the line:
<xmp class="code">Option "monitor-LVDS" "LVDS"</xmp>
<li>Then the following new section:
<xmp class="code">Section "Monitor"
Identifier "LVDS"
Option "Ignore" "True"
EndSection</xmp>
</ol>
Why should I do this? Well, when you mess up your display panel of your laptop and get a radeon driver which binds LVDS and VGA together...<div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-58472285817628108412009-10-31T01:36:00.000+08:002009-10-31T01:36:32.576+08:00找出 Gmail 中的舊信請右轉直走到 Advanced Search:<a href="http://mail.google.com/support/bin/answer.py?answer=7190">url</a><br />
基本上就是這樣的語法:
<xmp class="code">before:2009/8/31</xmp>
只是它目前很笨,不能夠來個 before:"a month ago" 之類的,只好很無奈地自己手算年月日...<div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-21034534862409787752009-10-30T10:10:00.008+08:002009-11-01T22:20:18.097+08:00Arch in Panasonic T5主要幾個驅動要上,在 /etc/rc.conf 中 MODULSE 加上這些
<xmp class="code">MODULES=( ... 'iwl3945' 'panasonic-laptop' 'acpi-cpufreq' 'cpufreq_stats' 'cpufreq_powersave' 'cpufreq_userspace' 'cpufreq_ondemand' 'cpufreq_conservative' 'freq_table')</xmp>
這下鍵盤熱鍵和 CPU 變頻就會動瞭。<br />
然後裝無線的 firmware :
<xmp class="code">pacman -S iwlwifi-3945-ucode</xmp>
如果碰到沒聲音的話請參考<a href="http://playlinux.blogspot.com/2009/10/snd-hda-intel-speaker.html">樓下</a>;又,聽說在 windows 下打開聲音再回 linux 聲音就出得來,而 windows 下靜音掉的話就沒聲了@@ ##ReadMore##
<p>關於休眠和待機,如果你是用 kde 的話應該是合得很好,不過注意休眠要修改 /etc/mkinitcpio.conf :
<xmp class="code">HOOKS="... pata resume filesystems"</xmp>
加入 resume ,在 filesystem 之前,排線裝置們(pata, sata, usb, scsi) 之後<br />
然後重做 initrd:
<xmp class="code">mkinitcpio -p kernel26</xmp>
另,可能要修改 /boot/grub/menu.lst :
<xmp class="code">kernel /boot/vmlinuz26 ... resume=/dev/sda5</xmp>
在 kernel 參數中指定你的 swap 分區,本例為 sda5 。<br />
總之就是一整個懶惰,不似以往 A 晶片/顯卡還要辛辛苦苦地使用 tux-on-ice 與一堆累死人設定,實在係就感心(>ω<)♪♪<br />
如果各位沒有<abbr title="linux 下也打不出什麼鬼">打遊戲的習慣</abbr>,那用 i 系列真的會省心無比呢。</p><div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-2776346256844971602009-10-26T23:29:00.005+08:002009-11-01T22:20:05.420+08:00筆電 snd-hda-intel speaker 無聲又再次給我碰到了;又再次爬到<a href="http://www.linuxsir.org/bbs/showthread.php?p=1724248">這篇</a>了:<br />
編輯 /etc/modprobe.d/modprobe.conf 或是 /etc/modprobe.conf (舊kernel) 加入下行
<xmp class="code">options snd-hda-intel model=3stack-dig</xmp>
其中 3stack-dig 換成那網頁在講的別的,每個人可能不太一樣。<br />
關於看 device, 如果你有跑 hal 的話可以直接下指令
<xmp class="code">lshal | grep alsa.device_id</xmp>
看你是哪個,然後開始玩猜謎遊戲一個個試,因為那個清單已經舊了,而新的清單又怪拐,所以各位自行 try try 看了。<br />
<span id='postnote'>
<ul>
<li>小提示:大部份筆電用 3stack-dig 似乎都能動的樣子,儘管不論是新舊版 kernel都沒列在我那晶片上
<li>另,有搞過 linux source code 的,清單在 Documentation/sound/alsa/HD-Audio-Models.txt 裡,個位可以自行研究。
<li>測試在 2.6.31.4 kernel
</ul></span><div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-77893198036788740312009-10-09T11:28:00.000+08:002009-10-09T11:28:02.069+08:00adblock for chrome/chromiumIt is called AdSweep,
Go and check this <a href="http://www.adsweep.org/">site</a> for instrustions!<br />
for user familiar with javascript and css selector you can manually add extra blocking rules for better experience ;)<div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-83651614058491809192009-10-06T16:28:00.001+08:002009-10-06T16:29:30.509+08:00real transparency in urxvt (rxvt unicode)<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/_81p2MPCtx54/Ssr_lNIxlnI/AAAAAAAAAn0/_FUXxXKbY0g/s1600-h/shot1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/_81p2MPCtx54/Ssr_lNIxlnI/AAAAAAAAAn0/_FUXxXKbY0g/s400/shot1.png" /></a><br /></div>
edit in ~/.Xdefaults:<xmp class="code">urxvt*depth:32
urxvt*background:[90]black</xmp>
Note: if you are using some featureless de/wm like lxde/xfce, you can run<xmp class="code">xcompmgr &</xmp>to simply start this effect.<br /><div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-61343994975385946582009-10-04T22:31:00.002+08:002009-10-27T01:02:02.512+08:00Opera halts in Archlinux (Qt 4.5.3)Currently in opera 10.00+ with shared qt build would face lots of no-response due to incompatibility with qt 4.5.3; to solve it, just downgrade back to qt 4.5.2. If you've cleaned your cache, you can visit <a href="http://mirrors.gigenet.com/archlinux/extra/os/">here</a> for packages.
<div id='postnote'><ul>
<li> or you can simply use qt4-bundled package
</ul></div><div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-78370196695562587332009-09-07T22:31:00.007+08:002009-09-07T22:44:18.442+08:00Browsers閒聊罷了:<br />
<ul>
<li>Opera: 算是不錯,但少數網頁會爛掉,JS benchmark 一直被別人鞭爽也是可憐。目前主力。
<li>Firefox: 如果你可以在裝完 addons 之後依然啟動快速就是我的首選
<li>Chromium: 請給我書籤同步和鼠標手勢,不然很難讓我用 =..=
<li>Safari: 不常用 M$, Mac 沒有...
<li>IE: wtf??
</ul><div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-43175814395688556152009-09-06T23:19:00.004+08:002010-01-12T15:31:41.708+08:00Audio extraction<p>Mplayer:
<xmp class="code">mplayer <input file> -dumpaudio [-dumpfile <output file>]
mplayer mms://url -dumpstream [-dumpfile <output file>]
mplayer -vo null -vc null -ao pcm:file=<output file>.wav <input file>
mplayer -vo null -ao pcm:file=<output file>.wav <input file></xmp>
一從檔案直接解開,不會再次失真。<br />
二打開 mms 存成一個檔,不會再次失真。<br />
三解成 pcm 後存檔,副檔名 wav 不解影像,但可能太快而解不完就壞。<br />
四解成 pcm 後存檔,副檔名 wav 會解影像,穩定但不是原味。</p>
<p>ffmpeg:
<xmp class="code">ffmpeg -i <inputfile> [-f <mp3|aac...>] -vn -acodec copy <ouputfile></xmp></p><div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0tag:blogger.com,1999:blog-807990955610495388.post-67154826705599775422009-08-29T22:28:00.001+08:002009-08-30T20:12:18.913+08:00Opera java failure in x86-64如題,java 死就是不出來,儘管已經指對路徑<small>(以 openjdk6, Archlinux 為例)</small>
<xmp class="code">/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/</xmp>
用 terminal 開了後發現原來是 libjvm.so 找不到,它被放到下一層去瞭
<xmp class="code">/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server</xmp>
使用下面指令解之(as root)
<xmp class="code">cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64
ln -s server/libjvm.so</xmp>
收工 =3=<div class="blogger-post-footer">文章歡迎轉載,唯需標示作者來源、以相同形式開放授權,並禁止使用於商業行為。</div>Anonymoushttp://www.blogger.com/profile/13480854810613498538noreply@blogger.com0