Search This Blog

Wednesday, September 26, 2012

[Ubuntu]好用的螢幕截圖並可以編輯的軟體Shutter


Ubuntu 12.04
軟體中心->shutter 安裝即可

Ubuntu 10.04
Synaptic->shutter 安裝
要另外多安裝下列套件,才可有截圖後編輯的功能
Synaptic->libgoo-canvas-perl


Monday, September 17, 2012

[影片]將手機拍攝的直立影片加上黑框變成橫向影片

使用手機拍攝影片時,常會以直立方式進行拍攝,但在上傳至facebook或其他影音網站時,可能會遇到問題,因此如果能以加上黑邊方式,將影片轉換為橫向影片,就可以解決。

1.下載免費工具Any Video Converter

2.設定選項

Sunday, August 5, 2012

[Ubuntu] User is not in the sudoers file

1. Reboot the system
2. Boot into "Recovery" mode
3. Select "Root Session"
4. Execute command as following to remount root filesystem
mount -o remount,rw /
5. Edit /etc/sudoers to add username to sudo user
# User privilege specification
username     ALL=(ALL:ALL) ALL
6. Reboot


Error: "usermod: cannot lock /etc/passwd; try again later"

Reference:http://askubuntu.com/questions/79933/deleted-myself-from-admin-group-now-getting-error-usermod-cannot-lock-etc-pa

Wednesday, June 13, 2012

[CentOS5] SVN Commit後透過Gmail發送email通知(SVN Post-Commit to send email notify via Gmail)

在CentOS 5中,使用SVN Commit Code後要自動發送通知,進行下列2個步驟即可,如果不是使用Gmail的smtp,則跳過第1步驟

     svn_email_commit.sh中

38# Send email
39cat $TMPFILE | mail -a "From: $SENDFROM" -s "$SUBJECT" "$SENDTO"

    在我使用時要修改一下才可正常發送

38# Send email
39cat $TMPFILE | mail -s "$SUBJECT" "$SENDTO"



Tuesday, May 22, 2012

[Ubuntu]10.04 Parital Upgrade Error

Error Message:subprocess installed pre-removal script returned error exit status 2
Package : adobe-flashplugin

Removing adobe-flashplugin ...
update-alternatives: error: no alternatives for iceape-flashplugin.
update-alternatives: error: no alternatives for iceape-flashplugin.
dpkg: error processing adobe-flashplugin (--remove):
 subprocess installed pre-removal script returned error exit status 2
postinst called with argument `abort-remove'
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 adobe-flashplugin
E: Sub-process /usr/bin/dpkg returned an error code (1)

Solution:
1. Backup /var/lib/dpkg/status
2. Edit /var/lib/dpkg/status, and remove Package adobe-flashplugin

Reference:http://www.khattam.info/solved-subprocess-pre-removal-script-returned-error-exit-status-2-error-2009-08-04.html

Thursday, April 5, 2012

[Kindle DX] 以清單方式播放Mp3 ( Play Mp3 file in document list)

Kindle本身有支援播放Mp3的功能,如果是將Mp3放到Music的目錄內,就只能在Experimental->Play music播放,看不到Mp3的名稱也無法快轉。但如果將Mp3放到audible的的目錄中,Mp3的名稱就會出現在清單中了,方便選擇且播放的功能也比較完整。

If you put Mp3 files in music fold in Kindle, you can play Mp3 in Experimenatl/Play Music. It's not easy to play and choose mp3. If you put mp3 files in audible fold, you will find mp3 files in home list.

Monday, January 9, 2012

[C#][Solved]Could not load file or assembly 'Microsoft.SqlServer.Types

當在使用C# Express時,出現Could not load file or assembly 'Microsoft.SqlServer.Types之訊息

先下載Microsoft SQL Server 2008 Feature Pack, October 2008

會下載一個安裝指引檔,再安裝其中兩個檔案即可

  • Microsoft SQL Server System CLR Types
  • Microsoft SQL Server 2008 Native Client

Reference:

stackoverflow.com/questions/1625768/could-not-load-file-or-assembly-microsoft-sqlserver-types

http://www.aghausman.net/dotnet/could-not-load-file-or-assembly-microsoftsqlservermanagementsdksfc.html